blob: a38067bc2d0e037cadf2a27776cf79139235fc1d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000849CXX
850CXXFLAGS
851ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000884OCAMLC
885OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000886OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000887OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000888GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000902LLVMGCCCOMMAND
903LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000904LLVMGCC
905LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000906USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000907HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000908HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000909ALLOCA
910MMAP_FILE
911LLVMCC1
912LLVMCC1PLUS
913LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000914LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000915LLVMGCC_VERSION
916LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000917LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000918SHLIBEXT
919LLVM_PREFIX
920LLVM_BINDIR
921LLVM_LIBDIR
922LLVM_DATADIR
923LLVM_DOCSDIR
924LLVM_ETCDIR
925LLVM_INCLUDEDIR
926LLVM_INFODIR
927LLVM_MANDIR
928LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000929BINDINGS_TO_BUILD
930ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000931OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000932ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000933RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000934RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000935LIBOBJS
936LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000937ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944CPPFLAGS
945CPP
946CXX
947CXXFLAGS
948CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000949CXXCPP
950F77
951FFLAGS'
952ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000954projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000955projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000956projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-reopt
958projects/llvm-gcc
959projects/llvm-java
960projects/llvm-tv
961projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000962projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000990# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001012ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001013for ac_option
1014do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001017 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=
1019 continue
1020 fi
1021
Reid Spencera773bd52006-08-04 18:18:08 +00001022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001056 datadir=$ac_optarg ;;
1057
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
John Criswell7a73b802003-06-30 21:59:07 +00001065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001091 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
Reid Spencera773bd52006-08-04 18:18:08 +00001118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
John Criswell7a73b802003-06-30 21:59:07 +00001124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
Reid Spencera773bd52006-08-04 18:18:08 +00001148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
John Criswell7a73b802003-06-30 21:59:07 +00001153 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
Reid Spencera773bd52006-08-04 18:18:08 +00001222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
John Criswell7a73b802003-06-30 21:59:07 +00001232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001287 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001296 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1316
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001328 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001329 export $ac_envvar ;;
1330
1331 *)
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1346fi
1347
Reid Spencera773bd52006-08-04 18:18:08 +00001348# Be sure to have absolute directory names.
1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001353do
Reid Spencera773bd52006-08-04 18:18:08 +00001354 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001355 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001358 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
Reid Spencera773bd52006-08-04 18:18:08 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1395
1396
John Criswell7a73b802003-06-30 21:59:07 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001406echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001434 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001435fi
Reid Spencera773bd52006-08-04 18:18:08 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001465\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
John Criswell7a73b802003-06-30 21:59:07 +00001485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001532 esac
1533 cat <<\_ACEOF
1534
1535Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1541 YES)
David Greenea696d242007-06-28 19:36:08 +00001542 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001543 Compile with expensive debug checks enabled (default
1544 is NO)
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1546 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001547 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001548 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001549 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001550 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001551 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001552 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001553 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1555 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001558 --enable-libffi Check for the presence of libffi (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001559 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001560 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001562 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001563 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001564 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001565 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001566 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1573 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001574 --with-llvmgcc Specify location of llvm-gcc driver (default
1575 searches PATH)
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1577 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001578 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1580 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001583 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001587 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001588 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591 CC C compiler command
1592 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001597 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
1607Report bugs to <llvmbugs@cs.uiuc.edu>.
1608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001609ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001610fi
1611
1612if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001615 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_builddir=.
1617
Reid Spencera773bd52006-08-04 18:18:08 +00001618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
John Criswell7a73b802003-06-30 21:59:07 +00001621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001633
1634case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001635 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001640 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001647esac
Reid Spencera773bd52006-08-04 18:18:08 +00001648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001649
Reid Spencera773bd52006-08-04 18:18:08 +00001650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001658 else
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001662 done
1663fi
1664
Reid Spencera773bd52006-08-04 18:18:08 +00001665test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001666if $ac_init_version; then
1667 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001668llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001669generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001670
Reid Spencera773bd52006-08-04 18:18:08 +00001671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001675
Tanya Lattnercf067672008-01-17 05:57:22 +00001676Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001677_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001678 exit
John Criswell7a73b802003-06-30 21:59:07 +00001679fi
Reid Spencera773bd52006-08-04 18:18:08 +00001680cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001681This file contains any messages produced by compilers while
1682running configure, to aid debugging if configure makes a mistake.
1683
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001684It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001685generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001686
1687 $ $0 $@
1688
1689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001690exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001691{
1692cat <<_ASUNAME
1693## --------- ##
1694## Platform. ##
1695## --------- ##
1696
1697hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705
1706/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001709/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001710/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713
1714_ASUNAME
1715
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1722done
Reid Spencera773bd52006-08-04 18:18:08 +00001723IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001724
1725} >&5
1726
1727cat >&5 <<_ACEOF
1728
1729
1730## ----------- ##
1731## Core tests. ##
1732## ----------- ##
1733
1734_ACEOF
1735
1736
1737# Keep a trace of the command line.
1738# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001740# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001741# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001742ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_configure_args0=
1744ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001745ac_must_keep_next=false
1746for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001747do
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 for ac_arg
1749 do
1750 case $ac_arg in
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1754 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001755 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 case $ac_pass in
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 2)
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001765 case $ac_arg in
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 esac
1773 ;;
1774 -* ) ac_must_keep_next=true ;;
1775 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001777 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ;;
1779 esac
1780 done
John Criswell7a73b802003-06-30 21:59:07 +00001781done
John Criswell0c38eaf2003-09-10 15:17:25 +00001782$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783$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 +00001784
1785# When interrupted or exit'd, cleanup temporary files, and complete
1786# config.log. We remove comments because anyway the quotes in there
1787# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001788# WARNING: Use '\'' to represent an apostrophe within the trap.
1789# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001790trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1792 {
1793 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795 cat <<\_ASBOX
1796## ---------------- ##
1797## Cache variables. ##
1798## ---------------- ##
1799_ASBOX
1800 echo
1801 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001802(
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in #(
1806 *${as_nl}*)
1807 case $ac_var in #(
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 esac
1811 case $ac_var in #(
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
John Criswell7a73b802003-06-30 21:59:07 +00001817 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001820 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001824 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001827 esac |
1828 sort
1829)
John Criswell7a73b802003-06-30 21:59:07 +00001830 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
Reid Spencera773bd52006-08-04 18:18:08 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
Reid Spencera773bd52006-08-04 18:18:08 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001862 done | sort
1863 echo
1864 fi
1865
John Criswell7a73b802003-06-30 21:59:07 +00001866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001873 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1879 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001882 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001883' 0
John Criswell7a73b802003-06-30 21:59:07 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001890rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001891
1892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
1919# Let the site file select an alternate cache file if it wants to.
1920# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001921if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925else
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001928fi
Reid Spencera773bd52006-08-04 18:18:08 +00001929shift
1930for ac_site_file
1931do
John Criswell7a73b802003-06-30 21:59:07 +00001932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file"
1937 fi
1938done
1939
1940if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945echo "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001949 esac
1950 fi
1951else
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953echo "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1955fi
1956
1957# Check that the precious variables saved in the cache have kept the same
1958# value.
1959ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001960for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001965 case $ac_old_set,$ac_new_set in
1966 set,)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,set)
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1974 ,);;
1975 *)
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001982echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001983 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997done
1998if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
John Criswell7a73b802003-06-30 21:59:07 +00002030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
Tanya Lattnercf067672008-01-17 05:57:22 +00002038LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039
2040
2041
2042
2043
2044
2045
John Criswell7a73b802003-06-30 21:59:07 +00002046ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002047for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
Reid Spencera773bd52006-08-04 18:18:08 +00002052 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
Reid Spencera773bd52006-08-04 18:18:08 +00002056 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002065 { (exit 1); exit 1; }; }
2066fi
Reid Spencera773bd52006-08-04 18:18:08 +00002067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
John Criswell7a73b802003-06-30 21:59:07 +00002076
John Criswell392aaa32003-07-22 19:18:09 +00002077
Reid Spencer2706f8c2004-09-19 23:53:36 +00002078if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002081echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 fi
John Criswell93e1c722003-09-15 17:04:06 +00002084fi
2085
John Criswell33a911a2003-11-25 20:36:46 +00002086for i in `ls ${srcdir}/projects`
2087do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 if test -d ${srcdir}/projects/${i} ; then
2089 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 CVS) ;;
2091 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002097 # llvm-test is the old name of the test-suite, kept here for backwards
2098 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002099 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002101 test-suite) subdirs="$subdirs projects/test-suite"
2102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002112 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002113 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002116 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002120 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002121 esac
John Criswell33a911a2003-11-25 20:36:46 +00002122 fi
2123done
John Criswell559a6c12003-09-30 16:31:48 +00002124
John Criswell7a73b802003-06-30 21:59:07 +00002125
2126# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002127$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002130 { (exit 1); exit 1; }; }
2131
Reid Spencera773bd52006-08-04 18:18:08 +00002132{ echo "$as_me:$LINENO: checking build system type" >&5
2133echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002134if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
Reid Spencera773bd52006-08-04 18:18:08 +00002137 ac_build_alias=$build_alias
2138test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002147 { (exit 1); exit 1; }; }
2148
2149fi
Reid Spencera773bd52006-08-04 18:18:08 +00002150{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151echo "${ECHO_T}$ac_cv_build" >&6; }
2152case $ac_cv_build in
2153*-*-*) ;;
2154*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2157esac
John Criswell7a73b802003-06-30 21:59:07 +00002158build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002159ac_save_IFS=$IFS; IFS='-'
2160set x $ac_cv_build
2161shift
2162build_cpu=$1
2163build_vendor=$2
2164shift; shift
2165# Remember, the first character of IFS is used to create $*,
2166# except with old shells:
2167build_os=$*
2168IFS=$ac_save_IFS
2169case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002170
2171
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: checking host system type" >&5
2173echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002174if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
Reid Spencera773bd52006-08-04 18:18:08 +00002177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2179else
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002184fi
John Criswell7a73b802003-06-30 21:59:07 +00002185
2186fi
Reid Spencera773bd52006-08-04 18:18:08 +00002187{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188echo "${ECHO_T}$ac_cv_host" >&6; }
2189case $ac_cv_host in
2190*-*-*) ;;
2191*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2194esac
John Criswell7a73b802003-06-30 21:59:07 +00002195host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002196ac_save_IFS=$IFS; IFS='-'
2197set x $ac_cv_host
2198shift
2199host_cpu=$1
2200host_vendor=$2
2201shift; shift
2202# Remember, the first character of IFS is used to create $*,
2203# except with old shells:
2204host_os=$*
2205IFS=$ac_save_IFS
2206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: checking target system type" >&5
2210echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002211if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
Reid Spencera773bd52006-08-04 18:18:08 +00002214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2216else
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002220 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002221fi
John Criswell7a73b802003-06-30 21:59:07 +00002222
2223fi
Reid Spencera773bd52006-08-04 18:18:08 +00002224{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6; }
2226case $ac_cv_target in
2227*-*-*) ;;
2228*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2231esac
John Criswell7a73b802003-06-30 21:59:07 +00002232target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002233ac_save_IFS=$IFS; IFS='-'
2234set x $ac_cv_target
2235shift
2236target_cpu=$1
2237target_vendor=$2
2238shift; shift
2239# Remember, the first character of IFS is used to create $*,
2240# except with old shells:
2241target_os=$*
2242IFS=$ac_save_IFS
2243case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245
2246# The aliases save the names the user supplied, while $host etc.
2247# will get canonicalized.
2248test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2250 NONENONEs,x,x, &&
2251 program_prefix=${target_alias}-
2252
Reid Spencera773bd52006-08-04 18:18:08 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002258 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-aix*)
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="AIX"
2263 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002264 *-*-irix*)
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-cygwin*)
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="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002276 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002284 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002289 *-*-netbsd*)
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002294 *-*-dragonfly*)
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002299 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-linux*)
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="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2314 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2319 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2324 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2329 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002334esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335fi
Reid Spencera773bd52006-08-04 18:18:08 +00002336{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002342 { (exit 1); exit 1; }; }
2343fi
2344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346
2347
Reid Spencera773bd52006-08-04 18:18:08 +00002348LINKALL=$llvm_cv_link_all_option
2349
2350NOLINKALL=$llvm_cv_no_link_all_option
2351
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353case $llvm_cv_platform_type in
2354 Unix)
2355
2356cat >>confdefs.h <<\_ACEOF
2357#define LLVM_ON_UNIX 1
2358_ACEOF
2359
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002360 LLVM_ON_UNIX=1
2361
2362 LLVM_ON_WIN32=0
2363
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 ;;
2365 Win32)
2366
2367cat >>confdefs.h <<\_ACEOF
2368#define LLVM_ON_WIN32 1
2369_ACEOF
2370
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002371 LLVM_ON_UNIX=0
2372
2373 LLVM_ON_WIN32=1
2374
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375 ;;
2376esac
2377
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: checking target architecture" >&5
2379echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002384 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002389 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002390 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002391 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002392 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002393 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002394 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002395 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002396esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397fi
Reid Spencera773bd52006-08-04 18:18:08 +00002398{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404fi
John Criswell76595452003-07-01 22:07:39 +00002405
Douglas Gregor0711c302009-06-17 00:43:20 +00002406# Determine the LLVM native architecture for the target
2407case "$llvm_cv_target_arch" in
2408 x86) LLVM_NATIVE_ARCH="X86" ;;
2409 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2410 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2411esac
2412
Bill Wendlinga0833352009-03-12 04:10:09 +00002413ARCH=$llvm_cv_target_arch
2414
2415
2416ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002421if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002438 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 +00002439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443done
2444done
Reid Spencera773bd52006-08-04 18:18:08 +00002445IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002451 { echo "$as_me:$LINENO: result: $CC" >&5
2452echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453else
Reid Spencera773bd52006-08-04 18:18:08 +00002454 { echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456fi
2457
Reid Spencera773bd52006-08-04 18:18:08 +00002458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002478 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 +00002479 ac_cv_prog_ac_ct_CC="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484done
Reid Spencera773bd52006-08-04 18:18:08 +00002485IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493else
Reid Spencera773bd52006-08-04 18:18:08 +00002494 { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496fi
2497
Reid Spencera773bd52006-08-04 18:18:08 +00002498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet. If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&5
2506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet. If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509ac_tool_warned=yes ;;
2510esac
2511 CC=$ac_ct_CC
2512 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513else
2514 CC="$ac_cv_prog_CC"
2515fi
2516
2517if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002518 if test -n "$ac_tool_prefix"; then
2519 # 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 +00002520set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002535 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 +00002536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540done
2541done
Reid Spencera773bd52006-08-04 18:18:08 +00002542IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002548 { echo "$as_me:$LINENO: result: $CC" >&5
2549echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550else
Reid Spencera773bd52006-08-04 18:18:08 +00002551 { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554
Reid Spencera773bd52006-08-04 18:18:08 +00002555
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569 ac_prog_rejected=no
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002576 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 +00002577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected=yes
2579 continue
2580 fi
2581 ac_cv_prog_CC="cc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585done
2586done
Reid Spencera773bd52006-08-04 18:18:08 +00002587IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588
2589if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy $ac_cv_prog_CC
2592 shift
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2597 shift
2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2599 fi
2600fi
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607else
Reid Spencera773bd52006-08-04 18:18:08 +00002608 { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610fi
2611
Reid Spencera773bd52006-08-04 18:18:08 +00002612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613fi
2614if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002616 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002617 do
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002634 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 +00002635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640done
Reid Spencera773bd52006-08-04 18:18:08 +00002641IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002642
2643fi
2644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002647 { echo "$as_me:$LINENO: result: $CC" >&5
2648echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002649else
Reid Spencera773bd52006-08-04 18:18:08 +00002650 { echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002652fi
2653
Reid Spencera773bd52006-08-04 18:18:08 +00002654
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002656 done
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658if test -z "$CC"; then
2659 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002660 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002661do
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002678 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 +00002679 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683done
2684done
Reid Spencera773bd52006-08-04 18:18:08 +00002685IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002686
2687fi
2688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002693else
Reid Spencera773bd52006-08-04 18:18:08 +00002694 { echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002696fi
2697
Reid Spencera773bd52006-08-04 18:18:08 +00002698
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002700done
John Criswell7a73b802003-06-30 21:59:07 +00002701
Reid Spencera773bd52006-08-04 18:18:08 +00002702 if test "x$ac_ct_CC" = x; then
2703 CC=""
2704 else
2705 case $cross_compiling:$ac_tool_warned in
2706yes:)
2707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708whose name does not start with the host triplet. If you think this
2709configuration is useful to you, please write to autoconf@gnu.org." >&5
2710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711whose name does not start with the host triplet. If you think this
2712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715 CC=$ac_ct_CC
2716 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717fi
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719fi
2720
2721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002722test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723See \`config.log' for more details." >&5
2724echo "$as_me: error: no acceptable C compiler found in \$PATH
2725See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002729echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002730ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002731{ (ac_try="$ac_compiler --version >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002741{ (ac_try="$ac_compiler -v >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002751{ (ac_try="$ac_compiler -V >&5"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761
2762cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002768
John Criswell7a73b802003-06-30 21:59:07 +00002769int
2770main ()
2771{
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002778ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002779# Try to create an executable without -o first, disregard a.out.
2780# It will help us diagnose broken compilers, and finding out an intuition
2781# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002782{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002785#
2786# List of possible output files, starting from the most likely.
2787# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788# only as a last resort. b.out is created by i960 compilers.
2789ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2790#
2791# The IRIX 6 linker writes into existing files which may not be
2792# executable, retaining their permissions. Remove them first so a
2793# subsequent execution test works.
2794ac_rmfiles=
2795for ac_file in $ac_files
2796do
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2800 esac
2801done
2802rm -f $ac_rmfiles
2803
2804if { (ac_try="$ac_link_default"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816# in a Makefile. We should not override ac_cv_exeext if it was cached,
2817# so that the user can short-circuit this test for compilers unknown to
2818# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002819for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002820do
2821 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002822 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002824 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002825 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826 # We found the default executable, but exeext='' is most
2827 # certainly right.
2828 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831 then :; else
2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 fi
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2838 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002839 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002840 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002841 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002842 esac
2843done
Reid Spencera773bd52006-08-04 18:18:08 +00002844test "$ac_cv_exeext" = no && ac_cv_exeext=
2845
John Criswell7a73b802003-06-30 21:59:07 +00002846else
2847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002848sed 's/^/| /' conftest.$ac_ext >&5
2849
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002850{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002851See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002852echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002853See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002854 { (exit 77); exit 77; }; }
2855fi
2856
2857ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002858{ echo "$as_me:$LINENO: result: $ac_file" >&5
2859echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002860
Reid Spencera773bd52006-08-04 18:18:08 +00002861# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002862# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002863{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002865# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866# If not cross compiling, check that we can run a simple program.
2867if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002869 { (case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 cross_compiling=no
2879 else
2880 if test "$cross_compiling" = maybe; then
2881 cross_compiling=yes
2882 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002884If you meant to cross compile, use \`--host'.
2885See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002886echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002887If you meant to cross compile, use \`--host'.
2888See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002889 { (exit 1); exit 1; }; }
2890 fi
2891 fi
2892fi
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: result: yes" >&5
2894echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
John Criswell0c38eaf2003-09-10 15:17:25 +00002896rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002897ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002898# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002899# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002900{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2901echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2902{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2903echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002904
Reid Spencera773bd52006-08-04 18:18:08 +00002905{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2906echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2907if { (ac_try="$ac_link"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919# work properly (i.e., refer to `conftest.exe'), while it won't with
2920# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002921for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002923 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002926 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002927 * ) break;;
2928 esac
2929done
2930else
John Criswell0c38eaf2003-09-10 15:17:25 +00002931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2932See \`config.log' for more details." >&5
2933echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2934See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002935 { (exit 1); exit 1; }; }
2936fi
2937
2938rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002939{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2940echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002941
2942rm -f conftest.$ac_ext
2943EXEEXT=$ac_cv_exeext
2944ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002945{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2946echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002947if test "${ac_cv_objext+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002956
John Criswell7a73b802003-06-30 21:59:07 +00002957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002978 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 break;;
2982 esac
2983done
2984else
2985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989See \`config.log' for more details." >&5
2990echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002992 { (exit 1); exit 1; }; }
2993fi
2994
2995rm -f conftest.$ac_cv_objext conftest.$ac_ext
2996fi
Reid Spencera773bd52006-08-04 18:18:08 +00002997{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002999OBJEXT=$ac_cv_objext
3000ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003001{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003003if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003012
John Criswell7a73b802003-06-30 21:59:07 +00003013int
3014main ()
3015{
3016#ifndef __GNUC__
3017 choke me
3018#endif
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003032 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003058 ac_compiler_gnu=yes
3059else
3060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003061sed 's/^/| /' conftest.$ac_ext >&5
3062
Reid Spencera773bd52006-08-04 18:18:08 +00003063 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003064fi
Reid Spencera773bd52006-08-04 18:18:08 +00003065
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003067ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003068
3069fi
Reid Spencera773bd52006-08-04 18:18:08 +00003070{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072GCC=`test $ac_compiler_gnu = yes && echo yes`
3073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003075{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
Reid Spencera773bd52006-08-04 18:18:08 +00003080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3082 ac_cv_prog_cc_g=no
3083 CFLAGS="-g"
3084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003090
John Criswell7a73b802003-06-30 21:59:07 +00003091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003133 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003134else
3135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003136sed 's/^/| /' conftest.$ac_ext >&5
3137
Reid Spencera773bd52006-08-04 18:18:08 +00003138 CFLAGS=""
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
3145
3146int
3147main ()
3148{
3149
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (ac_try="$ac_compile"
3156case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003188 :
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (ac_try="$ac_compile"
3212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238esac
3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003244 ac_cv_prog_cc_g=yes
3245else
3246 echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
John Criswell7a73b802003-06-30 21:59:07 +00003250fi
Reid Spencera773bd52006-08-04 18:18:08 +00003251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003253fi
Reid Spencera773bd52006-08-04 18:18:08 +00003254
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260fi
3261{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3267 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003268 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003270 fi
3271else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 if test "$GCC" = yes; then
3273 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003274 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003276 fi
3277fi
Reid Spencera773bd52006-08-04 18:18:08 +00003278{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
Reid Spencera773bd52006-08-04 18:18:08 +00003283 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284ac_save_CC=$CC
3285cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291#include <stdarg.h>
3292#include <stdio.h>
3293#include <sys/types.h>
3294#include <sys/stat.h>
3295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296struct buf { int x; };
3297FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298static char *e (p, i)
3299 char **p;
3300 int i;
3301{
3302 return p[i];
3303}
3304static char *f (char * (*g) (char **, int), char **p, ...)
3305{
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312}
3313
3314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003317 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003320 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
Reid Spencera773bd52006-08-04 18:18:08 +00003323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3325#define FOO(x) 'x'
3326int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328int test (int i, double x);
3329struct s1 {int (*f) (int a);};
3330struct s2 {int (*f) (double a);};
3331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332int argc;
3333char **argv;
3334int
3335main ()
3336{
3337return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 ;
3339 return 0;
3340}
3341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344do
3345 CC="$ac_save_CC $ac_arg"
3346 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003347if { (ac_try="$ac_compile"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003380 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencera773bd52006-08-04 18:18:08 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386fi
Reid Spencera773bd52006-08-04 18:18:08 +00003387
3388rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390done
Reid Spencera773bd52006-08-04 18:18:08 +00003391rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392CC=$ac_save_CC
3393
3394fi
Reid Spencera773bd52006-08-04 18:18:08 +00003395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c89" in
3397 x)
3398 { echo "$as_me:$LINENO: result: none needed" >&5
3399echo "${ECHO_T}none needed" >&6; } ;;
3400 xno)
3401 { echo "$as_me:$LINENO: result: unsupported" >&5
3402echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003404 CC="$CC $ac_cv_prog_cc_c89"
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407esac
3408
John Criswell0c38eaf2003-09-10 15:17:25 +00003409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003422{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424# On Suns, sometimes $CPP names a directory.
3425if test -n "$CPP" && test -d "$CPP"; then
3426 CPP=
3427fi
3428if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434 do
3435 ac_preproc_ok=false
3436for ac_c_preproc_warn_flag in '' yes
3437do
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3450#ifdef __STDC__
3451# include <limits.h>
3452#else
3453# include <assert.h>
3454#endif
3455 Syntax error
3456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003457if { (ac_try="$ac_cpp conftest.$ac_ext"
3458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473 else
3474 ac_cpp_err=
3475 fi
3476else
3477 ac_cpp_err=yes
3478fi
3479if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 :
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 # Broken: fails on valid input.
3486continue
3487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489rm -f conftest.err conftest.$ac_ext
3490
Reid Spencera773bd52006-08-04 18:18:08 +00003491 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3494/* confdefs.h. */
3495_ACEOF
3496cat confdefs.h >>conftest.$ac_ext
3497cat >>conftest.$ac_ext <<_ACEOF
3498/* end confdefs.h. */
3499#include <ac_nonexistent.h>
3500_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003501if { (ac_try="$ac_cpp conftest.$ac_ext"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517 else
3518 ac_cpp_err=
3519 fi
3520else
3521 ac_cpp_err=yes
3522fi
3523if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524 # Broken: success on invalid input.
3525continue
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 # Passes both tests.
3531ac_preproc_ok=:
3532break
3533fi
Reid Spencera773bd52006-08-04 18:18:08 +00003534
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535rm -f conftest.err conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then
3541 break
3542fi
3543
3544 done
3545 ac_cv_prog_CPP=$CPP
3546
3547fi
3548 CPP=$ac_cv_prog_CPP
3549else
3550 ac_cv_prog_CPP=$CPP
3551fi
Reid Spencera773bd52006-08-04 18:18:08 +00003552{ echo "$as_me:$LINENO: result: $CPP" >&5
3553echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
3569#ifdef __STDC__
3570# include <limits.h>
3571#else
3572# include <assert.h>
3573#endif
3574 Syntax error
3575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003576if { (ac_try="$ac_cpp conftest.$ac_ext"
3577case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580esac
3581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 else
3593 ac_cpp_err=
3594 fi
3595else
3596 ac_cpp_err=yes
3597fi
3598if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599 :
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 # Broken: fails on valid input.
3605continue
3606fi
Reid Spencera773bd52006-08-04 18:18:08 +00003607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608rm -f conftest.err conftest.$ac_ext
3609
Reid Spencera773bd52006-08-04 18:18:08 +00003610 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003611 # can be detected and how.
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#include <ac_nonexistent.h>
3619_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003620if { (ac_try="$ac_cpp conftest.$ac_ext"
3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
3625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003632 (exit $ac_status); } >/dev/null; then
3633 if test -s conftest.err; then
3634 ac_cpp_err=$ac_c_preproc_warn_flag
3635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3636 else
3637 ac_cpp_err=
3638 fi
3639else
3640 ac_cpp_err=yes
3641fi
3642if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643 # Broken: success on invalid input.
3644continue
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 # Passes both tests.
3650ac_preproc_ok=:
3651break
3652fi
Reid Spencera773bd52006-08-04 18:18:08 +00003653
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003654rm -f conftest.err conftest.$ac_ext
3655
3656done
3657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658rm -f conftest.err conftest.$ac_ext
3659if $ac_preproc_ok; then
3660 :
3661else
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663See \`config.log' for more details." >&5
3664echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3667fi
3668
John Criswell7a73b802003-06-30 21:59:07 +00003669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
John Criswell7a73b802003-06-30 21:59:07 +00003675
Reid Spencera773bd52006-08-04 18:18:08 +00003676{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
Reid Spencera773bd52006-08-04 18:18:08 +00003681 # Extract the first word of "grep ggrep" to use in msg output
3682if test -z "$GREP"; then
3683set dummy grep ggrep; ac_prog_name=$2
3684if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
Reid Spencera773bd52006-08-04 18:18:08 +00003687 ac_path_GREP_found=false
3688# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003694 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003697 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700case `"$ac_path_GREP" --version 2>&1` in
3701*GNU*)
3702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3703*)
3704 ac_count=0
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 while :
3707 do
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP="$ac_path_GREP"
3718 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003719 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3722 done
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724esac
3725
3726
3727 $ac_path_GREP_found && break 3
3728 done
3729done
3730
3731done
3732IFS=$as_save_IFS
3733
3734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003735fi
Reid Spencera773bd52006-08-04 18:18:08 +00003736
3737GREP="$ac_cv_path_GREP"
3738if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3742fi
3743
3744else
3745 ac_cv_path_GREP=$GREP
3746fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003747
John Criswell7a73b802003-06-30 21:59:07 +00003748
Reid Spencera773bd52006-08-04 18:18:08 +00003749fi
3750{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP="$ac_cv_path_GREP"
3753
3754
3755{ echo "$as_me:$LINENO: checking for egrep" >&5
3756echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761 then ac_cv_path_EGREP="$GREP -E"
3762 else
3763 # Extract the first word of "egrep" to use in msg output
3764if test -z "$EGREP"; then
3765set dummy egrep; ac_prog_name=$2
3766if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_path_EGREP_found=false
3770# Loop through the user's path and test for each of PROGNAME-LIST
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003779 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782case `"$ac_path_EGREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3785*)
3786 ac_count=0
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808
3809 $ac_path_EGREP_found && break 3
3810 done
3811done
3812
3813done
3814IFS=$as_save_IFS
3815
3816
3817fi
3818
3819EGREP="$ac_cv_path_EGREP"
3820if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3824fi
3825
3826else
3827 ac_cv_path_EGREP=$EGREP
3828fi
3829
3830
3831 fi
3832fi
3833{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3836
3837
3838{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003840if test "${ac_cv_header_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003849#include <stdlib.h>
3850#include <stdarg.h>
3851#include <string.h>
3852#include <float.h>
3853
John Criswell0c38eaf2003-09-10 15:17:25 +00003854int
3855main ()
3856{
3857
3858 ;
3859 return 0;
3860}
John Criswell7a73b802003-06-30 21:59:07 +00003861_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003863if { (ac_try="$ac_compile"
3864case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003870 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890esac
3891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003896 ac_cv_header_stdc=yes
3897else
3898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003899sed 's/^/| /' conftest.$ac_ext >&5
3900
Reid Spencera773bd52006-08-04 18:18:08 +00003901 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003902fi
Reid Spencera773bd52006-08-04 18:18:08 +00003903
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003905
3906if test $ac_cv_header_stdc = yes; then
3907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003909/* confdefs.h. */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003914#include <string.h>
3915
3916_ACEOF
3917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003918 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003919 :
3920else
3921 ac_cv_header_stdc=no
3922fi
3923rm -f conftest*
3924
3925fi
3926
3927if test $ac_cv_header_stdc = yes; then
3928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3929 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003935#include <stdlib.h>
3936
3937_ACEOF
3938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003939 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003940 :
3941else
3942 ac_cv_header_stdc=no
3943fi
3944rm -f conftest*
3945
3946fi
3947
3948if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3951 :
3952else
3953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003959#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003960#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003961#if ((' ' & 0x0FF) == 0x020)
3962# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3964#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003965# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003966 (('a' <= (c) && (c) <= 'i') \
3967 || ('j' <= (c) && (c) <= 'r') \
3968 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003969# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3970#endif
3971
3972#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3973int
3974main ()
3975{
3976 int i;
3977 for (i = 0; i < 256; i++)
3978 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003979 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003980 return 2;
3981 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003982}
3983_ACEOF
3984rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003985if { (ac_try="$ac_link"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 :
4005else
4006 echo "$as_me: program exited with status $ac_status" >&5
4007echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004008sed 's/^/| /' conftest.$ac_ext >&5
4009
John Criswell7a73b802003-06-30 21:59:07 +00004010( exit $ac_status )
4011ac_cv_header_stdc=no
4012fi
Reid Spencera773bd52006-08-04 18:18:08 +00004013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014fi
4015
4016
John Criswell7a73b802003-06-30 21:59:07 +00004017fi
4018fi
Reid Spencera773bd52006-08-04 18:18:08 +00004019{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4020echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004021if test $ac_cv_header_stdc = yes; then
4022
4023cat >>confdefs.h <<\_ACEOF
4024#define STDC_HEADERS 1
4025_ACEOF
4026
4027fi
4028
Reid Spencera773bd52006-08-04 18:18:08 +00004029# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4041do
4042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048 cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h. */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h. */
4054$ac_includes_default
4055
4056#include <$ac_header>
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (ac_try="$ac_compile"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004092 eval "$as_ac_Header=yes"
4093else
4094 echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 eval "$as_ac_Header=no"
4098fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102ac_res=`eval echo '${'$as_ac_Header'}'`
4103 { echo "$as_me:$LINENO: result: $ac_res" >&5
4104echo "${ECHO_T}$ac_res" >&6; }
4105if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108_ACEOF
4109
4110fi
4111
4112done
4113
4114
4115{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4116echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4117if test "${ac_cv_c_bigendian+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h. */
4127#include <sys/types.h>
4128#include <sys/param.h>
4129
4130int
4131main ()
4132{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004133#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004134 bogus endian macros
4135#endif
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (ac_try="$ac_compile"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004175 # It does; now see whether it defined to BIG_ENDIAN or not.
4176cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
4182#include <sys/types.h>
4183#include <sys/param.h>
4184
4185int
4186main ()
4187{
4188#if BYTE_ORDER != BIG_ENDIAN
4189 not big endian
4190#endif
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196rm -f conftest.$ac_objext
4197if { (ac_try="$ac_compile"
4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004230 ac_cv_c_bigendian=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_cv_c_bigendian=no
4236fi
4237
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 # It does not; compile a test program.
4244if test "$cross_compiling" = yes; then
4245 # try to guess the endianness by grepping values into an object file
4246 ac_cv_c_bigendian=unknown
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4255void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4256short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4257short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4259int
4260main ()
4261{
4262 _ascii (); _ebcdic ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext
4268if { (ac_try="$ac_compile"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4303fi
4304if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4307 else
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4310 fi
4311fi
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316
4317fi
4318
4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320else
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327$ac_includes_default
4328int
4329main ()
4330{
4331
4332 /* Are we little or big endian? From Harbison&Steele. */
4333 union
4334 {
4335 long int l;
4336 char c[sizeof (long int)];
4337 } u;
4338 u.l = 1;
4339 return u.c[sizeof (long int) - 1] == 1;
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345rm -f conftest$ac_exeext
4346if { (ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_link") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_c_bigendian=no
4366else
4367 echo "$as_me: program exited with status $ac_status" >&5
4368echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371( exit $ac_status )
4372ac_cv_c_bigendian=yes
4373fi
4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375fi
4376
4377
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381fi
4382{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384case $ac_cv_c_bigendian in
4385 yes)
4386 ENDIAN=big
4387 ;;
4388 no)
4389 ENDIAN=little
4390 ;;
4391 *)
4392 { { echo "$as_me:$LINENO: error: unknown endianness
4393presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4394echo "$as_me: error: unknown endianness
4395presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4396 { (exit 1); exit 1; }; } ;;
4397esac
4398
4399
4400if test "$cross_compiling" = yes; then
4401 LLVM_CROSS_COMPILING=1
4402
4403
4404{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4405echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4406if test "${ac_cv_build_exeext+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4410 ac_cv_build_exeext=.exe
4411else
4412 ac_build_prefix=${build_alias}-
4413
4414 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4415set dummy ${ac_build_prefix}gcc; ac_word=$2
4416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004430 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 +00004431 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435done
4436done
4437IFS=$as_save_IFS
4438
4439fi
4440fi
4441BUILD_CC=$ac_cv_prog_BUILD_CC
4442if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444echo "${ECHO_T}$BUILD_CC" >&6; }
4445else
4446 { echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6; }
4448fi
4449
4450
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "gcc", so it can be a program name with args.
4453set dummy gcc; ac_word=$2
4454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004468 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 +00004469 ac_cv_prog_BUILD_CC="gcc"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479BUILD_CC=$ac_cv_prog_BUILD_CC
4480if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482echo "${ECHO_T}$BUILD_CC" >&6; }
4483else
4484 { echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6; }
4486fi
4487
4488
4489 if test -z "$BUILD_CC"; then
4490 # Extract the first word of "cc", so it can be a program name with args.
4491set dummy cc; ac_word=$2
4492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 if test -n "$BUILD_CC"; then
4498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4499else
4500 ac_prog_rejected=no
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004507 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 +00004508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4509 ac_prog_rejected=yes
4510 continue
4511 fi
4512 ac_cv_prog_BUILD_CC="cc"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517done
4518IFS=$as_save_IFS
4519
4520if test $ac_prog_rejected = yes; then
4521 # We found a bogon in the path, so make sure we never use it.
4522 set dummy $ac_cv_prog_BUILD_CC
4523 shift
4524 if test $# != 0; then
4525 # We chose a different compiler from the bogus one.
4526 # However, it has the same basename, so the bogon will be chosen
4527 # first if we set BUILD_CC to just the basename; use the full file name.
4528 shift
4529 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4530 fi
4531fi
4532fi
4533fi
4534BUILD_CC=$ac_cv_prog_BUILD_CC
4535if test -n "$BUILD_CC"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4537echo "${ECHO_T}$BUILD_CC" >&6; }
4538else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6; }
4541fi
4542
4543
4544 fi
4545 fi
4546 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4547echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4548 { (exit 1); exit 1; }; }
4549 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4550 rm -f conftest*
4551 echo 'int main () { return 0; }' > conftest.$ac_ext
4552 ac_cv_build_exeext=
4553 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4554 (eval $ac_build_link) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 for file in conftest.*; do
4559 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004560 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004561 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4562 esac
4563 done
4564 else
4565 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4566echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4567 { (exit 1); exit 1; }; }
4568 fi
4569 rm -f conftest*
4570 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4571fi
4572fi
4573
4574BUILD_EXEEXT=""
4575test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4576{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4577echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4578ac_build_exeext=$BUILD_EXEEXT
4579
Jim Grosbach673612e2008-10-02 22:56:44 +00004580 ac_build_prefix=${build_alias}-
4581 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4582set dummy ${ac_build_prefix}g++; ac_word=$2
4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 if test -n "$BUILD_CXX"; then
4589 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004597 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 +00004598 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603done
4604IFS=$as_save_IFS
4605
4606fi
4607fi
4608BUILD_CXX=$ac_cv_prog_BUILD_CXX
4609if test -n "$BUILD_CXX"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4611echo "${ECHO_T}$BUILD_CXX" >&6; }
4612else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6; }
4615fi
4616
4617
4618 if test -z "$BUILD_CXX"; then
4619 # Extract the first word of "g++", so it can be a program name with args.
4620set dummy g++; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 if test -n "$BUILD_CXX"; then
4627 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004635 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 +00004636 ac_cv_prog_BUILD_CXX="g++"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646BUILD_CXX=$ac_cv_prog_BUILD_CXX
4647if test -n "$BUILD_CXX"; then
4648 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4649echo "${ECHO_T}$BUILD_CXX" >&6; }
4650else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656 if test -z "$BUILD_CXX"; then
4657 # Extract the first word of "c++", so it can be a program name with args.
4658set dummy c++; ac_word=$2
4659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 if test -n "$BUILD_CXX"; then
4665 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4666else
4667 ac_prog_rejected=no
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004674 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 +00004675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4676 ac_prog_rejected=yes
4677 continue
4678 fi
4679 ac_cv_prog_BUILD_CXX="c++"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683done
4684done
4685IFS=$as_save_IFS
4686
4687if test $ac_prog_rejected = yes; then
4688 # We found a bogon in the path, so make sure we never use it.
4689 set dummy $ac_cv_prog_BUILD_CXX
4690 shift
4691 if test $# != 0; then
4692 # We chose a different compiler from the bogus one.
4693 # However, it has the same basename, so the bogon will be chosen
4694 # first if we set BUILD_CXX to just the basename; use the full file name.
4695 shift
4696 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4697 fi
4698fi
4699fi
4700fi
4701BUILD_CXX=$ac_cv_prog_BUILD_CXX
4702if test -n "$BUILD_CXX"; then
4703 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4704echo "${ECHO_T}$BUILD_CXX" >&6; }
4705else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
4708fi
4709
4710
4711 fi
4712 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004713else
4714 LLVM_CROSS_COMPILING=0
4715
4716fi
4717
Nick Lewycky5b28f862009-04-10 05:18:27 +00004718if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004719 cvsbuild="yes"
4720 optimize="no"
4721 CVSBUILD=CVSBUILD=1
4722
4723else
4724 cvsbuild="no"
4725 optimize="yes"
4726fi
4727
4728
4729# Check whether --enable-optimized was given.
4730if test "${enable_optimized+set}" = set; then
4731 enableval=$enable_optimized;
4732else
4733 enableval=$optimize
4734fi
4735
4736if test ${enableval} = "no" ; then
4737 ENABLE_OPTIMIZED=
4738
4739else
4740 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4741
4742fi
4743
David Greene2a5a12c2009-04-17 14:50:39 +00004744# Check whether --enable-profiling was given.
4745if test "${enable_profiling+set}" = set; then
4746 enableval=$enable_profiling;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "no" ; then
4752 ENABLE_PROFILING=
4753
4754else
4755 ENABLE_PROFILING=ENABLE_PROFILING=1
4756
4757fi
4758
Reid Spencera773bd52006-08-04 18:18:08 +00004759# Check whether --enable-assertions was given.
4760if test "${enable_assertions+set}" = set; then
4761 enableval=$enable_assertions;
4762else
4763 enableval="yes"
4764fi
4765
4766if test ${enableval} = "yes" ; then
4767 DISABLE_ASSERTIONS=
4768
4769else
4770 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4771
4772fi
4773
David Greenea696d242007-06-28 19:36:08 +00004774# Check whether --enable-expensive-checks was given.
4775if test "${enable_expensive_checks+set}" = set; then
4776 enableval=$enable_expensive_checks;
4777else
4778 enableval="no"
4779fi
4780
4781if test ${enableval} = "yes" ; then
4782 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4783
4784 EXPENSIVE_CHECKS=yes
4785
4786else
4787 ENABLE_EXPENSIVE_CHECKS=
4788
4789 EXPENSIVE_CHECKS=no
4790
4791fi
4792
Reid Spencer8b2e1412006-11-17 03:32:33 +00004793# Check whether --enable-debug-runtime was given.
4794if test "${enable_debug_runtime+set}" = set; then
4795 enableval=$enable_debug_runtime;
4796else
4797 enableval=no
4798fi
4799
4800if test ${enableval} = "no" ; then
4801 DEBUG_RUNTIME=
4802
4803else
4804 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4805
4806fi
4807
Reid Spencera773bd52006-08-04 18:18:08 +00004808# Check whether --enable-jit was given.
4809if test "${enable_jit+set}" = set; then
4810 enableval=$enable_jit;
4811else
4812 enableval=default
4813fi
4814
4815if test ${enableval} = "no"
4816then
4817 JIT=
4818
4819else
4820 case "$llvm_cv_target_arch" in
4821 x86) TARGET_HAS_JIT=1
4822 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004823 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004824 ;;
4825 PowerPC) TARGET_HAS_JIT=1
4826 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004827 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004828 ;;
4829 Alpha) TARGET_HAS_JIT=1
4830 ;;
4831 IA64) TARGET_HAS_JIT=0
4832 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004833 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004834 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004835 Mips) TARGET_HAS_JIT=0
4836 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004837 PIC16) TARGET_HAS_JIT=0
4838 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004839 XCore) TARGET_HAS_JIT=0
4840 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004841 MSP430) TARGET_HAS_JIT=0
4842 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004843 *) TARGET_HAS_JIT=0
4844 ;;
4845 esac
4846fi
4847
4848# Check whether --enable-doxygen was given.
4849if test "${enable_doxygen+set}" = set; then
4850 enableval=$enable_doxygen;
4851else
4852 enableval=default
4853fi
4854
4855case "$enableval" in
4856 yes) ENABLE_DOXYGEN=1
4857 ;;
4858 no) ENABLE_DOXYGEN=0
4859 ;;
4860 default) ENABLE_DOXYGEN=0
4861 ;;
4862 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4863echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4865esac
4866
4867# Check whether --enable-threads was given.
4868if test "${enable_threads+set}" = set; then
4869 enableval=$enable_threads;
4870else
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004872fi
4873
4874case "$enableval" in
4875 yes) ENABLE_THREADS=1
4876 ;;
4877 no) ENABLE_THREADS=0
4878 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004879 default) ENABLE_THREADS=1
4880 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004881 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4882echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4883 { (exit 1); exit 1; }; } ;;
4884esac
4885
Owen Andersona8603702009-05-19 22:18:56 +00004886cat >>confdefs.h <<_ACEOF
4887#define ENABLE_THREADS $ENABLE_THREADS
4888_ACEOF
4889
4890
Reid Spencer89b0d992006-12-16 22:07:52 +00004891# Check whether --enable-pic was given.
4892if test "${enable_pic+set}" = set; then
4893 enableval=$enable_pic;
4894else
4895 enableval=default
4896fi
4897
4898case "$enableval" in
4899 yes) ENABLE_PIC=1
4900 ;;
4901 no) ENABLE_PIC=0
4902 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004903 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004904 ;;
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4906echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4908esac
4909
4910cat >>confdefs.h <<_ACEOF
4911#define ENABLE_PIC $ENABLE_PIC
4912_ACEOF
4913
4914
Reid Spencera773bd52006-08-04 18:18:08 +00004915TARGETS_TO_BUILD=""
4916# Check whether --enable-targets was given.
4917if test "${enable_targets+set}" = set; then
4918 enableval=$enable_targets;
4919else
4920 enableval=all
4921fi
4922
4923case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004924 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004925 host-only)
4926 case "$llvm_cv_target_arch" in
4927 x86) TARGETS_TO_BUILD="X86" ;;
4928 x86_64) TARGETS_TO_BUILD="X86" ;;
4929 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4930 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4931 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4932 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004933 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004934 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004935 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004936 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004937 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004938 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942 esac
4943 ;;
4944 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4945 case "$a_target" in
4946 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4947 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4948 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4949 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4950 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4951 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004952 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004953 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004954 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004955 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004956 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004957 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004958 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4959 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004960 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004961 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4962echo "$as_me: error: Unrecognized target $a_target" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964 esac
4965 done
4966 ;;
4967esac
Reid Spencera773bd52006-08-04 18:18:08 +00004968TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4969
4970
Douglas Gregor0711c302009-06-17 00:43:20 +00004971# Determine whether we are building LLVM support for the native architecture.
4972# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4973for a_target in $TARGETS_TO_BUILD; do
4974 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004975 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004976
4977cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004978#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004979_ACEOF
4980
4981 fi
4982done
4983
Douglas Gregor1555a232009-06-16 20:12:29 +00004984# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4985# Targets.def and AsmPrinters.def.
4986LLVM_ENUM_TARGETS=""
4987LLVM_ENUM_ASM_PRINTERS=""
4988for target_to_build in $TARGETS_TO_BUILD; do
4989 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4990 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4991 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4992 fi
4993done
4994
4995
4996
Reid Spencer65c5d752006-11-05 17:08:18 +00004997# Check whether --enable-cbe-printf-a was given.
4998if test "${enable_cbe_printf_a+set}" = set; then
4999 enableval=$enable_cbe_printf_a;
5000else
5001 enableval=default
5002fi
5003
5004case "$enableval" in
5005 yes) ENABLE_CBE_PRINTF_A=1
5006 ;;
5007 no) ENABLE_CBE_PRINTF_A=0
5008 ;;
5009 default) ENABLE_CBE_PRINTF_A=1
5010 ;;
5011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5012echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5013 { (exit 1); exit 1; }; } ;;
5014esac
5015
5016cat >>confdefs.h <<_ACEOF
5017#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5018_ACEOF
5019
5020
Reid Spencera773bd52006-08-04 18:18:08 +00005021
5022# Check whether --with-llvmgccdir was given.
5023if test "${with_llvmgccdir+set}" = set; then
5024 withval=$with_llvmgccdir;
5025else
5026 withval=default
5027fi
5028
5029case "$withval" in
5030 default) WITH_LLVMGCCDIR=default ;;
5031 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5032 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5033echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035esac
5036
5037
Devang Patel5d28b882007-12-04 22:54:47 +00005038# Check whether --with-llvmgcc was given.
5039if test "${with_llvmgcc+set}" = set; then
5040 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5041 WITH_LLVMGCCDIR=""
5042fi
5043
5044
5045
5046# Check whether --with-llvmgxx was given.
5047if test "${with_llvmgxx+set}" = set; then
5048 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5049 WITH_LLVMGCCDIR=""
5050fi
5051
Douglas Gregor01746742009-05-11 18:05:52 +00005052
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005053if test -n "$LLVMGCC"; then
5054 LLVMGCCCOMMAND="$LLVMGCC"
5055fi
5056
5057if test -n "$LLVMGXX"; then
5058 LLVMGXXCOMMAND="$LLVMGXX"
5059fi
Devang Patel5d28b882007-12-04 22:54:47 +00005060
5061if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5062 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5063echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5064 { (exit 1); exit 1; }; };
5065fi
5066
5067if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5068 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5069echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5070 { (exit 1); exit 1; }; };
5071fi
5072
5073
Reid Spencera773bd52006-08-04 18:18:08 +00005074# Check whether --with-extra-options was given.
5075if test "${with_extra_options+set}" = set; then
5076 withval=$with_extra_options;
5077else
5078 withval=default
5079fi
5080
5081case "$withval" in
5082 default) EXTRA_OPTIONS= ;;
5083 *) EXTRA_OPTIONS=$withval ;;
5084esac
5085EXTRA_OPTIONS=$EXTRA_OPTIONS
5086
5087
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005088# Check whether --enable-bindings was given.
5089if test "${enable_bindings+set}" = set; then
5090 enableval=$enable_bindings;
5091else
5092 enableval=default
5093fi
5094
5095BINDINGS_TO_BUILD=""
5096case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005097 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005098 all ) BINDINGS_TO_BUILD="ocaml" ;;
5099 none | no) BINDINGS_TO_BUILD="" ;;
5100 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5101 case "$a_binding" in
5102 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5103 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5104echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5106 esac
5107 done
5108 ;;
5109esac
5110
Reid Spencera773bd52006-08-04 18:18:08 +00005111
Gordon Henriksenf0915682007-10-02 16:42:22 +00005112# Check whether --with-ocaml-libdir was given.
5113if test "${with_ocaml_libdir+set}" = set; then
5114 withval=$with_ocaml_libdir;
5115else
5116 withval=auto
5117fi
5118
5119case "$withval" in
5120 auto) with_ocaml_libdir="$withval" ;;
5121 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5122 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5123echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125esac
5126
5127
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005128# Check whether --with-binutils-include was given.
5129if test "${with_binutils_include+set}" = set; then
5130 withval=$with_binutils_include;
5131else
5132 withval=default
5133fi
5134
5135case "$withval" in
5136 default) WITH_BINUTILS_INCDIR=default ;;
5137 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5138 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5139echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5141esac
5142if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5143 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5144
5145 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5146 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5147 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5148echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5149 { (exit 1); exit 1; }; };
5150 fi
5151fi
5152
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005153# Check whether --enable-libffi was given.
5154if test "${enable_libffi+set}" = set; then
5155 enableval=$enable_libffi;
5156else
5157 enableval=yes
5158fi
5159
5160case "$enableval" in
5161 yes) llvm_cv_enable_libffi="yes" ;;
5162 no) llvm_cv_enable_libffi="no" ;;
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5164echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5166esac
5167
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005168
Reid Spencera773bd52006-08-04 18:18:08 +00005169ac_ext=c
5170ac_cpp='$CPP $CPPFLAGS'
5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5175echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5176# On Suns, sometimes $CPP names a directory.
5177if test -n "$CPP" && test -d "$CPP"; then
5178 CPP=
5179fi
5180if test -z "$CPP"; then
5181 if test "${ac_cv_prog_CPP+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 # Double quotes because CPP needs to be expanded
5185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5186 do
5187 ac_preproc_ok=false
5188for ac_c_preproc_warn_flag in '' yes
5189do
5190 # Use a header file that comes with gcc, so configuring glibc
5191 # with a fresh cross-compiler works.
5192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 # <limits.h> exists even on freestanding compilers.
5194 # On the NeXT, cc -E runs the code through the compiler's parser,
5195 # not just through cpp. "Syntax error" is here to catch this case.
5196 cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202#ifdef __STDC__
5203# include <limits.h>
5204#else
5205# include <assert.h>
5206#endif
5207 Syntax error
5208_ACEOF
5209if { (ac_try="$ac_cpp conftest.$ac_ext"
5210case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213esac
5214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5225 else
5226 ac_cpp_err=
5227 fi
5228else
5229 ac_cpp_err=yes
5230fi
5231if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005232 :
5233else
5234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 # Broken: fails on valid input.
5238continue
5239fi
5240
5241rm -f conftest.err conftest.$ac_ext
5242
5243 # OK, works on sane cases. Now check whether nonexistent headers
5244 # can be detected and how.
5245 cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h. */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h. */
5251#include <ac_nonexistent.h>
5252_ACEOF
5253if { (ac_try="$ac_cpp conftest.$ac_ext"
5254case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257esac
5258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 else
5270 ac_cpp_err=
5271 fi
5272else
5273 ac_cpp_err=yes
5274fi
5275if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005276 # Broken: success on invalid input.
5277continue
5278else
5279 echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 # Passes both tests.
5283ac_preproc_ok=:
5284break
5285fi
5286
5287rm -f conftest.err conftest.$ac_ext
5288
5289done
5290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5291rm -f conftest.err conftest.$ac_ext
5292if $ac_preproc_ok; then
5293 break
5294fi
5295
5296 done
5297 ac_cv_prog_CPP=$CPP
5298
5299fi
5300 CPP=$ac_cv_prog_CPP
5301else
5302 ac_cv_prog_CPP=$CPP
5303fi
5304{ echo "$as_me:$LINENO: result: $CPP" >&5
5305echo "${ECHO_T}$CPP" >&6; }
5306ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#ifdef __STDC__
5322# include <limits.h>
5323#else
5324# include <assert.h>
5325#endif
5326 Syntax error
5327_ACEOF
5328if { (ac_try="$ac_cpp conftest.$ac_ext"
5329case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344 else
5345 ac_cpp_err=
5346 fi
5347else
5348 ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005351 :
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 # Broken: fails on valid input.
5357continue
5358fi
5359
5360rm -f conftest.err conftest.$ac_ext
5361
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370#include <ac_nonexistent.h>
5371_ACEOF
5372if { (ac_try="$ac_cpp conftest.$ac_ext"
5373case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388 else
5389 ac_cpp_err=
5390 fi
5391else
5392 ac_cpp_err=yes
5393fi
5394if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005395 # Broken: success on invalid input.
5396continue
5397else
5398 echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405
5406rm -f conftest.err conftest.$ac_ext
5407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410rm -f conftest.err conftest.$ac_ext
5411if $ac_preproc_ok; then
5412 :
5413else
5414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415See \`config.log' for more details." >&5
5416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417See \`config.log' for more details." >&2;}
5418 { (exit 1); exit 1; }; }
5419fi
5420
5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432if test -n "$ac_tool_prefix"; then
5433 for ac_prog in gcc
5434 do
5435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5439if test "${ac_cv_prog_CC+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005451 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 +00005452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456done
5457done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462CC=$ac_cv_prog_CC
5463if test -n "$CC"; then
5464 { echo "$as_me:$LINENO: result: $CC" >&5
5465echo "${ECHO_T}$CC" >&6; }
5466else
5467 { echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6; }
5469fi
5470
5471
5472 test -n "$CC" && break
5473 done
5474fi
5475if test -z "$CC"; then
5476 ac_ct_CC=$CC
5477 for ac_prog in gcc
5478do
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480set dummy $ac_prog; ac_word=$2
5481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 if test -n "$ac_ct_CC"; then
5487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005495 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 +00005496 ac_cv_prog_ac_ct_CC="$ac_prog"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506ac_ct_CC=$ac_cv_prog_ac_ct_CC
5507if test -n "$ac_ct_CC"; then
5508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5509echo "${ECHO_T}$ac_ct_CC" >&6; }
5510else
5511 { echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6; }
5513fi
5514
5515
5516 test -n "$ac_ct_CC" && break
5517done
5518
5519 if test "x$ac_ct_CC" = x; then
5520 CC=""
5521 else
5522 case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5525whose name does not start with the host triplet. If you think this
5526configuration is useful to you, please write to autoconf@gnu.org." >&5
5527echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5528whose name does not start with the host triplet. If you think this
5529configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 CC=$ac_ct_CC
5533 fi
5534fi
5535
5536
5537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5538See \`config.log' for more details." >&5
5539echo "$as_me: error: no acceptable C compiler found in \$PATH
5540See \`config.log' for more details." >&2;}
5541 { (exit 1); exit 1; }; }
5542
5543# Provide some information about the compiler.
5544echo "$as_me:$LINENO: checking for C compiler version" >&5
5545ac_compiler=`set X $ac_compile; echo $2`
5546{ (ac_try="$ac_compiler --version >&5"
5547case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compiler --version >&5") 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5556{ (ac_try="$ac_compiler -v >&5"
5557case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compiler -v >&5") 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }
5566{ (ac_try="$ac_compiler -V >&5"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compiler -V >&5") 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }
5576
5577{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5578echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5579if test "${ac_cv_c_compiler_gnu+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588
5589int
5590main ()
5591{
5592#ifndef __GNUC__
5593 choke me
5594#endif
5595
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600rm -f conftest.$ac_objext
5601if { (ac_try="$ac_compile"
5602case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5615 { (case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628esac
5629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005634 ac_compiler_gnu=yes
5635else
5636 echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_compiler_gnu=no
5640fi
5641
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643ac_cv_c_compiler_gnu=$ac_compiler_gnu
5644
5645fi
5646{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5647echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5648GCC=`test $ac_compiler_gnu = yes && echo yes`
5649ac_test_CFLAGS=${CFLAGS+set}
5650ac_save_CFLAGS=$CFLAGS
5651{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5652echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5653if test "${ac_cv_prog_cc_g+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
5656 ac_save_c_werror_flag=$ac_c_werror_flag
5657 ac_c_werror_flag=yes
5658 ac_cv_prog_cc_g=no
5659 CFLAGS="-g"
5660 cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h. */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h. */
5666
5667int
5668main ()
5669{
5670
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5690 { (case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005709 ac_cv_prog_cc_g=yes
5710else
5711 echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 CFLAGS=""
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721
5722int
5723main ()
5724{
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (ac_try="$ac_compile"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758esac
5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005764 :
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_c_werror_flag=$ac_save_c_werror_flag
5770 CFLAGS="-g"
5771 cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777
5778int
5779main ()
5780{
5781
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786rm -f conftest.$ac_objext
5787if { (ac_try="$ac_compile"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005820 ac_cv_prog_cc_g=yes
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825
5826fi
5827
5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829fi
5830
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832fi
5833
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 ac_c_werror_flag=$ac_save_c_werror_flag
5836fi
5837{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5838echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5839if test "$ac_test_CFLAGS" = set; then
5840 CFLAGS=$ac_save_CFLAGS
5841elif test $ac_cv_prog_cc_g = yes; then
5842 if test "$GCC" = yes; then
5843 CFLAGS="-g -O2"
5844 else
5845 CFLAGS="-g"
5846 fi
5847else
5848 if test "$GCC" = yes; then
5849 CFLAGS="-O2"
5850 else
5851 CFLAGS=
5852 fi
5853fi
5854{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5855echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5856if test "${ac_cv_prog_cc_c89+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859 ac_cv_prog_cc_c89=no
5860ac_save_CC=$CC
5861cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h. */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h. */
5867#include <stdarg.h>
5868#include <stdio.h>
5869#include <sys/types.h>
5870#include <sys/stat.h>
5871/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5872struct buf { int x; };
5873FILE * (*rcsopen) (struct buf *, struct stat *, int);
5874static char *e (p, i)
5875 char **p;
5876 int i;
5877{
5878 return p[i];
5879}
5880static char *f (char * (*g) (char **, int), char **p, ...)
5881{
5882 char *s;
5883 va_list v;
5884 va_start (v,p);
5885 s = g (p, va_arg (v,int));
5886 va_end (v);
5887 return s;
5888}
5889
5890/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5891 function prototypes and stuff, but not '\xHH' hex character constants.
5892 These don't provoke an error unfortunately, instead are silently treated
5893 as 'x'. The following induces an error, until -std is added to get
5894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5895 array size at least. It's necessary to write '\x00'==0 to get something
5896 that's true only with -std. */
5897int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5898
5899/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5900 inside strings and character constants. */
5901#define FOO(x) 'x'
5902int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5903
5904int test (int i, double x);
5905struct s1 {int (*f) (int a);};
5906struct s2 {int (*f) (double a);};
5907int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5908int argc;
5909char **argv;
5910int
5911main ()
5912{
5913return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5920do
5921 CC="$ac_save_CC $ac_arg"
5922 rm -f conftest.$ac_objext
5923if { (ac_try="$ac_compile"
5924case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_compile") 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5937 { (case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_try") 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_try") 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005956 ac_cv_prog_cc_c89=$ac_arg
5957else
5958 echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962fi
5963
5964rm -f core conftest.err conftest.$ac_objext
5965 test "x$ac_cv_prog_cc_c89" != "xno" && break
5966done
5967rm -f conftest.$ac_ext
5968CC=$ac_save_CC
5969
5970fi
5971# AC_CACHE_VAL
5972case "x$ac_cv_prog_cc_c89" in
5973 x)
5974 { echo "$as_me:$LINENO: result: none needed" >&5
5975echo "${ECHO_T}none needed" >&6; } ;;
5976 xno)
5977 { echo "$as_me:$LINENO: result: unsupported" >&5
5978echo "${ECHO_T}unsupported" >&6; } ;;
5979 *)
5980 CC="$CC $ac_cv_prog_cc_c89"
5981 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5982echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5983esac
5984
5985
5986ac_ext=c
5987ac_cpp='$CPP $CPPFLAGS'
5988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991
5992ac_ext=cpp
5993ac_cpp='$CXXCPP $CPPFLAGS'
5994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5997if test -z "$CXX"; then
5998 if test -n "$CCC"; then
5999 CXX=$CCC
6000 else
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in g++
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008if test "${ac_cv_prog_CXX+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011 if test -n "$CXX"; then
6012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006020 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 +00006021 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025done
6026done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031CXX=$ac_cv_prog_CXX
6032if test -n "$CXX"; then
6033 { echo "$as_me:$LINENO: result: $CXX" >&5
6034echo "${ECHO_T}$CXX" >&6; }
6035else
6036 { echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6; }
6038fi
6039
6040
6041 test -n "$CXX" && break
6042 done
6043fi
6044if test -z "$CXX"; then
6045 ac_ct_CXX=$CXX
6046 for ac_prog in g++
6047do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049set dummy $ac_prog; ac_word=$2
6050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054else
6055 if test -n "$ac_ct_CXX"; then
6056 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006064 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 +00006065 ac_cv_prog_ac_ct_CXX="$ac_prog"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6076if test -n "$ac_ct_CXX"; then
6077 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6078echo "${ECHO_T}$ac_ct_CXX" >&6; }
6079else
6080 { echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6; }
6082fi
6083
6084
6085 test -n "$ac_ct_CXX" && break
6086done
6087
6088 if test "x$ac_ct_CXX" = x; then
6089 CXX="g++"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6094whose name does not start with the host triplet. If you think this
6095configuration is useful to you, please write to autoconf@gnu.org." >&5
6096echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6097whose name does not start with the host triplet. If you think this
6098configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6099ac_tool_warned=yes ;;
6100esac
6101 CXX=$ac_ct_CXX
6102 fi
6103fi
6104
6105 fi
6106fi
6107# Provide some information about the compiler.
6108echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6109ac_compiler=`set X $ac_compile; echo $2`
6110{ (ac_try="$ac_compiler --version >&5"
6111case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler --version >&5") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120{ (ac_try="$ac_compiler -v >&5"
6121case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -v >&5") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6130{ (ac_try="$ac_compiler -V >&5"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compiler -V >&5") 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6140
6141{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6142echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6143if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h. */
6152
6153int
6154main ()
6155{
6156#ifndef __GNUC__
6157 choke me
6158#endif
6159
6160 ;
6161 return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext
6165if { (ac_try="$ac_compile"
6166case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192esac
6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_try") 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006198 ac_compiler_gnu=yes
6199else
6200 echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_compiler_gnu=no
6204fi
6205
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6208
6209fi
6210{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6211echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6212GXX=`test $ac_compiler_gnu = yes && echo yes`
6213ac_test_CXXFLAGS=${CXXFLAGS+set}
6214ac_save_CXXFLAGS=$CXXFLAGS
6215{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6216echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6217if test "${ac_cv_prog_cxx_g+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6221 ac_cxx_werror_flag=yes
6222 ac_cv_prog_cxx_g=no
6223 CXXFLAGS="-g"
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
6230
6231int
6232main ()
6233{
6234
6235 ;
6236 return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext
6240if { (ac_try="$ac_compile"
6241case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006273 ac_cv_prog_cxx_g=yes
6274else
6275 echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 CXXFLAGS=""
6279 cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h. */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h. */
6285
6286int
6287main ()
6288{
6289
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (ac_try="$ac_compile"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322esac
6323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006328 :
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6334 CXXFLAGS="-g"
6335 cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
6341
6342int
6343main ()
6344{
6345
6346 ;
6347 return 0;
6348}
6349_ACEOF
6350rm -f conftest.$ac_objext
6351if { (ac_try="$ac_compile"
6352case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355esac
6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378esac
6379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_try") 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006384 ac_cv_prog_cxx_g=yes
6385else
6386 echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389
6390fi
6391
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396fi
6397
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6400fi
6401{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6402echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6403if test "$ac_test_CXXFLAGS" = set; then
6404 CXXFLAGS=$ac_save_CXXFLAGS
6405elif test $ac_cv_prog_cxx_g = yes; then
6406 if test "$GXX" = yes; then
6407 CXXFLAGS="-g -O2"
6408 else
6409 CXXFLAGS="-g"
6410 fi
6411else
6412 if test "$GXX" = yes; then
6413 CXXFLAGS="-O2"
6414 else
6415 CXXFLAGS=
6416 fi
6417fi
6418ac_ext=c
6419ac_cpp='$CPP $CPPFLAGS'
6420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
Reid Spencera773bd52006-08-04 18:18:08 +00006424
6425{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6426echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6427if test "${lt_cv_path_NM+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430 if test -n "$NM"; then
6431 # Let the user override the test.
6432 lt_cv_path_NM="$NM"
6433else
6434 lt_nm_to_check="${ac_tool_prefix}nm"
6435 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6436 lt_nm_to_check="$lt_nm_to_check nm"
6437 fi
6438 for lt_tmp_nm in $lt_nm_to_check; do
6439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6441 IFS="$lt_save_ifs"
6442 test -z "$ac_dir" && ac_dir=.
6443 tmp_nm="$ac_dir/$lt_tmp_nm"
6444 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6445 # Check to see if the nm accepts a BSD-compat flag.
6446 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6447 # nm: unknown option "B" ignored
6448 # Tru64's nm complains that /dev/null is an invalid object file
6449 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6450 */dev/null* | *'Invalid file or object type'*)
6451 lt_cv_path_NM="$tmp_nm -B"
6452 break
6453 ;;
6454 *)
6455 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6456 */dev/null*)
6457 lt_cv_path_NM="$tmp_nm -p"
6458 break
6459 ;;
6460 *)
6461 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6462 continue # so that we can try to find one that supports BSD flags
6463 ;;
6464 esac
6465 ;;
6466 esac
6467 fi
6468 done
6469 IFS="$lt_save_ifs"
6470 done
6471 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6472fi
6473fi
6474{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6475echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6476NM="$lt_cv_path_NM"
6477
6478
6479
6480{ echo "$as_me:$LINENO: checking for GNU make" >&5
6481echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6482if test "${llvm_cv_gnu_make_command+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485 llvm_cv_gnu_make_command=''
6486 for a in "$MAKE" make gmake gnumake ; do
6487 if test -z "$a" ; then continue ; fi ;
6488 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6489 then
6490 llvm_cv_gnu_make_command=$a ;
6491 break;
6492 fi
6493 done
6494fi
6495{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6496echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6497 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6498 ifGNUmake='' ;
6499 else
6500 ifGNUmake='#' ;
6501 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6502echo "${ECHO_T}\"Not found\"" >&6; };
6503 fi
6504
6505
6506{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6507echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6508LN_S=$as_ln_s
6509if test "$LN_S" = "ln -s"; then
6510 { echo "$as_me:$LINENO: result: yes" >&5
6511echo "${ECHO_T}yes" >&6; }
6512else
6513 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6514echo "${ECHO_T}no, using $LN_S" >&6; }
6515fi
6516
6517# Extract the first word of "cmp", so it can be a program name with args.
6518set dummy cmp; ac_word=$2
6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_CMP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 case $CMP in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006535 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 +00006536 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
6542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6545 ;;
6546esac
6547fi
6548CMP=$ac_cv_path_CMP
6549if test -n "$CMP"; then
6550 { echo "$as_me:$LINENO: result: $CMP" >&5
6551echo "${ECHO_T}$CMP" >&6; }
6552else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
6555fi
6556
6557
6558# Extract the first word of "cp", so it can be a program name with args.
6559set dummy cp; ac_word=$2
6560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562if test "${ac_cv_path_CP+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565 case $CP in
6566 [\\/]* | ?:[\\/]*)
6567 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6568 ;;
6569 *)
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006576 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 +00006577 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582done
6583IFS=$as_save_IFS
6584
6585 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6586 ;;
6587esac
6588fi
6589CP=$ac_cv_path_CP
6590if test -n "$CP"; then
6591 { echo "$as_me:$LINENO: result: $CP" >&5
6592echo "${ECHO_T}$CP" >&6; }
6593else
6594 { echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6; }
6596fi
6597
6598
6599# Extract the first word of "date", so it can be a program name with args.
6600set dummy date; ac_word=$2
6601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603if test "${ac_cv_path_DATE+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605else
6606 case $DATE in
6607 [\\/]* | ?:[\\/]*)
6608 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6609 ;;
6610 *)
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006617 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 +00006618 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623done
6624IFS=$as_save_IFS
6625
6626 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6627 ;;
6628esac
6629fi
6630DATE=$ac_cv_path_DATE
6631if test -n "$DATE"; then
6632 { echo "$as_me:$LINENO: result: $DATE" >&5
6633echo "${ECHO_T}$DATE" >&6; }
6634else
6635 { echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6; }
6637fi
6638
6639
6640# Extract the first word of "find", so it can be a program name with args.
6641set dummy find; ac_word=$2
6642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644if test "${ac_cv_path_FIND+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647 case $FIND in
6648 [\\/]* | ?:[\\/]*)
6649 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6650 ;;
6651 *)
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006658 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 +00006659 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664done
6665IFS=$as_save_IFS
6666
6667 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6668 ;;
6669esac
6670fi
6671FIND=$ac_cv_path_FIND
6672if test -n "$FIND"; then
6673 { echo "$as_me:$LINENO: result: $FIND" >&5
6674echo "${ECHO_T}$FIND" >&6; }
6675else
6676 { echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6; }
6678fi
6679
6680
6681# Extract the first word of "grep", so it can be a program name with args.
6682set dummy grep; ac_word=$2
6683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685if test "${ac_cv_path_GREP+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 case $GREP in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006699 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 +00006700 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705done
6706IFS=$as_save_IFS
6707
6708 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6709 ;;
6710esac
6711fi
6712GREP=$ac_cv_path_GREP
6713if test -n "$GREP"; then
6714 { echo "$as_me:$LINENO: result: $GREP" >&5
6715echo "${ECHO_T}$GREP" >&6; }
6716else
6717 { echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6; }
6719fi
6720
6721
6722# Extract the first word of "mkdir", so it can be a program name with args.
6723set dummy mkdir; ac_word=$2
6724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726if test "${ac_cv_path_MKDIR+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 case $MKDIR in
6730 [\\/]* | ?:[\\/]*)
6731 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6732 ;;
6733 *)
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006740 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 +00006741 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746done
6747IFS=$as_save_IFS
6748
6749 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6750 ;;
6751esac
6752fi
6753MKDIR=$ac_cv_path_MKDIR
6754if test -n "$MKDIR"; then
6755 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6756echo "${ECHO_T}$MKDIR" >&6; }
6757else
6758 { echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6; }
6760fi
6761
6762
6763# Extract the first word of "mv", so it can be a program name with args.
6764set dummy mv; ac_word=$2
6765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_path_MV+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770 case $MV in
6771 [\\/]* | ?:[\\/]*)
6772 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6773 ;;
6774 *)
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006781 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 +00006782 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788IFS=$as_save_IFS
6789
6790 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6791 ;;
6792esac
6793fi
6794MV=$ac_cv_path_MV
6795if test -n "$MV"; then
6796 { echo "$as_me:$LINENO: result: $MV" >&5
6797echo "${ECHO_T}$MV" >&6; }
6798else
6799 { echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6; }
6801fi
6802
6803
6804if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_prog_RANLIB+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 if test -n "$RANLIB"; then
6813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006821 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 +00006822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827done
6828IFS=$as_save_IFS
6829
6830fi
6831fi
6832RANLIB=$ac_cv_prog_RANLIB
6833if test -n "$RANLIB"; then
6834 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6835echo "${ECHO_T}$RANLIB" >&6; }
6836else
6837 { echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6; }
6839fi
6840
6841
6842fi
6843if test -z "$ac_cv_prog_RANLIB"; then
6844 ac_ct_RANLIB=$RANLIB
6845 # Extract the first word of "ranlib", so it can be a program name with args.
6846set dummy ranlib; ac_word=$2
6847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 if test -n "$ac_ct_RANLIB"; then
6853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006861 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 +00006862 ac_cv_prog_ac_ct_RANLIB="ranlib"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866done
6867done
6868IFS=$as_save_IFS
6869
6870fi
6871fi
6872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873if test -n "$ac_ct_RANLIB"; then
6874 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6875echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881 if test "x$ac_ct_RANLIB" = x; then
6882 RANLIB=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885yes:)
6886{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6887whose name does not start with the host triplet. If you think this
6888configuration is useful to you, please write to autoconf@gnu.org." >&5
6889echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6890whose name does not start with the host triplet. If you think this
6891configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894 RANLIB=$ac_ct_RANLIB
6895 fi
6896else
6897 RANLIB="$ac_cv_prog_RANLIB"
6898fi
6899
6900# Extract the first word of "rm", so it can be a program name with args.
6901set dummy rm; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_RM+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 case $RM in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006919 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6928 ;;
6929esac
6930fi
6931RM=$ac_cv_path_RM
6932if test -n "$RM"; then
6933 { echo "$as_me:$LINENO: result: $RM" >&5
6934echo "${ECHO_T}$RM" >&6; }
6935else
6936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941# Extract the first word of "sed", so it can be a program name with args.
6942set dummy sed; ac_word=$2
6943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945if test "${ac_cv_path_SED+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948 case $SED in
6949 [\\/]* | ?:[\\/]*)
6950 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6951 ;;
6952 *)
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006959 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 +00006960 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965done
6966IFS=$as_save_IFS
6967
6968 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6969 ;;
6970esac
6971fi
6972SED=$ac_cv_path_SED
6973if test -n "$SED"; then
6974 { echo "$as_me:$LINENO: result: $SED" >&5
6975echo "${ECHO_T}$SED" >&6; }
6976else
6977 { echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6; }
6979fi
6980
6981
6982# Extract the first word of "tar", so it can be a program name with args.
6983set dummy tar; ac_word=$2
6984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_path_TAR+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 case $TAR in
6990 [\\/]* | ?:[\\/]*)
6991 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6992 ;;
6993 *)
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007000 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 +00007001 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007IFS=$as_save_IFS
7008
7009 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7010 ;;
7011esac
7012fi
7013TAR=$ac_cv_path_TAR
7014if test -n "$TAR"; then
7015 { echo "$as_me:$LINENO: result: $TAR" >&5
7016echo "${ECHO_T}$TAR" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022
7023# Extract the first word of "pwd", so it can be a program name with args.
7024set dummy pwd; ac_word=$2
7025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_path_BINPWD+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030 case $BINPWD in
7031 [\\/]* | ?:[\\/]*)
7032 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7033 ;;
7034 *)
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007041 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 +00007042 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048IFS=$as_save_IFS
7049
7050 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7051 ;;
7052esac
7053fi
7054BINPWD=$ac_cv_path_BINPWD
7055if test -n "$BINPWD"; then
7056 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7057echo "${ECHO_T}$BINPWD" >&6; }
7058else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
7061fi
7062
7063
7064
7065# Extract the first word of "Graphviz", so it can be a program name with args.
7066set dummy Graphviz; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 case $GRAPHVIZ in
7073 [\\/]* | ?:[\\/]*)
7074 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007083 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 +00007084 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7093 ;;
7094esac
7095fi
7096GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7097if test -n "$GRAPHVIZ"; then
7098 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7099echo "${ECHO_T}$GRAPHVIZ" >&6; }
7100else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106if test "$GRAPHVIZ" != "echo Graphviz" ; then
7107
7108cat >>confdefs.h <<\_ACEOF
7109#define HAVE_GRAPHVIZ 1
7110_ACEOF
7111
Jeff Cohen28783c32007-01-12 18:22:38 +00007112 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007113 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7114 fi
7115
7116cat >>confdefs.h <<_ACEOF
7117#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7118_ACEOF
7119
7120fi
7121# Extract the first word of "dot", so it can be a program name with args.
7122set dummy dot; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_DOT+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 case $DOT in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007139 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 +00007140 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7149 ;;
7150esac
7151fi
7152DOT=$ac_cv_path_DOT
7153if test -n "$DOT"; then
7154 { echo "$as_me:$LINENO: result: $DOT" >&5
7155echo "${ECHO_T}$DOT" >&6; }
7156else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162if test "$DOT" != "echo dot" ; then
7163
7164cat >>confdefs.h <<\_ACEOF
7165#define HAVE_DOT 1
7166_ACEOF
7167
Jeff Cohen28783c32007-01-12 18:22:38 +00007168 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007169 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170 fi
7171
7172cat >>confdefs.h <<_ACEOF
7173#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7174_ACEOF
7175
7176fi
7177for ac_prog in gv gsview32
7178do
7179 # Extract the first word of "$ac_prog", so it can be a program name with args.
7180set dummy $ac_prog; ac_word=$2
7181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_path_GV+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 case $GV in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007197 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 +00007198 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202done
7203done
7204IFS=$as_save_IFS
7205
7206 ;;
7207esac
7208fi
7209GV=$ac_cv_path_GV
7210if test -n "$GV"; then
7211 { echo "$as_me:$LINENO: result: $GV" >&5
7212echo "${ECHO_T}$GV" >&6; }
7213else
7214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
7216fi
7217
7218
7219 test -n "$GV" && break
7220done
7221test -n "$GV" || GV="echo gv"
7222
7223if test "$GV" != "echo gv" ; then
7224
7225cat >>confdefs.h <<\_ACEOF
7226#define HAVE_GV 1
7227_ACEOF
7228
Jeff Cohen28783c32007-01-12 18:22:38 +00007229 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007230 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7231 fi
7232
7233cat >>confdefs.h <<_ACEOF
7234#define LLVM_PATH_GV "$GV${EXEEXT}"
7235_ACEOF
7236
7237fi
7238# Extract the first word of "dotty", so it can be a program name with args.
7239set dummy dotty; ac_word=$2
7240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242if test "${ac_cv_path_DOTTY+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 case $DOTTY in
7246 [\\/]* | ?:[\\/]*)
7247 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7248 ;;
7249 *)
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007256 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 +00007257 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263IFS=$as_save_IFS
7264
7265 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7266 ;;
7267esac
7268fi
7269DOTTY=$ac_cv_path_DOTTY
7270if test -n "$DOTTY"; then
7271 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7272echo "${ECHO_T}$DOTTY" >&6; }
7273else
7274 { echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6; }
7276fi
7277
7278
7279if test "$DOTTY" != "echo dotty" ; then
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define HAVE_DOTTY 1
7283_ACEOF
7284
Jeff Cohen28783c32007-01-12 18:22:38 +00007285 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007286 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287 fi
7288
7289cat >>confdefs.h <<_ACEOF
7290#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7291_ACEOF
7292
7293fi
7294
7295
7296# Extract the first word of "perl", so it can be a program name with args.
7297set dummy perl; ac_word=$2
7298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_PERL+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303 case $PERL in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007314 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 +00007315 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7324 ;;
7325esac
7326fi
7327PERL=$ac_cv_path_PERL
7328if test -n "$PERL"; then
7329 { echo "$as_me:$LINENO: result: $PERL" >&5
7330echo "${ECHO_T}$PERL" >&6; }
7331else
7332 { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
7334fi
7335
7336
7337if test "$PERL" != "none"; then
7338 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7339echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7340 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7341 { echo "$as_me:$LINENO: result: yes" >&5
7342echo "${ECHO_T}yes" >&6; }
7343 else
7344 PERL=none
7345 { echo "$as_me:$LINENO: result: not found" >&5
7346echo "${ECHO_T}not found" >&6; }
7347 fi
7348fi
7349
7350
7351if test x"$PERL" = xnone; then
7352 HAVE_PERL=0
7353
Reid Spencer59807fa2007-05-17 18:11:03 +00007354 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7355echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7356 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007357else
7358 HAVE_PERL=1
7359
7360fi
7361
7362# Find a good install program. We prefer a C program (faster),
7363# so one script is as good as another. But avoid the broken or
7364# incompatible versions:
7365# SysV /etc/install, /usr/sbin/install
7366# SunOS /usr/etc/install
7367# IRIX /sbin/install
7368# AIX /bin/install
7369# AmigaOS /C/install, which installs bootblocks on floppy discs
7370# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7371# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7372# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7373# OS/2's system install, which has a completely different semantic
7374# ./install, which can be erroneously created by make from ./install.sh.
7375{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7376echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7377if test -z "$INSTALL"; then
7378if test "${ac_cv_path_install+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 # Account for people who put trailing slashes in PATH elements.
7387case $as_dir/ in
7388 ./ | .// | /cC/* | \
7389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7390 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7391 /usr/ucb/* ) ;;
7392 *)
7393 # OSF1 and SCO ODT 3.0 have their own names for install.
7394 # Don't use installbsd from OSF since it installs stuff as root
7395 # by default.
7396 for ac_prog in ginstall scoinst install; do
7397 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007398 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 +00007399 if test $ac_prog = install &&
7400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7401 # AIX install. It has an incompatible calling convention.
7402 :
7403 elif test $ac_prog = install &&
7404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405 # program-specific install script used by HP pwplus--don't use.
7406 :
7407 else
7408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7409 break 3
7410 fi
7411 fi
7412 done
7413 done
7414 ;;
7415esac
7416done
7417IFS=$as_save_IFS
7418
7419
7420fi
7421 if test "${ac_cv_path_install+set}" = set; then
7422 INSTALL=$ac_cv_path_install
7423 else
7424 # As a last resort, use the slow shell script. Don't cache a
7425 # value for INSTALL within a source directory, because that will
7426 # break other packages using the cache if that directory is
7427 # removed, or if the value is a relative name.
7428 INSTALL=$ac_install_sh
7429 fi
7430fi
7431{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7432echo "${ECHO_T}$INSTALL" >&6; }
7433
7434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7435# It thinks the first close brace ends the variable substitution.
7436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7437
7438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7439
7440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7441
7442
7443# Extract the first word of "bzip2", so it can be a program name with args.
7444set dummy bzip2; ac_word=$2
7445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447if test "${ac_cv_path_BZIP2+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450 case $BZIP2 in
7451 [\\/]* | ?:[\\/]*)
7452 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7453 ;;
7454 *)
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007461 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 +00007462 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468IFS=$as_save_IFS
7469
Reid Spencera773bd52006-08-04 18:18:08 +00007470 ;;
7471esac
7472fi
7473BZIP2=$ac_cv_path_BZIP2
7474if test -n "$BZIP2"; then
7475 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7476echo "${ECHO_T}$BZIP2" >&6; }
7477else
7478 { echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6; }
7480fi
7481
7482
7483# Extract the first word of "doxygen", so it can be a program name with args.
7484set dummy doxygen; ac_word=$2
7485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487if test "${ac_cv_path_DOXYGEN+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 case $DOXYGEN in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007501 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 +00007502 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507done
7508IFS=$as_save_IFS
7509
Reid Spencera773bd52006-08-04 18:18:08 +00007510 ;;
7511esac
7512fi
7513DOXYGEN=$ac_cv_path_DOXYGEN
7514if test -n "$DOXYGEN"; then
7515 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7516echo "${ECHO_T}$DOXYGEN" >&6; }
7517else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
7520fi
7521
7522
Reid Spencera773bd52006-08-04 18:18:08 +00007523# Extract the first word of "groff", so it can be a program name with args.
7524set dummy groff; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_GROFF+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $GROFF in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007541 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 +00007542 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
Reid Spencera773bd52006-08-04 18:18:08 +00007550 ;;
7551esac
7552fi
7553GROFF=$ac_cv_path_GROFF
7554if test -n "$GROFF"; then
7555 { echo "$as_me:$LINENO: result: $GROFF" >&5
7556echo "${ECHO_T}$GROFF" >&6; }
7557else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560fi
7561
7562
7563# Extract the first word of "gzip", so it can be a program name with args.
7564set dummy gzip; ac_word=$2
7565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567if test "${ac_cv_path_GZIP+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 case $GZIP in
7571 [\\/]* | ?:[\\/]*)
7572 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7573 ;;
7574 *)
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007581 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 +00007582 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588IFS=$as_save_IFS
7589
Reid Spencera773bd52006-08-04 18:18:08 +00007590 ;;
7591esac
7592fi
7593GZIP=$ac_cv_path_GZIP
7594if test -n "$GZIP"; then
7595 { echo "$as_me:$LINENO: result: $GZIP" >&5
7596echo "${ECHO_T}$GZIP" >&6; }
7597else
7598 { echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6; }
7600fi
7601
7602
7603# Extract the first word of "pod2html", so it can be a program name with args.
7604set dummy pod2html; ac_word=$2
7605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_POD2HTML+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 case $POD2HTML in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007621 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 +00007622 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628IFS=$as_save_IFS
7629
Reid Spencera773bd52006-08-04 18:18:08 +00007630 ;;
7631esac
7632fi
7633POD2HTML=$ac_cv_path_POD2HTML
7634if test -n "$POD2HTML"; then
7635 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7636echo "${ECHO_T}$POD2HTML" >&6; }
7637else
7638 { echo "$as_me:$LINENO: result: no" >&5
7639echo "${ECHO_T}no" >&6; }
7640fi
7641
7642
7643# Extract the first word of "pod2man", so it can be a program name with args.
7644set dummy pod2man; ac_word=$2
7645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647if test "${ac_cv_path_POD2MAN+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 case $POD2MAN in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007661 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 +00007662 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666done
7667done
7668IFS=$as_save_IFS
7669
Reid Spencera773bd52006-08-04 18:18:08 +00007670 ;;
7671esac
7672fi
7673POD2MAN=$ac_cv_path_POD2MAN
7674if test -n "$POD2MAN"; then
7675 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7676echo "${ECHO_T}$POD2MAN" >&6; }
7677else
7678 { echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6; }
7680fi
7681
7682
7683# Extract the first word of "runtest", so it can be a program name with args.
7684set dummy runtest; ac_word=$2
7685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687if test "${ac_cv_path_RUNTEST+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690 case $RUNTEST in
7691 [\\/]* | ?:[\\/]*)
7692 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7693 ;;
7694 *)
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007701 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 +00007702 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707done
7708IFS=$as_save_IFS
7709
Reid Spencera773bd52006-08-04 18:18:08 +00007710 ;;
7711esac
7712fi
7713RUNTEST=$ac_cv_path_RUNTEST
7714if test -n "$RUNTEST"; then
7715 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7716echo "${ECHO_T}$RUNTEST" >&6; }
7717else
7718 { echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6; }
7720fi
7721
7722
7723
7724no_itcl=true
7725{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7726echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7727
7728# Check whether --with-tclinclude was given.
7729if test "${with_tclinclude+set}" = set; then
7730 withval=$with_tclinclude; with_tclinclude=${withval}
7731else
7732 with_tclinclude=''
7733fi
7734
7735if test "${ac_cv_path_tclsh+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737else
7738
7739if test x"${with_tclinclude}" != x ; then
7740 if test -f ${with_tclinclude}/tclsh ; then
7741 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7742 elif test -f ${with_tclinclude}/src/tclsh ; then
7743 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7744 else
7745 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7746echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7747 { (exit 1); exit 1; }; }
7748 fi
7749fi
7750
7751if test x"${ac_cv_path_tclsh}" = x ; then
7752 { echo "$as_me:$LINENO: result: none" >&5
7753echo "${ECHO_T}none" >&6; }
7754 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
7755do
7756 # Extract the first word of "$ac_prog", so it can be a program name with args.
7757set dummy $ac_prog; ac_word=$2
7758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760if test "${ac_cv_path_TCLSH+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 case $TCLSH in
7764 [\\/]* | ?:[\\/]*)
7765 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7766 ;;
7767 *)
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007774 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 +00007775 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779done
7780done
7781IFS=$as_save_IFS
7782
7783 ;;
7784esac
7785fi
7786TCLSH=$ac_cv_path_TCLSH
7787if test -n "$TCLSH"; then
7788 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7789echo "${ECHO_T}$TCLSH" >&6; }
7790else
7791 { echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6; }
7793fi
7794
7795
7796 test -n "$TCLSH" && break
7797done
7798
7799 if test x"${TCLSH}" = x ; then
7800 ac_cv_path_tclsh='';
7801 else
7802 ac_cv_path_tclsh="${TCLSH}";
7803 fi
7804else
7805 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7806echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7807 TCLSH="${ac_cv_path_tclsh}"
7808
7809fi
7810
7811fi
7812
7813# Extract the first word of "zip", so it can be a program name with args.
7814set dummy zip; ac_word=$2
7815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817if test "${ac_cv_path_ZIP+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820 case $ZIP in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7823 ;;
7824 *)
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007831 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 +00007832 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836done
7837done
7838IFS=$as_save_IFS
7839
Reid Spencera773bd52006-08-04 18:18:08 +00007840 ;;
7841esac
7842fi
7843ZIP=$ac_cv_path_ZIP
7844if test -n "$ZIP"; then
7845 { echo "$as_me:$LINENO: result: $ZIP" >&5
7846echo "${ECHO_T}$ZIP" >&6; }
7847else
7848 { echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6; }
7850fi
7851
7852
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007853for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007854do
7855 # Extract the first word of "$ac_prog", so it can be a program name with args.
7856set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859if test "${ac_cv_path_OCAMLC+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862 case $OCAMLC in
7863 [\\/]* | ?:[\\/]*)
7864 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7865 ;;
7866 *)
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007873 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 +00007874 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878done
7879done
7880IFS=$as_save_IFS
7881
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007882 ;;
7883esac
7884fi
7885OCAMLC=$ac_cv_path_OCAMLC
7886if test -n "$OCAMLC"; then
7887 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7888echo "${ECHO_T}$OCAMLC" >&6; }
7889else
7890 { echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6; }
7892fi
7893
7894
Gordon Henriksene7072162008-03-07 18:20:01 +00007895 test -n "$OCAMLC" && break
7896done
7897
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007898for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007899do
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 case $OCAMLOPT in
7908 [\\/]* | ?:[\\/]*)
7909 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7910 ;;
7911 *)
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007918 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 +00007919 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924done
7925IFS=$as_save_IFS
7926
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007927 ;;
7928esac
7929fi
7930OCAMLOPT=$ac_cv_path_OCAMLOPT
7931if test -n "$OCAMLOPT"; then
7932 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7933echo "${ECHO_T}$OCAMLOPT" >&6; }
7934else
7935 { echo "$as_me:$LINENO: result: no" >&5
7936echo "${ECHO_T}no" >&6; }
7937fi
7938
7939
Gordon Henriksene7072162008-03-07 18:20:01 +00007940 test -n "$OCAMLOPT" && break
7941done
7942
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007943for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007944do
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952 case $OCAMLDEP in
7953 [\\/]* | ?:[\\/]*)
7954 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7955 ;;
7956 *)
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007963 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 +00007964 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969done
7970IFS=$as_save_IFS
7971
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007972 ;;
7973esac
7974fi
7975OCAMLDEP=$ac_cv_path_OCAMLDEP
7976if test -n "$OCAMLDEP"; then
7977 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7978echo "${ECHO_T}$OCAMLDEP" >&6; }
7979else
7980 { echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6; }
7982fi
7983
7984
Gordon Henriksene7072162008-03-07 18:20:01 +00007985 test -n "$OCAMLDEP" && break
7986done
7987
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007988for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007989do
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991set dummy $ac_prog; ac_word=$2
7992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 case $OCAMLDOC in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008008 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 +00008009 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014done
8015IFS=$as_save_IFS
8016
8017 ;;
8018esac
8019fi
8020OCAMLDOC=$ac_cv_path_OCAMLDOC
8021if test -n "$OCAMLDOC"; then
8022 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8023echo "${ECHO_T}$OCAMLDOC" >&6; }
8024else
8025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
8027fi
8028
8029
8030 test -n "$OCAMLDOC" && break
8031done
8032
Torok Edwincc499a42008-10-22 09:56:27 +00008033for ac_prog in gas as
8034do
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036set dummy $ac_prog; ac_word=$2
8037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039if test "${ac_cv_path_GAS+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042 case $GAS in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8045 ;;
8046 *)
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008053 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 +00008054 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059done
8060IFS=$as_save_IFS
8061
8062 ;;
8063esac
8064fi
8065GAS=$ac_cv_path_GAS
8066if test -n "$GAS"; then
8067 { echo "$as_me:$LINENO: result: $GAS" >&5
8068echo "${ECHO_T}$GAS" >&6; }
8069else
8070 { echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6; }
8072fi
8073
8074
8075 test -n "$GAS" && break
8076done
8077
Reid Spencera773bd52006-08-04 18:18:08 +00008078
8079{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8080echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8081if test "${llvm_cv_link_use_r+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 ac_ext=c
8085ac_cpp='$CPP $CPPFLAGS'
8086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089
8090 oldcflags="$CFLAGS"
8091 CFLAGS="$CFLAGS -Wl,-R."
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{
8102int main() { return 0; }
8103 ;
8104 return 0;
8105}
8106_ACEOF
8107rm -f conftest.$ac_objext conftest$ac_exeext
8108if { (ac_try="$ac_link"
8109case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008141 llvm_cv_link_use_r=yes
8142else
8143 echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 llvm_cv_link_use_r=no
8147fi
8148
Bill Wendlingebcceee2009-04-18 11:20:33 +00008149rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008150 conftest$ac_exeext conftest.$ac_ext
8151 CFLAGS="$oldcflags"
8152 ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158
8159fi
8160{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8161echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8162if test "$llvm_cv_link_use_r" = yes ; then
8163
8164cat >>confdefs.h <<\_ACEOF
8165#define HAVE_LINK_R 1
8166_ACEOF
8167
8168 fi
8169
8170
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008171{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8172echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8173if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 ac_ext=c
8177ac_cpp='$CPP $CPPFLAGS'
8178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180ac_compiler_gnu=$ac_cv_c_compiler_gnu
8181
8182 oldcflags="$CFLAGS"
8183 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8184 cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190
8191int
8192main ()
8193{
8194int main() { return 0; }
8195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest.$ac_objext conftest$ac_exeext
8200if { (ac_try="$ac_link"
8201case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217esac
8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008233 llvm_cv_link_use_export_dynamic=yes
8234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 llvm_cv_link_use_export_dynamic=no
8239fi
8240
Bill Wendlingebcceee2009-04-18 11:20:33 +00008241rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008242 conftest$ac_exeext conftest.$ac_ext
8243 CFLAGS="$oldcflags"
8244 ac_ext=c
8245ac_cpp='$CPP $CPPFLAGS'
8246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248ac_compiler_gnu=$ac_cv_c_compiler_gnu
8249
8250
8251fi
8252{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8253echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8254if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8255
8256cat >>confdefs.h <<\_ACEOF
8257#define HAVE_LINK_EXPORT_DYNAMIC 1
8258_ACEOF
8259
8260 fi
8261
8262
Reid Spencera773bd52006-08-04 18:18:08 +00008263
8264
8265{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8266echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8267if test "${ac_cv_c_const+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
8276
8277int
8278main ()
8279{
8280/* FIXME: Include the comments suggested by Paul. */
8281#ifndef __cplusplus
8282 /* Ultrix mips cc rejects this. */
8283 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008284 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008285 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008286 char const *const *ccp;
8287 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008288 /* NEC SVR4.0.2 mips cc rejects this. */
8289 struct point {int x, y;};
8290 static struct point const zero = {0,0};
8291 /* AIX XL C 1.02.0.0 rejects this.
8292 It does not let you subtract one const X* pointer from another in
8293 an arm of an if-expression whose if-part is not a constant
8294 expression */
8295 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008296 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008297 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008298 ++ccp;
8299 p = (char**) ccp;
8300 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008301 { /* SCO 3.2v4 cc rejects this. */
8302 char *t;
8303 char const *s = 0 ? (char *) 0 : (char const *) 0;
8304
8305 *t++ = 0;
8306 if (s) return 0;
8307 }
8308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8309 int x[] = {25, 17};
8310 const int *foo = &x[0];
8311 ++foo;
8312 }
8313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8314 typedef const int *iptr;
8315 iptr p = 0;
8316 ++p;
8317 }
8318 { /* AIX XL C 1.02.0.0 rejects this saying
8319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8320 struct s { int j; const int *ap[3]; };
8321 struct s *b; b->j = 5;
8322 }
8323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8324 const int foo = 10;
8325 if (!foo) return 0;
8326 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008327 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008328#endif
8329
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (ac_try="$ac_compile"
8336case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 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
Bill Wendlingebcceee2009-04-18 11:20:33 +00008347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_try") 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008368 ac_cv_c_const=yes
8369else
8370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
8373 ac_cv_c_const=no
8374fi
8375
8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377fi
8378{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8379echo "${ECHO_T}$ac_cv_c_const" >&6; }
8380if test $ac_cv_c_const = no; then
8381
8382cat >>confdefs.h <<\_ACEOF
8383#define const
8384_ACEOF
8385
8386fi
8387
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008388
8389
8390
8391
8392
8393ac_header_dirent=no
8394for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8395 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008396{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8397echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 cat >conftest.$ac_ext <<_ACEOF
8402/* confdefs.h. */
8403_ACEOF
8404cat confdefs.h >>conftest.$ac_ext
8405cat >>conftest.$ac_ext <<_ACEOF
8406/* end confdefs.h. */
8407#include <sys/types.h>
8408#include <$ac_hdr>
8409
8410int
8411main ()
8412{
8413if ((DIR *) 0)
8414return 0;
8415 ;
8416 return 0;
8417}
8418_ACEOF
8419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008420if { (ac_try="$ac_compile"
8421case "(($ac_try" in
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8424esac
8425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447esac
8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008453 eval "$as_ac_Header=yes"
8454else
8455 echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
Reid Spencera773bd52006-08-04 18:18:08 +00008458 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008459fi
Reid Spencera773bd52006-08-04 18:18:08 +00008460
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008462fi
Reid Spencera773bd52006-08-04 18:18:08 +00008463ac_res=`eval echo '${'$as_ac_Header'}'`
8464 { echo "$as_me:$LINENO: result: $ac_res" >&5
8465echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466if test `eval echo '${'$as_ac_Header'}'` = yes; then
8467 cat >>confdefs.h <<_ACEOF
8468#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8469_ACEOF
8470
8471ac_header_dirent=$ac_hdr; break
8472fi
8473
8474done
8475# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8476if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008477 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008479if test "${ac_cv_search_opendir+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008483cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h. */
8489
Reid Spencera773bd52006-08-04 18:18:08 +00008490/* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008493#ifdef __cplusplus
8494extern "C"
8495#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008496char opendir ();
8497int
8498main ()
8499{
Reid Spencera773bd52006-08-04 18:18:08 +00008500return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008501 ;
8502 return 0;
8503}
8504_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008505for ac_lib in '' dir; do
8506 if test -z "$ac_lib"; then
8507 ac_res="none required"
8508 else
8509 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008511 fi
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (ac_try="$ac_link"
8514case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008546 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008547else
8548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551
8552fi
8553
Bill Wendlingebcceee2009-04-18 11:20:33 +00008554rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008555 conftest$ac_exeext
8556 if test "${ac_cv_search_opendir+set}" = set; then
8557 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008558fi
John Criswell7a73b802003-06-30 21:59:07 +00008559done
Reid Spencera773bd52006-08-04 18:18:08 +00008560if test "${ac_cv_search_opendir+set}" = set; then
8561 :
8562else
8563 ac_cv_search_opendir=no
8564fi
8565rm conftest.$ac_ext
8566LIBS=$ac_func_search_save_LIBS
8567fi
8568{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8569echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8570ac_res=$ac_cv_search_opendir
8571if test "$ac_res" != no; then
8572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008573
Reid Spencera773bd52006-08-04 18:18:08 +00008574fi
8575
8576else
8577 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8578echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8579if test "${ac_cv_search_opendir+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 ac_func_search_save_LIBS=$LIBS
8583cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h. */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h. */
8589
8590/* Override any GCC internal prototype to avoid an error.
8591 Use char because int might match the return type of a GCC
8592 builtin and then its argument prototype would still apply. */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
8596char opendir ();
8597int
8598main ()
8599{
8600return opendir ();
8601 ;
8602 return 0;
8603}
8604_ACEOF
8605for ac_lib in '' x; do
8606 if test -z "$ac_lib"; then
8607 ac_res="none required"
8608 else
8609 ac_res=-l$ac_lib
8610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8611 fi
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (ac_try="$ac_link"
8614case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_link") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630esac
8631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest$ac_exeext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008646 ac_cv_search_opendir=$ac_res
8647else
8648 echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651
8652fi
8653
Bill Wendlingebcceee2009-04-18 11:20:33 +00008654rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008655 conftest$ac_exeext
8656 if test "${ac_cv_search_opendir+set}" = set; then
8657 break
8658fi
8659done
8660if test "${ac_cv_search_opendir+set}" = set; then
8661 :
8662else
8663 ac_cv_search_opendir=no
8664fi
8665rm conftest.$ac_ext
8666LIBS=$ac_func_search_save_LIBS
8667fi
8668{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8669echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8670ac_res=$ac_cv_search_opendir
8671if test "$ac_res" != no; then
8672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8673
8674fi
8675
8676fi
John Criswell7a73b802003-06-30 21:59:07 +00008677
8678
8679for ac_header in dlfcn.h
8680do
8681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008686 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008687fi
Reid Spencera773bd52006-08-04 18:18:08 +00008688ac_res=`eval echo '${'$as_ac_Header'}'`
8689 { echo "$as_me:$LINENO: result: $ac_res" >&5
8690echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008691else
Brian Gaeke0a621332004-09-08 20:38:05 +00008692 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008695cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008701$ac_includes_default
8702#include <$ac_header>
8703_ACEOF
8704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008705if { (ac_try="$ac_compile"
8706case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709esac
8710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719 { (case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722esac
8723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_try") 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_try") 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008738 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008739else
8740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008741sed 's/^/| /' conftest.$ac_ext >&5
8742
Reid Spencera773bd52006-08-04 18:18:08 +00008743 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008744fi
Reid Spencera773bd52006-08-04 18:18:08 +00008745
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8748echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008749
8750# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008753cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008754/* confdefs.h. */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h. */
8759#include <$ac_header>
8760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008761if { (ac_try="$ac_cpp conftest.$ac_ext"
8762case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765esac
8766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008773 (exit $ac_status); } >/dev/null; then
8774 if test -s conftest.err; then
8775 ac_cpp_err=$ac_c_preproc_warn_flag
8776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8777 else
8778 ac_cpp_err=
8779 fi
8780else
8781 ac_cpp_err=yes
8782fi
8783if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008784 ac_header_preproc=yes
8785else
8786 echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ac_header_preproc=no
8790fi
Reid Spencera773bd52006-08-04 18:18:08 +00008791
Brian Gaeke0a621332004-09-08 20:38:05 +00008792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8794echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008795
8796# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8798 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8803 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008804 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008805 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008818 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008819## ----------------------------------- ##
8820## Report this to llvmbugs@cs.uiuc.edu ##
8821## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008823 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008824 ;;
8825esac
Reid Spencera773bd52006-08-04 18:18:08 +00008826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008831 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008832fi
Reid Spencera773bd52006-08-04 18:18:08 +00008833ac_res=`eval echo '${'$as_ac_Header'}'`
8834 { echo "$as_me:$LINENO: result: $ac_res" >&5
8835echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008836
8837fi
John Criswell7a73b802003-06-30 21:59:07 +00008838if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841_ACEOF
8842
8843fi
8844
8845done
8846
Reid Spencera773bd52006-08-04 18:18:08 +00008847# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008849 enableval=$enable_ltdl_install;
8850fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008852
Bill Wendlingebcceee2009-04-18 11:20:33 +00008853
8854
8855if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008856 INSTALL_LTDL_TRUE=
8857 INSTALL_LTDL_FALSE='#'
8858else
8859 INSTALL_LTDL_TRUE='#'
8860 INSTALL_LTDL_FALSE=
8861fi
8862
Bill Wendlingebcceee2009-04-18 11:20:33 +00008863
8864
8865if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866 CONVENIENCE_LTDL_TRUE=
8867 CONVENIENCE_LTDL_FALSE='#'
8868else
8869 CONVENIENCE_LTDL_TRUE='#'
8870 CONVENIENCE_LTDL_FALSE=
8871fi
8872
8873
Reid Spencera773bd52006-08-04 18:18:08 +00008874{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8875echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008876library_names_spec=
8877libname_spec='lib$name'
8878soname_spec=
8879shrext_cmds=".so"
8880postinstall_cmds=
8881postuninstall_cmds=
8882finish_cmds=
8883finish_eval=
8884shlibpath_var=
8885shlibpath_overrides_runpath=unknown
8886version_type=none
8887dynamic_linker="$host_os ld.so"
8888sys_lib_dlsearch_path_spec="/lib /usr/lib"
8889if test "$GCC" = yes; then
8890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8892 # if the path contains ";" then we assume it to be the separator
8893 # otherwise default to the standard path separator (i.e. ":") - it is
8894 # assumed that no part of a normal pathname contains ";" but that should
8895 # okay in the real world where ";" in dirpaths is itself problematic.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897 else
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8899 fi
8900else
8901 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8902fi
8903need_lib_prefix=unknown
8904hardcode_into_libs=no
8905
8906# when you set need_version to no, make sure it does not cause -set_version
8907# flags to be left without arguments
8908need_version=unknown
8909
8910case $host_os in
8911aix3*)
8912 version_type=linux
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8914 shlibpath_var=LIBPATH
8915
8916 # AIX 3 has no versioning support, so we append a major version to the name.
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 ;;
8919
8920aix4* | aix5*)
8921 version_type=linux
8922 need_lib_prefix=no
8923 need_version=no
8924 hardcode_into_libs=yes
8925 if test "$host_cpu" = ia64; then
8926 # AIX 5 supports IA64
8927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 else
8930 # With GCC up to 2.95.x, collect2 would create an import file
8931 # for dependence libraries. The import file would start with
8932 # the line `#! .'. This would cause the generated library to
8933 # depend on `.', always an invalid library. This was fixed in
8934 # development snapshots of GCC prior to 3.0.
8935 case $host_os in
8936 aix4 | aix4.[01] | aix4.[01].*)
8937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8938 echo ' yes '
8939 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8940 :
8941 else
8942 can_build_shared=no
8943 fi
8944 ;;
8945 esac
8946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8947 # soname into executable. Probably we can add versioning support to
8948 # collect2, so additional links can be useful in future.
8949 if test "$aix_use_runtimelinking" = yes; then
8950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8951 # instead of lib<name>.a to let people know that these are not
8952 # typical AIX shared libraries.
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 else
8955 # We preserve .a as extension for shared libraries through AIX4.2
8956 # and later when we are not doing run time linking.
8957 library_names_spec='${libname}${release}.a $libname.a'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 fi
8960 shlibpath_var=LIBPATH
8961 fi
8962 ;;
8963
8964amigaos*)
8965 library_names_spec='$libname.ixlibrary $libname.a'
8966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8967 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'
8968 ;;
8969
8970beos*)
8971 library_names_spec='${libname}${shared_ext}'
8972 dynamic_linker="$host_os ld.so"
8973 shlibpath_var=LIBRARY_PATH
8974 ;;
8975
8976bsdi[45]*)
8977 version_type=linux
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8985 # the default ld.so.conf also contains /usr/contrib/lib and
8986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8987 # libtool to hard-code these into programs
8988 ;;
8989
8990cygwin* | mingw* | pw32*)
8991 version_type=windows
8992 shrext_cmds=".dll"
8993 need_version=no
8994 need_lib_prefix=no
8995
8996 case $GCC,$host_os in
8997 yes,cygwin* | yes,mingw* | yes,pw32*)
8998 library_names_spec='$libname.dll.a'
8999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9000 postinstall_cmds='base_file=`basename \${file}`~
9001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9002 dldir=$destdir/`dirname \$dlpath`~
9003 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009004 $install_prog $dir/$dlname \$dldir/$dlname~
9005 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007 dlpath=$dir/\$dldll~
9008 $rm \$dlpath'
9009 shlibpath_overrides_runpath=yes
9010
9011 case $host_os in
9012 cygwin*)
9013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9016 ;;
9017 mingw*)
9018 # MinGW DLLs use traditional 'lib' prefix
9019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9022 # It is most probably a Windows format PATH printed by
9023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024 # path with ; separators, and with drive letters. We can handle the
9025 # drive letters (cygwin fileutils understands them), so leave them,
9026 # especially as we might pass files found there to a mingw objdump,
9027 # which wouldn't understand a cygwinified path. Ahh.
9028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 else
9030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9031 fi
9032 ;;
9033 pw32*)
9034 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009035 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 +00009036 ;;
9037 esac
9038 ;;
9039
9040 *)
9041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9042 ;;
9043 esac
9044 dynamic_linker='Win32 ld.exe'
9045 # FIXME: first we should search . and the directory the executable is in
9046 shlibpath_var=PATH
9047 ;;
9048
9049darwin* | rhapsody*)
9050 dynamic_linker="$host_os dyld"
9051 version_type=darwin
9052 need_lib_prefix=no
9053 need_version=no
9054 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 soname_spec='${libname}${release}${major}$shared_ext'
9056 shlibpath_overrides_runpath=yes
9057 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009058 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009059 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9060 if test "$GCC" = yes; then
9061 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"`
9062 else
9063 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9064 fi
9065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9066 ;;
9067
9068dgux*)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 ;;
9076
9077freebsd1*)
9078 dynamic_linker=no
9079 ;;
9080
9081kfreebsd*-gnu)
9082 version_type=linux
9083 need_lib_prefix=no
9084 need_version=no
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 hardcode_into_libs=yes
9090 dynamic_linker='GNU ld.so'
9091 ;;
9092
Reid Spencera773bd52006-08-04 18:18:08 +00009093freebsd* | dragonfly*)
9094 # DragonFly does not have aout. When/if they implement a new
9095 # versioning mechanism, adjust this.
9096 if test -x /usr/bin/objformat; then
9097 objformat=`/usr/bin/objformat`
9098 else
9099 case $host_os in
9100 freebsd[123]*) objformat=aout ;;
9101 *) objformat=elf ;;
9102 esac
9103 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009104 version_type=freebsd-$objformat
9105 case $version_type in
9106 freebsd-elf*)
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9108 need_version=no
9109 need_lib_prefix=no
9110 ;;
9111 freebsd-*)
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9113 need_version=yes
9114 ;;
9115 esac
9116 shlibpath_var=LD_LIBRARY_PATH
9117 case $host_os in
9118 freebsd2*)
9119 shlibpath_overrides_runpath=yes
9120 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009121 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127 shlibpath_overrides_runpath=no
9128 hardcode_into_libs=yes
9129 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009130 freebsd*) # from 4.6 on
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9133 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134 esac
9135 ;;
9136
9137gnu*)
9138 version_type=linux
9139 need_lib_prefix=no
9140 need_version=no
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 hardcode_into_libs=yes
9145 ;;
9146
9147hpux9* | hpux10* | hpux11*)
9148 # Give a soname corresponding to the major version so that dld.sl refuses to
9149 # link against other versions.
9150 version_type=sunos
9151 need_lib_prefix=no
9152 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009153 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154 ia64*)
9155 shrext_cmds='.so'
9156 hardcode_into_libs=yes
9157 dynamic_linker="$host_os dld.so"
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 if test "X$HPUX_IA64_MODE" = X32; then
9163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9164 else
9165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9166 fi
9167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9168 ;;
9169 hppa*64*)
9170 shrext_cmds='.sl'
9171 hardcode_into_libs=yes
9172 dynamic_linker="$host_os dld.sl"
9173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9179 ;;
9180 *)
9181 shrext_cmds='.sl'
9182 dynamic_linker="$host_os dld.sl"
9183 shlibpath_var=SHLIB_PATH
9184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 ;;
9188 esac
9189 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9190 postinstall_cmds='chmod 555 $lib'
9191 ;;
9192
Reid Spencera773bd52006-08-04 18:18:08 +00009193interix3*)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=no
9202 hardcode_into_libs=yes
9203 ;;
9204
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205irix5* | irix6* | nonstopux*)
9206 case $host_os in
9207 nonstopux*) version_type=nonstopux ;;
9208 *)
9209 if test "$lt_cv_prog_gnu_ld" = yes; then
9210 version_type=linux
9211 else
9212 version_type=irix
9213 fi ;;
9214 esac
9215 need_lib_prefix=no
9216 need_version=no
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 case $host_os in
9220 irix5* | nonstopux*)
9221 libsuff= shlibsuff=
9222 ;;
9223 *)
9224 case $LD in # libtool.m4 will add one of these switches to LD
9225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9226 libsuff= shlibsuff= libmagic=32-bit;;
9227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9228 libsuff=32 shlibsuff=N32 libmagic=N32;;
9229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9231 *) libsuff= shlibsuff= libmagic=never-match;;
9232 esac
9233 ;;
9234 esac
9235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9236 shlibpath_overrides_runpath=no
9237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9239 hardcode_into_libs=yes
9240 ;;
9241
9242# No shared lib support for Linux oldld, aout, or coff.
9243linux*oldld* | linux*aout* | linux*coff*)
9244 dynamic_linker=no
9245 ;;
9246
9247# This must be Linux ELF.
9248linux*)
9249 version_type=linux
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=no
9257 # This implies no fast_install, which is unacceptable.
9258 # Some rework will be needed to allow for fast_install
9259 # before this can be enabled.
9260 hardcode_into_libs=yes
9261
9262 # Append ld.so.conf contents to the search path
9263 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009264 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 +00009265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9266 fi
9267
9268 # We used to test for /lib/ld.so.1 and disable shared libraries on
9269 # powerpc, because MkLinux only supported shared libraries with the
9270 # GNU dynamic linker. Since this was broken with cross compilers,
9271 # most powerpc-linux boxes support dynamic linking these days and
9272 # people can always --disable-shared, the test was removed, and we
9273 # assume the GNU/Linux dynamic linker is in use.
9274 dynamic_linker='GNU/Linux ld.so'
9275 ;;
9276
9277knetbsd*-gnu)
9278 version_type=linux
9279 need_lib_prefix=no
9280 need_version=no
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=no
9285 hardcode_into_libs=yes
9286 dynamic_linker='GNU ld.so'
9287 ;;
9288
9289netbsd*)
9290 version_type=sunos
9291 need_lib_prefix=no
9292 need_version=no
9293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296 dynamic_linker='NetBSD (a.out) ld.so'
9297 else
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='NetBSD ld.elf_so'
9301 fi
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9305 ;;
9306
9307newsos6)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 ;;
9313
9314nto-qnx*)
9315 version_type=linux
9316 need_lib_prefix=no
9317 need_version=no
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9322 ;;
9323
9324openbsd*)
9325 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009326 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009327 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009328 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9329 case $host_os in
9330 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9331 *) need_version=no ;;
9332 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337 case $host_os in
9338 openbsd2.[89] | openbsd2.[89].*)
9339 shlibpath_overrides_runpath=no
9340 ;;
9341 *)
9342 shlibpath_overrides_runpath=yes
9343 ;;
9344 esac
9345 else
9346 shlibpath_overrides_runpath=yes
9347 fi
9348 ;;
9349
9350os2*)
9351 libname_spec='$name'
9352 shrext_cmds=".dll"
9353 need_lib_prefix=no
9354 library_names_spec='$libname${shared_ext} $libname.a'
9355 dynamic_linker='OS/2 ld.exe'
9356 shlibpath_var=LIBPATH
9357 ;;
9358
9359osf3* | osf4* | osf5*)
9360 version_type=osf
9361 need_lib_prefix=no
9362 need_version=no
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9368 ;;
9369
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370solaris*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9379 # ldd complains unless libraries are executable
9380 postinstall_cmds='chmod +x $lib'
9381 ;;
9382
9383sunos4*)
9384 version_type=sunos
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes
9389 if test "$with_gnu_ld" = yes; then
9390 need_lib_prefix=no
9391 fi
9392 need_version=yes
9393 ;;
9394
Reid Spencera773bd52006-08-04 18:18:08 +00009395sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396 version_type=linux
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 case $host_vendor in
9401 sni)
9402 shlibpath_overrides_runpath=no
9403 need_lib_prefix=no
9404 export_dynamic_flag_spec='${wl}-Blargedynsym'
9405 runpath_var=LD_RUN_PATH
9406 ;;
9407 siemens)
9408 need_lib_prefix=no
9409 ;;
9410 motorola)
9411 need_lib_prefix=no
9412 need_version=no
9413 shlibpath_overrides_runpath=no
9414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9415 ;;
9416 esac
9417 ;;
9418
9419sysv4*MP*)
9420 if test -d /usr/nec ;then
9421 version_type=linux
9422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9423 soname_spec='$libname${shared_ext}.$major'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 fi
9426 ;;
9427
Reid Spencera773bd52006-08-04 18:18:08 +00009428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9429 version_type=freebsd-elf
9430 need_lib_prefix=no
9431 need_version=no
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 hardcode_into_libs=yes
9436 if test "$with_gnu_ld" = yes; then
9437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9438 shlibpath_overrides_runpath=no
9439 else
9440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9441 shlibpath_overrides_runpath=yes
9442 case $host_os in
9443 sco3.2v5*)
9444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9445 ;;
9446 esac
9447 fi
9448 sys_lib_dlsearch_path_spec='/usr/lib'
9449 ;;
9450
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451uts4*)
9452 version_type=linux
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 ;;
9457
9458*)
9459 dynamic_linker=no
9460 ;;
9461esac
Reid Spencera773bd52006-08-04 18:18:08 +00009462{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9463echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464test "$dynamic_linker" = no && can_build_shared=no
9465
Reid Spencera773bd52006-08-04 18:18:08 +00009466variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9467if test "$GCC" = yes; then
9468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9469fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009470
Reid Spencera773bd52006-08-04 18:18:08 +00009471
9472{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9473echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474if test "${libltdl_cv_shlibext+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477
9478module=yes
9479eval libltdl_cv_shlibext=$shrext_cmds
9480
9481fi
Reid Spencera773bd52006-08-04 18:18:08 +00009482{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9483echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484if test -n "$libltdl_cv_shlibext"; then
9485
9486cat >>confdefs.h <<_ACEOF
9487#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9488_ACEOF
9489
9490fi
9491
9492
Reid Spencera773bd52006-08-04 18:18:08 +00009493{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9494echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495if test "${libltdl_cv_shlibpath_var+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498 libltdl_cv_shlibpath_var="$shlibpath_var"
9499fi
Reid Spencera773bd52006-08-04 18:18:08 +00009500{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9501echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502if test -n "$libltdl_cv_shlibpath_var"; then
9503
9504cat >>confdefs.h <<_ACEOF
9505#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9506_ACEOF
9507
9508fi
9509
9510
Reid Spencera773bd52006-08-04 18:18:08 +00009511{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9512echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513if test "${libltdl_cv_sys_search_path+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9517fi
Reid Spencera773bd52006-08-04 18:18:08 +00009518{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9519echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520if test -n "$libltdl_cv_sys_search_path"; then
9521 sys_search_path=
9522 for dir in $libltdl_cv_sys_search_path; do
9523 if test -z "$sys_search_path"; then
9524 sys_search_path="$dir"
9525 else
9526 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9527 fi
9528 done
9529
9530cat >>confdefs.h <<_ACEOF
9531#define LTDL_SYSSEARCHPATH "$sys_search_path"
9532_ACEOF
9533
9534fi
9535
Reid Spencera773bd52006-08-04 18:18:08 +00009536{ echo "$as_me:$LINENO: checking for objdir" >&5
9537echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009538if test "${libltdl_cv_objdir+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541 libltdl_cv_objdir="$objdir"
9542 if test -n "$objdir"; then
9543 :
9544 else
9545 rm -f .libs 2>/dev/null
9546 mkdir .libs 2>/dev/null
9547 if test -d .libs; then
9548 libltdl_cv_objdir=.libs
9549 else
9550 # MS-DOS does not allow filenames that begin with a dot.
9551 libltdl_cv_objdir=_libs
9552 fi
9553 rmdir .libs 2>/dev/null
9554 fi
9555
9556fi
Reid Spencera773bd52006-08-04 18:18:08 +00009557{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9558echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559
9560cat >>confdefs.h <<_ACEOF
9561#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9562_ACEOF
9563
9564
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565
9566
9567
9568
9569# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009570{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9571echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575
9576# These are sane defaults that work on at least a few old systems.
9577# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9578
9579# Character class describing NM global symbol codes.
9580symcode='[BCDEGRST]'
9581
9582# Regexp to match symbols that can be accessed directly from C.
9583sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9584
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585# Transform an extracted symbol line into a proper C declaration
9586lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9587
9588# Transform an extracted symbol line into symbol name and symbol address
9589lt_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'"
9590
9591# Define system-specific variables.
9592case $host_os in
9593aix*)
9594 symcode='[BCDT]'
9595 ;;
9596cygwin* | mingw* | pw32*)
9597 symcode='[ABCDGISTW]'
9598 ;;
9599hpux*) # Its linker distinguishes data from code symbols
9600 if test "$host_cpu" = ia64; then
9601 symcode='[ABCDEGRST]'
9602 fi
9603 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9604 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'"
9605 ;;
9606linux*)
9607 if test "$host_cpu" = ia64; then
9608 symcode='[ABCDGIRSTW]'
9609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9610 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'"
9611 fi
9612 ;;
9613irix* | nonstopux*)
9614 symcode='[BCDEGRST]'
9615 ;;
9616osf*)
9617 symcode='[BCDEGQRST]'
9618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009619solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620 symcode='[BDRT]'
9621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009622sco3.2v5*)
9623 symcode='[DT]'
9624 ;;
9625sysv4.2uw2*)
9626 symcode='[DT]'
9627 ;;
9628sysv5* | sco5v6* | unixware* | OpenUNIX*)
9629 symcode='[ABDT]'
9630 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631sysv4)
9632 symcode='[DFNSTU]'
9633 ;;
9634esac
9635
9636# Handle CRLF in mingw tool chain
9637opt_cr=
9638case $build_os in
9639mingw*)
9640 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9641 ;;
9642esac
9643
9644# If we're using GNU nm, then use its standard symbol codes.
9645case `$NM -V 2>&1` in
9646*GNU* | *'with BFD'*)
9647 symcode='[ABCDGIRSTW]' ;;
9648esac
9649
9650# Try without a prefix undercore, then with it.
9651for ac_symprfx in "" "_"; do
9652
Reid Spencera773bd52006-08-04 18:18:08 +00009653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9654 symxfrm="\\1 $ac_symprfx\\2 \\2"
9655
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009657 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 +00009658
9659 # Check to see that the pipe works correctly.
9660 pipe_works=no
9661
9662 rm -f conftest*
9663 cat > conftest.$ac_ext <<EOF
9664#ifdef __cplusplus
9665extern "C" {
9666#endif
9667char nm_test_var;
9668void nm_test_func(){}
9669#ifdef __cplusplus
9670}
9671#endif
9672int main(){nm_test_var='a';nm_test_func();return(0);}
9673EOF
9674
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; then
9680 # Now try to grab the symbols.
9681 nlist=conftest.nm
9682 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9683 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && test -s "$nlist"; then
9687 # Try sorting and uniquifying the output.
9688 if sort "$nlist" | uniq > "$nlist"T; then
9689 mv -f "$nlist"T "$nlist"
9690 else
9691 rm -f "$nlist"T
9692 fi
9693
9694 # Make sure that we snagged all the symbols we need.
9695 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9696 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9697 cat <<EOF > conftest.$ac_ext
9698#ifdef __cplusplus
9699extern "C" {
9700#endif
9701
9702EOF
9703 # Now generate the symbol file.
9704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9705
9706 cat <<EOF >> conftest.$ac_ext
9707#if defined (__STDC__) && __STDC__
9708# define lt_ptr_t void *
9709#else
9710# define lt_ptr_t char *
9711# define const
9712#endif
9713
9714/* The mapping between symbol names and symbols. */
9715const struct {
9716 const char *name;
9717 lt_ptr_t address;
9718}
9719lt_preloaded_symbols[] =
9720{
9721EOF
9722 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9723 cat <<\EOF >> conftest.$ac_ext
9724 {0, (lt_ptr_t) 0}
9725};
9726
9727#ifdef __cplusplus
9728}
9729#endif
9730EOF
9731 # Now try linking the two files.
9732 mv conftest.$ac_objext conftstm.$ac_objext
9733 lt_save_LIBS="$LIBS"
9734 lt_save_CFLAGS="$CFLAGS"
9735 LIBS="conftstm.$ac_objext"
9736 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9742 pipe_works=yes
9743 fi
9744 LIBS="$lt_save_LIBS"
9745 CFLAGS="$lt_save_CFLAGS"
9746 else
9747 echo "cannot find nm_test_func in $nlist" >&5
9748 fi
9749 else
9750 echo "cannot find nm_test_var in $nlist" >&5
9751 fi
9752 else
9753 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9754 fi
9755 else
9756 echo "$progname: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 fi
9759 rm -f conftest* conftst*
9760
9761 # Do not use the global_symbol_pipe unless it works.
9762 if test "$pipe_works" = yes; then
9763 break
9764 else
9765 lt_cv_sys_global_symbol_pipe=
9766 fi
9767done
9768
9769fi
9770
9771if test -z "$lt_cv_sys_global_symbol_pipe"; then
9772 lt_cv_sys_global_symbol_to_cdecl=
9773fi
9774if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009775 { echo "$as_me:$LINENO: result: failed" >&5
9776echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777else
Reid Spencera773bd52006-08-04 18:18:08 +00009778 { echo "$as_me:$LINENO: result: ok" >&5
9779echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780fi
9781
9782
Reid Spencera773bd52006-08-04 18:18:08 +00009783{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9784echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9789 libltdl_cv_preloaded_symbols=yes
9790 else
9791 libltdl_cv_preloaded_symbols=no
9792 fi
9793
9794fi
Reid Spencera773bd52006-08-04 18:18:08 +00009795{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9796echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9798
9799cat >>confdefs.h <<\_ACEOF
9800#define HAVE_PRELOADED_SYMBOLS 1
9801_ACEOF
9802
9803fi
9804
9805LIBADD_DL=
9806
9807ac_ext=c
9808ac_cpp='$CPP $CPPFLAGS'
9809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812
9813
Reid Spencera773bd52006-08-04 18:18:08 +00009814{ echo "$as_me:$LINENO: checking for shl_load" >&5
9815echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816if test "${ac_cv_func_shl_load+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
9825/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9827#define shl_load innocuous_shl_load
9828
9829/* System header to define __stub macros and hopefully few prototypes,
9830 which can conflict with char shl_load (); below.
9831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9832 <limits.h> exists even on freestanding compilers. */
9833
9834#ifdef __STDC__
9835# include <limits.h>
9836#else
9837# include <assert.h>
9838#endif
9839
9840#undef shl_load
9841
Reid Spencera773bd52006-08-04 18:18:08 +00009842/* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845#ifdef __cplusplus
9846extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848char shl_load ();
9849/* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009852#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854#endif
9855
9856int
9857main ()
9858{
Reid Spencera773bd52006-08-04 18:18:08 +00009859return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860 ;
9861 return 0;
9862}
9863_ACEOF
9864rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 ac_cv_func_shl_load=yes
9899else
9900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
Reid Spencera773bd52006-08-04 18:18:08 +00009903 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904fi
Reid Spencera773bd52006-08-04 18:18:08 +00009905
Bill Wendlingebcceee2009-04-18 11:20:33 +00009906rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907 conftest$ac_exeext conftest.$ac_ext
9908fi
Reid Spencera773bd52006-08-04 18:18:08 +00009909{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9910echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911if test $ac_cv_func_shl_load = yes; then
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define HAVE_SHL_LOAD 1
9915_ACEOF
9916
9917else
Reid Spencera773bd52006-08-04 18:18:08 +00009918 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9919echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 ac_check_lib_save_LIBS=$LIBS
9924LIBS="-ldld $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931
Reid Spencera773bd52006-08-04 18:18:08 +00009932/* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935#ifdef __cplusplus
9936extern "C"
9937#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938char shl_load ();
9939int
9940main ()
9941{
Reid Spencera773bd52006-08-04 18:18:08 +00009942return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009948if { (ac_try="$ac_link"
9949case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ac_cv_lib_dld_shl_load=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
Reid Spencera773bd52006-08-04 18:18:08 +00009986 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987fi
Reid Spencera773bd52006-08-04 18:18:08 +00009988
Bill Wendlingebcceee2009-04-18 11:20:33 +00009989rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
Reid Spencera773bd52006-08-04 18:18:08 +00009993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9994echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995if test $ac_cv_lib_dld_shl_load = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_SHL_LOAD 1
9999_ACEOF
10000
10001 LIBADD_DL="$LIBADD_DL -ldld"
10002else
Reid Spencera773bd52006-08-04 18:18:08 +000010003 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10004echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 ac_check_lib_save_LIBS=$LIBS
10009LIBS="-ldl $LIBS"
10010cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016
Reid Spencera773bd52006-08-04 18:18:08 +000010017/* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020#ifdef __cplusplus
10021extern "C"
10022#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023char dlopen ();
10024int
10025main ()
10026{
Reid Spencera773bd52006-08-04 18:18:08 +000010027return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028 ;
10029 return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010033if { (ac_try="$ac_link"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066 ac_cv_lib_dl_dlopen=yes
10067else
10068 echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
Reid Spencera773bd52006-08-04 18:18:08 +000010071 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072fi
Reid Spencera773bd52006-08-04 18:18:08 +000010073
Bill Wendlingebcceee2009-04-18 11:20:33 +000010074rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 conftest$ac_exeext conftest.$ac_ext
10076LIBS=$ac_check_lib_save_LIBS
10077fi
Reid Spencera773bd52006-08-04 18:18:08 +000010078{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10079echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080if test $ac_cv_lib_dl_dlopen = yes; then
10081
10082cat >>confdefs.h <<\_ACEOF
10083#define HAVE_LIBDL 1
10084_ACEOF
10085
10086 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10087else
10088 cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h. */
10094#if HAVE_DLFCN_H
10095# include <dlfcn.h>
10096#endif
10097
10098int
10099main ()
10100{
10101dlopen(0, 0);
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140
10141cat >>confdefs.h <<\_ACEOF
10142#define HAVE_LIBDL 1
10143_ACEOF
10144 libltdl_cv_func_dlopen="yes"
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
Reid Spencera773bd52006-08-04 18:18:08 +000010149 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10150echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154 ac_check_lib_save_LIBS=$LIBS
10155LIBS="-lsvld $LIBS"
10156cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h. */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h. */
10162
Reid Spencera773bd52006-08-04 18:18:08 +000010163/* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166#ifdef __cplusplus
10167extern "C"
10168#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169char dlopen ();
10170int
10171main ()
10172{
Reid Spencera773bd52006-08-04 18:18:08 +000010173return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174 ;
10175 return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010179if { (ac_try="$ac_link"
10180case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212 ac_cv_lib_svld_dlopen=yes
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
Reid Spencera773bd52006-08-04 18:18:08 +000010217 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218fi
Reid Spencera773bd52006-08-04 18:18:08 +000010219
Bill Wendlingebcceee2009-04-18 11:20:33 +000010220rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
Reid Spencera773bd52006-08-04 18:18:08 +000010224{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10225echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226if test $ac_cv_lib_svld_dlopen = yes; then
10227
10228cat >>confdefs.h <<\_ACEOF
10229#define HAVE_LIBDL 1
10230_ACEOF
10231
10232 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10233else
Reid Spencera773bd52006-08-04 18:18:08 +000010234 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10235echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 ac_check_lib_save_LIBS=$LIBS
10240LIBS="-ldld $LIBS"
10241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247
Reid Spencera773bd52006-08-04 18:18:08 +000010248/* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251#ifdef __cplusplus
10252extern "C"
10253#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254char dld_link ();
10255int
10256main ()
10257{
Reid Spencera773bd52006-08-04 18:18:08 +000010258return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259 ;
10260 return 0;
10261}
10262_ACEOF
10263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010264if { (ac_try="$ac_link"
10265case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010276 (exit $ac_status); } &&
10277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10278 { (case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10281esac
10282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_try") 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest$ac_exeext'
10288 { (case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291esac
10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_try") 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010297 ac_cv_lib_dld_dld_link=yes
10298else
10299 echo "$as_me: failed program was:" >&5
10300sed 's/^/| /' conftest.$ac_ext >&5
10301
Reid Spencera773bd52006-08-04 18:18:08 +000010302 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303fi
Reid Spencera773bd52006-08-04 18:18:08 +000010304
Bill Wendlingebcceee2009-04-18 11:20:33 +000010305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 conftest$ac_exeext conftest.$ac_ext
10307LIBS=$ac_check_lib_save_LIBS
10308fi
Reid Spencera773bd52006-08-04 18:18:08 +000010309{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10310echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311if test $ac_cv_lib_dld_dld_link = yes; then
10312
10313cat >>confdefs.h <<\_ACEOF
10314#define HAVE_DLD 1
10315_ACEOF
10316
10317 LIBADD_DL="$LIBADD_DL -ldld"
10318else
Reid Spencera773bd52006-08-04 18:18:08 +000010319 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10320echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h. */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h. */
10330/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332#define _dyld_func_lookup innocuous__dyld_func_lookup
10333
10334/* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char _dyld_func_lookup (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10338
10339#ifdef __STDC__
10340# include <limits.h>
10341#else
10342# include <assert.h>
10343#endif
10344
10345#undef _dyld_func_lookup
10346
Reid Spencera773bd52006-08-04 18:18:08 +000010347/* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350#ifdef __cplusplus
10351extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353char _dyld_func_lookup ();
10354/* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010357#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359#endif
10360
10361int
10362main ()
10363{
Reid Spencera773bd52006-08-04 18:18:08 +000010364return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010370if { (ac_try="$ac_link"
10371case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374esac
10375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403 ac_cv_func__dyld_func_lookup=yes
10404else
10405 echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
Reid Spencera773bd52006-08-04 18:18:08 +000010408 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409fi
Reid Spencera773bd52006-08-04 18:18:08 +000010410
Bill Wendlingebcceee2009-04-18 11:20:33 +000010411rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412 conftest$ac_exeext conftest.$ac_ext
10413fi
Reid Spencera773bd52006-08-04 18:18:08 +000010414{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10415echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416if test $ac_cv_func__dyld_func_lookup = yes; then
10417
10418cat >>confdefs.h <<\_ACEOF
10419#define HAVE_DYLD 1
10420_ACEOF
10421
10422fi
10423
10424
10425fi
10426
10427
10428fi
10429
10430
10431fi
Reid Spencera773bd52006-08-04 18:18:08 +000010432
Bill Wendlingebcceee2009-04-18 11:20:33 +000010433rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 conftest$ac_exeext conftest.$ac_ext
10435
10436fi
10437
10438
10439fi
10440
10441
10442fi
10443
10444
10445if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10446then
10447 lt_save_LIBS="$LIBS"
10448 LIBS="$LIBS $LIBADD_DL"
10449
10450for ac_func in dlerror
10451do
10452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010453{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457else
10458 cat >conftest.$ac_ext <<_ACEOF
10459/* confdefs.h. */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h. */
10464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10466#define $ac_func innocuous_$ac_func
10467
10468/* System header to define __stub macros and hopefully few prototypes,
10469 which can conflict with char $ac_func (); below.
10470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471 <limits.h> exists even on freestanding compilers. */
10472
10473#ifdef __STDC__
10474# include <limits.h>
10475#else
10476# include <assert.h>
10477#endif
10478
10479#undef $ac_func
10480
Reid Spencera773bd52006-08-04 18:18:08 +000010481/* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484#ifdef __cplusplus
10485extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487char $ac_func ();
10488/* The GNU C library defines this for functions which it implements
10489 to always fail with ENOSYS. Some functions are actually named
10490 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010491#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493#endif
10494
10495int
10496main ()
10497{
Reid Spencera773bd52006-08-04 18:18:08 +000010498return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499 ;
10500 return 0;
10501}
10502_ACEOF
10503rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010504if { (ac_try="$ac_link"
10505case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10508esac
10509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511 ac_status=$?
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010516 (exit $ac_status); } &&
10517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10518 { (case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521esac
10522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_try") 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; } &&
10527 { ac_try='test -s conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537 eval "$as_ac_var=yes"
10538else
10539 echo "$as_me: failed program was:" >&5
10540sed 's/^/| /' conftest.$ac_ext >&5
10541
Reid Spencera773bd52006-08-04 18:18:08 +000010542 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543fi
Reid Spencera773bd52006-08-04 18:18:08 +000010544
Bill Wendlingebcceee2009-04-18 11:20:33 +000010545rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546 conftest$ac_exeext conftest.$ac_ext
10547fi
Reid Spencera773bd52006-08-04 18:18:08 +000010548ac_res=`eval echo '${'$as_ac_var'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551if test `eval echo '${'$as_ac_var'}'` = yes; then
10552 cat >>confdefs.h <<_ACEOF
10553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10554_ACEOF
10555
10556fi
10557done
10558
10559 LIBS="$lt_save_LIBS"
10560fi
10561ac_ext=c
10562ac_cpp='$CPP $CPPFLAGS'
10563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10565ac_compiler_gnu=$ac_cv_c_compiler_gnu
10566
10567
10568
Reid Spencera773bd52006-08-04 18:18:08 +000010569{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10570echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574 ac_cv_sys_symbol_underscore=no
10575 cat > conftest.$ac_ext <<EOF
10576void nm_test_func(){}
10577int main(){nm_test_func;return 0;}
10578EOF
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; then
10584 # Now try to grab the symbols.
10585 ac_nlist=conftest.nm
10586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && test -s "$ac_nlist"; then
10591 # See whether the symbols have a leading underscore.
10592 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10593 ac_cv_sys_symbol_underscore=yes
10594 else
10595 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10596 :
10597 else
10598 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10599 fi
10600 fi
10601 else
10602 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10603 fi
10604 else
10605 echo "configure: failed program was:" >&5
10606 cat conftest.c >&5
10607 fi
10608 rm -rf conftest*
10609
10610fi
Reid Spencera773bd52006-08-04 18:18:08 +000010611{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10612echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010613
10614
10615if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10616 if test x"$libltdl_cv_func_dlopen" = xyes ||
10617 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010618 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10619echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620if test "${libltdl_cv_need_uscore+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 libltdl_cv_need_uscore=unknown
10624 save_LIBS="$LIBS"
10625 LIBS="$LIBS $LIBADD_DL"
10626 if test "$cross_compiling" = yes; then :
10627 libltdl_cv_need_uscore=cross
10628else
10629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10630 lt_status=$lt_dlunknown
10631 cat > conftest.$ac_ext <<EOF
Douglas Gregora0162ff2009-06-23 17:22:05 +000010632#line 10632 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633#include "confdefs.h"
10634
10635#if HAVE_DLFCN_H
10636#include <dlfcn.h>
10637#endif
10638
10639#include <stdio.h>
10640
10641#ifdef RTLD_GLOBAL
10642# define LT_DLGLOBAL RTLD_GLOBAL
10643#else
10644# ifdef DL_GLOBAL
10645# define LT_DLGLOBAL DL_GLOBAL
10646# else
10647# define LT_DLGLOBAL 0
10648# endif
10649#endif
10650
10651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10652 find out it does not work in some platform. */
10653#ifndef LT_DLLAZY_OR_NOW
10654# ifdef RTLD_LAZY
10655# define LT_DLLAZY_OR_NOW RTLD_LAZY
10656# else
10657# ifdef DL_LAZY
10658# define LT_DLLAZY_OR_NOW DL_LAZY
10659# else
10660# ifdef RTLD_NOW
10661# define LT_DLLAZY_OR_NOW RTLD_NOW
10662# else
10663# ifdef DL_NOW
10664# define LT_DLLAZY_OR_NOW DL_NOW
10665# else
10666# define LT_DLLAZY_OR_NOW 0
10667# endif
10668# endif
10669# endif
10670# endif
10671#endif
10672
10673#ifdef __cplusplus
10674extern "C" void exit (int);
10675#endif
10676
10677void fnord() { int i=42;}
10678int main ()
10679{
10680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10681 int status = $lt_dlunknown;
10682
10683 if (self)
10684 {
10685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10687 /* dlclose (self); */
10688 }
Reid Spencera773bd52006-08-04 18:18:08 +000010689 else
10690 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691
10692 exit (status);
10693}
10694EOF
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010700 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701 lt_status=$?
10702 case x$lt_status in
10703 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10704 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010705 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706 esac
10707 else :
10708 # compilation failed
10709
10710 fi
10711fi
10712rm -fr conftest*
10713
10714 LIBS="$save_LIBS"
10715
10716fi
Reid Spencera773bd52006-08-04 18:18:08 +000010717{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10718echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 fi
10720fi
10721
10722if test x"$libltdl_cv_need_uscore" = xyes; then
10723
10724cat >>confdefs.h <<\_ACEOF
10725#define NEED_USCORE 1
10726_ACEOF
10727
10728fi
10729
10730
Reid Spencera773bd52006-08-04 18:18:08 +000010731{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10732echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 # PORTME does your system automatically load deplibs for dlopen?
10737 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10738 # For now, we just catch OSes we know something about -- in the
10739 # future, we'll try test this programmatically.
10740 libltdl_cv_sys_dlopen_deplibs=unknown
10741 case "$host_os" in
10742 aix3*|aix4.1.*|aix4.2.*)
10743 # Unknown whether this is true for these versions of AIX, but
10744 # we want this `case' here to explicitly catch those versions.
10745 libltdl_cv_sys_dlopen_deplibs=unknown
10746 ;;
10747 aix[45]*)
10748 libltdl_cv_sys_dlopen_deplibs=yes
10749 ;;
10750 darwin*)
10751 # Assuming the user has installed a libdl from somewhere, this is true
10752 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10753 libltdl_cv_sys_dlopen_deplibs=yes
10754 ;;
10755 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10756 # GNU and its variants, using gnu ld.so (Glibc)
10757 libltdl_cv_sys_dlopen_deplibs=yes
10758 ;;
10759 hpux10*|hpux11*)
10760 libltdl_cv_sys_dlopen_deplibs=yes
10761 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010762 interix*)
10763 libltdl_cv_sys_dlopen_deplibs=yes
10764 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765 irix[12345]*|irix6.[01]*)
10766 # Catch all versions of IRIX before 6.2, and indicate that we don't
10767 # know how it worked for any of those versions.
10768 libltdl_cv_sys_dlopen_deplibs=unknown
10769 ;;
10770 irix*)
10771 # The case above catches anything before 6.2, and it's known that
10772 # at 6.2 and later dlopen does load deplibs.
10773 libltdl_cv_sys_dlopen_deplibs=yes
10774 ;;
10775 netbsd*)
10776 libltdl_cv_sys_dlopen_deplibs=yes
10777 ;;
10778 openbsd*)
10779 libltdl_cv_sys_dlopen_deplibs=yes
10780 ;;
10781 osf[1234]*)
10782 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10783 # it did *not* use an RPATH in a shared library to find objects the
10784 # library depends on, so we explictly say `no'.
10785 libltdl_cv_sys_dlopen_deplibs=no
10786 ;;
10787 osf5.0|osf5.0a|osf5.1)
10788 # dlopen *does* load deplibs and with the right loader patch applied
10789 # it even uses RPATH in a shared library to search for shared objects
10790 # that the library depends on, but there's no easy way to know if that
10791 # patch is installed. Since this is the case, all we can really
10792 # say is unknown -- it depends on the patch being installed. If
10793 # it is, this changes to `yes'. Without it, it would be `no'.
10794 libltdl_cv_sys_dlopen_deplibs=unknown
10795 ;;
10796 osf*)
10797 # the two cases above should catch all versions of osf <= 5.1. Read
10798 # the comments above for what we know about them.
10799 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10800 # is used to find them so we can finally say `yes'.
10801 libltdl_cv_sys_dlopen_deplibs=yes
10802 ;;
10803 solaris*)
10804 libltdl_cv_sys_dlopen_deplibs=yes
10805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10807 libltdl_cv_sys_dlopen_deplibs=yes
10808 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809 esac
10810
10811fi
Reid Spencera773bd52006-08-04 18:18:08 +000010812{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10813echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10815
10816cat >>confdefs.h <<\_ACEOF
10817#define LTDL_DLOPEN_DEPLIBS 1
10818_ACEOF
10819
10820fi
10821
10822
10823for ac_header in argz.h
10824do
10825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831fi
Reid Spencera773bd52006-08-04 18:18:08 +000010832ac_res=`eval echo '${'$as_ac_Header'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835else
10836 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010837{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845$ac_includes_default
10846#include <$ac_header>
10847_ACEOF
10848rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010849if { (ac_try="$ac_compile"
10850case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882 ac_header_compiler=yes
10883else
10884 echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
Reid Spencera773bd52006-08-04 18:18:08 +000010887 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888fi
Reid Spencera773bd52006-08-04 18:18:08 +000010889
10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10892echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893
10894# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010895{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897cat >conftest.$ac_ext <<_ACEOF
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10903#include <$ac_header>
10904_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010905if { (ac_try="$ac_cpp conftest.$ac_ext"
10906case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909esac
10910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010917 (exit $ac_status); } >/dev/null; then
10918 if test -s conftest.err; then
10919 ac_cpp_err=$ac_c_preproc_warn_flag
10920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10921 else
10922 ac_cpp_err=
10923 fi
10924else
10925 ac_cpp_err=yes
10926fi
10927if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 ac_header_preproc=yes
10929else
10930 echo "$as_me: failed program was:" >&5
10931sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 ac_header_preproc=no
10934fi
Reid Spencera773bd52006-08-04 18:18:08 +000010935
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010937{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939
10940# So? What about this header?
10941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10942 yes:no: )
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10947 ac_header_preproc=yes
10948 ;;
10949 no:yes:* )
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010962 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963## ----------------------------------- ##
10964## Report this to llvmbugs@cs.uiuc.edu ##
10965## ----------------------------------- ##
10966_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010967 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968 ;;
10969esac
Reid Spencera773bd52006-08-04 18:18:08 +000010970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 eval "$as_ac_Header=\$ac_header_preproc"
10976fi
Reid Spencera773bd52006-08-04 18:18:08 +000010977ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980
10981fi
10982if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985_ACEOF
10986
10987fi
10988
10989done
10990
10991
Reid Spencera773bd52006-08-04 18:18:08 +000010992{ echo "$as_me:$LINENO: checking for error_t" >&5
10993echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994if test "${ac_cv_type_error_t+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
11003#if HAVE_ARGZ_H
11004# include <argz.h>
11005#endif
11006
Reid Spencera773bd52006-08-04 18:18:08 +000011007typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008int
11009main ()
11010{
Reid Spencera773bd52006-08-04 18:18:08 +000011011if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011013if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014 return 0;
11015 ;
11016 return 0;
11017}
11018_ACEOF
11019rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011020if { (ac_try="$ac_compile"
11021case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024esac
11025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
11038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047esac
11048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053 ac_cv_type_error_t=yes
11054else
11055 echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
Reid Spencera773bd52006-08-04 18:18:08 +000011058 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059fi
Reid Spencera773bd52006-08-04 18:18:08 +000011060
11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062fi
Reid Spencera773bd52006-08-04 18:18:08 +000011063{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11064echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065if test $ac_cv_type_error_t = yes; then
11066
11067cat >>confdefs.h <<_ACEOF
11068#define HAVE_ERROR_T 1
11069_ACEOF
11070
11071
11072else
11073
11074cat >>confdefs.h <<\_ACEOF
11075#define error_t int
11076_ACEOF
11077
11078fi
11079
11080
11081
11082
11083
11084
11085
11086for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11087do
11088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 cat >conftest.$ac_ext <<_ACEOF
11095/* confdefs.h. */
11096_ACEOF
11097cat confdefs.h >>conftest.$ac_ext
11098cat >>conftest.$ac_ext <<_ACEOF
11099/* end confdefs.h. */
11100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102#define $ac_func innocuous_$ac_func
11103
11104/* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11108
11109#ifdef __STDC__
11110# include <limits.h>
11111#else
11112# include <assert.h>
11113#endif
11114
11115#undef $ac_func
11116
Reid Spencera773bd52006-08-04 18:18:08 +000011117/* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120#ifdef __cplusplus
11121extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123char $ac_func ();
11124/* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011127#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129#endif
11130
11131int
11132main ()
11133{
Reid Spencera773bd52006-08-04 18:18:08 +000011134return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135 ;
11136 return 0;
11137}
11138_ACEOF
11139rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 eval "$as_ac_var=yes"
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
Reid Spencera773bd52006-08-04 18:18:08 +000011178 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179fi
Reid Spencera773bd52006-08-04 18:18:08 +000011180
Bill Wendlingebcceee2009-04-18 11:20:33 +000011181rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 conftest$ac_exeext conftest.$ac_ext
11183fi
Reid Spencera773bd52006-08-04 18:18:08 +000011184ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190_ACEOF
11191
11192fi
11193done
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11223 stdio.h unistd.h
11224do
11225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231fi
Reid Spencera773bd52006-08-04 18:18:08 +000011232ac_res=`eval echo '${'$as_ac_Header'}'`
11233 { echo "$as_me:$LINENO: result: $ac_res" >&5
11234echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235else
11236 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245$ac_includes_default
11246#include <$ac_header>
11247_ACEOF
11248rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011249if { (ac_try="$ac_compile"
11250case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253esac
11254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_try") 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 ac_header_compiler=yes
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
Reid Spencera773bd52006-08-04 18:18:08 +000011287 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011288fi
Reid Spencera773bd52006-08-04 18:18:08 +000011289
11290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293
11294# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303#include <$ac_header>
11304_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011305if { (ac_try="$ac_cpp conftest.$ac_ext"
11306case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011317 (exit $ac_status); } >/dev/null; then
11318 if test -s conftest.err; then
11319 ac_cpp_err=$ac_c_preproc_warn_flag
11320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11321 else
11322 ac_cpp_err=
11323 fi
11324else
11325 ac_cpp_err=yes
11326fi
11327if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328 ac_header_preproc=yes
11329else
11330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_header_preproc=no
11334fi
Reid Spencera773bd52006-08-04 18:18:08 +000011335
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11338echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011339
11340# So? What about this header?
11341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342 yes:no: )
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11347 ac_header_preproc=yes
11348 ;;
11349 no:yes:* )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011362 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011363## ----------------------------------- ##
11364## Report this to llvmbugs@cs.uiuc.edu ##
11365## ----------------------------------- ##
11366_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011367 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 ;;
11369esac
Reid Spencera773bd52006-08-04 18:18:08 +000011370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374else
11375 eval "$as_ac_Header=\$ac_header_preproc"
11376fi
Reid Spencera773bd52006-08-04 18:18:08 +000011377ac_res=`eval echo '${'$as_ac_Header'}'`
11378 { echo "$as_me:$LINENO: result: $ac_res" >&5
11379echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380
11381fi
11382if test `eval echo '${'$as_ac_Header'}'` = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11385_ACEOF
11386
11387fi
11388
11389done
11390
11391
11392
11393
11394
11395for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11396do
11397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403fi
Reid Spencera773bd52006-08-04 18:18:08 +000011404ac_res=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407else
11408 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411cat >conftest.$ac_ext <<_ACEOF
11412/* confdefs.h. */
11413_ACEOF
11414cat confdefs.h >>conftest.$ac_ext
11415cat >>conftest.$ac_ext <<_ACEOF
11416/* end confdefs.h. */
11417$ac_includes_default
11418#include <$ac_header>
11419_ACEOF
11420rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011421if { (ac_try="$ac_compile"
11422case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425esac
11426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11435 { (case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438esac
11439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_try") 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448esac
11449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 ac_header_compiler=yes
11455else
11456 echo "$as_me: failed program was:" >&5
11457sed 's/^/| /' conftest.$ac_ext >&5
11458
Reid Spencera773bd52006-08-04 18:18:08 +000011459 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460fi
Reid Spencera773bd52006-08-04 18:18:08 +000011461
11462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465
11466# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011467{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469cat >conftest.$ac_ext <<_ACEOF
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475#include <$ac_header>
11476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011477if { (ac_try="$ac_cpp conftest.$ac_ext"
11478case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011489 (exit $ac_status); } >/dev/null; then
11490 if test -s conftest.err; then
11491 ac_cpp_err=$ac_c_preproc_warn_flag
11492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11493 else
11494 ac_cpp_err=
11495 fi
11496else
11497 ac_cpp_err=yes
11498fi
11499if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500 ac_header_preproc=yes
11501else
11502 echo "$as_me: failed program was:" >&5
11503sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 ac_header_preproc=no
11506fi
Reid Spencera773bd52006-08-04 18:18:08 +000011507
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011509{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11510echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511
11512# So? What about this header?
11513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11514 yes:no: )
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11519 ac_header_preproc=yes
11520 ;;
11521 no:yes:* )
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011534 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535## ----------------------------------- ##
11536## Report this to llvmbugs@cs.uiuc.edu ##
11537## ----------------------------------- ##
11538_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011539 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540 ;;
11541esac
Reid Spencera773bd52006-08-04 18:18:08 +000011542{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 eval "$as_ac_Header=\$ac_header_preproc"
11548fi
Reid Spencera773bd52006-08-04 18:18:08 +000011549ac_res=`eval echo '${'$as_ac_Header'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552
11553fi
11554if test `eval echo '${'$as_ac_Header'}'` = yes; then
11555 cat >>confdefs.h <<_ACEOF
11556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11557_ACEOF
11558
11559fi
11560
11561done
11562
11563
11564
11565for ac_header in string.h strings.h
11566do
11567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573fi
Reid Spencera773bd52006-08-04 18:18:08 +000011574ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577else
11578 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587$ac_includes_default
11588#include <$ac_header>
11589_ACEOF
11590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011591if { (ac_try="$ac_compile"
11592case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595esac
11596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608esac
11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624 ac_header_compiler=yes
11625else
11626 echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
Reid Spencera773bd52006-08-04 18:18:08 +000011629 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011630fi
Reid Spencera773bd52006-08-04 18:18:08 +000011631
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635
11636# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011637{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645#include <$ac_header>
11646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011647if { (ac_try="$ac_cpp conftest.$ac_ext"
11648case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11663 else
11664 ac_cpp_err=
11665 fi
11666else
11667 ac_cpp_err=yes
11668fi
11669if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670 ac_header_preproc=yes
11671else
11672 echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_header_preproc=no
11676fi
Reid Spencera773bd52006-08-04 18:18:08 +000011677
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11680echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681
11682# So? What about this header?
11683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11684 yes:no: )
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11689 ac_header_preproc=yes
11690 ;;
11691 no:yes:* )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011704 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705## ----------------------------------- ##
11706## Report this to llvmbugs@cs.uiuc.edu ##
11707## ----------------------------------- ##
11708_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011709 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710 ;;
11711esac
Reid Spencera773bd52006-08-04 18:18:08 +000011712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 eval "$as_ac_Header=\$ac_header_preproc"
11718fi
Reid Spencera773bd52006-08-04 18:18:08 +000011719ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722
11723fi
11724if test `eval echo '${'$as_ac_Header'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727_ACEOF
11728 break
11729fi
11730
11731done
11732
11733
11734
11735
11736for ac_func in strchr index
11737do
11738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 cat >conftest.$ac_ext <<_ACEOF
11745/* confdefs.h. */
11746_ACEOF
11747cat confdefs.h >>conftest.$ac_ext
11748cat >>conftest.$ac_ext <<_ACEOF
11749/* end confdefs.h. */
11750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752#define $ac_func innocuous_$ac_func
11753
11754/* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11758
11759#ifdef __STDC__
11760# include <limits.h>
11761#else
11762# include <assert.h>
11763#endif
11764
11765#undef $ac_func
11766
Reid Spencera773bd52006-08-04 18:18:08 +000011767/* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770#ifdef __cplusplus
11771extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773char $ac_func ();
11774/* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011777#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779#endif
11780
11781int
11782main ()
11783{
Reid Spencera773bd52006-08-04 18:18:08 +000011784return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011790if { (ac_try="$ac_link"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 eval "$as_ac_var=yes"
11824else
11825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
Reid Spencera773bd52006-08-04 18:18:08 +000011828 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829fi
Reid Spencera773bd52006-08-04 18:18:08 +000011830
Bill Wendlingebcceee2009-04-18 11:20:33 +000011831rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832 conftest$ac_exeext conftest.$ac_ext
11833fi
Reid Spencera773bd52006-08-04 18:18:08 +000011834ac_res=`eval echo '${'$as_ac_var'}'`
11835 { echo "$as_me:$LINENO: result: $ac_res" >&5
11836echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837if test `eval echo '${'$as_ac_var'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11840_ACEOF
11841 break
11842fi
11843done
11844
11845
11846
11847for ac_func in strrchr rindex
11848do
11849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011850{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11852if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
11861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11863#define $ac_func innocuous_$ac_func
11864
11865/* System header to define __stub macros and hopefully few prototypes,
11866 which can conflict with char $ac_func (); below.
11867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868 <limits.h> exists even on freestanding compilers. */
11869
11870#ifdef __STDC__
11871# include <limits.h>
11872#else
11873# include <assert.h>
11874#endif
11875
11876#undef $ac_func
11877
Reid Spencera773bd52006-08-04 18:18:08 +000011878/* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881#ifdef __cplusplus
11882extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884char $ac_func ();
11885/* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011888#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890#endif
11891
11892int
11893main ()
11894{
Reid Spencera773bd52006-08-04 18:18:08 +000011895return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896 ;
11897 return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011901if { (ac_try="$ac_link"
11902case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11915 { (case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918esac
11919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_try") 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934 eval "$as_ac_var=yes"
11935else
11936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
Reid Spencera773bd52006-08-04 18:18:08 +000011939 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940fi
Reid Spencera773bd52006-08-04 18:18:08 +000011941
Bill Wendlingebcceee2009-04-18 11:20:33 +000011942rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 conftest$ac_exeext conftest.$ac_ext
11944fi
Reid Spencera773bd52006-08-04 18:18:08 +000011945ac_res=`eval echo '${'$as_ac_var'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948if test `eval echo '${'$as_ac_var'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11951_ACEOF
11952 break
11953fi
11954done
11955
11956
11957
11958for ac_func in memcpy bcopy
11959do
11960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 cat >conftest.$ac_ext <<_ACEOF
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
11972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974#define $ac_func innocuous_$ac_func
11975
11976/* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980
11981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
11986
11987#undef $ac_func
11988
Reid Spencera773bd52006-08-04 18:18:08 +000011989/* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992#ifdef __cplusplus
11993extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995char $ac_func ();
11996/* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011999#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001#endif
12002
12003int
12004main ()
12005{
Reid Spencera773bd52006-08-04 18:18:08 +000012006return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012012if { (ac_try="$ac_link"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045 eval "$as_ac_var=yes"
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
Reid Spencera773bd52006-08-04 18:18:08 +000012050 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051fi
Reid Spencera773bd52006-08-04 18:18:08 +000012052
Bill Wendlingebcceee2009-04-18 11:20:33 +000012053rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054 conftest$ac_exeext conftest.$ac_ext
12055fi
Reid Spencera773bd52006-08-04 18:18:08 +000012056ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059if test `eval echo '${'$as_ac_var'}'` = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062_ACEOF
12063 break
12064fi
12065done
12066
12067
12068
12069for ac_func in memmove strcmp
12070do
12071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012072{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085#define $ac_func innocuous_$ac_func
12086
12087/* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12091
12092#ifdef __STDC__
12093# include <limits.h>
12094#else
12095# include <assert.h>
12096#endif
12097
12098#undef $ac_func
12099
Reid Spencera773bd52006-08-04 18:18:08 +000012100/* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103#ifdef __cplusplus
12104extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106char $ac_func ();
12107/* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012110#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112#endif
12113
12114int
12115main ()
12116{
Reid Spencera773bd52006-08-04 18:18:08 +000012117return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118 ;
12119 return 0;
12120}
12121_ACEOF
12122rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012123if { (ac_try="$ac_link"
12124case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156 eval "$as_ac_var=yes"
12157else
12158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
Reid Spencera773bd52006-08-04 18:18:08 +000012161 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162fi
Reid Spencera773bd52006-08-04 18:18:08 +000012163
Bill Wendlingebcceee2009-04-18 11:20:33 +000012164rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165 conftest$ac_exeext conftest.$ac_ext
12166fi
Reid Spencera773bd52006-08-04 18:18:08 +000012167ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173_ACEOF
12174
12175fi
12176done
12177
12178
12179
12180
12181for ac_func in closedir opendir readdir
12182do
12183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012184{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12186if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188else
12189 cat >conftest.$ac_ext <<_ACEOF
12190/* confdefs.h. */
12191_ACEOF
12192cat confdefs.h >>conftest.$ac_ext
12193cat >>conftest.$ac_ext <<_ACEOF
12194/* end confdefs.h. */
12195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12197#define $ac_func innocuous_$ac_func
12198
12199/* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below.
12201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202 <limits.h> exists even on freestanding compilers. */
12203
12204#ifdef __STDC__
12205# include <limits.h>
12206#else
12207# include <assert.h>
12208#endif
12209
12210#undef $ac_func
12211
Reid Spencera773bd52006-08-04 18:18:08 +000012212/* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012215#ifdef __cplusplus
12216extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218char $ac_func ();
12219/* The GNU C library defines this for functions which it implements
12220 to always fail with ENOSYS. Some functions are actually named
12221 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012222#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224#endif
12225
12226int
12227main ()
12228{
Reid Spencera773bd52006-08-04 18:18:08 +000012229return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230 ;
12231 return 0;
12232}
12233_ACEOF
12234rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012235if { (ac_try="$ac_link"
12236case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249 { (case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252esac
12253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_try") 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268 eval "$as_ac_var=yes"
12269else
12270 echo "$as_me: failed program was:" >&5
12271sed 's/^/| /' conftest.$ac_ext >&5
12272
Reid Spencera773bd52006-08-04 18:18:08 +000012273 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274fi
Reid Spencera773bd52006-08-04 18:18:08 +000012275
Bill Wendlingebcceee2009-04-18 11:20:33 +000012276rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277 conftest$ac_exeext conftest.$ac_ext
12278fi
Reid Spencera773bd52006-08-04 18:18:08 +000012279ac_res=`eval echo '${'$as_ac_var'}'`
12280 { echo "$as_me:$LINENO: result: $ac_res" >&5
12281echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012282if test `eval echo '${'$as_ac_var'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12285_ACEOF
12286
12287fi
12288done
12289
12290
Reid Spencera773bd52006-08-04 18:18:08 +000012291# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012293 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012294 case $enableval in
12295 yes) enable_shared=yes ;;
12296 no) enable_shared=no ;;
12297 *)
12298 enable_shared=no
12299 # Look at the argument we got. We use all the common list separators.
12300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12301 for pkg in $enableval; do
12302 IFS="$lt_save_ifs"
12303 if test "X$pkg" = "X$p"; then
12304 enable_shared=yes
12305 fi
12306 done
12307 IFS="$lt_save_ifs"
12308 ;;
12309 esac
12310else
12311 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012312fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313
Reid Spencera773bd52006-08-04 18:18:08 +000012314
12315# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012317 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012318 case $enableval in
12319 yes) enable_static=yes ;;
12320 no) enable_static=no ;;
12321 *)
12322 enable_static=no
12323 # Look at the argument we got. We use all the common list separators.
12324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12325 for pkg in $enableval; do
12326 IFS="$lt_save_ifs"
12327 if test "X$pkg" = "X$p"; then
12328 enable_static=yes
12329 fi
12330 done
12331 IFS="$lt_save_ifs"
12332 ;;
12333 esac
12334else
12335 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012336fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337
Reid Spencera773bd52006-08-04 18:18:08 +000012338
12339# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012340if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012341 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012342 case $enableval in
12343 yes) enable_fast_install=yes ;;
12344 no) enable_fast_install=no ;;
12345 *)
12346 enable_fast_install=no
12347 # Look at the argument we got. We use all the common list separators.
12348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12349 for pkg in $enableval; do
12350 IFS="$lt_save_ifs"
12351 if test "X$pkg" = "X$p"; then
12352 enable_fast_install=yes
12353 fi
12354 done
12355 IFS="$lt_save_ifs"
12356 ;;
12357 esac
12358else
12359 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012360fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012361
Reid Spencera773bd52006-08-04 18:18:08 +000012362
12363{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12364echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365if test "${lt_cv_path_SED+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 # Loop through the user's path and test for sed and gsed.
12369# Then use that list of sed's as ones to test for truncation.
12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in $PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for lt_ac_prog in sed gsed; do
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12378 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12379 fi
12380 done
12381 done
12382done
12383lt_ac_max=0
12384lt_ac_count=0
12385# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12386# along with /bin/sed that truncates output.
12387for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012388 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389 cat /dev/null > conftest.in
12390 lt_ac_count=0
12391 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12392 # Check for GNU sed and select it if it is found.
12393 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12394 lt_cv_path_SED=$lt_ac_sed
12395 break
12396 fi
12397 while true; do
12398 cat conftest.in conftest.in >conftest.tmp
12399 mv conftest.tmp conftest.in
12400 cp conftest.in conftest.nl
12401 echo >>conftest.nl
12402 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12403 cmp -s conftest.out conftest.nl || break
12404 # 10000 chars as input seems more than enough
12405 test $lt_ac_count -gt 10 && break
12406 lt_ac_count=`expr $lt_ac_count + 1`
12407 if test $lt_ac_count -gt $lt_ac_max; then
12408 lt_ac_max=$lt_ac_count
12409 lt_cv_path_SED=$lt_ac_sed
12410 fi
12411 done
12412done
12413
12414fi
12415
12416SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012417{ echo "$as_me:$LINENO: result: $SED" >&5
12418echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419
12420
Reid Spencera773bd52006-08-04 18:18:08 +000012421# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012422if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424else
12425 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012426fi
12427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428ac_prog=ld
12429if test "$GCC" = yes; then
12430 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012431 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12432echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 case $host in
12434 *-*-mingw*)
12435 # gcc leaves a trailing carriage return which upsets mingw
12436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12437 *)
12438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12439 esac
12440 case $ac_prog in
12441 # Accept absolute paths.
12442 [\\/]* | ?:[\\/]*)
12443 re_direlt='/[^/][^/]*/\.\./'
12444 # Canonicalize the pathname of ld
12445 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12446 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12447 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12448 done
12449 test -z "$LD" && LD="$ac_prog"
12450 ;;
12451 "")
12452 # If it fails, then pretend we aren't using GCC.
12453 ac_prog=ld
12454 ;;
12455 *)
12456 # If it is relative, then search for the first ld in PATH.
12457 with_gnu_ld=unknown
12458 ;;
12459 esac
12460elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012461 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12462echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012463else
Reid Spencera773bd52006-08-04 18:18:08 +000012464 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12465echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466fi
12467if test "${lt_cv_path_LD+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 if test -z "$LD"; then
12471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12472 for ac_dir in $PATH; do
12473 IFS="$lt_save_ifs"
12474 test -z "$ac_dir" && ac_dir=.
12475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12476 lt_cv_path_LD="$ac_dir/$ac_prog"
12477 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012478 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012479 # Break only if it was the GNU/non-GNU ld that we prefer.
12480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12481 *GNU* | *'with BFD'*)
12482 test "$with_gnu_ld" != no && break
12483 ;;
12484 *)
12485 test "$with_gnu_ld" != yes && break
12486 ;;
12487 esac
12488 fi
12489 done
12490 IFS="$lt_save_ifs"
12491else
12492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12493fi
12494fi
12495
12496LD="$lt_cv_path_LD"
12497if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012498 { echo "$as_me:$LINENO: result: $LD" >&5
12499echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012500else
Reid Spencera773bd52006-08-04 18:18:08 +000012501 { echo "$as_me:$LINENO: result: no" >&5
12502echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503fi
12504test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12505echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12506 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012507{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12508echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509if test "${lt_cv_prog_gnu_ld+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
Reid Spencera773bd52006-08-04 18:18:08 +000012512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513case `$LD -v 2>&1 </dev/null` in
12514*GNU* | *'with BFD'*)
12515 lt_cv_prog_gnu_ld=yes
12516 ;;
12517*)
12518 lt_cv_prog_gnu_ld=no
12519 ;;
12520esac
12521fi
Reid Spencera773bd52006-08-04 18:18:08 +000012522{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12523echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524with_gnu_ld=$lt_cv_prog_gnu_ld
12525
12526
Reid Spencera773bd52006-08-04 18:18:08 +000012527{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12528echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012529if test "${lt_cv_ld_reload_flag+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532 lt_cv_ld_reload_flag='-r'
12533fi
Reid Spencera773bd52006-08-04 18:18:08 +000012534{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12535echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012536reload_flag=$lt_cv_ld_reload_flag
12537case $reload_flag in
12538"" | " "*) ;;
12539*) reload_flag=" $reload_flag" ;;
12540esac
12541reload_cmds='$LD$reload_flag -o $output$reload_objs'
12542case $host_os in
12543 darwin*)
12544 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012545 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546 else
12547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12548 fi
12549 ;;
12550esac
12551
Reid Spencera773bd52006-08-04 18:18:08 +000012552{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12553echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012554if test "${lt_cv_deplibs_check_method+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
12557 lt_cv_file_magic_cmd='$MAGIC_CMD'
12558lt_cv_file_magic_test_file=
12559lt_cv_deplibs_check_method='unknown'
12560# Need to set the preceding variable on all platforms that support
12561# interlibrary dependencies.
12562# 'none' -- dependencies not supported.
12563# `unknown' -- same as none, but documents that we really don't know.
12564# 'pass_all' -- all dependencies passed with no checks.
12565# 'test_compile' -- check by making test program.
12566# 'file_magic [[regex]]' -- check by looking for files in library path
12567# which responds to the $file_magic_cmd with a given extended regex.
12568# If you have `file' or equivalent on your system and you're not sure
12569# whether `pass_all' will *always* work, you probably want this one.
12570
12571case $host_os in
12572aix4* | aix5*)
12573 lt_cv_deplibs_check_method=pass_all
12574 ;;
12575
12576beos*)
12577 lt_cv_deplibs_check_method=pass_all
12578 ;;
12579
12580bsdi[45]*)
12581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12582 lt_cv_file_magic_cmd='/usr/bin/file -L'
12583 lt_cv_file_magic_test_file=/shlib/libc.so
12584 ;;
12585
12586cygwin*)
12587 # func_win32_libid is a shell function defined in ltmain.sh
12588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12589 lt_cv_file_magic_cmd='func_win32_libid'
12590 ;;
12591
12592mingw* | pw32*)
12593 # Base MSYS/MinGW do not provide the 'file' command needed by
12594 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12596 lt_cv_file_magic_cmd='$OBJDUMP -f'
12597 ;;
12598
12599darwin* | rhapsody*)
12600 lt_cv_deplibs_check_method=pass_all
12601 ;;
12602
Reid Spencera773bd52006-08-04 18:18:08 +000012603freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12605 case $host_cpu in
12606 i*86 )
12607 # Not sure whether the presence of OpenBSD here was a mistake.
12608 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012609 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 +000012610 lt_cv_file_magic_cmd=/usr/bin/file
12611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12612 ;;
12613 esac
12614 else
12615 lt_cv_deplibs_check_method=pass_all
12616 fi
12617 ;;
12618
12619gnu*)
12620 lt_cv_deplibs_check_method=pass_all
12621 ;;
12622
12623hpux10.20* | hpux11*)
12624 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012625 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012626 ia64*)
12627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12629 ;;
12630 hppa*64*)
12631 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]'
12632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12633 ;;
12634 *)
12635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12637 ;;
12638 esac
12639 ;;
12640
Reid Spencera773bd52006-08-04 18:18:08 +000012641interix3*)
12642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12644 ;;
12645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646irix5* | irix6* | nonstopux*)
12647 case $LD in
12648 *-32|*"-32 ") libmagic=32-bit;;
12649 *-n32|*"-n32 ") libmagic=N32;;
12650 *-64|*"-64 ") libmagic=64-bit;;
12651 *) libmagic=never-match;;
12652 esac
12653 lt_cv_deplibs_check_method=pass_all
12654 ;;
12655
12656# This must be Linux ELF.
12657linux*)
12658 lt_cv_deplibs_check_method=pass_all
12659 ;;
12660
12661netbsd*)
12662 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12664 else
12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12666 fi
12667 ;;
12668
12669newos6*)
12670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12671 lt_cv_file_magic_cmd=/usr/bin/file
12672 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12673 ;;
12674
12675nto-qnx*)
12676 lt_cv_deplibs_check_method=unknown
12677 ;;
12678
12679openbsd*)
12680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12682 else
12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12684 fi
12685 ;;
12686
12687osf3* | osf4* | osf5*)
12688 lt_cv_deplibs_check_method=pass_all
12689 ;;
12690
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691solaris*)
12692 lt_cv_deplibs_check_method=pass_all
12693 ;;
12694
Reid Spencera773bd52006-08-04 18:18:08 +000012695sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012696 case $host_vendor in
12697 motorola)
12698 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]'
12699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12700 ;;
12701 ncr)
12702 lt_cv_deplibs_check_method=pass_all
12703 ;;
12704 sequent)
12705 lt_cv_file_magic_cmd='/bin/file'
12706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12707 ;;
12708 sni)
12709 lt_cv_file_magic_cmd='/bin/file'
12710 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12711 lt_cv_file_magic_test_file=/lib/libc.so
12712 ;;
12713 siemens)
12714 lt_cv_deplibs_check_method=pass_all
12715 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012716 pc)
12717 lt_cv_deplibs_check_method=pass_all
12718 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012719 esac
12720 ;;
12721
Reid Spencera773bd52006-08-04 18:18:08 +000012722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723 lt_cv_deplibs_check_method=pass_all
12724 ;;
12725esac
12726
12727fi
Reid Spencera773bd52006-08-04 18:18:08 +000012728{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12729echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012730file_magic_cmd=$lt_cv_file_magic_cmd
12731deplibs_check_method=$lt_cv_deplibs_check_method
12732test -z "$deplibs_check_method" && deplibs_check_method=unknown
12733
12734
12735
12736# If no C compiler was specified, use CC.
12737LTCC=${LTCC-"$CC"}
12738
Reid Spencera773bd52006-08-04 18:18:08 +000012739# If no C compiler flags were specified, use CFLAGS.
12740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12741
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742# Allow CC to be a program name with arguments.
12743compiler=$CC
12744
Reid Spencera773bd52006-08-04 18:18:08 +000012745# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012746if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012747 enableval=$enable_libtool_lock;
12748fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012750test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12751
12752# Some flags need to be propagated to the compiler or linker for good
12753# libtool support.
12754case $host in
12755ia64-*-hpux*)
12756 # Find out which ABI we are using.
12757 echo 'int i;' > conftest.$ac_ext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; then
12763 case `/usr/bin/file conftest.$ac_objext` in
12764 *ELF-32*)
12765 HPUX_IA64_MODE="32"
12766 ;;
12767 *ELF-64*)
12768 HPUX_IA64_MODE="64"
12769 ;;
12770 esac
12771 fi
12772 rm -rf conftest*
12773 ;;
12774*-*-irix6*)
12775 # Find out which ABI we are using.
Douglas Gregora0162ff2009-06-23 17:22:05 +000012776 echo '#line 12776 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778 (eval $ac_compile) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; then
12782 if test "$lt_cv_prog_gnu_ld" = yes; then
12783 case `/usr/bin/file conftest.$ac_objext` in
12784 *32-bit*)
12785 LD="${LD-ld} -melf32bsmip"
12786 ;;
12787 *N32*)
12788 LD="${LD-ld} -melf32bmipn32"
12789 ;;
12790 *64-bit*)
12791 LD="${LD-ld} -melf64bmip"
12792 ;;
12793 esac
12794 else
12795 case `/usr/bin/file conftest.$ac_objext` in
12796 *32-bit*)
12797 LD="${LD-ld} -32"
12798 ;;
12799 *N32*)
12800 LD="${LD-ld} -n32"
12801 ;;
12802 *64-bit*)
12803 LD="${LD-ld} -64"
12804 ;;
12805 esac
12806 fi
12807 fi
12808 rm -rf conftest*
12809 ;;
12810
12811x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12812 # Find out which ABI we are using.
12813 echo 'int i;' > conftest.$ac_ext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012819 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820 *32-bit*)
12821 case $host in
12822 x86_64-*linux*)
12823 LD="${LD-ld} -m elf_i386"
12824 ;;
12825 ppc64-*linux*|powerpc64-*linux*)
12826 LD="${LD-ld} -m elf32ppclinux"
12827 ;;
12828 s390x-*linux*)
12829 LD="${LD-ld} -m elf_s390"
12830 ;;
12831 sparc64-*linux*)
12832 LD="${LD-ld} -m elf32_sparc"
12833 ;;
12834 esac
12835 ;;
12836 *64-bit*)
12837 case $host in
12838 x86_64-*linux*)
12839 LD="${LD-ld} -m elf_x86_64"
12840 ;;
12841 ppc*-*linux*|powerpc*-*linux*)
12842 LD="${LD-ld} -m elf64ppc"
12843 ;;
12844 s390*-*linux*)
12845 LD="${LD-ld} -m elf64_s390"
12846 ;;
12847 sparc*-*linux*)
12848 LD="${LD-ld} -m elf64_sparc"
12849 ;;
12850 esac
12851 ;;
12852 esac
12853 fi
12854 rm -rf conftest*
12855 ;;
12856
12857*-*-sco3.2v5*)
12858 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12859 SAVE_CFLAGS="$CFLAGS"
12860 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012861 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12862echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012863if test "${lt_cv_cc_needs_belf+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865else
12866 ac_ext=c
12867ac_cpp='$CPP $CPPFLAGS'
12868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872 cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h. */
12878
Reid Spencera773bd52006-08-04 18:18:08 +000012879int
12880main ()
12881{
12882
12883 ;
12884 return 0;
12885}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012886_ACEOF
12887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012888if { (ac_try="$ac_link"
12889case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892esac
12893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012921 lt_cv_cc_needs_belf=yes
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
Reid Spencera773bd52006-08-04 18:18:08 +000012926 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012927fi
Reid Spencera773bd52006-08-04 18:18:08 +000012928
Bill Wendlingebcceee2009-04-18 11:20:33 +000012929rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930 conftest$ac_exeext conftest.$ac_ext
12931 ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937fi
Reid Spencera773bd52006-08-04 18:18:08 +000012938{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12939echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12942 CFLAGS="$SAVE_CFLAGS"
12943 fi
12944 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012945sparc*-*solaris*)
12946 # Find out which ABI we are using.
12947 echo 'int i;' > conftest.$ac_ext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; then
12953 case `/usr/bin/file conftest.o` in
12954 *64-bit*)
12955 case $lt_cv_prog_gnu_ld in
12956 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12957 *) LD="${LD-ld} -64" ;;
12958 esac
12959 ;;
12960 esac
12961 fi
12962 rm -rf conftest*
12963 ;;
12964
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012965
12966esac
12967
12968need_locks="$enable_libtool_lock"
12969
12970
Reid Spencer2706f8c2004-09-19 23:53:36 +000012971
12972
12973if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12975 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012976 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012977ac_cpp='$CXXCPP $CPPFLAGS'
12978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012981{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12982echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012983if test -z "$CXXCPP"; then
12984 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
John Criswell47fdd832003-07-14 16:52:07 +000012987 # Double quotes because CXXCPP needs to be expanded
12988 for CXXCPP in "$CXX -E" "/lib/cpp"
12989 do
12990 ac_preproc_ok=false
12991for ac_cxx_preproc_warn_flag in '' yes
12992do
12993 # Use a header file that comes with gcc, so configuring glibc
12994 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012997 # On the NeXT, cc -E runs the code through the compiler's parser,
12998 # not just through cpp. "Syntax error" is here to catch this case.
12999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005#ifdef __STDC__
13006# include <limits.h>
13007#else
13008# include <assert.h>
13009#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013010 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013012if { (ac_try="$ac_cpp conftest.$ac_ext"
13013case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013019 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013020 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013024 (exit $ac_status); } >/dev/null; then
13025 if test -s conftest.err; then
13026 ac_cpp_err=$ac_cxx_preproc_warn_flag
13027 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13028 else
13029 ac_cpp_err=
13030 fi
13031else
13032 ac_cpp_err=yes
13033fi
13034if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013035 :
13036else
13037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013038sed 's/^/| /' conftest.$ac_ext >&5
13039
John Criswell47fdd832003-07-14 16:52:07 +000013040 # Broken: fails on valid input.
13041continue
13042fi
Reid Spencera773bd52006-08-04 18:18:08 +000013043
John Criswell47fdd832003-07-14 16:52:07 +000013044rm -f conftest.err conftest.$ac_ext
13045
Reid Spencera773bd52006-08-04 18:18:08 +000013046 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013047 # can be detected and how.
13048 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013054#include <ac_nonexistent.h>
13055_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013056if { (ac_try="$ac_cpp conftest.$ac_ext"
13057case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013063 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013064 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013068 (exit $ac_status); } >/dev/null; then
13069 if test -s conftest.err; then
13070 ac_cpp_err=$ac_cxx_preproc_warn_flag
13071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13072 else
13073 ac_cpp_err=
13074 fi
13075else
13076 ac_cpp_err=yes
13077fi
13078if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013079 # Broken: success on invalid input.
13080continue
13081else
13082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013083sed 's/^/| /' conftest.$ac_ext >&5
13084
John Criswell47fdd832003-07-14 16:52:07 +000013085 # Passes both tests.
13086ac_preproc_ok=:
13087break
13088fi
Reid Spencera773bd52006-08-04 18:18:08 +000013089
John Criswell47fdd832003-07-14 16:52:07 +000013090rm -f conftest.err conftest.$ac_ext
13091
13092done
13093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13094rm -f conftest.err conftest.$ac_ext
13095if $ac_preproc_ok; then
13096 break
John Criswell7a73b802003-06-30 21:59:07 +000013097fi
13098
John Criswell47fdd832003-07-14 16:52:07 +000013099 done
13100 ac_cv_prog_CXXCPP=$CXXCPP
13101
13102fi
13103 CXXCPP=$ac_cv_prog_CXXCPP
13104else
13105 ac_cv_prog_CXXCPP=$CXXCPP
13106fi
Reid Spencera773bd52006-08-04 18:18:08 +000013107{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13108echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013109ac_preproc_ok=false
13110for ac_cxx_preproc_warn_flag in '' yes
13111do
13112 # Use a header file that comes with gcc, so configuring glibc
13113 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13115 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013116 # On the NeXT, cc -E runs the code through the compiler's parser,
13117 # not just through cpp. "Syntax error" is here to catch this case.
13118 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124#ifdef __STDC__
13125# include <limits.h>
13126#else
13127# include <assert.h>
13128#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013129 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013130_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013131if { (ac_try="$ac_cpp conftest.$ac_ext"
13132case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013138 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013139 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_cxx_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13147 else
13148 ac_cpp_err=
13149 fi
13150else
13151 ac_cpp_err=yes
13152fi
13153if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013154 :
13155else
13156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013157sed 's/^/| /' conftest.$ac_ext >&5
13158
John Criswell47fdd832003-07-14 16:52:07 +000013159 # Broken: fails on valid input.
13160continue
13161fi
Reid Spencera773bd52006-08-04 18:18:08 +000013162
John Criswell47fdd832003-07-14 16:52:07 +000013163rm -f conftest.err conftest.$ac_ext
13164
Reid Spencera773bd52006-08-04 18:18:08 +000013165 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013166 # can be detected and how.
13167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013173#include <ac_nonexistent.h>
13174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013175if { (ac_try="$ac_cpp conftest.$ac_ext"
13176case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179esac
13180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013182 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013183 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013187 (exit $ac_status); } >/dev/null; then
13188 if test -s conftest.err; then
13189 ac_cpp_err=$ac_cxx_preproc_warn_flag
13190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13191 else
13192 ac_cpp_err=
13193 fi
13194else
13195 ac_cpp_err=yes
13196fi
13197if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013198 # Broken: success on invalid input.
13199continue
13200else
13201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013202sed 's/^/| /' conftest.$ac_ext >&5
13203
John Criswell47fdd832003-07-14 16:52:07 +000013204 # Passes both tests.
13205ac_preproc_ok=:
13206break
13207fi
Reid Spencera773bd52006-08-04 18:18:08 +000013208
John Criswell47fdd832003-07-14 16:52:07 +000013209rm -f conftest.err conftest.$ac_ext
13210
13211done
13212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13213rm -f conftest.err conftest.$ac_ext
13214if $ac_preproc_ok; then
13215 :
13216else
John Criswell0c38eaf2003-09-10 15:17:25 +000013217 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13218See \`config.log' for more details." >&5
13219echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13220See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013221 { (exit 1); exit 1; }; }
13222fi
13223
Reid Spencera773bd52006-08-04 18:18:08 +000013224ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013225ac_cpp='$CXXCPP $CPPFLAGS'
13226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13229
Reid Spencer2706f8c2004-09-19 23:53:36 +000013230fi
13231
John Criswell47fdd832003-07-14 16:52:07 +000013232
13233ac_ext=f
13234ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13235ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13237if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013238 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 +000013239 do
13240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013244if test "${ac_cv_prog_F77+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 if test -n "$F77"; then
13248 ac_cv_prog_F77="$F77" # Let the user override the test.
13249else
13250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $PATH
13252do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013256 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 +000013257 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13260 fi
13261done
13262done
Reid Spencera773bd52006-08-04 18:18:08 +000013263IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013264
13265fi
13266fi
13267F77=$ac_cv_prog_F77
13268if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013269 { echo "$as_me:$LINENO: result: $F77" >&5
13270echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013271else
Reid Spencera773bd52006-08-04 18:18:08 +000013272 { echo "$as_me:$LINENO: result: no" >&5
13273echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013274fi
13275
Reid Spencera773bd52006-08-04 18:18:08 +000013276
John Criswell47fdd832003-07-14 16:52:07 +000013277 test -n "$F77" && break
13278 done
13279fi
13280if test -z "$F77"; then
13281 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013282 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 +000013283do
13284 # Extract the first word of "$ac_prog", so it can be a program name with args.
13285set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013288if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291 if test -n "$ac_ct_F77"; then
13292 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13293else
13294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295for as_dir in $PATH
13296do
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013300 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 +000013301 ac_cv_prog_ac_ct_F77="$ac_prog"
13302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 break 2
13304 fi
13305done
13306done
Reid Spencera773bd52006-08-04 18:18:08 +000013307IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013308
13309fi
13310fi
13311ac_ct_F77=$ac_cv_prog_ac_ct_F77
13312if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013313 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13314echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013315else
Reid Spencera773bd52006-08-04 18:18:08 +000013316 { echo "$as_me:$LINENO: result: no" >&5
13317echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013318fi
13319
Reid Spencera773bd52006-08-04 18:18:08 +000013320
John Criswell47fdd832003-07-14 16:52:07 +000013321 test -n "$ac_ct_F77" && break
13322done
13323
Reid Spencera773bd52006-08-04 18:18:08 +000013324 if test "x$ac_ct_F77" = x; then
13325 F77=""
13326 else
13327 case $cross_compiling:$ac_tool_warned in
13328yes:)
13329{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13330whose name does not start with the host triplet. If you think this
13331configuration is useful to you, please write to autoconf@gnu.org." >&5
13332echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13333whose name does not start with the host triplet. If you think this
13334configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13335ac_tool_warned=yes ;;
13336esac
13337 F77=$ac_ct_F77
13338 fi
John Criswell47fdd832003-07-14 16:52:07 +000013339fi
13340
13341
13342# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013343echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013344ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013345{ (ac_try="$ac_compiler --version >&5"
13346case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349esac
13350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013355{ (ac_try="$ac_compiler -v >&5"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013365{ (ac_try="$ac_compiler -V >&5"
13366case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013376
13377# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013379ac_save_ext=$ac_ext
13380ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013381{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13382echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013383if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 program main
13388#ifndef __GNUC__
13389 choke me
13390#endif
13391
13392 end
13393_ACEOF
13394rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013395if { (ac_try="$ac_compile"
13396case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013428 ac_compiler_gnu=yes
13429else
13430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013431sed 's/^/| /' conftest.$ac_ext >&5
13432
Reid Spencera773bd52006-08-04 18:18:08 +000013433 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013434fi
Reid Spencera773bd52006-08-04 18:18:08 +000013435
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013437ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13438
13439fi
Reid Spencera773bd52006-08-04 18:18:08 +000013440{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13441echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013442ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013443ac_test_FFLAGS=${FFLAGS+set}
13444ac_save_FFLAGS=$FFLAGS
13445FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013446{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13447echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013448if test "${ac_cv_prog_f77_g+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 FFLAGS=-g
13452cat >conftest.$ac_ext <<_ACEOF
13453 program main
13454
13455 end
13456_ACEOF
13457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013458if { (ac_try="$ac_compile"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013491 ac_cv_prog_f77_g=yes
13492else
13493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013494sed 's/^/| /' conftest.$ac_ext >&5
13495
Reid Spencera773bd52006-08-04 18:18:08 +000013496 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013497fi
Reid Spencera773bd52006-08-04 18:18:08 +000013498
13499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013500
13501fi
Reid Spencera773bd52006-08-04 18:18:08 +000013502{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13503echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013504if test "$ac_test_FFLAGS" = set; then
13505 FFLAGS=$ac_save_FFLAGS
13506elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013508 FFLAGS="-g -O2"
13509 else
13510 FFLAGS="-g"
13511 fi
13512else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013513 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013514 FFLAGS="-O2"
13515 else
13516 FFLAGS=
13517 fi
13518fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013519
13520G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013521ac_ext=c
13522ac_cpp='$CPP $CPPFLAGS'
13523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525ac_compiler_gnu=$ac_cv_c_compiler_gnu
13526
13527
13528
13529# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13530
13531# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013532{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13533echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013534if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536else
13537 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013538 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013539
13540 case $build_os in
13541 msdosdjgpp*)
13542 # On DJGPP, this test can blow up pretty badly due to problems in libc
13543 # (any single argument exceeding 2000 bytes causes a buffer overrun
13544 # during glob expansion). Even if it were fixed, the result of this
13545 # check would be larger than it should be.
13546 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13547 ;;
13548
13549 gnu*)
13550 # Under GNU Hurd, this test is not required because there is
13551 # no limit to the length of command line arguments.
13552 # Libtool will interpret -1 as no limit whatsoever
13553 lt_cv_sys_max_cmd_len=-1;
13554 ;;
13555
13556 cygwin* | mingw*)
13557 # On Win9x/ME, this test blows up -- it succeeds, but takes
13558 # about 5 minutes as the teststring grows exponentially.
13559 # Worse, since 9x/ME are not pre-emptively multitasking,
13560 # you end up with a "frozen" computer, even though with patience
13561 # the test eventually succeeds (with a max line length of 256k).
13562 # Instead, let's just punt: use the minimum linelength reported by
13563 # all of the supported platforms: 8192 (on NT/2K/XP).
13564 lt_cv_sys_max_cmd_len=8192;
13565 ;;
13566
Reid Spencer2706f8c2004-09-19 23:53:36 +000013567 amigaos*)
13568 # On AmigaOS with pdksh, this test takes hours, literally.
13569 # So we just punt and use a minimum line length of 8192.
13570 lt_cv_sys_max_cmd_len=8192;
13571 ;;
13572
Reid Spencera773bd52006-08-04 18:18:08 +000013573 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013574 # This has been around since 386BSD, at least. Likely further.
13575 if test -x /sbin/sysctl; then
13576 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13577 elif test -x /usr/sbin/sysctl; then
13578 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13579 else
Reid Spencera773bd52006-08-04 18:18:08 +000013580 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013581 fi
13582 # And add a safety zone
13583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585 ;;
13586
Reid Spencera773bd52006-08-04 18:18:08 +000013587 interix*)
13588 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13589 lt_cv_sys_max_cmd_len=196608
13590 ;;
13591
13592 osf*)
13593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13595 # nice to cause kernel panics so lets avoid the loop below.
13596 # First set a reasonable default.
13597 lt_cv_sys_max_cmd_len=16384
13598 #
13599 if test -x /sbin/sysconfig; then
13600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13601 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13602 esac
13603 fi
13604 ;;
13605 sco3.2v5*)
13606 lt_cv_sys_max_cmd_len=102400
13607 ;;
13608 sysv5* | sco5v6* | sysv4.2uw2*)
13609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13610 if test -n "$kargmax"; then
13611 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13612 else
13613 lt_cv_sys_max_cmd_len=32768
13614 fi
13615 ;;
13616 *)
John Criswell47fdd832003-07-14 16:52:07 +000013617 # If test is not a shell built-in, we'll probably end up computing a
13618 # maximum length that is only half of the actual maximum length, but
13619 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13621 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13622 = "XX$teststring") >/dev/null 2>&1 &&
13623 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013624 lt_cv_sys_max_cmd_len=$new_result &&
13625 test $i != 17 # 1/2 MB should be enough
13626 do
13627 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013628 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013629 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013630 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013631 # Add a significant safety factor because C++ compilers can tack on massive
13632 # amounts of additional arguments before passing them to the linker.
13633 # It appears as though 1/2 is a usable value.
13634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13635 ;;
13636 esac
13637
13638fi
13639
13640if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013641 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13642echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013643else
Reid Spencera773bd52006-08-04 18:18:08 +000013644 { echo "$as_me:$LINENO: result: none" >&5
13645echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013646fi
13647
13648
13649
13650
13651# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013652{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13653echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013654if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656else
13657
13658# These are sane defaults that work on at least a few old systems.
13659# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13660
13661# Character class describing NM global symbol codes.
13662symcode='[BCDEGRST]'
13663
13664# Regexp to match symbols that can be accessed directly from C.
13665sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13666
John Criswell47fdd832003-07-14 16:52:07 +000013667# Transform an extracted symbol line into a proper C declaration
13668lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13669
13670# Transform an extracted symbol line into symbol name and symbol address
13671lt_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'"
13672
13673# Define system-specific variables.
13674case $host_os in
13675aix*)
13676 symcode='[BCDT]'
13677 ;;
13678cygwin* | mingw* | pw32*)
13679 symcode='[ABCDGISTW]'
13680 ;;
13681hpux*) # Its linker distinguishes data from code symbols
13682 if test "$host_cpu" = ia64; then
13683 symcode='[ABCDEGRST]'
13684 fi
13685 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13686 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'"
13687 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013688linux*)
13689 if test "$host_cpu" = ia64; then
13690 symcode='[ABCDGIRSTW]'
13691 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13692 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'"
13693 fi
13694 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013695irix* | nonstopux*)
13696 symcode='[BCDEGRST]'
13697 ;;
13698osf*)
13699 symcode='[BCDEGQRST]'
13700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013701solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013702 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013704sco3.2v5*)
13705 symcode='[DT]'
13706 ;;
13707sysv4.2uw2*)
13708 symcode='[DT]'
13709 ;;
13710sysv5* | sco5v6* | unixware* | OpenUNIX*)
13711 symcode='[ABDT]'
13712 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013713sysv4)
13714 symcode='[DFNSTU]'
13715 ;;
13716esac
13717
13718# Handle CRLF in mingw tool chain
13719opt_cr=
13720case $build_os in
13721mingw*)
13722 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13723 ;;
13724esac
13725
13726# If we're using GNU nm, then use its standard symbol codes.
13727case `$NM -V 2>&1` in
13728*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013730esac
13731
13732# Try without a prefix undercore, then with it.
13733for ac_symprfx in "" "_"; do
13734
Reid Spencera773bd52006-08-04 18:18:08 +000013735 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13736 symxfrm="\\1 $ac_symprfx\\2 \\2"
13737
John Criswell47fdd832003-07-14 16:52:07 +000013738 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013739 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 +000013740
13741 # Check to see that the pipe works correctly.
13742 pipe_works=no
13743
13744 rm -f conftest*
13745 cat > conftest.$ac_ext <<EOF
13746#ifdef __cplusplus
13747extern "C" {
13748#endif
13749char nm_test_var;
13750void nm_test_func(){}
13751#ifdef __cplusplus
13752}
13753#endif
13754int main(){nm_test_var='a';nm_test_func();return(0);}
13755EOF
13756
13757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758 (eval $ac_compile) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; then
13762 # Now try to grab the symbols.
13763 nlist=conftest.nm
13764 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13765 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && test -s "$nlist"; then
13769 # Try sorting and uniquifying the output.
13770 if sort "$nlist" | uniq > "$nlist"T; then
13771 mv -f "$nlist"T "$nlist"
13772 else
13773 rm -f "$nlist"T
13774 fi
13775
13776 # Make sure that we snagged all the symbols we need.
13777 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13778 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13779 cat <<EOF > conftest.$ac_ext
13780#ifdef __cplusplus
13781extern "C" {
13782#endif
13783
13784EOF
13785 # Now generate the symbol file.
13786 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13787
13788 cat <<EOF >> conftest.$ac_ext
13789#if defined (__STDC__) && __STDC__
13790# define lt_ptr_t void *
13791#else
13792# define lt_ptr_t char *
13793# define const
13794#endif
13795
13796/* The mapping between symbol names and symbols. */
13797const struct {
13798 const char *name;
13799 lt_ptr_t address;
13800}
13801lt_preloaded_symbols[] =
13802{
13803EOF
13804 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13805 cat <<\EOF >> conftest.$ac_ext
13806 {0, (lt_ptr_t) 0}
13807};
13808
13809#ifdef __cplusplus
13810}
13811#endif
13812EOF
13813 # Now try linking the two files.
13814 mv conftest.$ac_objext conftstm.$ac_objext
13815 lt_save_LIBS="$LIBS"
13816 lt_save_CFLAGS="$CFLAGS"
13817 LIBS="conftstm.$ac_objext"
13818 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820 (eval $ac_link) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13824 pipe_works=yes
13825 fi
13826 LIBS="$lt_save_LIBS"
13827 CFLAGS="$lt_save_CFLAGS"
13828 else
13829 echo "cannot find nm_test_func in $nlist" >&5
13830 fi
13831 else
13832 echo "cannot find nm_test_var in $nlist" >&5
13833 fi
13834 else
13835 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13836 fi
13837 else
13838 echo "$progname: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 fi
13841 rm -f conftest* conftst*
13842
13843 # Do not use the global_symbol_pipe unless it works.
13844 if test "$pipe_works" = yes; then
13845 break
13846 else
13847 lt_cv_sys_global_symbol_pipe=
13848 fi
13849done
13850
13851fi
13852
13853if test -z "$lt_cv_sys_global_symbol_pipe"; then
13854 lt_cv_sys_global_symbol_to_cdecl=
13855fi
13856if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013857 { echo "$as_me:$LINENO: result: failed" >&5
13858echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013859else
Reid Spencera773bd52006-08-04 18:18:08 +000013860 { echo "$as_me:$LINENO: result: ok" >&5
13861echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013862fi
13863
Reid Spencera773bd52006-08-04 18:18:08 +000013864{ echo "$as_me:$LINENO: checking for objdir" >&5
13865echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013866if test "${lt_cv_objdir+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868else
13869 rm -f .libs 2>/dev/null
13870mkdir .libs 2>/dev/null
13871if test -d .libs; then
13872 lt_cv_objdir=.libs
13873else
13874 # MS-DOS does not allow filenames that begin with a dot.
13875 lt_cv_objdir=_libs
13876fi
13877rmdir .libs 2>/dev/null
13878fi
Reid Spencera773bd52006-08-04 18:18:08 +000013879{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13880echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013881objdir=$lt_cv_objdir
13882
13883
13884
13885
13886
13887case $host_os in
13888aix3*)
13889 # AIX sometimes has problems with the GCC collect2 program. For some
13890 # reason, if we set the COLLECT_NAMES environment variable, the problems
13891 # vanish in a puff of smoke.
13892 if test "X${COLLECT_NAMES+set}" != Xset; then
13893 COLLECT_NAMES=
13894 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013895 fi
13896 ;;
13897esac
13898
John Criswell47fdd832003-07-14 16:52:07 +000013899# Sed substitution that helps us do robust quoting. It backslashifies
13900# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013901Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013902sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13903
13904# Same as above, but do not quote variable references.
13905double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13906
13907# Sed substitution to delay expansion of an escaped shell variable in a
13908# double_quote_subst'ed string.
13909delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13910
13911# Sed substitution to avoid accidental globbing in evaled expressions
13912no_glob_subst='s/\*/\\\*/g'
13913
13914# Constants:
13915rm="rm -f"
13916
13917# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013918default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013919can_build_shared=yes
13920
Reid Spencera773bd52006-08-04 18:18:08 +000013921# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013922# which needs '.lib').
13923libext=a
13924ltmain="$ac_aux_dir/ltmain.sh"
13925ofile="$default_ofile"
13926with_gnu_ld="$lt_cv_prog_gnu_ld"
13927
13928if test -n "$ac_tool_prefix"; then
13929 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13930set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013933if test "${ac_cv_prog_AR+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936 if test -n "$AR"; then
13937 ac_cv_prog_AR="$AR" # Let the user override the test.
13938else
13939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940for as_dir in $PATH
13941do
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013945 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 +000013946 ac_cv_prog_AR="${ac_tool_prefix}ar"
13947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13949 fi
13950done
13951done
Reid Spencera773bd52006-08-04 18:18:08 +000013952IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013953
13954fi
13955fi
13956AR=$ac_cv_prog_AR
13957if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013958 { echo "$as_me:$LINENO: result: $AR" >&5
13959echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013960else
Reid Spencera773bd52006-08-04 18:18:08 +000013961 { echo "$as_me:$LINENO: result: no" >&5
13962echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013963fi
13964
Reid Spencera773bd52006-08-04 18:18:08 +000013965
John Criswell47fdd832003-07-14 16:52:07 +000013966fi
13967if test -z "$ac_cv_prog_AR"; then
13968 ac_ct_AR=$AR
13969 # Extract the first word of "ar", so it can be a program name with args.
13970set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013973if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
13976 if test -n "$ac_ct_AR"; then
13977 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13978else
13979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980for as_dir in $PATH
13981do
13982 IFS=$as_save_IFS
13983 test -z "$as_dir" && as_dir=.
13984 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013985 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 +000013986 ac_cv_prog_ac_ct_AR="ar"
13987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13988 break 2
13989 fi
13990done
13991done
Reid Spencera773bd52006-08-04 18:18:08 +000013992IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013993
John Criswell47fdd832003-07-14 16:52:07 +000013994fi
13995fi
13996ac_ct_AR=$ac_cv_prog_ac_ct_AR
13997if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013998 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13999echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014000else
Reid Spencera773bd52006-08-04 18:18:08 +000014001 { echo "$as_me:$LINENO: result: no" >&5
14002echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014003fi
14004
Reid Spencera773bd52006-08-04 18:18:08 +000014005 if test "x$ac_ct_AR" = x; then
14006 AR="false"
14007 else
14008 case $cross_compiling:$ac_tool_warned in
14009yes:)
14010{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14011whose name does not start with the host triplet. If you think this
14012configuration is useful to you, please write to autoconf@gnu.org." >&5
14013echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14014whose name does not start with the host triplet. If you think this
14015configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14016ac_tool_warned=yes ;;
14017esac
14018 AR=$ac_ct_AR
14019 fi
John Criswell47fdd832003-07-14 16:52:07 +000014020else
14021 AR="$ac_cv_prog_AR"
14022fi
14023
John Criswell7a73b802003-06-30 21:59:07 +000014024if test -n "$ac_tool_prefix"; then
14025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14026set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014029if test "${ac_cv_prog_RANLIB+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031else
14032 if test -n "$RANLIB"; then
14033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14034else
14035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036for as_dir in $PATH
14037do
14038 IFS=$as_save_IFS
14039 test -z "$as_dir" && as_dir=.
14040 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014041 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 +000014042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14044 break 2
14045 fi
14046done
14047done
Reid Spencera773bd52006-08-04 18:18:08 +000014048IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014049
14050fi
14051fi
14052RANLIB=$ac_cv_prog_RANLIB
14053if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014054 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14055echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014056else
Reid Spencera773bd52006-08-04 18:18:08 +000014057 { echo "$as_me:$LINENO: result: no" >&5
14058echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014059fi
14060
Reid Spencera773bd52006-08-04 18:18:08 +000014061
John Criswell7a73b802003-06-30 21:59:07 +000014062fi
14063if test -z "$ac_cv_prog_RANLIB"; then
14064 ac_ct_RANLIB=$RANLIB
14065 # Extract the first word of "ranlib", so it can be a program name with args.
14066set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014069if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
14072 if test -n "$ac_ct_RANLIB"; then
14073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14074else
14075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076for as_dir in $PATH
14077do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014081 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 +000014082 ac_cv_prog_ac_ct_RANLIB="ranlib"
14083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14085 fi
14086done
14087done
Reid Spencera773bd52006-08-04 18:18:08 +000014088IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014089
John Criswell7a73b802003-06-30 21:59:07 +000014090fi
14091fi
14092ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14093if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014094 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14095echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014096else
Reid Spencera773bd52006-08-04 18:18:08 +000014097 { echo "$as_me:$LINENO: result: no" >&5
14098echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014099fi
14100
Reid Spencera773bd52006-08-04 18:18:08 +000014101 if test "x$ac_ct_RANLIB" = x; then
14102 RANLIB=":"
14103 else
14104 case $cross_compiling:$ac_tool_warned in
14105yes:)
14106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14107whose name does not start with the host triplet. If you think this
14108configuration is useful to you, please write to autoconf@gnu.org." >&5
14109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14110whose name does not start with the host triplet. If you think this
14111configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14112ac_tool_warned=yes ;;
14113esac
14114 RANLIB=$ac_ct_RANLIB
14115 fi
John Criswell7a73b802003-06-30 21:59:07 +000014116else
14117 RANLIB="$ac_cv_prog_RANLIB"
14118fi
14119
14120if test -n "$ac_tool_prefix"; then
14121 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14122set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014125if test "${ac_cv_prog_STRIP+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127else
14128 if test -n "$STRIP"; then
14129 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14130else
14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014137 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 +000014138 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14141 fi
14142done
14143done
Reid Spencera773bd52006-08-04 18:18:08 +000014144IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014145
14146fi
14147fi
14148STRIP=$ac_cv_prog_STRIP
14149if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014150 { echo "$as_me:$LINENO: result: $STRIP" >&5
14151echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014152else
Reid Spencera773bd52006-08-04 18:18:08 +000014153 { echo "$as_me:$LINENO: result: no" >&5
14154echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014155fi
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157
John Criswell7a73b802003-06-30 21:59:07 +000014158fi
14159if test -z "$ac_cv_prog_STRIP"; then
14160 ac_ct_STRIP=$STRIP
14161 # Extract the first word of "strip", so it can be a program name with args.
14162set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014165if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168 if test -n "$ac_ct_STRIP"; then
14169 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14170else
14171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172for as_dir in $PATH
14173do
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014177 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 +000014178 ac_cv_prog_ac_ct_STRIP="strip"
14179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14181 fi
14182done
14183done
Reid Spencera773bd52006-08-04 18:18:08 +000014184IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014185
John Criswell7a73b802003-06-30 21:59:07 +000014186fi
14187fi
14188ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14189if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014190 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14191echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014192else
Reid Spencera773bd52006-08-04 18:18:08 +000014193 { echo "$as_me:$LINENO: result: no" >&5
14194echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014195fi
14196
Reid Spencera773bd52006-08-04 18:18:08 +000014197 if test "x$ac_ct_STRIP" = x; then
14198 STRIP=":"
14199 else
14200 case $cross_compiling:$ac_tool_warned in
14201yes:)
14202{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14203whose name does not start with the host triplet. If you think this
14204configuration is useful to you, please write to autoconf@gnu.org." >&5
14205echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14206whose name does not start with the host triplet. If you think this
14207configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14208ac_tool_warned=yes ;;
14209esac
14210 STRIP=$ac_ct_STRIP
14211 fi
John Criswell7a73b802003-06-30 21:59:07 +000014212else
14213 STRIP="$ac_cv_prog_STRIP"
14214fi
14215
14216
John Criswell7a73b802003-06-30 21:59:07 +000014217old_CC="$CC"
14218old_CFLAGS="$CFLAGS"
14219
14220# Set sane defaults for various variables
14221test -z "$AR" && AR=ar
14222test -z "$AR_FLAGS" && AR_FLAGS=cru
14223test -z "$AS" && AS=as
14224test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014225test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014226test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014227test -z "$DLLTOOL" && DLLTOOL=dlltool
14228test -z "$LD" && LD=ld
14229test -z "$LN_S" && LN_S="ln -s"
14230test -z "$MAGIC_CMD" && MAGIC_CMD=file
14231test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014232test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014233test -z "$OBJDUMP" && OBJDUMP=objdump
14234test -z "$RANLIB" && RANLIB=:
14235test -z "$STRIP" && STRIP=:
14236test -z "$ac_objext" && ac_objext=o
14237
John Criswell7a73b802003-06-30 21:59:07 +000014238# Determine commands to create old-style static archives.
14239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14240old_postinstall_cmds='chmod 644 $oldlib'
14241old_postuninstall_cmds=
14242
14243if test -n "$RANLIB"; then
14244 case $host_os in
14245 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014247 ;;
14248 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014250 ;;
14251 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014253fi
14254
Reid Spencera773bd52006-08-04 18:18:08 +000014255for cc_temp in $compiler""; do
14256 case $cc_temp in
14257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14259 \-*) ;;
14260 *) break;;
14261 esac
14262done
14263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14264
Reid Spencer2706f8c2004-09-19 23:53:36 +000014265
John Criswell47fdd832003-07-14 16:52:07 +000014266# Only perform the check for file, if the check method requires it
14267case $deplibs_check_method in
14268file_magic*)
14269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014270 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14271echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014272if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014274else
John Criswell47fdd832003-07-14 16:52:07 +000014275 case $MAGIC_CMD in
14276[\\/*] | ?:[\\/]*)
14277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14278 ;;
14279*)
14280 lt_save_MAGIC_CMD="$MAGIC_CMD"
14281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14283 for ac_dir in $ac_dummy; do
14284 IFS="$lt_save_ifs"
14285 test -z "$ac_dir" && ac_dir=.
14286 if test -f $ac_dir/${ac_tool_prefix}file; then
14287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14288 if test -n "$file_magic_test_file"; then
14289 case $deplibs_check_method in
14290 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14294 $EGREP "$file_magic_regex" > /dev/null; then
14295 :
14296 else
14297 cat <<EOF 1>&2
14298
14299*** Warning: the command libtool uses to detect shared libraries,
14300*** $file_magic_cmd, produces output that libtool cannot recognize.
14301*** The result is that libtool may fail to recognize shared libraries
14302*** as such. This will affect the creation of libtool libraries that
14303*** depend on shared libraries, but programs linked with such libtool
14304*** libraries will work regardless of this problem. Nevertheless, you
14305*** may want to report the problem to your system manager and/or to
14306*** bug-libtool@gnu.org
14307
14308EOF
14309 fi ;;
14310 esac
14311 fi
14312 break
14313 fi
14314 done
14315 IFS="$lt_save_ifs"
14316 MAGIC_CMD="$lt_save_MAGIC_CMD"
14317 ;;
14318esac
John Criswell7a73b802003-06-30 21:59:07 +000014319fi
John Criswell7a73b802003-06-30 21:59:07 +000014320
John Criswell47fdd832003-07-14 16:52:07 +000014321MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14322if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014323 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14324echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014325else
Reid Spencera773bd52006-08-04 18:18:08 +000014326 { echo "$as_me:$LINENO: result: no" >&5
14327echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014328fi
John Criswell7a73b802003-06-30 21:59:07 +000014329
John Criswell47fdd832003-07-14 16:52:07 +000014330if test -z "$lt_cv_path_MAGIC_CMD"; then
14331 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014332 { echo "$as_me:$LINENO: checking for file" >&5
14333echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337 case $MAGIC_CMD in
14338[\\/*] | ?:[\\/]*)
14339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14340 ;;
14341*)
14342 lt_save_MAGIC_CMD="$MAGIC_CMD"
14343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14345 for ac_dir in $ac_dummy; do
14346 IFS="$lt_save_ifs"
14347 test -z "$ac_dir" && ac_dir=.
14348 if test -f $ac_dir/file; then
14349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14350 if test -n "$file_magic_test_file"; then
14351 case $deplibs_check_method in
14352 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14356 $EGREP "$file_magic_regex" > /dev/null; then
14357 :
14358 else
14359 cat <<EOF 1>&2
14360
14361*** Warning: the command libtool uses to detect shared libraries,
14362*** $file_magic_cmd, produces output that libtool cannot recognize.
14363*** The result is that libtool may fail to recognize shared libraries
14364*** as such. This will affect the creation of libtool libraries that
14365*** depend on shared libraries, but programs linked with such libtool
14366*** libraries will work regardless of this problem. Nevertheless, you
14367*** may want to report the problem to your system manager and/or to
14368*** bug-libtool@gnu.org
14369
14370EOF
14371 fi ;;
14372 esac
14373 fi
14374 break
14375 fi
14376 done
14377 IFS="$lt_save_ifs"
14378 MAGIC_CMD="$lt_save_MAGIC_CMD"
14379 ;;
14380esac
14381fi
14382
14383MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14384if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014385 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14386echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014387else
Reid Spencera773bd52006-08-04 18:18:08 +000014388 { echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014390fi
14391
14392 else
14393 MAGIC_CMD=:
14394 fi
14395fi
14396
14397 fi
14398 ;;
14399esac
14400
Reid Spencer17795972004-11-18 09:47:37 +000014401enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014402enable_win32_dll=no
14403
Reid Spencera773bd52006-08-04 18:18:08 +000014404# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014405if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014406 enableval=$enable_libtool_lock;
14407fi
John Criswell47fdd832003-07-14 16:52:07 +000014408
John Criswell47fdd832003-07-14 16:52:07 +000014409test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14410
John Criswell7a73b802003-06-30 21:59:07 +000014411
Reid Spencera773bd52006-08-04 18:18:08 +000014412# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014413if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014414 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014415else
14416 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014417fi
14418
John Criswell7a73b802003-06-30 21:59:07 +000014419test -z "$pic_mode" && pic_mode=default
14420
John Criswell47fdd832003-07-14 16:52:07 +000014421# Use C for the default configuration in the libtool script
14422tagname=
14423lt_save_CC="$CC"
14424ac_ext=c
14425ac_cpp='$CPP $CPPFLAGS'
14426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430
14431# Source file extension for C test sources.
14432ac_ext=c
14433
14434# Object file extension for compiled C test sources.
14435objext=o
14436objext=$objext
14437
14438# Code to be used in simple compile tests
14439lt_simple_compile_test_code="int some_variable = 0;\n"
14440
14441# Code to be used in simple link tests
14442lt_simple_link_test_code='int main(){return(0);}\n'
14443
14444
14445# If no C compiler was specified, use CC.
14446LTCC=${LTCC-"$CC"}
14447
Reid Spencera773bd52006-08-04 18:18:08 +000014448# If no C compiler flags were specified, use CFLAGS.
14449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14450
John Criswell47fdd832003-07-14 16:52:07 +000014451# Allow CC to be a program name with arguments.
14452compiler=$CC
14453
14454
Reid Spencera773bd52006-08-04 18:18:08 +000014455# save warnings/boilerplate of simple test code
14456ac_outfile=conftest.$ac_objext
14457printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14458eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14459_lt_compiler_boilerplate=`cat conftest.err`
14460$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014461
Reid Spencera773bd52006-08-04 18:18:08 +000014462ac_outfile=conftest.$ac_objext
14463printf "$lt_simple_link_test_code" >conftest.$ac_ext
14464eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14465_lt_linker_boilerplate=`cat conftest.err`
14466$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014467
14468
John Criswell47fdd832003-07-14 16:52:07 +000014469
14470lt_prog_compiler_no_builtin_flag=
14471
14472if test "$GCC" = yes; then
14473 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14474
Reid Spencer2706f8c2004-09-19 23:53:36 +000014475
Reid Spencera773bd52006-08-04 18:18:08 +000014476{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14477echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014478if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 lt_cv_prog_compiler_rtti_exceptions=no
14482 ac_outfile=conftest.$ac_objext
14483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14484 lt_compiler_flag="-fno-rtti -fno-exceptions"
14485 # Insert the option either (1) after the last *FLAGS variable, or
14486 # (2) before a word containing "conftest.", or (3) at the end.
14487 # Note that $ac_compile itself does not contain backslashes and begins
14488 # with a dollar sign (not a hyphen), so the echo should work correctly.
14489 # The option is referenced via a variable to avoid confusing sed.
14490 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000014494 (eval echo "\"\$as_me:14494: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014495 (eval "$lt_compile" 2>conftest.err)
14496 ac_status=$?
14497 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000014498 echo "$as_me:14498: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014499 if (exit $ac_status) && test -s "$ac_outfile"; then
14500 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014501 # So say no if there are warnings other than the usual output.
14502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014505 lt_cv_prog_compiler_rtti_exceptions=yes
14506 fi
14507 fi
14508 $rm conftest*
14509
14510fi
Reid Spencera773bd52006-08-04 18:18:08 +000014511{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14512echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014513
14514if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14516else
14517 :
14518fi
14519
14520fi
14521
14522lt_prog_compiler_wl=
14523lt_prog_compiler_pic=
14524lt_prog_compiler_static=
14525
Reid Spencera773bd52006-08-04 18:18:08 +000014526{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14527echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014528
14529 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014530 lt_prog_compiler_wl='-Wl,'
14531 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014532
14533 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014534 aix*)
14535 # All AIX code is PIC.
14536 if test "$host_cpu" = ia64; then
14537 # AIX 5 now supports IA64 processor
14538 lt_prog_compiler_static='-Bstatic'
14539 fi
John Criswell7a73b802003-06-30 21:59:07 +000014540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014541
John Criswell7a73b802003-06-30 21:59:07 +000014542 amigaos*)
14543 # FIXME: we need at least 68020 code to build shared libraries, but
14544 # adding the `-m68020' flag to GCC prevents building anything better,
14545 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014546 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014548
14549 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014550 # PIC is the default for these OSes.
14551 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014552
14553 mingw* | pw32* | os2*)
14554 # This hack is so that the source file can tell whether it is being
14555 # built for inclusion in a dll (and should export symbols for example).
14556 lt_prog_compiler_pic='-DDLL_EXPORT'
14557 ;;
14558
John Criswell7a73b802003-06-30 21:59:07 +000014559 darwin* | rhapsody*)
14560 # PIC is the default on this platform
14561 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014562 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014563 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014564
Reid Spencera773bd52006-08-04 18:18:08 +000014565 interix3*)
14566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14567 # Instead, we relocate shared libraries at runtime.
14568 ;;
14569
John Criswell47fdd832003-07-14 16:52:07 +000014570 msdosdjgpp*)
14571 # Just because we use GCC doesn't mean we suddenly get shared libraries
14572 # on systems that don't support them.
14573 lt_prog_compiler_can_build_shared=no
14574 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014575 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014576
John Criswell7a73b802003-06-30 21:59:07 +000014577 sysv4*MP*)
14578 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014579 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014580 fi
14581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014582
14583 hpux*)
14584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14585 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014586 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014587 hppa*64*|ia64*)
14588 # +Z the default
14589 ;;
14590 *)
14591 lt_prog_compiler_pic='-fPIC'
14592 ;;
14593 esac
14594 ;;
14595
John Criswell7a73b802003-06-30 21:59:07 +000014596 *)
John Criswell47fdd832003-07-14 16:52:07 +000014597 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014598 ;;
14599 esac
14600 else
John Criswell47fdd832003-07-14 16:52:07 +000014601 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014602 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014603 aix*)
14604 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014605 if test "$host_cpu" = ia64; then
14606 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014607 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014608 else
John Criswell47fdd832003-07-14 16:52:07 +000014609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014610 fi
14611 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014612 darwin*)
14613 # PIC is the default on this platform
14614 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014615 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014616 xlc*)
14617 lt_prog_compiler_pic='-qnocommon'
14618 lt_prog_compiler_wl='-Wl,'
14619 ;;
14620 esac
14621 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014622
John Criswell47fdd832003-07-14 16:52:07 +000014623 mingw* | pw32* | os2*)
14624 # This hack is so that the source file can tell whether it is being
14625 # built for inclusion in a dll (and should export symbols for example).
14626 lt_prog_compiler_pic='-DDLL_EXPORT'
14627 ;;
14628
John Criswell7a73b802003-06-30 21:59:07 +000014629 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014630 lt_prog_compiler_wl='-Wl,'
14631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14632 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014633 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014634 hppa*64*|ia64*)
14635 # +Z the default
14636 ;;
14637 *)
14638 lt_prog_compiler_pic='+Z'
14639 ;;
14640 esac
14641 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14642 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014643 ;;
14644
John Criswell47fdd832003-07-14 16:52:07 +000014645 irix5* | irix6* | nonstopux*)
14646 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014647 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014648 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014649 ;;
14650
14651 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014652 lt_prog_compiler_pic='-KPIC'
14653 lt_prog_compiler_static='-Bstatic'
14654 ;;
14655
14656 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014657 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014658 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014659 lt_prog_compiler_wl='-Wl,'
14660 lt_prog_compiler_pic='-KPIC'
14661 lt_prog_compiler_static='-static'
14662 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014663 pgcc* | pgf77* | pgf90* | pgf95*)
14664 # Portland Group compilers (*not* the Pentium gcc compiler,
14665 # which looks to be a dead project)
14666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-fpic'
14668 lt_prog_compiler_static='-Bstatic'
14669 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014670 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014671 lt_prog_compiler_wl='-Wl,'
14672 # All Alpha code is PIC.
14673 lt_prog_compiler_static='-non_shared'
14674 ;;
14675 esac
John Criswell7a73b802003-06-30 21:59:07 +000014676 ;;
14677
14678 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014679 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014680 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014681 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014682 ;;
14683
John Criswell7a73b802003-06-30 21:59:07 +000014684 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014685 lt_prog_compiler_pic='-KPIC'
14686 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014687 case $cc_basename in
14688 f77* | f90* | f95*)
14689 lt_prog_compiler_wl='-Qoption ld ';;
14690 *)
14691 lt_prog_compiler_wl='-Wl,';;
14692 esac
John Criswell7a73b802003-06-30 21:59:07 +000014693 ;;
14694
14695 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014696 lt_prog_compiler_wl='-Qoption ld '
14697 lt_prog_compiler_pic='-PIC'
14698 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014699 ;;
14700
Reid Spencera773bd52006-08-04 18:18:08 +000014701 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014702 lt_prog_compiler_wl='-Wl,'
14703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014705 ;;
14706
14707 sysv4*MP*)
14708 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014709 lt_prog_compiler_pic='-Kconform_pic'
14710 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014711 fi
14712 ;;
14713
Reid Spencera773bd52006-08-04 18:18:08 +000014714 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14715 lt_prog_compiler_wl='-Wl,'
14716 lt_prog_compiler_pic='-KPIC'
14717 lt_prog_compiler_static='-Bstatic'
14718 ;;
14719
14720 unicos*)
14721 lt_prog_compiler_wl='-Wl,'
14722 lt_prog_compiler_can_build_shared=no
14723 ;;
14724
John Criswell47fdd832003-07-14 16:52:07 +000014725 uts4*)
14726 lt_prog_compiler_pic='-pic'
14727 lt_prog_compiler_static='-Bstatic'
14728 ;;
14729
John Criswell7a73b802003-06-30 21:59:07 +000014730 *)
John Criswell47fdd832003-07-14 16:52:07 +000014731 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014732 ;;
14733 esac
14734 fi
14735
Reid Spencera773bd52006-08-04 18:18:08 +000014736{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14737echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014738
John Criswell47fdd832003-07-14 16:52:07 +000014739#
14740# Check to make sure the PIC flag actually works.
14741#
14742if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014743
Reid Spencera773bd52006-08-04 18:18:08 +000014744{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14745echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014746if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748else
John Criswell47fdd832003-07-14 16:52:07 +000014749 lt_prog_compiler_pic_works=no
14750 ac_outfile=conftest.$ac_objext
14751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14752 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14753 # Insert the option either (1) after the last *FLAGS variable, or
14754 # (2) before a word containing "conftest.", or (3) at the end.
14755 # Note that $ac_compile itself does not contain backslashes and begins
14756 # with a dollar sign (not a hyphen), so the echo should work correctly.
14757 # The option is referenced via a variable to avoid confusing sed.
14758 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000014762 (eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014763 (eval "$lt_compile" 2>conftest.err)
14764 ac_status=$?
14765 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000014766 echo "$as_me:14766: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014767 if (exit $ac_status) && test -s "$ac_outfile"; then
14768 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014769 # So say no if there are warnings other than the usual output.
14770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014773 lt_prog_compiler_pic_works=yes
14774 fi
14775 fi
14776 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014777
John Criswell47fdd832003-07-14 16:52:07 +000014778fi
Reid Spencera773bd52006-08-04 18:18:08 +000014779{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14780echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014781
John Criswell47fdd832003-07-14 16:52:07 +000014782if test x"$lt_prog_compiler_pic_works" = xyes; then
14783 case $lt_prog_compiler_pic in
14784 "" | " "*) ;;
14785 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14786 esac
John Criswell7a73b802003-06-30 21:59:07 +000014787else
John Criswell47fdd832003-07-14 16:52:07 +000014788 lt_prog_compiler_pic=
14789 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014790fi
14791
John Criswell7a73b802003-06-30 21:59:07 +000014792fi
Reid Spencera773bd52006-08-04 18:18:08 +000014793case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014794 # For platforms which do not support PIC, -DPIC is meaningless:
14795 *djgpp*)
14796 lt_prog_compiler_pic=
14797 ;;
14798 *)
14799 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14800 ;;
14801esac
John Criswell7a73b802003-06-30 21:59:07 +000014802
Reid Spencera773bd52006-08-04 18:18:08 +000014803#
14804# Check to make sure the static flag actually works.
14805#
14806wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14807{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14808echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14809if test "${lt_prog_compiler_static_works+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
14812 lt_prog_compiler_static_works=no
14813 save_LDFLAGS="$LDFLAGS"
14814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14815 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14817 # The linker can only warn and ignore the option if not recognized
14818 # So say no if there are warnings
14819 if test -s conftest.err; then
14820 # Append any errors to the config.log.
14821 cat conftest.err 1>&5
14822 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14824 if diff conftest.exp conftest.er2 >/dev/null; then
14825 lt_prog_compiler_static_works=yes
14826 fi
14827 else
14828 lt_prog_compiler_static_works=yes
14829 fi
14830 fi
14831 $rm conftest*
14832 LDFLAGS="$save_LDFLAGS"
14833
14834fi
14835{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14836echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14837
14838if test x"$lt_prog_compiler_static_works" = xyes; then
14839 :
14840else
14841 lt_prog_compiler_static=
14842fi
14843
14844
14845{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14846echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014847if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
John Criswell47fdd832003-07-14 16:52:07 +000014850 lt_cv_prog_compiler_c_o=no
14851 $rm -r conftest 2>/dev/null
14852 mkdir conftest
14853 cd conftest
14854 mkdir out
14855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014856
John Criswell47fdd832003-07-14 16:52:07 +000014857 lt_compiler_flag="-o out/conftest2.$ac_objext"
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000014866 (eval echo "\"\$as_me:14866: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014867 (eval "$lt_compile" 2>out/conftest.err)
14868 ac_status=$?
14869 cat out/conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000014870 echo "$as_me:14870: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14872 then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014875 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014878 lt_cv_prog_compiler_c_o=yes
14879 fi
14880 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014881 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014882 $rm conftest*
14883 # SGI C++ compiler will create directory out/ii_files/ for
14884 # template instantiation
14885 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14886 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014887 cd ..
14888 rmdir conftest
14889 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014890
14891fi
Reid Spencera773bd52006-08-04 18:18:08 +000014892{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14893echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014894
John Criswell7a73b802003-06-30 21:59:07 +000014895
John Criswell7a73b802003-06-30 21:59:07 +000014896hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014897if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014898 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014899 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14900echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014901 hard_links=yes
14902 $rm conftest*
14903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14904 touch conftest.a
14905 ln conftest.a conftest.b 2>&5 || hard_links=no
14906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014907 { echo "$as_me:$LINENO: result: $hard_links" >&5
14908echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014909 if test "$hard_links" = no; then
14910 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14911echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14912 need_locks=warn
14913 fi
14914else
14915 need_locks=no
14916fi
John Criswell7a73b802003-06-30 21:59:07 +000014917
Reid Spencera773bd52006-08-04 18:18:08 +000014918{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14919echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014920
14921 runpath_var=
14922 allow_undefined_flag=
14923 enable_shared_with_static_runtimes=no
14924 archive_cmds=
14925 archive_expsym_cmds=
14926 old_archive_From_new_cmds=
14927 old_archive_from_expsyms_cmds=
14928 export_dynamic_flag_spec=
14929 whole_archive_flag_spec=
14930 thread_safe_flag_spec=
14931 hardcode_libdir_flag_spec=
14932 hardcode_libdir_flag_spec_ld=
14933 hardcode_libdir_separator=
14934 hardcode_direct=no
14935 hardcode_minus_L=no
14936 hardcode_shlibpath_var=unsupported
14937 link_all_deplibs=unknown
14938 hardcode_automatic=no
14939 module_cmds=
14940 module_expsym_cmds=
14941 always_export_symbols=no
14942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14943 # include_expsyms should be a list of space-separated symbols to be *always*
14944 # included in the symbol list
14945 include_expsyms=
14946 # exclude_expsyms can be an extended regexp of symbols to exclude
14947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14949 # as well as any symbol that contains `d'.
14950 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14952 # platforms (ab)use it in PIC code, but their linkers get confused if
14953 # the symbol is explicitly referenced. Since portable code cannot
14954 # rely on this symbol name, it's probably fine to never include it in
14955 # preloaded symbol tables.
14956 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014957 # Just being paranoid about ensuring that cc_basename is set.
14958 for cc_temp in $compiler""; do
14959 case $cc_temp in
14960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14962 \-*) ;;
14963 *) break;;
14964 esac
14965done
14966cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014967
14968 case $host_os in
14969 cygwin* | mingw* | pw32*)
14970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14971 # When not using gcc, we currently assume that we are using
14972 # Microsoft Visual C++.
14973 if test "$GCC" != yes; then
14974 with_gnu_ld=no
14975 fi
14976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014977 interix*)
14978 # we just hope/assume this is gcc and not c89 (= MSVC++)
14979 with_gnu_ld=yes
14980 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014981 openbsd*)
14982 with_gnu_ld=no
14983 ;;
14984 esac
14985
14986 ld_shlibs=yes
14987 if test "$with_gnu_ld" = yes; then
14988 # If archive_cmds runs LD, not CC, wlarc should be empty
14989 wlarc='${wl}'
14990
Reid Spencera773bd52006-08-04 18:18:08 +000014991 # Set some defaults for GNU ld with shared library support. These
14992 # are reset later if shared libraries are not supported. Putting them
14993 # here allows them to be overridden if necessary.
14994 runpath_var=LD_RUN_PATH
14995 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14996 export_dynamic_flag_spec='${wl}--export-dynamic'
14997 # ancient GNU ld didn't support --whole-archive et. al.
14998 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15000 else
15001 whole_archive_flag_spec=
15002 fi
15003 supports_anon_versioning=no
15004 case `$LD -v 2>/dev/null` in
15005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15008 *\ 2.11.*) ;; # other 2.11 versions
15009 *) supports_anon_versioning=yes ;;
15010 esac
15011
John Criswell47fdd832003-07-14 16:52:07 +000015012 # See if GNU ld supports shared libraries.
15013 case $host_os in
15014 aix3* | aix4* | aix5*)
15015 # On AIX/PPC, the GNU linker is very broken
15016 if test "$host_cpu" != ia64; then
15017 ld_shlibs=no
15018 cat <<EOF 1>&2
15019
15020*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15021*** to be unable to reliably create shared libraries on AIX.
15022*** Therefore, libtool is disabling shared libraries support. If you
15023*** really care for shared libraries, you may want to modify your PATH
15024*** so that a non-GNU linker is found, and then restart.
15025
15026EOF
15027 fi
15028 ;;
15029
15030 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015031 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 +000015032 hardcode_libdir_flag_spec='-L$libdir'
15033 hardcode_minus_L=yes
15034
15035 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15036 # that the semantics of dynamic libraries on AmigaOS, at least up
15037 # to version 4, is to share data among multiple programs linked
15038 # with the same dynamic library. Since this doesn't match the
15039 # behavior of shared libraries on other platforms, we can't use
15040 # them.
15041 ld_shlibs=no
15042 ;;
15043
15044 beos*)
15045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15046 allow_undefined_flag=unsupported
15047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15048 # support --undefined. This deserves some investigation. FIXME
15049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050 else
15051 ld_shlibs=no
15052 fi
15053 ;;
15054
15055 cygwin* | mingw* | pw32*)
15056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15057 # as there is no search path for DLLs.
15058 hardcode_libdir_flag_spec='-L$libdir'
15059 allow_undefined_flag=unsupported
15060 always_export_symbols=no
15061 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015062 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 +000015063
15064 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015065 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 +000015066 # If the export-symbols file already is a .def file (1st line
15067 # is EXPORTS), use it as is; otherwise, prepend...
15068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15069 cp $export_symbols $output_objdir/$soname.def;
15070 else
15071 echo EXPORTS > $output_objdir/$soname.def;
15072 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015073 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015074 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15075 else
15076 ld_shlibs=no
15077 fi
15078 ;;
15079
15080 interix3*)
15081 hardcode_direct=no
15082 hardcode_shlibpath_var=no
15083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15084 export_dynamic_flag_spec='${wl}-E'
15085 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15086 # Instead, shared libraries are loaded at an image base (0x10000000 by
15087 # default) and relocated if they conflict, which is a slow very memory
15088 # consuming and fragmenting process. To avoid this, we pick a random,
15089 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15090 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15092 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'
15093 ;;
15094
15095 linux*)
15096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097 tmp_addflag=
15098 case $cc_basename,$host_cpu in
15099 pgcc*) # Portland Group C compiler
15100 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'
15101 tmp_addflag=' $pic_flag'
15102 ;;
15103 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15104 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'
15105 tmp_addflag=' $pic_flag -Mnomain' ;;
15106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15107 tmp_addflag=' -i_dynamic' ;;
15108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15109 tmp_addflag=' -i_dynamic -nofor_main' ;;
15110 ifc* | ifort*) # Intel Fortran compiler
15111 tmp_addflag=' -nofor_main' ;;
15112 esac
15113 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114
15115 if test $supports_anon_versioning = yes; then
15116 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15118 $echo "local: *; };" >> $output_objdir/$libname.ver~
15119 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15120 fi
John Criswell47fdd832003-07-14 16:52:07 +000015121 else
15122 ld_shlibs=no
15123 fi
15124 ;;
15125
15126 netbsd*)
15127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15129 wlarc=
15130 else
15131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15133 fi
15134 ;;
15135
Reid Spencera773bd52006-08-04 18:18:08 +000015136 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015137 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15138 ld_shlibs=no
15139 cat <<EOF 1>&2
15140
15141*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15142*** create shared libraries on Solaris systems. Therefore, libtool
15143*** is disabling shared libraries support. We urge you to upgrade GNU
15144*** binutils to release 2.9.1 or newer. Another option is to modify
15145*** your PATH or compiler configuration so that the native linker is
15146*** used, and then restart.
15147
15148EOF
15149 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15152 else
15153 ld_shlibs=no
15154 fi
15155 ;;
15156
Reid Spencera773bd52006-08-04 18:18:08 +000015157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15158 case `$LD -v 2>&1` in
15159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15160 ld_shlibs=no
15161 cat <<_LT_EOF 1>&2
15162
15163*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15164*** reliably create shared libraries on SCO systems. Therefore, libtool
15165*** is disabling shared libraries support. We urge you to upgrade GNU
15166*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15167*** your PATH or compiler configuration so that the native linker is
15168*** used, and then restart.
15169
15170_LT_EOF
15171 ;;
15172 *)
15173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15174 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15177 else
15178 ld_shlibs=no
15179 fi
15180 ;;
15181 esac
15182 ;;
15183
John Criswell47fdd832003-07-14 16:52:07 +000015184 sunos4*)
15185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15186 wlarc=
15187 hardcode_direct=yes
15188 hardcode_shlibpath_var=no
15189 ;;
15190
15191 *)
15192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15195 else
15196 ld_shlibs=no
15197 fi
15198 ;;
15199 esac
15200
Reid Spencera773bd52006-08-04 18:18:08 +000015201 if test "$ld_shlibs" = no; then
15202 runpath_var=
15203 hardcode_libdir_flag_spec=
15204 export_dynamic_flag_spec=
15205 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015206 fi
15207 else
15208 # PORTME fill in a description of your system's linker (not GNU ld)
15209 case $host_os in
15210 aix3*)
15211 allow_undefined_flag=unsupported
15212 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015213 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 +000015214 # Note: this linker hardcodes the directories in LIBPATH if there
15215 # are no directories specified by -L.
15216 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015218 # Neither direct hardcoding nor static linking is supported with a
15219 # broken collect2.
15220 hardcode_direct=unsupported
15221 fi
15222 ;;
15223
15224 aix4* | aix5*)
15225 if test "$host_cpu" = ia64; then
15226 # On IA64, the linker does run time linking by default, so we don't
15227 # have to do anything special.
15228 aix_use_runtimelinking=no
15229 exp_sym_flag='-Bexport'
15230 no_entry_flag=""
15231 else
15232 # If we're using GNU nm, then we don't want the "-C" option.
15233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15235 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'
15236 else
15237 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'
15238 fi
15239 aix_use_runtimelinking=no
15240
15241 # Test if we are trying to use run time linking or normal
15242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15243 # need to do runtime linking.
15244 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15245 for ld_flag in $LDFLAGS; do
15246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15247 aix_use_runtimelinking=yes
15248 break
15249 fi
15250 done
Reid Spencera773bd52006-08-04 18:18:08 +000015251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015252 esac
15253
15254 exp_sym_flag='-bexport'
15255 no_entry_flag='-bnoentry'
15256 fi
15257
15258 # When large executables or shared objects are built, AIX ld can
15259 # have problems creating the table of contents. If linking a library
15260 # or program results in "error TOC overflow" add -mminimal-toc to
15261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263
15264 archive_cmds=''
15265 hardcode_direct=yes
15266 hardcode_libdir_separator=':'
15267 link_all_deplibs=yes
15268
15269 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015270 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" && \
15275 strings "$collect2name" | grep resolve_lib_name >/dev/null
15276 then
15277 # We have reworked collect2
15278 hardcode_direct=yes
15279 else
15280 # We have old collect2
15281 hardcode_direct=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L=yes
15286 hardcode_libdir_flag_spec='-L$libdir'
15287 hardcode_libdir_separator=
15288 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015289 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015290 esac
15291 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag="$shared_flag "'${wl}-G'
15294 fi
John Criswell47fdd832003-07-14 16:52:07 +000015295 else
15296 # not using gcc
15297 if test "$host_cpu" = ia64; then
15298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299 # chokes on -Wl,-G. The following line is correct:
15300 shared_flag='-G'
15301 else
Reid Spencera773bd52006-08-04 18:18:08 +000015302 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015303 shared_flag='${wl}-G'
15304 else
15305 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015306 fi
John Criswell47fdd832003-07-14 16:52:07 +000015307 fi
15308 fi
15309
15310 # It seems that -bexpall does not export symbols beginning with
15311 # underscore (_), so it is better to generate a list of symbols to export.
15312 always_export_symbols=yes
15313 if test "$aix_use_runtimelinking" = yes; then
15314 # Warning - without using the other runtime loading flags (-brtl),
15315 # -berok will link without error, but may produce a broken library.
15316 allow_undefined_flag='-berok'
15317 # Determine the default libpath from the value encoded in an empty executable.
15318 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015324
John Criswell7a73b802003-06-30 21:59:07 +000015325int
15326main ()
15327{
John Criswell47fdd832003-07-14 16:52:07 +000015328
John Criswell7a73b802003-06-30 21:59:07 +000015329 ;
15330 return 0;
15331}
15332_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015333rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015334if { (ac_try="$ac_link"
15335case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest$ac_exeext'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361esac
15362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015367
John Criswell47fdd832003-07-14 16:52:07 +000015368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15369}'`
15370# Check for a 64-bit object if we didn't find anything.
15371if 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; }
15372}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015373else
15374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015375sed 's/^/| /' conftest.$ac_ext >&5
15376
Reid Spencera773bd52006-08-04 18:18:08 +000015377
John Criswell7a73b802003-06-30 21:59:07 +000015378fi
Reid Spencera773bd52006-08-04 18:18:08 +000015379
Bill Wendlingebcceee2009-04-18 11:20:33 +000015380rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015381 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015385 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 +000015386 else
15387 if test "$host_cpu" = ia64; then
15388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15389 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015390 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 +000015391 else
15392 # Determine the default libpath from the value encoded in an empty executable.
15393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015399
John Criswell47fdd832003-07-14 16:52:07 +000015400int
15401main ()
15402{
John Criswell7a73b802003-06-30 21:59:07 +000015403
John Criswell47fdd832003-07-14 16:52:07 +000015404 ;
15405 return 0;
15406}
15407_ACEOF
15408rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015409if { (ac_try="$ac_link"
15410case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413esac
15414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015416 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15426esac
15427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest$ac_exeext'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015442
John Criswell47fdd832003-07-14 16:52:07 +000015443aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15444}'`
15445# Check for a 64-bit object if we didn't find anything.
15446if 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; }
15447}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015448else
John Criswell47fdd832003-07-14 16:52:07 +000015449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015450sed 's/^/| /' conftest.$ac_ext >&5
15451
Reid Spencera773bd52006-08-04 18:18:08 +000015452
John Criswell47fdd832003-07-14 16:52:07 +000015453fi
Reid Spencera773bd52006-08-04 18:18:08 +000015454
Bill Wendlingebcceee2009-04-18 11:20:33 +000015455rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015456 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015458
John Criswell47fdd832003-07-14 16:52:07 +000015459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15460 # Warning - without using the other run time loading flags,
15461 # -berok will link without error, but may produce a broken library.
15462 no_undefined_flag=' ${wl}-bernotok'
15463 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015464 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015465 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015466 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015467 # This is similar to how AIX traditionally builds its shared libraries.
15468 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 +000015469 fi
15470 fi
John Criswell7a73b802003-06-30 21:59:07 +000015471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015472
15473 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015474 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 +000015475 hardcode_libdir_flag_spec='-L$libdir'
15476 hardcode_minus_L=yes
15477 # see comment about different semantics on the GNU ld section
15478 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015479 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015480
Reid Spencer2706f8c2004-09-19 23:53:36 +000015481 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015482 export_dynamic_flag_spec=-rdynamic
15483 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015484
John Criswell47fdd832003-07-14 16:52:07 +000015485 cygwin* | mingw* | pw32*)
15486 # When not using gcc, we currently assume that we are using
15487 # Microsoft Visual C++.
15488 # hardcode_libdir_flag_spec is actually meaningless, as there is
15489 # no search path for DLLs.
15490 hardcode_libdir_flag_spec=' '
15491 allow_undefined_flag=unsupported
15492 # Tell ltmain to make .lib files, not .a files.
15493 libext=lib
15494 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015496 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015497 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015498 # The linker will automatically build a .lib file if we build a DLL.
15499 old_archive_From_new_cmds='true'
15500 # FIXME: Should let the user specify the lib program.
15501 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15502 fix_srcfile_path='`cygpath -w "$srcfile"`'
15503 enable_shared_with_static_runtimes=yes
15504 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015505
John Criswell47fdd832003-07-14 16:52:07 +000015506 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015507 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015508 rhapsody* | darwin1.[012])
15509 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15510 ;;
15511 *) # Darwin 1.3 on
15512 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15513 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15514 else
15515 case ${MACOSX_DEPLOYMENT_TARGET} in
15516 10.[012])
15517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15518 ;;
15519 10.*)
15520 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15521 ;;
15522 esac
15523 fi
15524 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015525 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015526 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015527 hardcode_direct=no
15528 hardcode_automatic=yes
15529 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015531 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015532 if test "$GCC" = yes ; then
15533 output_verbose_link_cmd='echo'
15534 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15535 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015536 # 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 +000015537 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}'
15538 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 +000015539 else
Reid Spencera773bd52006-08-04 18:18:08 +000015540 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015541 xlc*)
15542 output_verbose_link_cmd='echo'
15543 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15544 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015545 # 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 +000015546 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}'
15547 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 +000015548 ;;
15549 *)
15550 ld_shlibs=no
15551 ;;
15552 esac
John Criswell7a73b802003-06-30 21:59:07 +000015553 fi
John Criswell47fdd832003-07-14 16:52:07 +000015554 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015555
John Criswell47fdd832003-07-14 16:52:07 +000015556 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_shlibpath_var=no
15560 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015561
John Criswell47fdd832003-07-14 16:52:07 +000015562 freebsd1*)
15563 ld_shlibs=no
15564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015565
John Criswell47fdd832003-07-14 16:52:07 +000015566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15567 # support. Future versions do this automatically, but an explicit c++rt0.o
15568 # does not break anything, and helps significantly (at the cost of a little
15569 # extra space).
15570 freebsd2.2*)
15571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15572 hardcode_libdir_flag_spec='-R$libdir'
15573 hardcode_direct=yes
15574 hardcode_shlibpath_var=no
15575 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015576
John Criswell47fdd832003-07-14 16:52:07 +000015577 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15578 freebsd2*)
15579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_direct=yes
15581 hardcode_minus_L=yes
15582 hardcode_shlibpath_var=no
15583 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015584
John Criswell47fdd832003-07-14 16:52:07 +000015585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015586 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15588 hardcode_libdir_flag_spec='-R$libdir'
15589 hardcode_direct=yes
15590 hardcode_shlibpath_var=no
15591 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015592
John Criswell47fdd832003-07-14 16:52:07 +000015593 hpux9*)
15594 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015595 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 +000015596 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015597 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 +000015598 fi
15599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 hardcode_direct=yes
15602
15603 # hardcode_minus_L: Not really in the search PATH,
15604 # but as the default location of the library.
15605 hardcode_minus_L=yes
15606 export_dynamic_flag_spec='${wl}-E'
15607 ;;
15608
Reid Spencera773bd52006-08-04 18:18:08 +000015609 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015610 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15612 else
15613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15614 fi
15615 if test "$with_gnu_ld" = no; then
15616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618
15619 hardcode_direct=yes
15620 export_dynamic_flag_spec='${wl}-E'
15621
15622 # hardcode_minus_L: Not really in the search PATH,
15623 # but as the default location of the library.
15624 hardcode_minus_L=yes
15625 fi
15626 ;;
15627
15628 hpux11*)
15629 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15630 case $host_cpu in
15631 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015634 ia64*)
15635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15636 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015637 *)
15638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15639 ;;
15640 esac
15641 else
Reid Spencera773bd52006-08-04 18:18:08 +000015642 case $host_cpu in
15643 hppa*64*)
15644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 ;;
15646 ia64*)
15647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015648 ;;
15649 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015650 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 +000015651 ;;
15652 esac
15653 fi
15654 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15656 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015657
Reid Spencera773bd52006-08-04 18:18:08 +000015658 case $host_cpu in
15659 hppa*64*|ia64*)
15660 hardcode_libdir_flag_spec_ld='+b $libdir'
15661 hardcode_direct=no
15662 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015663 ;;
15664 *)
John Criswell47fdd832003-07-14 16:52:07 +000015665 hardcode_direct=yes
15666 export_dynamic_flag_spec='${wl}-E'
15667
15668 # hardcode_minus_L: Not really in the search PATH,
15669 # but as the default location of the library.
15670 hardcode_minus_L=yes
15671 ;;
15672 esac
15673 fi
15674 ;;
15675
15676 irix5* | irix6* | nonstopux*)
15677 if test "$GCC" = yes; then
15678 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'
15679 else
15680 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'
15681 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15682 fi
15683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15684 hardcode_libdir_separator=:
15685 link_all_deplibs=yes
15686 ;;
15687
15688 netbsd*)
15689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15691 else
15692 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15693 fi
15694 hardcode_libdir_flag_spec='-R$libdir'
15695 hardcode_direct=yes
15696 hardcode_shlibpath_var=no
15697 ;;
15698
15699 newsos6)
15700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_direct=yes
15702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15703 hardcode_libdir_separator=:
15704 hardcode_shlibpath_var=no
15705 ;;
15706
15707 openbsd*)
15708 hardcode_direct=yes
15709 hardcode_shlibpath_var=no
15710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015712 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 +000015713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15714 export_dynamic_flag_spec='${wl}-E'
15715 else
15716 case $host_os in
15717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_libdir_flag_spec='-R$libdir'
15720 ;;
15721 *)
15722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15724 ;;
15725 esac
15726 fi
15727 ;;
15728
15729 os2*)
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 hardcode_minus_L=yes
15732 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015733 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 +000015734 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15735 ;;
15736
15737 osf3*)
15738 if test "$GCC" = yes; then
15739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15740 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'
15741 else
15742 allow_undefined_flag=' -expect_unresolved \*'
15743 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'
15744 fi
15745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15746 hardcode_libdir_separator=:
15747 ;;
15748
15749 osf4* | osf5*) # as osf3* with the addition of -msym flag
15750 if test "$GCC" = yes; then
15751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15752 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'
15753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754 else
15755 allow_undefined_flag=' -expect_unresolved \*'
15756 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 +000015757 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 +000015758 $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 +000015759
John Criswell47fdd832003-07-14 16:52:07 +000015760 # Both c and cxx compiler support -rpath directly
15761 hardcode_libdir_flag_spec='-rpath $libdir'
15762 fi
15763 hardcode_libdir_separator=:
15764 ;;
15765
John Criswell47fdd832003-07-14 16:52:07 +000015766 solaris*)
15767 no_undefined_flag=' -z text'
15768 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015769 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015770 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015771 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15772 $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 +000015773 else
Reid Spencera773bd52006-08-04 18:18:08 +000015774 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015775 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015776 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15777 $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 +000015778 fi
15779 hardcode_libdir_flag_spec='-R$libdir'
15780 hardcode_shlibpath_var=no
15781 case $host_os in
15782 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015783 *)
15784 # The compiler driver will combine linker options so we
15785 # cannot just pass the convience library names through
15786 # without $wl, iff we do not link with $LD.
15787 # Luckily, gcc supports the same syntax we need for Sun Studio.
15788 # Supported since Solaris 2.6 (maybe 2.5.1?)
15789 case $wlarc in
15790 '')
15791 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15792 *)
15793 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' ;;
15794 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015795 esac
15796 link_all_deplibs=yes
15797 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015798
John Criswell47fdd832003-07-14 16:52:07 +000015799 sunos4*)
15800 if test "x$host_vendor" = xsequent; then
15801 # Use $CC to link under sequent, because it throws in some extra .o
15802 # files that make .init and .fini sections work.
15803 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15804 else
15805 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15806 fi
15807 hardcode_libdir_flag_spec='-L$libdir'
15808 hardcode_direct=yes
15809 hardcode_minus_L=yes
15810 hardcode_shlibpath_var=no
15811 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015812
John Criswell47fdd832003-07-14 16:52:07 +000015813 sysv4)
15814 case $host_vendor in
15815 sni)
15816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_direct=yes # is this really true???
15818 ;;
15819 siemens)
15820 ## LD is ld it makes a PLAMLIB
15821 ## CC just makes a GrossModule.
15822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15823 reload_cmds='$CC -r -o $output$reload_objs'
15824 hardcode_direct=no
15825 ;;
15826 motorola)
15827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15829 ;;
15830 esac
15831 runpath_var='LD_RUN_PATH'
15832 hardcode_shlibpath_var=no
15833 ;;
15834
15835 sysv4.3*)
15836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_shlibpath_var=no
15838 export_dynamic_flag_spec='-Bexport'
15839 ;;
15840
15841 sysv4*MP*)
15842 if test -d /usr/nec; then
15843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_shlibpath_var=no
15845 runpath_var=LD_RUN_PATH
15846 hardcode_runpath_var=yes
15847 ld_shlibs=yes
15848 fi
15849 ;;
15850
Reid Spencera773bd52006-08-04 18:18:08 +000015851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15852 no_undefined_flag='${wl}-z,text'
15853 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015854 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015855 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015856
John Criswell47fdd832003-07-14 16:52:07 +000015857 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015858 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 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 +000015860 else
Reid Spencera773bd52006-08-04 18:18:08 +000015861 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 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 +000015863 fi
John Criswell47fdd832003-07-14 16:52:07 +000015864 ;;
15865
Reid Spencera773bd52006-08-04 18:18:08 +000015866 sysv5* | sco3.2v5* | sco5v6*)
15867 # Note: We can NOT use -z defs as we might desire, because we do not
15868 # link with -lc, and that would cause any symbols used from libc to
15869 # always be unresolved, which means just about no library would
15870 # ever link correctly. If we're not using GNU ld we use -z text
15871 # though, which does catch some bad symbols but isn't as heavy-handed
15872 # as -z defs.
15873 no_undefined_flag='${wl}-z,text'
15874 allow_undefined_flag='${wl}-z,nodefs'
15875 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015876 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015877 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15878 hardcode_libdir_separator=':'
15879 link_all_deplibs=yes
15880 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015881 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015882
15883 if test "$GCC" = yes; then
15884 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 else
15887 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 fi
John Criswell47fdd832003-07-14 16:52:07 +000015890 ;;
15891
15892 uts4*)
15893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15894 hardcode_libdir_flag_spec='-L$libdir'
15895 hardcode_shlibpath_var=no
15896 ;;
15897
15898 *)
15899 ld_shlibs=no
15900 ;;
15901 esac
15902 fi
15903
Reid Spencera773bd52006-08-04 18:18:08 +000015904{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15905echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015906test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015907
John Criswell47fdd832003-07-14 16:52:07 +000015908#
15909# Do we need to explicitly link libc?
15910#
15911case "x$archive_cmds_need_lc" in
15912x|xyes)
15913 # Assume -lc should be added
15914 archive_cmds_need_lc=yes
15915
15916 if test "$enable_shared" = yes && test "$GCC" = yes; then
15917 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015918 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015919 # FIXME: we may have to deal with multi-command sequences.
15920 ;;
15921 '$CC '*)
15922 # Test whether the compiler implicitly links with -lc since on some
15923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15924 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015925 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15926echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015927 $rm conftest*
15928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } 2>conftest.err; then
15935 soname=conftest
15936 lib=conftest
15937 libobjs=conftest.$ac_objext
15938 deplibs=
15939 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015940 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015941 compiler_flags=-v
15942 linker_flags=-v
15943 verstring=
15944 output_objdir=.
15945 libname=conftest
15946 lt_save_allow_undefined_flag=$allow_undefined_flag
15947 allow_undefined_flag=
15948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15949 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }
15953 then
15954 archive_cmds_need_lc=no
15955 else
15956 archive_cmds_need_lc=yes
15957 fi
15958 allow_undefined_flag=$lt_save_allow_undefined_flag
15959 else
15960 cat conftest.err 1>&5
15961 fi
15962 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015963 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15964echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015965 ;;
15966 esac
15967 fi
15968 ;;
15969esac
15970
Reid Spencera773bd52006-08-04 18:18:08 +000015971{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15972echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015973library_names_spec=
15974libname_spec='lib$name'
15975soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015976shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015977postinstall_cmds=
15978postuninstall_cmds=
15979finish_cmds=
15980finish_eval=
15981shlibpath_var=
15982shlibpath_overrides_runpath=unknown
15983version_type=none
15984dynamic_linker="$host_os ld.so"
15985sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015986if test "$GCC" = yes; then
15987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15989 # if the path contains ";" then we assume it to be the separator
15990 # otherwise default to the standard path separator (i.e. ":") - it is
15991 # assumed that no part of a normal pathname contains ";" but that should
15992 # okay in the real world where ";" in dirpaths is itself problematic.
15993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15994 else
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15996 fi
15997else
15998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15999fi
16000need_lib_prefix=unknown
16001hardcode_into_libs=no
16002
16003# when you set need_version to no, make sure it does not cause -set_version
16004# flags to be left without arguments
16005need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016006
16007case $host_os in
16008aix3*)
16009 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016011 shlibpath_var=LIBPATH
16012
John Criswell47fdd832003-07-14 16:52:07 +000016013 # AIX 3 has no versioning support, so we append a major version to the name.
16014 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016015 ;;
16016
16017aix4* | aix5*)
16018 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016019 need_lib_prefix=no
16020 need_version=no
16021 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016022 if test "$host_cpu" = ia64; then
16023 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016025 shlibpath_var=LD_LIBRARY_PATH
16026 else
16027 # With GCC up to 2.95.x, collect2 would create an import file
16028 # for dependence libraries. The import file would start with
16029 # the line `#! .'. This would cause the generated library to
16030 # depend on `.', always an invalid library. This was fixed in
16031 # development snapshots of GCC prior to 3.0.
16032 case $host_os in
16033 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16035 echo ' yes '
16036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16037 :
16038 else
16039 can_build_shared=no
16040 fi
16041 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016042 esac
John Criswell47fdd832003-07-14 16:52:07 +000016043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16044 # soname into executable. Probably we can add versioning support to
16045 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016046 if test "$aix_use_runtimelinking" = yes; then
16047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048 # instead of lib<name>.a to let people know that these are not
16049 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016051 else
16052 # We preserve .a as extension for shared libraries through AIX4.2
16053 # and later when we are not doing run time linking.
16054 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016055 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016056 fi
16057 shlibpath_var=LIBPATH
16058 fi
16059 ;;
16060
16061amigaos*)
16062 library_names_spec='$libname.ixlibrary $libname.a'
16063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016064 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 +000016065 ;;
16066
16067beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016068 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016069 dynamic_linker="$host_os ld.so"
16070 shlibpath_var=LIBRARY_PATH
16071 ;;
16072
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016074 version_type=linux
16075 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016082 # the default ld.so.conf also contains /usr/contrib/lib and
16083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16084 # libtool to hard-code these into programs
16085 ;;
16086
16087cygwin* | mingw* | pw32*)
16088 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016089 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016090 need_version=no
16091 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016092
John Criswell7a73b802003-06-30 21:59:07 +000016093 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016094 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016095 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016097 postinstall_cmds='base_file=`basename \${file}`~
16098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16099 dldir=$destdir/`dirname \$dlpath`~
16100 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016101 $install_prog $dir/$dlname \$dldir/$dlname~
16102 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16104 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016105 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016106 shlibpath_overrides_runpath=yes
16107
16108 case $host_os in
16109 cygwin*)
16110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16111 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 +000016112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016113 ;;
16114 mingw*)
16115 # MinGW DLLs use traditional 'lib' prefix
16116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16119 # It is most probably a Windows format PATH printed by
16120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16121 # path with ; separators, and with drive letters. We can handle the
16122 # drive letters (cygwin fileutils understands them), so leave them,
16123 # especially as we might pass files found there to a mingw objdump,
16124 # which wouldn't understand a cygwinified path. Ahh.
16125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16126 else
16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16128 fi
16129 ;;
16130 pw32*)
16131 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016132 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 +000016133 ;;
16134 esac
John Criswell7a73b802003-06-30 21:59:07 +000016135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016136
John Criswell7a73b802003-06-30 21:59:07 +000016137 *)
John Criswell47fdd832003-07-14 16:52:07 +000016138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016139 ;;
16140 esac
16141 dynamic_linker='Win32 ld.exe'
16142 # FIXME: first we should search . and the directory the executable is in
16143 shlibpath_var=PATH
16144 ;;
16145
16146darwin* | rhapsody*)
16147 dynamic_linker="$host_os dyld"
16148 version_type=darwin
16149 need_lib_prefix=no
16150 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016152 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016153 shlibpath_overrides_runpath=yes
16154 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016155 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016157 if test "$GCC" = yes; then
16158 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"`
16159 else
16160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016161 fi
16162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16163 ;;
16164
16165dgux*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016172 ;;
16173
16174freebsd1*)
16175 dynamic_linker=no
16176 ;;
16177
Reid Spencer2706f8c2004-09-19 23:53:36 +000016178kfreebsd*-gnu)
16179 version_type=linux
16180 need_lib_prefix=no
16181 need_version=no
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=no
16186 hardcode_into_libs=yes
16187 dynamic_linker='GNU ld.so'
16188 ;;
16189
Reid Spencera773bd52006-08-04 18:18:08 +000016190freebsd* | dragonfly*)
16191 # DragonFly does not have aout. When/if they implement a new
16192 # versioning mechanism, adjust this.
16193 if test -x /usr/bin/objformat; then
16194 objformat=`/usr/bin/objformat`
16195 else
16196 case $host_os in
16197 freebsd[123]*) objformat=aout ;;
16198 *) objformat=elf ;;
16199 esac
16200 fi
John Criswell7a73b802003-06-30 21:59:07 +000016201 version_type=freebsd-$objformat
16202 case $version_type in
16203 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016205 need_version=no
16206 need_lib_prefix=no
16207 ;;
16208 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016210 need_version=yes
16211 ;;
16212 esac
16213 shlibpath_var=LD_LIBRARY_PATH
16214 case $host_os in
16215 freebsd2*)
16216 shlibpath_overrides_runpath=yes
16217 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016218 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016224 shlibpath_overrides_runpath=no
16225 hardcode_into_libs=yes
16226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016227 freebsd*) # from 4.6 on
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016231 esac
16232 ;;
16233
16234gnu*)
16235 version_type=linux
16236 need_lib_prefix=no
16237 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016240 shlibpath_var=LD_LIBRARY_PATH
16241 hardcode_into_libs=yes
16242 ;;
16243
16244hpux9* | hpux10* | hpux11*)
16245 # Give a soname corresponding to the major version so that dld.sl refuses to
16246 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016247 version_type=sunos
16248 need_lib_prefix=no
16249 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016250 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016251 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016252 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016253 hardcode_into_libs=yes
16254 dynamic_linker="$host_os dld.so"
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 if test "X$HPUX_IA64_MODE" = X32; then
16260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16261 else
16262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16263 fi
16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16265 ;;
16266 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016267 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016268 hardcode_into_libs=yes
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16276 ;;
16277 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016278 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016279 dynamic_linker="$host_os dld.sl"
16280 shlibpath_var=SHLIB_PATH
16281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 ;;
16285 esac
John Criswell7a73b802003-06-30 21:59:07 +000016286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16287 postinstall_cmds='chmod 555 $lib'
16288 ;;
16289
Reid Spencera773bd52006-08-04 18:18:08 +000016290interix3*)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 shlibpath_overrides_runpath=no
16299 hardcode_into_libs=yes
16300 ;;
16301
John Criswell47fdd832003-07-14 16:52:07 +000016302irix5* | irix6* | nonstopux*)
16303 case $host_os in
16304 nonstopux*) version_type=nonstopux ;;
16305 *)
16306 if test "$lt_cv_prog_gnu_ld" = yes; then
16307 version_type=linux
16308 else
16309 version_type=irix
16310 fi ;;
16311 esac
John Criswell7a73b802003-06-30 21:59:07 +000016312 need_lib_prefix=no
16313 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016314 soname_spec='${libname}${release}${shared_ext}$major'
16315 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 +000016316 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016317 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016318 libsuff= shlibsuff=
16319 ;;
16320 *)
16321 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16323 libsuff= shlibsuff= libmagic=32-bit;;
16324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16325 libsuff=32 shlibsuff=N32 libmagic=N32;;
16326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016328 *) libsuff= shlibsuff= libmagic=never-match;;
16329 esac
16330 ;;
16331 esac
16332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16333 shlibpath_overrides_runpath=no
16334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016336 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016337 ;;
16338
16339# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016340linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016341 dynamic_linker=no
16342 ;;
16343
16344# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016345linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016346 version_type=linux
16347 need_lib_prefix=no
16348 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=no
16354 # This implies no fast_install, which is unacceptable.
16355 # Some rework will be needed to allow for fast_install
16356 # before this can be enabled.
16357 hardcode_into_libs=yes
16358
Reid Spencer2706f8c2004-09-19 23:53:36 +000016359 # Append ld.so.conf contents to the search path
16360 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016361 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 +000016362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16363 fi
16364
John Criswell7a73b802003-06-30 21:59:07 +000016365 # We used to test for /lib/ld.so.1 and disable shared libraries on
16366 # powerpc, because MkLinux only supported shared libraries with the
16367 # GNU dynamic linker. Since this was broken with cross compilers,
16368 # most powerpc-linux boxes support dynamic linking these days and
16369 # people can always --disable-shared, the test was removed, and we
16370 # assume the GNU/Linux dynamic linker is in use.
16371 dynamic_linker='GNU/Linux ld.so'
16372 ;;
16373
Reid Spencer2706f8c2004-09-19 23:53:36 +000016374knetbsd*-gnu)
16375 version_type=linux
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=no
16382 hardcode_into_libs=yes
16383 dynamic_linker='GNU ld.so'
16384 ;;
16385
John Criswell7a73b802003-06-30 21:59:07 +000016386netbsd*)
16387 version_type=sunos
16388 need_lib_prefix=no
16389 need_version=no
16390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16393 dynamic_linker='NetBSD (a.out) ld.so'
16394 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016396 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016397 dynamic_linker='NetBSD ld.elf_so'
16398 fi
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 hardcode_into_libs=yes
16402 ;;
16403
16404newsos6)
16405 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16409 ;;
16410
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016412 version_type=linux
16413 need_lib_prefix=no
16414 need_version=no
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 ;;
16420
16421openbsd*)
16422 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016423 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016424 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016425 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16426 case $host_os in
16427 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16428 *) need_version=no ;;
16429 esac
John Criswell47fdd832003-07-14 16:52:07 +000016430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016433 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 +000016434 case $host_os in
16435 openbsd2.[89] | openbsd2.[89].*)
16436 shlibpath_overrides_runpath=no
16437 ;;
16438 *)
16439 shlibpath_overrides_runpath=yes
16440 ;;
16441 esac
John Criswell7a73b802003-06-30 21:59:07 +000016442 else
16443 shlibpath_overrides_runpath=yes
16444 fi
John Criswell7a73b802003-06-30 21:59:07 +000016445 ;;
16446
16447os2*)
16448 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016449 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016450 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016451 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016452 dynamic_linker='OS/2 ld.exe'
16453 shlibpath_var=LIBPATH
16454 ;;
16455
16456osf3* | osf4* | osf5*)
16457 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016458 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016459 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016460 soname_spec='${libname}${release}${shared_ext}$major'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016462 shlibpath_var=LD_LIBRARY_PATH
16463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16465 ;;
16466
John Criswell7a73b802003-06-30 21:59:07 +000016467solaris*)
16468 version_type=linux
16469 need_lib_prefix=no
16470 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16475 hardcode_into_libs=yes
16476 # ldd complains unless libraries are executable
16477 postinstall_cmds='chmod +x $lib'
16478 ;;
16479
16480sunos4*)
16481 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=yes
16486 if test "$with_gnu_ld" = yes; then
16487 need_lib_prefix=no
16488 fi
16489 need_version=yes
16490 ;;
16491
Reid Spencera773bd52006-08-04 18:18:08 +000016492sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016493 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016496 shlibpath_var=LD_LIBRARY_PATH
16497 case $host_vendor in
16498 sni)
16499 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016500 need_lib_prefix=no
16501 export_dynamic_flag_spec='${wl}-Blargedynsym'
16502 runpath_var=LD_RUN_PATH
16503 ;;
16504 siemens)
16505 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016506 ;;
16507 motorola)
16508 need_lib_prefix=no
16509 need_version=no
16510 shlibpath_overrides_runpath=no
16511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16512 ;;
16513 esac
16514 ;;
16515
John Criswell7a73b802003-06-30 21:59:07 +000016516sysv4*MP*)
16517 if test -d /usr/nec ;then
16518 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16520 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016521 shlibpath_var=LD_LIBRARY_PATH
16522 fi
16523 ;;
16524
Reid Spencera773bd52006-08-04 18:18:08 +000016525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16526 version_type=freebsd-elf
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 hardcode_into_libs=yes
16533 if test "$with_gnu_ld" = yes; then
16534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16535 shlibpath_overrides_runpath=no
16536 else
16537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16538 shlibpath_overrides_runpath=yes
16539 case $host_os in
16540 sco3.2v5*)
16541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16542 ;;
16543 esac
16544 fi
16545 sys_lib_dlsearch_path_spec='/usr/lib'
16546 ;;
16547
John Criswell47fdd832003-07-14 16:52:07 +000016548uts4*)
16549 version_type=linux
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 ;;
16554
John Criswell7a73b802003-06-30 21:59:07 +000016555*)
16556 dynamic_linker=no
16557 ;;
16558esac
Reid Spencera773bd52006-08-04 18:18:08 +000016559{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16560echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016561test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016562
Reid Spencera773bd52006-08-04 18:18:08 +000016563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564if test "$GCC" = yes; then
16565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16566fi
16567
16568{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570hardcode_action=
16571if test -n "$hardcode_libdir_flag_spec" || \
16572 test -n "$runpath_var" || \
16573 test "X$hardcode_automatic" = "Xyes" ; then
16574
16575 # We can hardcode non-existant directories.
16576 if test "$hardcode_direct" != no &&
16577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16578 # have to relink, otherwise we might link with an installed library
16579 # when we should be linking with a yet-to-be-installed one
16580 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16581 test "$hardcode_minus_L" != no; then
16582 # Linking always hardcodes the temporary library directory.
16583 hardcode_action=relink
16584 else
16585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16586 hardcode_action=immediate
16587 fi
16588else
16589 # We cannot hardcode anything, or else we can only hardcode existing
16590 # directories.
16591 hardcode_action=unsupported
16592fi
Reid Spencera773bd52006-08-04 18:18:08 +000016593{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16594echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016595
16596if test "$hardcode_action" = relink; then
16597 # Fast installation is not supported
16598 enable_fast_install=no
16599elif test "$shlibpath_overrides_runpath" = yes ||
16600 test "$enable_shared" = no; then
16601 # Fast installation is not necessary
16602 enable_fast_install=needless
16603fi
16604
16605striplib=
16606old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016607{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016609if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016612 { echo "$as_me:$LINENO: result: yes" >&5
16613echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614else
16615# FIXME - insert some real tests, host_os isn't really good enough
16616 case $host_os in
16617 darwin*)
16618 if test -n "$STRIP" ; then
16619 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016620 { echo "$as_me:$LINENO: result: yes" >&5
16621echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016622 else
Reid Spencera773bd52006-08-04 18:18:08 +000016623 { echo "$as_me:$LINENO: result: no" >&5
16624echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016625fi
16626 ;;
16627 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016628 { echo "$as_me:$LINENO: result: no" >&5
16629echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016630 ;;
16631 esac
16632fi
16633
John Criswell7a73b802003-06-30 21:59:07 +000016634if test "x$enable_dlopen" != xyes; then
16635 enable_dlopen=unknown
16636 enable_dlopen_self=unknown
16637 enable_dlopen_self_static=unknown
16638else
16639 lt_cv_dlopen=no
16640 lt_cv_dlopen_libs=
16641
16642 case $host_os in
16643 beos*)
16644 lt_cv_dlopen="load_add_on"
16645 lt_cv_dlopen_libs=
16646 lt_cv_dlopen_self=yes
16647 ;;
16648
John Criswell47fdd832003-07-14 16:52:07 +000016649 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016650 lt_cv_dlopen="LoadLibrary"
16651 lt_cv_dlopen_libs=
16652 ;;
16653
John Criswell47fdd832003-07-14 16:52:07 +000016654 cygwin*)
16655 lt_cv_dlopen="dlopen"
16656 lt_cv_dlopen_libs=
16657 ;;
16658
16659 darwin*)
16660 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016661 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16662echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016663if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665else
16666 ac_check_lib_save_LIBS=$LIBS
16667LIBS="-ldl $LIBS"
16668cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016674
Reid Spencera773bd52006-08-04 18:18:08 +000016675/* Override any GCC internal prototype to avoid an error.
16676 Use char because int might match the return type of a GCC
16677 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016678#ifdef __cplusplus
16679extern "C"
16680#endif
John Criswell47fdd832003-07-14 16:52:07 +000016681char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016682int
16683main ()
16684{
Reid Spencera773bd52006-08-04 18:18:08 +000016685return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016686 ;
16687 return 0;
16688}
16689_ACEOF
16690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016691if { (ac_try="$ac_link"
16692case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708esac
16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest$ac_exeext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016724 ac_cv_lib_dl_dlopen=yes
16725else
16726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016727sed 's/^/| /' conftest.$ac_ext >&5
16728
Reid Spencera773bd52006-08-04 18:18:08 +000016729 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016730fi
Reid Spencera773bd52006-08-04 18:18:08 +000016731
Bill Wendlingebcceee2009-04-18 11:20:33 +000016732rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016733 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016734LIBS=$ac_check_lib_save_LIBS
16735fi
Reid Spencera773bd52006-08-04 18:18:08 +000016736{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16737echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016738if test $ac_cv_lib_dl_dlopen = yes; then
16739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16740else
16741
16742 lt_cv_dlopen="dyld"
16743 lt_cv_dlopen_libs=
16744 lt_cv_dlopen_self=yes
16745
16746fi
16747
16748 ;;
16749
John Criswell7a73b802003-06-30 21:59:07 +000016750 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016751 { echo "$as_me:$LINENO: checking for shl_load" >&5
16752echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016753if test "${ac_cv_func_shl_load+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016762/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16764#define shl_load innocuous_shl_load
16765
John Criswell7a73b802003-06-30 21:59:07 +000016766/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016767 which can conflict with char shl_load (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016770
John Criswell0c38eaf2003-09-10 15:17:25 +000016771#ifdef __STDC__
16772# include <limits.h>
16773#else
16774# include <assert.h>
16775#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016776
16777#undef shl_load
16778
Reid Spencera773bd52006-08-04 18:18:08 +000016779/* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016782#ifdef __cplusplus
16783extern "C"
16784#endif
John Criswell7a73b802003-06-30 21:59:07 +000016785char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016786/* The GNU C library defines this for functions which it implements
16787 to always fail with ENOSYS. Some functions are actually named
16788 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016789#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016790choke me
John Criswell7a73b802003-06-30 21:59:07 +000016791#endif
16792
John Criswell0c38eaf2003-09-10 15:17:25 +000016793int
16794main ()
16795{
Reid Spencera773bd52006-08-04 18:18:08 +000016796return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016802if { (ac_try="$ac_link"
16803case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest$ac_exeext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016835 ac_cv_func_shl_load=yes
16836else
16837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016838sed 's/^/| /' conftest.$ac_ext >&5
16839
Reid Spencera773bd52006-08-04 18:18:08 +000016840 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016841fi
Reid Spencera773bd52006-08-04 18:18:08 +000016842
Bill Wendlingebcceee2009-04-18 11:20:33 +000016843rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016844 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016845fi
Reid Spencera773bd52006-08-04 18:18:08 +000016846{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16847echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016848if test $ac_cv_func_shl_load = yes; then
16849 lt_cv_dlopen="shl_load"
16850else
Reid Spencera773bd52006-08-04 18:18:08 +000016851 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16852echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016853if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855else
16856 ac_check_lib_save_LIBS=$LIBS
16857LIBS="-ldld $LIBS"
16858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016864
Reid Spencera773bd52006-08-04 18:18:08 +000016865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016868#ifdef __cplusplus
16869extern "C"
16870#endif
John Criswell7a73b802003-06-30 21:59:07 +000016871char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016872int
16873main ()
16874{
Reid Spencera773bd52006-08-04 18:18:08 +000016875return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016881if { (ac_try="$ac_link"
16882case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885esac
16886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898esac
16899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016914 ac_cv_lib_dld_shl_load=yes
16915else
16916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016917sed 's/^/| /' conftest.$ac_ext >&5
16918
Reid Spencera773bd52006-08-04 18:18:08 +000016919 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016920fi
Reid Spencera773bd52006-08-04 18:18:08 +000016921
Bill Wendlingebcceee2009-04-18 11:20:33 +000016922rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016923 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016924LIBS=$ac_check_lib_save_LIBS
16925fi
Reid Spencera773bd52006-08-04 18:18:08 +000016926{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16927echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016928if test $ac_cv_lib_dld_shl_load = yes; then
16929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16930else
Reid Spencera773bd52006-08-04 18:18:08 +000016931 { echo "$as_me:$LINENO: checking for dlopen" >&5
16932echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016933if test "${ac_cv_func_dlopen+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016942/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944#define dlopen innocuous_dlopen
16945
John Criswell7a73b802003-06-30 21:59:07 +000016946/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016947 which can conflict with char dlopen (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016950
John Criswell0c38eaf2003-09-10 15:17:25 +000016951#ifdef __STDC__
16952# include <limits.h>
16953#else
16954# include <assert.h>
16955#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016956
16957#undef dlopen
16958
Reid Spencera773bd52006-08-04 18:18:08 +000016959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016962#ifdef __cplusplus
16963extern "C"
16964#endif
John Criswell7a73b802003-06-30 21:59:07 +000016965char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016966/* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016969#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016970choke me
John Criswell7a73b802003-06-30 21:59:07 +000016971#endif
16972
John Criswell0c38eaf2003-09-10 15:17:25 +000016973int
16974main ()
16975{
Reid Spencera773bd52006-08-04 18:18:08 +000016976return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016977 ;
16978 return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016982if { (ac_try="$ac_link"
16983case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016989 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017015 ac_cv_func_dlopen=yes
17016else
17017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017018sed 's/^/| /' conftest.$ac_ext >&5
17019
Reid Spencera773bd52006-08-04 18:18:08 +000017020 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017021fi
Reid Spencera773bd52006-08-04 18:18:08 +000017022
Bill Wendlingebcceee2009-04-18 11:20:33 +000017023rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017024 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017025fi
Reid Spencera773bd52006-08-04 18:18:08 +000017026{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17027echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017028if test $ac_cv_func_dlopen = yes; then
17029 lt_cv_dlopen="dlopen"
17030else
Reid Spencera773bd52006-08-04 18:18:08 +000017031 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17032echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017033if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035else
17036 ac_check_lib_save_LIBS=$LIBS
17037LIBS="-ldl $LIBS"
17038cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017044
Reid Spencera773bd52006-08-04 18:18:08 +000017045/* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017048#ifdef __cplusplus
17049extern "C"
17050#endif
John Criswell7a73b802003-06-30 21:59:07 +000017051char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017052int
17053main ()
17054{
Reid Spencera773bd52006-08-04 18:18:08 +000017055return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017056 ;
17057 return 0;
17058}
17059_ACEOF
17060rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017061if { (ac_try="$ac_link"
17062case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065esac
17066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17075 { (case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17078esac
17079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_try") 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest$ac_exeext'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017094 ac_cv_lib_dl_dlopen=yes
17095else
17096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017097sed 's/^/| /' conftest.$ac_ext >&5
17098
Reid Spencera773bd52006-08-04 18:18:08 +000017099 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017100fi
Reid Spencera773bd52006-08-04 18:18:08 +000017101
Bill Wendlingebcceee2009-04-18 11:20:33 +000017102rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017103 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017104LIBS=$ac_check_lib_save_LIBS
17105fi
Reid Spencera773bd52006-08-04 18:18:08 +000017106{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17107echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017108if test $ac_cv_lib_dl_dlopen = yes; then
17109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17110else
Reid Spencera773bd52006-08-04 18:18:08 +000017111 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17112echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017113if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115else
17116 ac_check_lib_save_LIBS=$LIBS
17117LIBS="-lsvld $LIBS"
17118cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017124
Reid Spencera773bd52006-08-04 18:18:08 +000017125/* Override any GCC internal prototype to avoid an error.
17126 Use char because int might match the return type of a GCC
17127 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017128#ifdef __cplusplus
17129extern "C"
17130#endif
John Criswell7a73b802003-06-30 21:59:07 +000017131char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017132int
17133main ()
17134{
Reid Spencera773bd52006-08-04 18:18:08 +000017135return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017141if { (ac_try="$ac_link"
17142case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145esac
17146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017148 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017174 ac_cv_lib_svld_dlopen=yes
17175else
17176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017177sed 's/^/| /' conftest.$ac_ext >&5
17178
Reid Spencera773bd52006-08-04 18:18:08 +000017179 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017180fi
Reid Spencera773bd52006-08-04 18:18:08 +000017181
Bill Wendlingebcceee2009-04-18 11:20:33 +000017182rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017183 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017184LIBS=$ac_check_lib_save_LIBS
17185fi
Reid Spencera773bd52006-08-04 18:18:08 +000017186{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17187echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017188if test $ac_cv_lib_svld_dlopen = yes; then
17189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17190else
Reid Spencera773bd52006-08-04 18:18:08 +000017191 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17192echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017193if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
17196 ac_check_lib_save_LIBS=$LIBS
17197LIBS="-ldld $LIBS"
17198cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017204
Reid Spencera773bd52006-08-04 18:18:08 +000017205/* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017208#ifdef __cplusplus
17209extern "C"
17210#endif
John Criswell7a73b802003-06-30 21:59:07 +000017211char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017212int
17213main ()
17214{
Reid Spencera773bd52006-08-04 18:18:08 +000017215return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017221if { (ac_try="$ac_link"
17222case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17225esac
17226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017233 (exit $ac_status); } &&
17234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238esac
17239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; } &&
17244 { ac_try='test -s conftest$ac_exeext'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248esac
17249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017254 ac_cv_lib_dld_dld_link=yes
17255else
17256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017257sed 's/^/| /' conftest.$ac_ext >&5
17258
Reid Spencera773bd52006-08-04 18:18:08 +000017259 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017260fi
Reid Spencera773bd52006-08-04 18:18:08 +000017261
Bill Wendlingebcceee2009-04-18 11:20:33 +000017262rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017263 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017264LIBS=$ac_check_lib_save_LIBS
17265fi
Reid Spencera773bd52006-08-04 18:18:08 +000017266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17267echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017268if test $ac_cv_lib_dld_dld_link = yes; then
17269 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17270fi
17271
17272
17273fi
17274
17275
17276fi
17277
17278
17279fi
17280
17281
17282fi
17283
17284
17285fi
17286
17287 ;;
17288 esac
17289
17290 if test "x$lt_cv_dlopen" != xno; then
17291 enable_dlopen=yes
17292 else
17293 enable_dlopen=no
17294 fi
17295
17296 case $lt_cv_dlopen in
17297 dlopen)
17298 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017299 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017300
17301 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017303
17304 save_LIBS="$LIBS"
17305 LIBS="$lt_cv_dlopen_libs $LIBS"
17306
Reid Spencera773bd52006-08-04 18:18:08 +000017307 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17308echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017309if test "${lt_cv_dlopen_self+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 if test "$cross_compiling" = yes; then :
17313 lt_cv_dlopen_self=cross
17314else
John Criswell47fdd832003-07-14 16:52:07 +000017315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017316 lt_status=$lt_dlunknown
17317 cat > conftest.$ac_ext <<EOF
Douglas Gregora0162ff2009-06-23 17:22:05 +000017318#line 17318 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017319#include "confdefs.h"
17320
17321#if HAVE_DLFCN_H
17322#include <dlfcn.h>
17323#endif
17324
17325#include <stdio.h>
17326
17327#ifdef RTLD_GLOBAL
17328# define LT_DLGLOBAL RTLD_GLOBAL
17329#else
17330# ifdef DL_GLOBAL
17331# define LT_DLGLOBAL DL_GLOBAL
17332# else
17333# define LT_DLGLOBAL 0
17334# endif
17335#endif
17336
17337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17338 find out it does not work in some platform. */
17339#ifndef LT_DLLAZY_OR_NOW
17340# ifdef RTLD_LAZY
17341# define LT_DLLAZY_OR_NOW RTLD_LAZY
17342# else
17343# ifdef DL_LAZY
17344# define LT_DLLAZY_OR_NOW DL_LAZY
17345# else
17346# ifdef RTLD_NOW
17347# define LT_DLLAZY_OR_NOW RTLD_NOW
17348# else
17349# ifdef DL_NOW
17350# define LT_DLLAZY_OR_NOW DL_NOW
17351# else
17352# define LT_DLLAZY_OR_NOW 0
17353# endif
17354# endif
17355# endif
17356# endif
17357#endif
17358
17359#ifdef __cplusplus
17360extern "C" void exit (int);
17361#endif
17362
17363void fnord() { int i=42;}
17364int main ()
17365{
17366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17367 int status = $lt_dlunknown;
17368
17369 if (self)
17370 {
17371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17373 /* dlclose (self); */
17374 }
Reid Spencera773bd52006-08-04 18:18:08 +000017375 else
17376 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017377
17378 exit (status);
17379}
17380EOF
17381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382 (eval $ac_link) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017386 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017387 lt_status=$?
17388 case x$lt_status in
17389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017392 esac
17393 else :
17394 # compilation failed
17395 lt_cv_dlopen_self=no
17396 fi
17397fi
17398rm -fr conftest*
17399
17400
17401fi
Reid Spencera773bd52006-08-04 18:18:08 +000017402{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17403echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017404
17405 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17407 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17408echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017409if test "${lt_cv_dlopen_self_static+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411else
17412 if test "$cross_compiling" = yes; then :
17413 lt_cv_dlopen_self_static=cross
17414else
John Criswell47fdd832003-07-14 16:52:07 +000017415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017416 lt_status=$lt_dlunknown
17417 cat > conftest.$ac_ext <<EOF
Douglas Gregora0162ff2009-06-23 17:22:05 +000017418#line 17418 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017419#include "confdefs.h"
17420
17421#if HAVE_DLFCN_H
17422#include <dlfcn.h>
17423#endif
17424
17425#include <stdio.h>
17426
17427#ifdef RTLD_GLOBAL
17428# define LT_DLGLOBAL RTLD_GLOBAL
17429#else
17430# ifdef DL_GLOBAL
17431# define LT_DLGLOBAL DL_GLOBAL
17432# else
17433# define LT_DLGLOBAL 0
17434# endif
17435#endif
17436
17437/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17438 find out it does not work in some platform. */
17439#ifndef LT_DLLAZY_OR_NOW
17440# ifdef RTLD_LAZY
17441# define LT_DLLAZY_OR_NOW RTLD_LAZY
17442# else
17443# ifdef DL_LAZY
17444# define LT_DLLAZY_OR_NOW DL_LAZY
17445# else
17446# ifdef RTLD_NOW
17447# define LT_DLLAZY_OR_NOW RTLD_NOW
17448# else
17449# ifdef DL_NOW
17450# define LT_DLLAZY_OR_NOW DL_NOW
17451# else
17452# define LT_DLLAZY_OR_NOW 0
17453# endif
17454# endif
17455# endif
17456# endif
17457#endif
17458
17459#ifdef __cplusplus
17460extern "C" void exit (int);
17461#endif
17462
17463void fnord() { int i=42;}
17464int main ()
17465{
17466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17467 int status = $lt_dlunknown;
17468
17469 if (self)
17470 {
17471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17472 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17473 /* dlclose (self); */
17474 }
Reid Spencera773bd52006-08-04 18:18:08 +000017475 else
17476 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017477
17478 exit (status);
17479}
17480EOF
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017486 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017487 lt_status=$?
17488 case x$lt_status in
17489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017491 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017492 esac
17493 else :
17494 # compilation failed
17495 lt_cv_dlopen_self_static=no
17496 fi
17497fi
17498rm -fr conftest*
17499
17500
17501fi
Reid Spencera773bd52006-08-04 18:18:08 +000017502{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17503echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017504 fi
17505
17506 CPPFLAGS="$save_CPPFLAGS"
17507 LDFLAGS="$save_LDFLAGS"
17508 LIBS="$save_LIBS"
17509 ;;
17510 esac
17511
17512 case $lt_cv_dlopen_self in
17513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17514 *) enable_dlopen_self=unknown ;;
17515 esac
17516
17517 case $lt_cv_dlopen_self_static in
17518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17519 *) enable_dlopen_self_static=unknown ;;
17520 esac
17521fi
17522
17523
Reid Spencera773bd52006-08-04 18:18:08 +000017524# Report which library types will actually be built
17525{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17526echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17527{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17528echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017529
Reid Spencera773bd52006-08-04 18:18:08 +000017530{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17531echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017532test "$can_build_shared" = "no" && enable_shared=no
17533
17534# On AIX, shared libraries and static libraries use the same namespace, and
17535# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017536case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017537aix3*)
17538 test "$enable_shared" = yes && enable_static=no
17539 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017541 postinstall_cmds='$RANLIB $lib'
17542 fi
17543 ;;
17544
Reid Spencer2706f8c2004-09-19 23:53:36 +000017545aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017546 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17547 test "$enable_shared" = yes && enable_static=no
17548 fi
John Criswell7a73b802003-06-30 21:59:07 +000017549 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017550esac
Reid Spencera773bd52006-08-04 18:18:08 +000017551{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17552echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017553
Reid Spencera773bd52006-08-04 18:18:08 +000017554{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17555echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017556# Make sure either enable_shared or enable_static is yes.
17557test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017558{ echo "$as_me:$LINENO: result: $enable_static" >&5
17559echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017560
17561# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017562# libtool distribution, otherwise you forgot to ship ltmain.sh
17563# with your package, and you will get complaints that there are
17564# no rules to generate ltmain.sh.
17565if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017566 # See if we are running on zsh, and set the options which allow our commands through
17567 # without removal of \ escapes.
17568 if test -n "${ZSH_VERSION+set}" ; then
17569 setopt NO_GLOB_SUBST
17570 fi
John Criswell7a73b802003-06-30 21:59:07 +000017571 # Now quote all the things that may contain metacharacters while being
17572 # careful not to overquote the AC_SUBSTed values. We take copies of the
17573 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017574 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 +000017575 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17578 deplibs_check_method reload_flag reload_cmds need_locks \
17579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17580 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017582 old_postinstall_cmds old_postuninstall_cmds \
17583 compiler \
17584 CC \
17585 LD \
17586 lt_prog_compiler_wl \
17587 lt_prog_compiler_pic \
17588 lt_prog_compiler_static \
17589 lt_prog_compiler_no_builtin_flag \
17590 export_dynamic_flag_spec \
17591 thread_safe_flag_spec \
17592 whole_archive_flag_spec \
17593 enable_shared_with_static_runtimes \
17594 old_archive_cmds \
17595 old_archive_from_new_cmds \
17596 predep_objects \
17597 postdep_objects \
17598 predeps \
17599 postdeps \
17600 compiler_lib_search_path \
17601 archive_cmds \
17602 archive_expsym_cmds \
17603 postinstall_cmds \
17604 postuninstall_cmds \
17605 old_archive_from_expsyms_cmds \
17606 allow_undefined_flag \
17607 no_undefined_flag \
17608 export_symbols_cmds \
17609 hardcode_libdir_flag_spec \
17610 hardcode_libdir_flag_spec_ld \
17611 hardcode_libdir_separator \
17612 hardcode_automatic \
17613 module_cmds \
17614 module_expsym_cmds \
17615 lt_cv_prog_compiler_c_o \
17616 exclude_expsyms \
17617 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017618
17619 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017620 old_archive_cmds | \
17621 old_archive_from_new_cmds | \
17622 archive_cmds | \
17623 archive_expsym_cmds | \
17624 module_cmds | \
17625 module_expsym_cmds | \
17626 old_archive_from_expsyms_cmds | \
17627 export_symbols_cmds | \
17628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017629 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017630 old_postinstall_cmds | old_postuninstall_cmds | \
17631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017632 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633 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 +000017634 ;;
17635 *)
17636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17637 ;;
17638 esac
17639 done
17640
John Criswell47fdd832003-07-14 16:52:07 +000017641 case $lt_echo in
17642 *'\$0 --fallback-echo"')
17643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17644 ;;
17645 esac
17646
17647cfgfile="${ofile}T"
17648 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17649 $rm -f "$cfgfile"
17650 { echo "$as_me:$LINENO: creating $ofile" >&5
17651echo "$as_me: creating $ofile" >&6;}
17652
17653 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017654#! $SHELL
17655
John Criswell47fdd832003-07-14 16:52:07 +000017656# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017657# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17658# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17659#
John Criswell47fdd832003-07-14 16:52:07 +000017660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17661# Free Software Foundation, Inc.
17662#
17663# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017664# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17665#
17666# This program is free software; you can redistribute it and/or modify
17667# it under the terms of the GNU General Public License as published by
17668# the Free Software Foundation; either version 2 of the License, or
17669# (at your option) any later version.
17670#
17671# This program is distributed in the hope that it will be useful, but
17672# WITHOUT ANY WARRANTY; without even the implied warranty of
17673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17674# General Public License for more details.
17675#
17676# You should have received a copy of the GNU General Public License
17677# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017678# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017679#
17680# As a special exception to the GNU General Public License, if you
17681# distribute this file as part of a program that contains a
17682# configuration script generated by Autoconf, you may include it under
17683# the same distribution terms that you use for the rest of that program.
17684
John Criswell47fdd832003-07-14 16:52:07 +000017685# A sed program that does not truncate output.
17686SED=$lt_SED
17687
John Criswell7a73b802003-06-30 21:59:07 +000017688# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017689Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017690
17691# The HP-UX ksh and POSIX shell print the target directory to stdout
17692# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017694
John Criswell47fdd832003-07-14 16:52:07 +000017695# The names of the tagged configurations supported by this script.
17696available_tags=
17697
John Criswell7a73b802003-06-30 21:59:07 +000017698# ### BEGIN LIBTOOL CONFIG
17699
17700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17701
17702# Shell to use when invoking shell scripts.
17703SHELL=$lt_SHELL
17704
17705# Whether or not to build shared libraries.
17706build_libtool_libs=$enable_shared
17707
17708# Whether or not to build static libraries.
17709build_old_libs=$enable_static
17710
17711# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017712build_libtool_need_lc=$archive_cmds_need_lc
17713
17714# Whether or not to disallow shared libs when runtime libs are static
17715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017716
17717# Whether or not to optimize for fast installation.
17718fast_install=$enable_fast_install
17719
17720# The host system.
17721host_alias=$host_alias
17722host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017723host_os=$host_os
17724
17725# The build system.
17726build_alias=$build_alias
17727build=$build
17728build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017729
17730# An echo program that does not interpret backslashes.
17731echo=$lt_echo
17732
17733# The archiver.
17734AR=$lt_AR
17735AR_FLAGS=$lt_AR_FLAGS
17736
John Criswell47fdd832003-07-14 16:52:07 +000017737# A C compiler.
17738LTCC=$lt_LTCC
17739
Reid Spencera773bd52006-08-04 18:18:08 +000017740# LTCC compiler flags.
17741LTCFLAGS=$lt_LTCFLAGS
17742
John Criswell47fdd832003-07-14 16:52:07 +000017743# A language-specific compiler.
17744CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017745
17746# Is the compiler the GNU C compiler?
17747with_gcc=$GCC
17748
John Criswell47fdd832003-07-14 16:52:07 +000017749# An ERE matcher.
17750EGREP=$lt_EGREP
17751
John Criswell7a73b802003-06-30 21:59:07 +000017752# The linker used to build libraries.
17753LD=$lt_LD
17754
17755# Whether we need hard or soft links.
17756LN_S=$lt_LN_S
17757
17758# A BSD-compatible nm program.
17759NM=$lt_NM
17760
17761# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017763
17764# Used to examine libraries when file_magic_cmd begins "file"
17765MAGIC_CMD=$MAGIC_CMD
17766
17767# Used on cygwin: DLL creation program.
17768DLLTOOL="$DLLTOOL"
17769
17770# Used on cygwin: object dumper.
17771OBJDUMP="$OBJDUMP"
17772
17773# Used on cygwin: assembler.
17774AS="$AS"
17775
17776# The name of the directory that contains temporary libtool files.
17777objdir=$objdir
17778
17779# How to create reloadable object files.
17780reload_flag=$lt_reload_flag
17781reload_cmds=$lt_reload_cmds
17782
17783# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017784wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017785
17786# Object file suffix (normally "o").
17787objext="$ac_objext"
17788
17789# Old archive suffix (normally "a").
17790libext="$libext"
17791
John Criswell47fdd832003-07-14 16:52:07 +000017792# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017793shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017794
John Criswell7a73b802003-06-30 21:59:07 +000017795# Executable file suffix (normally "").
17796exeext="$exeext"
17797
17798# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017799pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017800pic_mode=$pic_mode
17801
John Criswell47fdd832003-07-14 16:52:07 +000017802# What is the maximum length of a command?
17803max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017804
John Criswell47fdd832003-07-14 16:52:07 +000017805# Does compiler simultaneously support -c and -o options?
17806compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017807
Reid Spencera773bd52006-08-04 18:18:08 +000017808# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017809need_locks=$lt_need_locks
17810
17811# Do we need the lib prefix for modules?
17812need_lib_prefix=$need_lib_prefix
17813
17814# Do we need a version for libraries?
17815need_version=$need_version
17816
17817# Whether dlopen is supported.
17818dlopen_support=$enable_dlopen
17819
17820# Whether dlopen of programs is supported.
17821dlopen_self=$enable_dlopen_self
17822
17823# Whether dlopen of statically linked programs is supported.
17824dlopen_self_static=$enable_dlopen_self_static
17825
17826# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017827link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017828
17829# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017831
17832# Compiler flag to allow reflexive dlopens.
17833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17834
17835# Compiler flag to generate shared objects directly from archives.
17836whole_archive_flag_spec=$lt_whole_archive_flag_spec
17837
17838# Compiler flag to generate thread-safe objects.
17839thread_safe_flag_spec=$lt_thread_safe_flag_spec
17840
17841# Library versioning type.
17842version_type=$version_type
17843
17844# Format of library name prefix.
17845libname_spec=$lt_libname_spec
17846
17847# List of archive names. First name is the real one, the rest are links.
17848# The last name is the one that the linker finds with -lNAME.
17849library_names_spec=$lt_library_names_spec
17850
17851# The coded name of the library, if different from the real name.
17852soname_spec=$lt_soname_spec
17853
17854# Commands used to build and install an old-style archive.
17855RANLIB=$lt_RANLIB
17856old_archive_cmds=$lt_old_archive_cmds
17857old_postinstall_cmds=$lt_old_postinstall_cmds
17858old_postuninstall_cmds=$lt_old_postuninstall_cmds
17859
17860# Create an old-style archive from a shared archive.
17861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17862
17863# Create a temporary old-style archive to link instead of a shared archive.
17864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17865
17866# Commands used to build and install a shared archive.
17867archive_cmds=$lt_archive_cmds
17868archive_expsym_cmds=$lt_archive_expsym_cmds
17869postinstall_cmds=$lt_postinstall_cmds
17870postuninstall_cmds=$lt_postuninstall_cmds
17871
John Criswell47fdd832003-07-14 16:52:07 +000017872# Commands used to build a loadable module (assumed same as above if empty)
17873module_cmds=$lt_module_cmds
17874module_expsym_cmds=$lt_module_expsym_cmds
17875
John Criswell7a73b802003-06-30 21:59:07 +000017876# Commands to strip libraries.
17877old_striplib=$lt_old_striplib
17878striplib=$lt_striplib
17879
John Criswell47fdd832003-07-14 16:52:07 +000017880# Dependencies to place before the objects being linked to create a
17881# shared library.
17882predep_objects=$lt_predep_objects
17883
17884# Dependencies to place after the objects being linked to create a
17885# shared library.
17886postdep_objects=$lt_postdep_objects
17887
17888# Dependencies to place before the objects being linked to create a
17889# shared library.
17890predeps=$lt_predeps
17891
17892# Dependencies to place after the objects being linked to create a
17893# shared library.
17894postdeps=$lt_postdeps
17895
17896# The library search path used internally by the compiler when linking
17897# a shared library.
17898compiler_lib_search_path=$lt_compiler_lib_search_path
17899
John Criswell7a73b802003-06-30 21:59:07 +000017900# Method to check whether dependent libraries are shared objects.
17901deplibs_check_method=$lt_deplibs_check_method
17902
17903# Command to use when deplibs_check_method == file_magic.
17904file_magic_cmd=$lt_file_magic_cmd
17905
17906# Flag that allows shared libraries with undefined symbols to be built.
17907allow_undefined_flag=$lt_allow_undefined_flag
17908
17909# Flag that forces no undefined symbols.
17910no_undefined_flag=$lt_no_undefined_flag
17911
17912# Commands used to finish a libtool library installation in a directory.
17913finish_cmds=$lt_finish_cmds
17914
17915# Same as above, but a single script fragment to be evaled but not shown.
17916finish_eval=$lt_finish_eval
17917
17918# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017920
17921# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017923
17924# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017926
17927# This is the shared library runtime path variable.
17928runpath_var=$runpath_var
17929
17930# This is the shared library path variable.
17931shlibpath_var=$shlibpath_var
17932
17933# Is shlibpath searched before the hard-coded library search path?
17934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17935
17936# How to hardcode a shared library path into an executable.
17937hardcode_action=$hardcode_action
17938
17939# Whether we should hardcode library paths into libraries.
17940hardcode_into_libs=$hardcode_into_libs
17941
17942# Flag to hardcode \$libdir into a binary during linking.
17943# This must work even if \$libdir does not exist.
17944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17945
John Criswell47fdd832003-07-14 16:52:07 +000017946# If ld is used when linking, flag to hardcode \$libdir into
17947# a binary during linking. This must work even if \$libdir does
17948# not exist.
17949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17950
John Criswell7a73b802003-06-30 21:59:07 +000017951# Whether we need a single -rpath flag with a separated argument.
17952hardcode_libdir_separator=$lt_hardcode_libdir_separator
17953
John Criswell47fdd832003-07-14 16:52:07 +000017954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017955# resulting binary.
17956hardcode_direct=$hardcode_direct
17957
17958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17959# resulting binary.
17960hardcode_minus_L=$hardcode_minus_L
17961
17962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17963# the resulting binary.
17964hardcode_shlibpath_var=$hardcode_shlibpath_var
17965
John Criswell47fdd832003-07-14 16:52:07 +000017966# Set to yes if building a shared library automatically hardcodes DIR into the library
17967# and all subsequent libraries and executables linked against it.
17968hardcode_automatic=$hardcode_automatic
17969
John Criswell7a73b802003-06-30 21:59:07 +000017970# Variables whose values should be saved in libtool wrapper scripts and
17971# restored at relink time.
17972variables_saved_for_relink="$variables_saved_for_relink"
17973
17974# Whether libtool must link a program against all its dependency libraries.
17975link_all_deplibs=$link_all_deplibs
17976
17977# Compile-time system search path for libraries
17978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17979
17980# Run-time system search path for libraries
17981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17982
17983# Fix the shell variable \$srcfile for the compiler.
17984fix_srcfile_path="$fix_srcfile_path"
17985
17986# Set to yes if exported symbols are required.
17987always_export_symbols=$always_export_symbols
17988
17989# The commands to list exported symbols.
17990export_symbols_cmds=$lt_export_symbols_cmds
17991
17992# The commands to extract the exported symbol list from a shared archive.
17993extract_expsyms_cmds=$lt_extract_expsyms_cmds
17994
17995# Symbols that should not be listed in the preloaded symbols.
17996exclude_expsyms=$lt_exclude_expsyms
17997
17998# Symbols that must always be exported.
17999include_expsyms=$lt_include_expsyms
18000
18001# ### END LIBTOOL CONFIG
18002
18003__EOF__
18004
John Criswell47fdd832003-07-14 16:52:07 +000018005
John Criswell7a73b802003-06-30 21:59:07 +000018006 case $host_os in
18007 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018008 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018009
18010# AIX sometimes has problems with the GCC collect2 program. For some
18011# reason, if we set the COLLECT_NAMES environment variable, the problems
18012# vanish in a puff of smoke.
18013if test "X${COLLECT_NAMES+set}" != Xset; then
18014 COLLECT_NAMES=
18015 export COLLECT_NAMES
18016fi
18017EOF
18018 ;;
18019 esac
18020
John Criswell7a73b802003-06-30 21:59:07 +000018021 # We use sed instead of cat because bash on DJGPP gets confused if
18022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18023 # text mode, it properly converts lines to CR/LF. This bash problem
18024 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018026
John Criswell47fdd832003-07-14 16:52:07 +000018027 mv -f "$cfgfile" "$ofile" || \
18028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018029 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018030
18031else
18032 # If there is no Makefile yet, we rely on a make rule to execute
18033 # `config.status --recheck' to rerun these tests and create the
18034 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18036 if test -f "$ltmain_in"; then
18037 test -f Makefile && make "$ltmain"
18038 fi
John Criswell7a73b802003-06-30 21:59:07 +000018039fi
John Criswell7a73b802003-06-30 21:59:07 +000018040
18041
John Criswell47fdd832003-07-14 16:52:07 +000018042ac_ext=c
18043ac_cpp='$CPP $CPPFLAGS'
18044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048CC="$lt_save_CC"
18049
18050
Reid Spencera773bd52006-08-04 18:18:08 +000018051# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018052if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018053 withval=$with_tags; tagnames="$withval"
18054fi
18055
John Criswell47fdd832003-07-14 16:52:07 +000018056
18057if test -f "$ltmain" && test -n "$tagnames"; then
18058 if test ! -f "${ofile}"; then
18059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18060echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18061 fi
18062
18063 if test -z "$LTCC"; then
18064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18065 if test -z "$LTCC"; then
18066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18067echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18068 else
18069 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18070echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18071 fi
18072 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018073 if test -z "$LTCFLAGS"; then
18074 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18075 fi
John Criswell47fdd832003-07-14 16:52:07 +000018076
18077 # Extract list of available tagged configurations in $ofile.
18078 # Note that this assumes the entire list is on one line.
18079 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18080
18081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18082 for tagname in $tagnames; do
18083 IFS="$lt_save_ifs"
18084 # Check whether tagname contains only valid characters
18085 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18086 "") ;;
18087 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18088echo "$as_me: error: invalid tag name: $tagname" >&2;}
18089 { (exit 1); exit 1; }; }
18090 ;;
18091 esac
18092
18093 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18094 then
18095 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18096echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18097 { (exit 1); exit 1; }; }
18098 fi
18099
18100 # Update the list of available tags.
18101 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018102 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018103
18104 case $tagname in
18105 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018106 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18107 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18108 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018109 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018110ac_cpp='$CXXCPP $CPPFLAGS'
18111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18114
18115
18116
18117
18118archive_cmds_need_lc_CXX=no
18119allow_undefined_flag_CXX=
18120always_export_symbols_CXX=no
18121archive_expsym_cmds_CXX=
18122export_dynamic_flag_spec_CXX=
18123hardcode_direct_CXX=no
18124hardcode_libdir_flag_spec_CXX=
18125hardcode_libdir_flag_spec_ld_CXX=
18126hardcode_libdir_separator_CXX=
18127hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018128hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018129hardcode_automatic_CXX=no
18130module_cmds_CXX=
18131module_expsym_cmds_CXX=
18132link_all_deplibs_CXX=unknown
18133old_archive_cmds_CXX=$old_archive_cmds
18134no_undefined_flag_CXX=
18135whole_archive_flag_spec_CXX=
18136enable_shared_with_static_runtimes_CXX=no
18137
18138# Dependencies to place before and after the object being linked:
18139predep_objects_CXX=
18140postdep_objects_CXX=
18141predeps_CXX=
18142postdeps_CXX=
18143compiler_lib_search_path_CXX=
18144
18145# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018146ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018147
18148# Object file extension for compiled C++ test sources.
18149objext=o
18150objext_CXX=$objext
18151
18152# Code to be used in simple compile tests
18153lt_simple_compile_test_code="int some_variable = 0;\n"
18154
18155# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018156lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018157
18158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18159
18160# If no C compiler was specified, use CC.
18161LTCC=${LTCC-"$CC"}
18162
Reid Spencera773bd52006-08-04 18:18:08 +000018163# If no C compiler flags were specified, use CFLAGS.
18164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18165
John Criswell47fdd832003-07-14 16:52:07 +000018166# Allow CC to be a program name with arguments.
18167compiler=$CC
18168
18169
Reid Spencera773bd52006-08-04 18:18:08 +000018170# save warnings/boilerplate of simple test code
18171ac_outfile=conftest.$ac_objext
18172printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18173eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174_lt_compiler_boilerplate=`cat conftest.err`
18175$rm conftest*
18176
18177ac_outfile=conftest.$ac_objext
18178printf "$lt_simple_link_test_code" >conftest.$ac_ext
18179eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18180_lt_linker_boilerplate=`cat conftest.err`
18181$rm conftest*
18182
18183
John Criswell47fdd832003-07-14 16:52:07 +000018184# Allow CC to be a program name with arguments.
18185lt_save_CC=$CC
18186lt_save_LD=$LD
18187lt_save_GCC=$GCC
18188GCC=$GXX
18189lt_save_with_gnu_ld=$with_gnu_ld
18190lt_save_path_LD=$lt_cv_path_LD
18191if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18192 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18193else
Reid Spencera773bd52006-08-04 18:18:08 +000018194 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018195fi
18196if test -n "${lt_cv_path_LDCXX+set}"; then
18197 lt_cv_path_LD=$lt_cv_path_LDCXX
18198else
Reid Spencera773bd52006-08-04 18:18:08 +000018199 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018200fi
18201test -z "${LDCXX+set}" || LD=$LDCXX
18202CC=${CXX-"c++"}
18203compiler=$CC
18204compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018205for cc_temp in $compiler""; do
18206 case $cc_temp in
18207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18209 \-*) ;;
18210 *) break;;
18211 esac
18212done
18213cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18214
John Criswell47fdd832003-07-14 16:52:07 +000018215
18216# We don't want -fno-exception wen compiling C++ code, so set the
18217# no_builtin_flag separately
18218if test "$GXX" = yes; then
18219 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18220else
18221 lt_prog_compiler_no_builtin_flag_CXX=
18222fi
18223
18224if test "$GXX" = yes; then
18225 # Set up default GNU C++ configuration
18226
18227
Reid Spencera773bd52006-08-04 18:18:08 +000018228# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018229if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018230 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018231else
18232 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018233fi
18234
John Criswell47fdd832003-07-14 16:52:07 +000018235ac_prog=ld
18236if test "$GCC" = yes; then
18237 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018238 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18239echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018240 case $host in
18241 *-*-mingw*)
18242 # gcc leaves a trailing carriage return which upsets mingw
18243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18244 *)
18245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18246 esac
18247 case $ac_prog in
18248 # Accept absolute paths.
18249 [\\/]* | ?:[\\/]*)
18250 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018251 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018252 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18253 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18254 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18255 done
18256 test -z "$LD" && LD="$ac_prog"
18257 ;;
18258 "")
18259 # If it fails, then pretend we aren't using GCC.
18260 ac_prog=ld
18261 ;;
18262 *)
18263 # If it is relative, then search for the first ld in PATH.
18264 with_gnu_ld=unknown
18265 ;;
18266 esac
18267elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018268 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18269echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018270else
Reid Spencera773bd52006-08-04 18:18:08 +000018271 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18272echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018273fi
18274if test "${lt_cv_path_LD+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277 if test -z "$LD"; then
18278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18279 for ac_dir in $PATH; do
18280 IFS="$lt_save_ifs"
18281 test -z "$ac_dir" && ac_dir=.
18282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18283 lt_cv_path_LD="$ac_dir/$ac_prog"
18284 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018285 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018286 # Break only if it was the GNU/non-GNU ld that we prefer.
18287 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18288 *GNU* | *'with BFD'*)
18289 test "$with_gnu_ld" != no && break
18290 ;;
18291 *)
18292 test "$with_gnu_ld" != yes && break
18293 ;;
18294 esac
18295 fi
18296 done
18297 IFS="$lt_save_ifs"
18298else
18299 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18300fi
18301fi
18302
18303LD="$lt_cv_path_LD"
18304if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018305 { echo "$as_me:$LINENO: result: $LD" >&5
18306echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018307else
Reid Spencera773bd52006-08-04 18:18:08 +000018308 { echo "$as_me:$LINENO: result: no" >&5
18309echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018310fi
18311test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18312echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18313 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018314{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18315echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018316if test "${lt_cv_prog_gnu_ld+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318else
Reid Spencera773bd52006-08-04 18:18:08 +000018319 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018320case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018321*GNU* | *'with BFD'*)
18322 lt_cv_prog_gnu_ld=yes
18323 ;;
18324*)
18325 lt_cv_prog_gnu_ld=no
18326 ;;
18327esac
18328fi
Reid Spencera773bd52006-08-04 18:18:08 +000018329{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18330echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018331with_gnu_ld=$lt_cv_prog_gnu_ld
18332
18333
18334
18335 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18336 # archiving commands below assume that GNU ld is being used.
18337 if test "$with_gnu_ld" = yes; then
18338 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18339 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'
18340
18341 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18343
18344 # If archive_cmds runs LD, not CC, wlarc should be empty
18345 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18346 # investigate it a little bit more. (MM)
18347 wlarc='${wl}'
18348
18349 # ancient GNU ld didn't support --whole-archive et. al.
18350 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18351 grep 'no-whole-archive' > /dev/null; then
18352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18353 else
18354 whole_archive_flag_spec_CXX=
18355 fi
18356 else
18357 with_gnu_ld=no
18358 wlarc=
18359
18360 # A generic and very simple default shared library creation
18361 # command for GNU C++ for the case where it uses the native
18362 # linker, instead of GNU ld. If possible, this setting should
18363 # overridden to take advantage of the native linker features on
18364 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018365 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018366 fi
18367
18368 # Commands to make compiler produce verbose output that lists
18369 # what "hidden" libraries, object files and flags are used when
18370 # linking a shared library.
18371 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18372
18373else
18374 GXX=no
18375 with_gnu_ld=no
18376 wlarc=
18377fi
18378
18379# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018380{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18381echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018382ld_shlibs_CXX=yes
18383case $host_os in
18384 aix3*)
18385 # FIXME: insert proper C++ library support
18386 ld_shlibs_CXX=no
18387 ;;
18388 aix4* | aix5*)
18389 if test "$host_cpu" = ia64; then
18390 # On IA64, the linker does run time linking by default, so we don't
18391 # have to do anything special.
18392 aix_use_runtimelinking=no
18393 exp_sym_flag='-Bexport'
18394 no_entry_flag=""
18395 else
18396 aix_use_runtimelinking=no
18397
18398 # Test if we are trying to use run time linking or normal
18399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18400 # need to do runtime linking.
18401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18402 for ld_flag in $LDFLAGS; do
18403 case $ld_flag in
18404 *-brtl*)
18405 aix_use_runtimelinking=yes
18406 break
18407 ;;
18408 esac
18409 done
Reid Spencera773bd52006-08-04 18:18:08 +000018410 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018411 esac
18412
18413 exp_sym_flag='-bexport'
18414 no_entry_flag='-bnoentry'
18415 fi
18416
18417 # When large executables or shared objects are built, AIX ld can
18418 # have problems creating the table of contents. If linking a library
18419 # or program results in "error TOC overflow" add -mminimal-toc to
18420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18422
18423 archive_cmds_CXX=''
18424 hardcode_direct_CXX=yes
18425 hardcode_libdir_separator_CXX=':'
18426 link_all_deplibs_CXX=yes
18427
18428 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018429 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018430 # We only want to do this on AIX 4.2 and lower, the check
18431 # below for broken collect2 doesn't work under 4.3+
18432 collect2name=`${CC} -print-prog-name=collect2`
18433 if test -f "$collect2name" && \
18434 strings "$collect2name" | grep resolve_lib_name >/dev/null
18435 then
18436 # We have reworked collect2
18437 hardcode_direct_CXX=yes
18438 else
18439 # We have old collect2
18440 hardcode_direct_CXX=unsupported
18441 # It fails to find uninstalled libraries when the uninstalled
18442 # path is not listed in the libpath. Setting hardcode_minus_L
18443 # to unsupported forces relinking
18444 hardcode_minus_L_CXX=yes
18445 hardcode_libdir_flag_spec_CXX='-L$libdir'
18446 hardcode_libdir_separator_CXX=
18447 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018449 esac
18450 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018451 if test "$aix_use_runtimelinking" = yes; then
18452 shared_flag="$shared_flag "'${wl}-G'
18453 fi
John Criswell47fdd832003-07-14 16:52:07 +000018454 else
18455 # not using gcc
18456 if test "$host_cpu" = ia64; then
18457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18458 # chokes on -Wl,-G. The following line is correct:
18459 shared_flag='-G'
18460 else
18461 if test "$aix_use_runtimelinking" = yes; then
18462 shared_flag='${wl}-G'
18463 else
18464 shared_flag='${wl}-bM:SRE'
18465 fi
18466 fi
18467 fi
18468
18469 # It seems that -bexpall does not export symbols beginning with
18470 # underscore (_), so it is better to generate a list of symbols to export.
18471 always_export_symbols_CXX=yes
18472 if test "$aix_use_runtimelinking" = yes; then
18473 # Warning - without using the other runtime loading flags (-brtl),
18474 # -berok will link without error, but may produce a broken library.
18475 allow_undefined_flag_CXX='-berok'
18476 # Determine the default libpath from the value encoded in an empty executable.
18477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018483
John Criswell47fdd832003-07-14 16:52:07 +000018484int
18485main ()
18486{
18487
18488 ;
18489 return 0;
18490}
18491_ACEOF
18492rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018493if { (ac_try="$ac_link"
18494case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18497esac
18498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018501 grep -v '^ *+' conftest.er1 >conftest.err
18502 rm -f conftest.er1
18503 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018505 (exit $ac_status); } &&
18506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest$ac_exeext'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520esac
18521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018526
18527aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18528}'`
18529# Check for a 64-bit object if we didn't find anything.
18530if 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; }
18531}'`; fi
18532else
18533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018534sed 's/^/| /' conftest.$ac_ext >&5
18535
Reid Spencera773bd52006-08-04 18:18:08 +000018536
John Criswell47fdd832003-07-14 16:52:07 +000018537fi
Reid Spencera773bd52006-08-04 18:18:08 +000018538
Bill Wendlingebcceee2009-04-18 11:20:33 +000018539rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018540 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18542
18543 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18544
Reid Spencera773bd52006-08-04 18:18:08 +000018545 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 +000018546 else
18547 if test "$host_cpu" = ia64; then
18548 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18549 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018550 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 +000018551 else
18552 # Determine the default libpath from the value encoded in an empty executable.
18553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018554/* confdefs.h. */
18555_ACEOF
18556cat confdefs.h >>conftest.$ac_ext
18557cat >>conftest.$ac_ext <<_ACEOF
18558/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018559
John Criswell47fdd832003-07-14 16:52:07 +000018560int
18561main ()
18562{
18563
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018602
18603aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18604}'`
18605# Check for a 64-bit object if we didn't find anything.
18606if 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; }
18607}'`; fi
18608else
18609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018610sed 's/^/| /' conftest.$ac_ext >&5
18611
Reid Spencera773bd52006-08-04 18:18:08 +000018612
John Criswell47fdd832003-07-14 16:52:07 +000018613fi
Reid Spencera773bd52006-08-04 18:18:08 +000018614
Bill Wendlingebcceee2009-04-18 11:20:33 +000018615rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018616 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18618
18619 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18620 # Warning - without using the other run time loading flags,
18621 # -berok will link without error, but may produce a broken library.
18622 no_undefined_flag_CXX=' ${wl}-bernotok'
18623 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018624 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018625 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018626 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018627 # This is similar to how AIX traditionally builds its shared libraries.
18628 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 +000018629 fi
18630 fi
18631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018632
18633 beos*)
18634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18635 allow_undefined_flag_CXX=unsupported
18636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18637 # support --undefined. This deserves some investigation. FIXME
18638 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18639 else
18640 ld_shlibs_CXX=no
18641 fi
18642 ;;
18643
John Criswell47fdd832003-07-14 16:52:07 +000018644 chorus*)
18645 case $cc_basename in
18646 *)
18647 # FIXME: insert proper C++ library support
18648 ld_shlibs_CXX=no
18649 ;;
18650 esac
18651 ;;
18652
18653 cygwin* | mingw* | pw32*)
18654 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18655 # as there is no search path for DLLs.
18656 hardcode_libdir_flag_spec_CXX='-L$libdir'
18657 allow_undefined_flag_CXX=unsupported
18658 always_export_symbols_CXX=no
18659 enable_shared_with_static_runtimes_CXX=yes
18660
18661 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018662 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 +000018663 # If the export-symbols file already is a .def file (1st line
18664 # is EXPORTS), use it as is; otherwise, prepend...
18665 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18666 cp $export_symbols $output_objdir/$soname.def;
18667 else
18668 echo EXPORTS > $output_objdir/$soname.def;
18669 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018670 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018671 $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 +000018672 else
18673 ld_shlibs_CXX=no
18674 fi
18675 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018676 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018677 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018678 rhapsody* | darwin1.[012])
18679 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18680 ;;
18681 *) # Darwin 1.3 on
18682 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18683 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18684 else
18685 case ${MACOSX_DEPLOYMENT_TARGET} in
18686 10.[012])
18687 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18688 ;;
18689 10.*)
18690 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18691 ;;
18692 esac
18693 fi
18694 ;;
18695 esac
18696 archive_cmds_need_lc_CXX=no
18697 hardcode_direct_CXX=no
18698 hardcode_automatic_CXX=yes
18699 hardcode_shlibpath_var_CXX=unsupported
18700 whole_archive_flag_spec_CXX=''
18701 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018702
Reid Spencer2706f8c2004-09-19 23:53:36 +000018703 if test "$GXX" = yes ; then
18704 lt_int_apple_cc_single_mod=no
18705 output_verbose_link_cmd='echo'
18706 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18707 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018708 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018710 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 +000018711 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018712 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 +000018713 fi
18714 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018715 # 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 +000018716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018717 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 +000018718 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018719 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 +000018720 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018721 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 +000018722 else
Reid Spencera773bd52006-08-04 18:18:08 +000018723 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018724 xlc*)
18725 output_verbose_link_cmd='echo'
18726 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'
18727 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018728 # 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 +000018729 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}'
18730 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 +000018731 ;;
18732 *)
18733 ld_shlibs_CXX=no
18734 ;;
18735 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018736 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018737 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018738
18739 dgux*)
18740 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018741 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018742 # FIXME: insert proper C++ library support
18743 ld_shlibs_CXX=no
18744 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018745 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018746 # Green Hills C++ Compiler
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
18750 *)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 esac
18755 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018756 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018757 # C++ shared libraries reported to be fairly broken before switch to ELF
18758 ld_shlibs_CXX=no
18759 ;;
18760 freebsd-elf*)
18761 archive_cmds_need_lc_CXX=no
18762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018763 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018764 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18765 # conventions
18766 ld_shlibs_CXX=yes
18767 ;;
18768 gnu*)
18769 ;;
18770 hpux9*)
18771 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18772 hardcode_libdir_separator_CXX=:
18773 export_dynamic_flag_spec_CXX='${wl}-E'
18774 hardcode_direct_CXX=yes
18775 hardcode_minus_L_CXX=yes # Not in the search PATH,
18776 # but as the default
18777 # location of the library.
18778
18779 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018780 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 # FIXME: insert proper C++ library support
18782 ld_shlibs_CXX=no
18783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018784 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018785 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 +000018786 # Commands to make compiler produce verbose output that lists
18787 # what "hidden" libraries, object files and flags are used when
18788 # linking a shared library.
18789 #
18790 # There doesn't appear to be a way to prevent this compiler from
18791 # explicitly linking system object files so we need to strip them
18792 # from the output so that they don't get included in the library
18793 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018794 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 +000018795 ;;
18796 *)
18797 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018798 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 +000018799 else
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 fi
18803 ;;
18804 esac
18805 ;;
18806 hpux10*|hpux11*)
18807 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18809 hardcode_libdir_separator_CXX=:
18810
18811 case $host_cpu in
18812 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018813 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018814 ;;
18815 *)
John Criswell47fdd832003-07-14 16:52:07 +000018816 export_dynamic_flag_spec_CXX='${wl}-E'
18817 ;;
18818 esac
18819 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018820 case $host_cpu in
18821 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018822 hardcode_direct_CXX=no
18823 hardcode_shlibpath_var_CXX=no
18824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018825 *)
18826 hardcode_direct_CXX=yes
18827 hardcode_minus_L_CXX=yes # Not in the search PATH,
18828 # but as the default
18829 # location of the library.
18830 ;;
18831 esac
18832
18833 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018834 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18837 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018838 aCC*)
18839 case $host_cpu in
18840 hppa*64*)
18841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18842 ;;
18843 ia64*)
18844 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 +000018845 ;;
18846 *)
18847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18848 ;;
18849 esac
18850 # Commands to make compiler produce verbose output that lists
18851 # what "hidden" libraries, object files and flags are used when
18852 # linking a shared library.
18853 #
18854 # There doesn't appear to be a way to prevent this compiler from
18855 # explicitly linking system object files so we need to strip them
18856 # from the output so that they don't get included in the library
18857 # dependencies.
18858 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'
18859 ;;
18860 *)
18861 if test "$GXX" = yes; then
18862 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018863 case $host_cpu in
18864 hppa*64*)
18865 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18866 ;;
18867 ia64*)
18868 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 +000018869 ;;
18870 *)
18871 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'
18872 ;;
18873 esac
18874 fi
18875 else
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18878 fi
18879 ;;
18880 esac
18881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018882 interix3*)
18883 hardcode_direct_CXX=no
18884 hardcode_shlibpath_var_CXX=no
18885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18886 export_dynamic_flag_spec_CXX='${wl}-E'
18887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18888 # Instead, shared libraries are loaded at an image base (0x10000000 by
18889 # default) and relocated if they conflict, which is a slow very memory
18890 # consuming and fragmenting process. To avoid this, we pick a random,
18891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18893 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'
18894 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'
18895 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018896 irix5* | irix6*)
18897 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018898 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018899 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018900 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 +000018901
18902 # Archives containing C++ object files must be created using
18903 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18904 # necessary to make sure instantiated templates are included
18905 # in the archive.
18906 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18907 ;;
18908 *)
18909 if test "$GXX" = yes; then
18910 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018911 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 +000018912 else
18913 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'
18914 fi
18915 fi
18916 link_all_deplibs_CXX=yes
18917 ;;
18918 esac
18919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18920 hardcode_libdir_separator_CXX=:
18921 ;;
18922 linux*)
18923 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018924 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018925 # Kuck and Associates, Inc. (KAI) C++ Compiler
18926
18927 # KCC will only create a shared library if the output file
18928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18929 # to its proper name (with version) after linking.
18930 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'
18931 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'
18932 # Commands to make compiler produce verbose output that lists
18933 # what "hidden" libraries, object files and flags are used when
18934 # linking a shared library.
18935 #
18936 # There doesn't appear to be a way to prevent this compiler from
18937 # explicitly linking system object files so we need to strip them
18938 # from the output so that they don't get included in the library
18939 # dependencies.
18940 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'
18941
18942 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18944
18945 # Archives containing C++ object files must be created using
18946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18947 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018949 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018950 # Intel C++
18951 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018952 # version 8.0 and above of icpc choke on multiply defined symbols
18953 # if we add $predep_objects and $postdep_objects, however 7.1 and
18954 # earlier do not add the objects themselves.
18955 case `$CC -V 2>&1` in
18956 *"Version 7."*)
18957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18958 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'
18959 ;;
18960 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018961 tmp_idyn=
18962 case $host_cpu in
18963 ia64*) tmp_idyn=' -i_dynamic';;
18964 esac
18965 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18966 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 +000018967 ;;
18968 esac
John Criswell47fdd832003-07-14 16:52:07 +000018969 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18972 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18973 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018974 pgCC*)
18975 # Portland Group C++ compiler
18976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18977 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'
18978
18979 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18981 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'
18982 ;;
18983 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018984 # Compaq C++
18985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18986 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'
18987
18988 runpath_var=LD_RUN_PATH
18989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18990 hardcode_libdir_separator_CXX=:
18991
18992 # Commands to make compiler produce verbose output that lists
18993 # what "hidden" libraries, object files and flags are used when
18994 # linking a shared library.
18995 #
18996 # There doesn't appear to be a way to prevent this compiler from
18997 # explicitly linking system object files so we need to strip them
18998 # from the output so that they don't get included in the library
18999 # dependencies.
19000 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'
19001 ;;
19002 esac
19003 ;;
19004 lynxos*)
19005 # FIXME: insert proper C++ library support
19006 ld_shlibs_CXX=no
19007 ;;
19008 m88k*)
19009 # FIXME: insert proper C++ library support
19010 ld_shlibs_CXX=no
19011 ;;
19012 mvs*)
19013 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019014 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019015 # FIXME: insert proper C++ library support
19016 ld_shlibs_CXX=no
19017 ;;
19018 *)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 esac
19023 ;;
19024 netbsd*)
19025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19027 wlarc=
19028 hardcode_libdir_flag_spec_CXX='-R$libdir'
19029 hardcode_direct_CXX=yes
19030 hardcode_shlibpath_var_CXX=no
19031 fi
19032 # Workaround some broken pre-1.5 toolchains
19033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19034 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019035 openbsd2*)
19036 # C++ shared libraries are fairly broken
19037 ld_shlibs_CXX=no
19038 ;;
19039 openbsd*)
19040 hardcode_direct_CXX=yes
19041 hardcode_shlibpath_var_CXX=no
19042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19048 fi
19049 output_verbose_link_cmd='echo'
19050 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019051 osf3*)
19052 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019053 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019054 # Kuck and Associates, Inc. (KAI) C++ Compiler
19055
19056 # KCC will only create a shared library if the output file
19057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19058 # to its proper name (with version) after linking.
19059 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'
19060
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19062 hardcode_libdir_separator_CXX=:
19063
19064 # Archives containing C++ object files must be created using
19065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19067
19068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019069 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019070 # Rational C++ 2.4.1
19071 # FIXME: insert proper C++ library support
19072 ld_shlibs_CXX=no
19073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019074 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019076 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 +000019077
19078 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19079 hardcode_libdir_separator_CXX=:
19080
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 #
19085 # There doesn't appear to be a way to prevent this compiler from
19086 # explicitly linking system object files so we need to strip them
19087 # from the output so that they don't get included in the library
19088 # dependencies.
19089 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'
19090 ;;
19091 *)
19092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019094 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 +000019095
19096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_CXX=:
19098
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19103
19104 else
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 fi
19108 ;;
19109 esac
19110 ;;
19111 osf4* | osf5*)
19112 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019113 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019114 # Kuck and Associates, Inc. (KAI) C++ Compiler
19115
19116 # KCC will only create a shared library if the output file
19117 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19118 # to its proper name (with version) after linking.
19119 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'
19120
19121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19122 hardcode_libdir_separator_CXX=:
19123
19124 # Archives containing C++ object files must be created using
19125 # the KAI C++ compiler.
19126 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019128 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019129 # Rational C++ 2.4.1
19130 # FIXME: insert proper C++ library support
19131 ld_shlibs_CXX=no
19132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019133 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019134 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019135 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 +000019136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19137 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019138 $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 +000019139 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019140
19141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142 hardcode_libdir_separator_CXX=:
19143
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19147 #
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19151 # dependencies.
19152 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'
19153 ;;
19154 *)
19155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019157 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 +000019158
19159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19160 hardcode_libdir_separator_CXX=:
19161
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19166
19167 else
19168 # FIXME: insert proper C++ library support
19169 ld_shlibs_CXX=no
19170 fi
19171 ;;
19172 esac
19173 ;;
19174 psos*)
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19177 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019178 sunos4*)
19179 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019180 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019181 # Sun C++ 4.x
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019185 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019186 # Lucid
19187 # FIXME: insert proper C++ library support
19188 ld_shlibs_CXX=no
19189 ;;
19190 *)
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 esac
19195 ;;
19196 solaris*)
19197 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019198 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019199 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019200 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019201 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019202 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 +000019203 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 +000019204 $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 +000019205
19206 hardcode_libdir_flag_spec_CXX='-R$libdir'
19207 hardcode_shlibpath_var_CXX=no
19208 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019209 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019210 *)
19211 # The C++ compiler is used as linker so we must use $wl
19212 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019213 # linker. We must also pass each convience library through
19214 # to the system linker between allextract/defaultextract.
19215 # The C++ compiler will combine linker options so we
19216 # cannot just pass the convience library names through
19217 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019218 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019219 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 +000019220 ;;
19221 esac
19222 link_all_deplibs_CXX=yes
19223
Reid Spencera773bd52006-08-04 18:18:08 +000019224 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019225
19226 # Archives containing C++ object files must be created using
19227 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19228 # necessary to make sure instantiated templates are included
19229 # in the archive.
19230 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19231 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019232 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019233 # Green Hills C++ Compiler
19234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19235
19236 # The C++ compiler must be used to create the archive.
19237 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19238 ;;
19239 *)
19240 # GNU C++ compiler with Solaris linker
19241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19242 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19243 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019244 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 +000019245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19246 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19247
John Criswell47fdd832003-07-14 16:52:07 +000019248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019251 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019252 else
19253 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19254 # platform.
19255 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 +000019256 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19257 $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 +000019258
19259 # Commands to make compiler produce verbose output that lists
19260 # what "hidden" libraries, object files and flags are used when
19261 # linking a shared library.
19262 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19263 fi
19264
19265 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19266 fi
19267 ;;
19268 esac
19269 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19271 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019272 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019273 hardcode_shlibpath_var_CXX=no
19274 runpath_var='LD_RUN_PATH'
19275
19276 case $cc_basename in
19277 CC*)
19278 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19279 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19280 ;;
19281 *)
19282 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 ;;
19285 esac
19286 ;;
19287 sysv5* | sco3.2v5* | sco5v6*)
19288 # Note: We can NOT use -z defs as we might desire, because we do not
19289 # link with -lc, and that would cause any symbols used from libc to
19290 # always be unresolved, which means just about no library would
19291 # ever link correctly. If we're not using GNU ld we use -z text
19292 # though, which does catch some bad symbols but isn't as heavy-handed
19293 # as -z defs.
19294 # For security reasons, it is highly recommended that you always
19295 # use absolute paths for naming shared libraries, and exclude the
19296 # DT_RUNPATH tag from executables and libraries. But doing so
19297 # requires that you compile everything twice, which is a pain.
19298 # So that behaviour is only enabled if SCOABSPATH is set to a
19299 # non-empty value in the environment. Most likely only useful for
19300 # creating official distributions of packages.
19301 # This is a hack until libtool officially supports absolute path
19302 # names for shared libraries.
19303 no_undefined_flag_CXX='${wl}-z,text'
19304 allow_undefined_flag_CXX='${wl}-z,nodefs'
19305 archive_cmds_need_lc_CXX=no
19306 hardcode_shlibpath_var_CXX=no
19307 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19308 hardcode_libdir_separator_CXX=':'
19309 link_all_deplibs_CXX=yes
19310 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19311 runpath_var='LD_RUN_PATH'
19312
19313 case $cc_basename in
19314 CC*)
19315 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19316 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19317 ;;
19318 *)
19319 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 ;;
19322 esac
John Criswell47fdd832003-07-14 16:52:07 +000019323 ;;
19324 tandem*)
19325 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019326 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019327 # NonStop-UX NCC 3.20
19328 # FIXME: insert proper C++ library support
19329 ld_shlibs_CXX=no
19330 ;;
19331 *)
19332 # FIXME: insert proper C++ library support
19333 ld_shlibs_CXX=no
19334 ;;
19335 esac
19336 ;;
19337 vxworks*)
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19340 ;;
19341 *)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345esac
Reid Spencera773bd52006-08-04 18:18:08 +000019346{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19347echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019348test "$ld_shlibs_CXX" = no && can_build_shared=no
19349
19350GCC_CXX="$GXX"
19351LD_CXX="$LD"
19352
John Criswell47fdd832003-07-14 16:52:07 +000019353
19354cat > conftest.$ac_ext <<EOF
19355class Foo
19356{
19357public:
19358 Foo (void) { a = 0; }
19359private:
19360 int a;
19361};
19362EOF
19363
19364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365 (eval $ac_compile) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; then
19369 # Parse the compiler output and extract the necessary
19370 # objects, libraries and library flags.
19371
19372 # Sentinel used to keep track of whether or not we are before
19373 # the conftest object file.
19374 pre_test_object_deps_done=no
19375
19376 # The `*' in the case matches for architectures that use `case' in
19377 # $output_verbose_cmd can trigger glob expansion during the loop
19378 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019379 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019380
19381 for p in `eval $output_verbose_link_cmd`; do
19382 case $p in
19383
19384 -L* | -R* | -l*)
19385 # Some compilers place space between "-{L,R}" and the path.
19386 # Remove the space.
19387 if test $p = "-L" \
19388 || test $p = "-R"; then
19389 prev=$p
19390 continue
19391 else
19392 prev=
19393 fi
19394
19395 if test "$pre_test_object_deps_done" = no; then
19396 case $p in
19397 -L* | -R*)
19398 # Internal compiler library paths should come after those
19399 # provided the user. The postdeps already come after the
19400 # user supplied libs so there is no need to process them.
19401 if test -z "$compiler_lib_search_path_CXX"; then
19402 compiler_lib_search_path_CXX="${prev}${p}"
19403 else
19404 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19405 fi
19406 ;;
19407 # The "-l" case would never come before the object being
19408 # linked, so don't bother handling this case.
19409 esac
19410 else
19411 if test -z "$postdeps_CXX"; then
19412 postdeps_CXX="${prev}${p}"
19413 else
19414 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19415 fi
19416 fi
19417 ;;
19418
19419 *.$objext)
19420 # This assumes that the test object file only shows up
19421 # once in the compiler output.
19422 if test "$p" = "conftest.$objext"; then
19423 pre_test_object_deps_done=yes
19424 continue
19425 fi
19426
19427 if test "$pre_test_object_deps_done" = no; then
19428 if test -z "$predep_objects_CXX"; then
19429 predep_objects_CXX="$p"
19430 else
19431 predep_objects_CXX="$predep_objects_CXX $p"
19432 fi
19433 else
19434 if test -z "$postdep_objects_CXX"; then
19435 postdep_objects_CXX="$p"
19436 else
19437 postdep_objects_CXX="$postdep_objects_CXX $p"
19438 fi
19439 fi
19440 ;;
19441
19442 *) ;; # Ignore the rest.
19443
19444 esac
19445 done
19446
19447 # Clean up.
19448 rm -f a.out a.exe
19449else
19450 echo "libtool.m4: error: problem compiling CXX test program"
19451fi
19452
19453$rm -f confest.$objext
19454
Reid Spencera773bd52006-08-04 18:18:08 +000019455# PORTME: override above test on systems where it is broken
19456case $host_os in
19457interix3*)
19458 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19459 # hack all around it, let's just trust "g++" to DTRT.
19460 predep_objects_CXX=
19461 postdep_objects_CXX=
19462 postdeps_CXX=
19463 ;;
19464
19465solaris*)
19466 case $cc_basename in
19467 CC*)
19468 # Adding this requires a known-good setup of shared libraries for
19469 # Sun compiler versions before 5.6, else PIC objects from an old
19470 # archive will be linked into the output, leading to subtle bugs.
19471 postdeps_CXX='-lCstd -lCrun'
19472 ;;
19473 esac
19474 ;;
19475esac
19476
19477
John Criswell47fdd832003-07-14 16:52:07 +000019478case " $postdeps_CXX " in
19479*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19480esac
19481
19482lt_prog_compiler_wl_CXX=
19483lt_prog_compiler_pic_CXX=
19484lt_prog_compiler_static_CXX=
19485
Reid Spencera773bd52006-08-04 18:18:08 +000019486{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19487echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019488
19489 # C++ specific cases for pic, static, wl, etc.
19490 if test "$GXX" = yes; then
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_static_CXX='-static'
19493
19494 case $host_os in
19495 aix*)
19496 # All AIX code is PIC.
19497 if test "$host_cpu" = ia64; then
19498 # AIX 5 now supports IA64 processor
19499 lt_prog_compiler_static_CXX='-Bstatic'
19500 fi
19501 ;;
19502 amigaos*)
19503 # FIXME: we need at least 68020 code to build shared libraries, but
19504 # adding the `-m68020' flag to GCC prevents building anything better,
19505 # like `-m68040'.
19506 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19507 ;;
19508 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19509 # PIC is the default for these OSes.
19510 ;;
19511 mingw* | os2* | pw32*)
19512 # This hack is so that the source file can tell whether it is being
19513 # built for inclusion in a dll (and should export symbols for example).
19514 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19515 ;;
19516 darwin* | rhapsody*)
19517 # PIC is the default on this platform
19518 # Common symbols not allowed in MH_DYLIB files
19519 lt_prog_compiler_pic_CXX='-fno-common'
19520 ;;
19521 *djgpp*)
19522 # DJGPP does not support shared libraries at all
19523 lt_prog_compiler_pic_CXX=
19524 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019525 interix3*)
19526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19527 # Instead, we relocate shared libraries at runtime.
19528 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019529 sysv4*MP*)
19530 if test -d /usr/nec; then
19531 lt_prog_compiler_pic_CXX=-Kconform_pic
19532 fi
19533 ;;
19534 hpux*)
19535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19536 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019537 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019538 hppa*64*|ia64*)
19539 ;;
19540 *)
19541 lt_prog_compiler_pic_CXX='-fPIC'
19542 ;;
19543 esac
19544 ;;
19545 *)
19546 lt_prog_compiler_pic_CXX='-fPIC'
19547 ;;
19548 esac
19549 else
19550 case $host_os in
19551 aix4* | aix5*)
19552 # All AIX code is PIC.
19553 if test "$host_cpu" = ia64; then
19554 # AIX 5 now supports IA64 processor
19555 lt_prog_compiler_static_CXX='-Bstatic'
19556 else
19557 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19558 fi
19559 ;;
19560 chorus*)
19561 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019562 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019563 # Green Hills C++ Compiler
19564 # _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"
19565 ;;
19566 esac
19567 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019568 darwin*)
19569 # PIC is the default on this platform
19570 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019571 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572 xlc*)
19573 lt_prog_compiler_pic_CXX='-qnocommon'
19574 lt_prog_compiler_wl_CXX='-Wl,'
19575 ;;
19576 esac
19577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019578 dgux*)
19579 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019580 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019581 lt_prog_compiler_pic_CXX='-KPIC'
19582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019583 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019584 # Green Hills C++ Compiler
19585 lt_prog_compiler_pic_CXX='-pic'
19586 ;;
19587 *)
19588 ;;
19589 esac
19590 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019591 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019592 # FreeBSD uses GNU C++
19593 ;;
19594 hpux9* | hpux10* | hpux11*)
19595 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019596 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019597 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019598 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019599 if test "$host_cpu" != ia64; then
19600 lt_prog_compiler_pic_CXX='+Z'
19601 fi
19602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019603 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019604 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19606 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019607 hppa*64*|ia64*)
19608 # +Z the default
19609 ;;
19610 *)
19611 lt_prog_compiler_pic_CXX='+Z'
19612 ;;
19613 esac
19614 ;;
19615 *)
19616 ;;
19617 esac
19618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019619 interix*)
19620 # This is c89, which is MS Visual C++ (no shared libs)
19621 # Anyone wants to do a port?
19622 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019623 irix5* | irix6* | nonstopux*)
19624 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019625 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019626 lt_prog_compiler_wl_CXX='-Wl,'
19627 lt_prog_compiler_static_CXX='-non_shared'
19628 # CC pic flag -KPIC is the default.
19629 ;;
19630 *)
19631 ;;
19632 esac
19633 ;;
19634 linux*)
19635 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019636 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019637 # KAI C++ Compiler
19638 lt_prog_compiler_wl_CXX='--backend -Wl,'
19639 lt_prog_compiler_pic_CXX='-fPIC'
19640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019641 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019642 # Intel C++
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_pic_CXX='-KPIC'
19645 lt_prog_compiler_static_CXX='-static'
19646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019647 pgCC*)
19648 # Portland Group C++ compiler.
19649 lt_prog_compiler_wl_CXX='-Wl,'
19650 lt_prog_compiler_pic_CXX='-fpic'
19651 lt_prog_compiler_static_CXX='-Bstatic'
19652 ;;
19653 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019654 # Compaq C++
19655 # Make sure the PIC flag is empty. It appears that all Alpha
19656 # Linux and Compaq Tru64 Unix objects are PIC.
19657 lt_prog_compiler_pic_CXX=
19658 lt_prog_compiler_static_CXX='-non_shared'
19659 ;;
19660 *)
19661 ;;
19662 esac
19663 ;;
19664 lynxos*)
19665 ;;
19666 m88k*)
19667 ;;
19668 mvs*)
19669 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019670 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019671 lt_prog_compiler_pic_CXX='-W c,exportall'
19672 ;;
19673 *)
19674 ;;
19675 esac
19676 ;;
19677 netbsd*)
19678 ;;
19679 osf3* | osf4* | osf5*)
19680 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019681 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019682 lt_prog_compiler_wl_CXX='--backend -Wl,'
19683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019684 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019685 # Rational C++ 2.4.1
19686 lt_prog_compiler_pic_CXX='-pic'
19687 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019688 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019689 # Digital/Compaq C++
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 # Make sure the PIC flag is empty. It appears that all Alpha
19692 # Linux and Compaq Tru64 Unix objects are PIC.
19693 lt_prog_compiler_pic_CXX=
19694 lt_prog_compiler_static_CXX='-non_shared'
19695 ;;
19696 *)
19697 ;;
19698 esac
19699 ;;
19700 psos*)
19701 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019702 solaris*)
19703 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019704 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019705 # Sun C++ 4.2, 5.x and Centerline C++
19706 lt_prog_compiler_pic_CXX='-KPIC'
19707 lt_prog_compiler_static_CXX='-Bstatic'
19708 lt_prog_compiler_wl_CXX='-Qoption ld '
19709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019710 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019711 # Green Hills C++ Compiler
19712 lt_prog_compiler_pic_CXX='-PIC'
19713 ;;
19714 *)
19715 ;;
19716 esac
19717 ;;
19718 sunos4*)
19719 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019720 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019721 # Sun C++ 4.x
19722 lt_prog_compiler_pic_CXX='-pic'
19723 lt_prog_compiler_static_CXX='-Bstatic'
19724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019725 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019726 # Lucid
19727 lt_prog_compiler_pic_CXX='-pic'
19728 ;;
19729 *)
19730 ;;
19731 esac
19732 ;;
19733 tandem*)
19734 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019735 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019736 # NonStop-UX NCC 3.20
19737 lt_prog_compiler_pic_CXX='-KPIC'
19738 ;;
19739 *)
19740 ;;
19741 esac
19742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19744 case $cc_basename in
19745 CC*)
19746 lt_prog_compiler_wl_CXX='-Wl,'
19747 lt_prog_compiler_pic_CXX='-KPIC'
19748 lt_prog_compiler_static_CXX='-Bstatic'
19749 ;;
19750 esac
John Criswell47fdd832003-07-14 16:52:07 +000019751 ;;
19752 vxworks*)
19753 ;;
19754 *)
19755 lt_prog_compiler_can_build_shared_CXX=no
19756 ;;
19757 esac
19758 fi
19759
Reid Spencera773bd52006-08-04 18:18:08 +000019760{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19761echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019762
19763#
19764# Check to make sure the PIC flag actually works.
19765#
19766if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019767
Reid Spencera773bd52006-08-04 18:18:08 +000019768{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19769echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019770if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773 lt_prog_compiler_pic_works_CXX=no
19774 ac_outfile=conftest.$ac_objext
19775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19776 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19777 # Insert the option either (1) after the last *FLAGS variable, or
19778 # (2) before a word containing "conftest.", or (3) at the end.
19779 # Note that $ac_compile itself does not contain backslashes and begins
19780 # with a dollar sign (not a hyphen), so the echo should work correctly.
19781 # The option is referenced via a variable to avoid confusing sed.
19782 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19785 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000019786 (eval echo "\"\$as_me:19786: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019787 (eval "$lt_compile" 2>conftest.err)
19788 ac_status=$?
19789 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000019790 echo "$as_me:19790: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019791 if (exit $ac_status) && test -s "$ac_outfile"; then
19792 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019793 # So say no if there are warnings other than the usual output.
19794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019797 lt_prog_compiler_pic_works_CXX=yes
19798 fi
19799 fi
19800 $rm conftest*
19801
19802fi
Reid Spencera773bd52006-08-04 18:18:08 +000019803{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19804echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019805
19806if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19807 case $lt_prog_compiler_pic_CXX in
19808 "" | " "*) ;;
19809 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19810 esac
19811else
19812 lt_prog_compiler_pic_CXX=
19813 lt_prog_compiler_can_build_shared_CXX=no
19814fi
19815
19816fi
Reid Spencera773bd52006-08-04 18:18:08 +000019817case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019818 # For platforms which do not support PIC, -DPIC is meaningless:
19819 *djgpp*)
19820 lt_prog_compiler_pic_CXX=
19821 ;;
19822 *)
19823 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19824 ;;
19825esac
19826
Reid Spencera773bd52006-08-04 18:18:08 +000019827#
19828# Check to make sure the static flag actually works.
19829#
19830wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19831{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19832echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19833if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835else
19836 lt_prog_compiler_static_works_CXX=no
19837 save_LDFLAGS="$LDFLAGS"
19838 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19839 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19841 # The linker can only warn and ignore the option if not recognized
19842 # So say no if there are warnings
19843 if test -s conftest.err; then
19844 # Append any errors to the config.log.
19845 cat conftest.err 1>&5
19846 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19848 if diff conftest.exp conftest.er2 >/dev/null; then
19849 lt_prog_compiler_static_works_CXX=yes
19850 fi
19851 else
19852 lt_prog_compiler_static_works_CXX=yes
19853 fi
19854 fi
19855 $rm conftest*
19856 LDFLAGS="$save_LDFLAGS"
19857
19858fi
19859{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19860echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19861
19862if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19863 :
19864else
19865 lt_prog_compiler_static_CXX=
19866fi
19867
19868
19869{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19870echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019871if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873else
19874 lt_cv_prog_compiler_c_o_CXX=no
19875 $rm -r conftest 2>/dev/null
19876 mkdir conftest
19877 cd conftest
19878 mkdir out
19879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19880
John Criswell47fdd832003-07-14 16:52:07 +000019881 lt_compiler_flag="-o out/conftest2.$ac_objext"
19882 # Insert the option either (1) after the last *FLAGS variable, or
19883 # (2) before a word containing "conftest.", or (3) at the end.
19884 # Note that $ac_compile itself does not contain backslashes and begins
19885 # with a dollar sign (not a hyphen), so the echo should work correctly.
19886 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19889 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000019890 (eval echo "\"\$as_me:19890: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019891 (eval "$lt_compile" 2>out/conftest.err)
19892 ac_status=$?
19893 cat out/conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000019894 echo "$as_me:19894: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19896 then
19897 # The compiler can only warn and ignore the option if not recognized
19898 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019899 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019902 lt_cv_prog_compiler_c_o_CXX=yes
19903 fi
19904 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019905 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019906 $rm conftest*
19907 # SGI C++ compiler will create directory out/ii_files/ for
19908 # template instantiation
19909 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19910 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019911 cd ..
19912 rmdir conftest
19913 $rm conftest*
19914
19915fi
Reid Spencera773bd52006-08-04 18:18:08 +000019916{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19917echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019918
19919
19920hard_links="nottested"
19921if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19922 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019923 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19924echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019925 hard_links=yes
19926 $rm conftest*
19927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19928 touch conftest.a
19929 ln conftest.a conftest.b 2>&5 || hard_links=no
19930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019931 { echo "$as_me:$LINENO: result: $hard_links" >&5
19932echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019933 if test "$hard_links" = no; then
19934 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19935echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19936 need_locks=warn
19937 fi
19938else
19939 need_locks=no
19940fi
19941
Reid Spencera773bd52006-08-04 18:18:08 +000019942{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19943echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019944
19945 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19946 case $host_os in
19947 aix4* | aix5*)
19948 # If we're using GNU nm, then we don't want the "-C" option.
19949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19950 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19951 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'
19952 else
19953 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'
19954 fi
19955 ;;
19956 pw32*)
19957 export_symbols_cmds_CXX="$ltdll_cmds"
19958 ;;
19959 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019960 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 +000019961 ;;
19962 *)
19963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19964 ;;
19965 esac
19966
Reid Spencera773bd52006-08-04 18:18:08 +000019967{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19968echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019969test "$ld_shlibs_CXX" = no && can_build_shared=no
19970
John Criswell47fdd832003-07-14 16:52:07 +000019971#
19972# Do we need to explicitly link libc?
19973#
19974case "x$archive_cmds_need_lc_CXX" in
19975x|xyes)
19976 # Assume -lc should be added
19977 archive_cmds_need_lc_CXX=yes
19978
19979 if test "$enable_shared" = yes && test "$GCC" = yes; then
19980 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019982 # FIXME: we may have to deal with multi-command sequences.
19983 ;;
19984 '$CC '*)
19985 # Test whether the compiler implicitly links with -lc since on some
19986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19987 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019988 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19989echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019990 $rm conftest*
19991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19992
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994 (eval $ac_compile) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } 2>conftest.err; then
19998 soname=conftest
19999 lib=conftest
20000 libobjs=conftest.$ac_objext
20001 deplibs=
20002 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020003 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020004 compiler_flags=-v
20005 linker_flags=-v
20006 verstring=
20007 output_objdir=.
20008 libname=conftest
20009 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20010 allow_undefined_flag_CXX=
20011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20012 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }
20016 then
20017 archive_cmds_need_lc_CXX=no
20018 else
20019 archive_cmds_need_lc_CXX=yes
20020 fi
20021 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20022 else
20023 cat conftest.err 1>&5
20024 fi
20025 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020026 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20027echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020028 ;;
20029 esac
20030 fi
20031 ;;
20032esac
20033
Reid Spencera773bd52006-08-04 18:18:08 +000020034{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20035echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020036library_names_spec=
20037libname_spec='lib$name'
20038soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020039shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020040postinstall_cmds=
20041postuninstall_cmds=
20042finish_cmds=
20043finish_eval=
20044shlibpath_var=
20045shlibpath_overrides_runpath=unknown
20046version_type=none
20047dynamic_linker="$host_os ld.so"
20048sys_lib_dlsearch_path_spec="/lib /usr/lib"
20049if test "$GCC" = yes; then
20050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20052 # if the path contains ";" then we assume it to be the separator
20053 # otherwise default to the standard path separator (i.e. ":") - it is
20054 # assumed that no part of a normal pathname contains ";" but that should
20055 # okay in the real world where ";" in dirpaths is itself problematic.
20056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20057 else
20058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20059 fi
20060else
20061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20062fi
20063need_lib_prefix=unknown
20064hardcode_into_libs=no
20065
20066# when you set need_version to no, make sure it does not cause -set_version
20067# flags to be left without arguments
20068need_version=unknown
20069
20070case $host_os in
20071aix3*)
20072 version_type=linux
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20074 shlibpath_var=LIBPATH
20075
20076 # AIX 3 has no versioning support, so we append a major version to the name.
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 ;;
20079
20080aix4* | aix5*)
20081 version_type=linux
20082 need_lib_prefix=no
20083 need_version=no
20084 hardcode_into_libs=yes
20085 if test "$host_cpu" = ia64; then
20086 # AIX 5 supports IA64
20087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20088 shlibpath_var=LD_LIBRARY_PATH
20089 else
20090 # With GCC up to 2.95.x, collect2 would create an import file
20091 # for dependence libraries. The import file would start with
20092 # the line `#! .'. This would cause the generated library to
20093 # depend on `.', always an invalid library. This was fixed in
20094 # development snapshots of GCC prior to 3.0.
20095 case $host_os in
20096 aix4 | aix4.[01] | aix4.[01].*)
20097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20098 echo ' yes '
20099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20100 :
20101 else
20102 can_build_shared=no
20103 fi
20104 ;;
20105 esac
20106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20107 # soname into executable. Probably we can add versioning support to
20108 # collect2, so additional links can be useful in future.
20109 if test "$aix_use_runtimelinking" = yes; then
20110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20111 # instead of lib<name>.a to let people know that these are not
20112 # typical AIX shared libraries.
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20114 else
20115 # We preserve .a as extension for shared libraries through AIX4.2
20116 # and later when we are not doing run time linking.
20117 library_names_spec='${libname}${release}.a $libname.a'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 fi
20120 shlibpath_var=LIBPATH
20121 fi
20122 ;;
20123
20124amigaos*)
20125 library_names_spec='$libname.ixlibrary $libname.a'
20126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020127 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 +000020128 ;;
20129
20130beos*)
20131 library_names_spec='${libname}${shared_ext}'
20132 dynamic_linker="$host_os ld.so"
20133 shlibpath_var=LIBRARY_PATH
20134 ;;
20135
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020137 version_type=linux
20138 need_version=no
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20142 shlibpath_var=LD_LIBRARY_PATH
20143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20145 # the default ld.so.conf also contains /usr/contrib/lib and
20146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20147 # libtool to hard-code these into programs
20148 ;;
20149
20150cygwin* | mingw* | pw32*)
20151 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020153 need_version=no
20154 need_lib_prefix=no
20155
20156 case $GCC,$host_os in
20157 yes,cygwin* | yes,mingw* | yes,pw32*)
20158 library_names_spec='$libname.dll.a'
20159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020160 postinstall_cmds='base_file=`basename \${file}`~
20161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20162 dldir=$destdir/`dirname \$dlpath`~
20163 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020164 $install_prog $dir/$dlname \$dldir/$dlname~
20165 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20167 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020168 $rm \$dlpath'
20169 shlibpath_overrides_runpath=yes
20170
20171 case $host_os in
20172 cygwin*)
20173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20174 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 +000020175 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020176 ;;
20177 mingw*)
20178 # MinGW DLLs use traditional 'lib' prefix
20179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20181 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20182 # It is most probably a Windows format PATH printed by
20183 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20184 # path with ; separators, and with drive letters. We can handle the
20185 # drive letters (cygwin fileutils understands them), so leave them,
20186 # especially as we might pass files found there to a mingw objdump,
20187 # which wouldn't understand a cygwinified path. Ahh.
20188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20189 else
20190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20191 fi
20192 ;;
20193 pw32*)
20194 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020195 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 +000020196 ;;
20197 esac
20198 ;;
20199
20200 *)
20201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20202 ;;
20203 esac
20204 dynamic_linker='Win32 ld.exe'
20205 # FIXME: first we should search . and the directory the executable is in
20206 shlibpath_var=PATH
20207 ;;
20208
20209darwin* | rhapsody*)
20210 dynamic_linker="$host_os dyld"
20211 version_type=darwin
20212 need_lib_prefix=no
20213 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020214 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020215 soname_spec='${libname}${release}${major}$shared_ext'
20216 shlibpath_overrides_runpath=yes
20217 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020218 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020219 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020220 if test "$GCC" = yes; then
20221 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"`
20222 else
20223 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020224 fi
20225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20226 ;;
20227
20228dgux*)
20229 version_type=linux
20230 need_lib_prefix=no
20231 need_version=no
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 ;;
20236
20237freebsd1*)
20238 dynamic_linker=no
20239 ;;
20240
Reid Spencer2706f8c2004-09-19 23:53:36 +000020241kfreebsd*-gnu)
20242 version_type=linux
20243 need_lib_prefix=no
20244 need_version=no
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=no
20249 hardcode_into_libs=yes
20250 dynamic_linker='GNU ld.so'
20251 ;;
20252
Reid Spencera773bd52006-08-04 18:18:08 +000020253freebsd* | dragonfly*)
20254 # DragonFly does not have aout. When/if they implement a new
20255 # versioning mechanism, adjust this.
20256 if test -x /usr/bin/objformat; then
20257 objformat=`/usr/bin/objformat`
20258 else
20259 case $host_os in
20260 freebsd[123]*) objformat=aout ;;
20261 *) objformat=elf ;;
20262 esac
20263 fi
John Criswell47fdd832003-07-14 16:52:07 +000020264 version_type=freebsd-$objformat
20265 case $version_type in
20266 freebsd-elf*)
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20268 need_version=no
20269 need_lib_prefix=no
20270 ;;
20271 freebsd-*)
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20273 need_version=yes
20274 ;;
20275 esac
20276 shlibpath_var=LD_LIBRARY_PATH
20277 case $host_os in
20278 freebsd2*)
20279 shlibpath_overrides_runpath=yes
20280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020281 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020282 shlibpath_overrides_runpath=yes
20283 hardcode_into_libs=yes
20284 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020287 shlibpath_overrides_runpath=no
20288 hardcode_into_libs=yes
20289 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020290 freebsd*) # from 4.6 on
20291 shlibpath_overrides_runpath=yes
20292 hardcode_into_libs=yes
20293 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020294 esac
20295 ;;
20296
20297gnu*)
20298 version_type=linux
20299 need_lib_prefix=no
20300 need_version=no
20301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20302 soname_spec='${libname}${release}${shared_ext}$major'
20303 shlibpath_var=LD_LIBRARY_PATH
20304 hardcode_into_libs=yes
20305 ;;
20306
20307hpux9* | hpux10* | hpux11*)
20308 # Give a soname corresponding to the major version so that dld.sl refuses to
20309 # link against other versions.
20310 version_type=sunos
20311 need_lib_prefix=no
20312 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020313 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020314 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020315 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020316 hardcode_into_libs=yes
20317 dynamic_linker="$host_os dld.so"
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 if test "X$HPUX_IA64_MODE" = X32; then
20323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20324 else
20325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20326 fi
20327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20328 ;;
20329 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020330 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020331 hardcode_into_libs=yes
20332 dynamic_linker="$host_os dld.sl"
20333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20339 ;;
20340 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020341 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020342 dynamic_linker="$host_os dld.sl"
20343 shlibpath_var=SHLIB_PATH
20344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 ;;
20348 esac
20349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20350 postinstall_cmds='chmod 555 $lib'
20351 ;;
20352
Reid Spencera773bd52006-08-04 18:18:08 +000020353interix3*)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=no
20362 hardcode_into_libs=yes
20363 ;;
20364
John Criswell47fdd832003-07-14 16:52:07 +000020365irix5* | irix6* | nonstopux*)
20366 case $host_os in
20367 nonstopux*) version_type=nonstopux ;;
20368 *)
20369 if test "$lt_cv_prog_gnu_ld" = yes; then
20370 version_type=linux
20371 else
20372 version_type=irix
20373 fi ;;
20374 esac
20375 need_lib_prefix=no
20376 need_version=no
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20379 case $host_os in
20380 irix5* | nonstopux*)
20381 libsuff= shlibsuff=
20382 ;;
20383 *)
20384 case $LD in # libtool.m4 will add one of these switches to LD
20385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20386 libsuff= shlibsuff= libmagic=32-bit;;
20387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20388 libsuff=32 shlibsuff=N32 libmagic=N32;;
20389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20391 *) libsuff= shlibsuff= libmagic=never-match;;
20392 esac
20393 ;;
20394 esac
20395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20396 shlibpath_overrides_runpath=no
20397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20399 hardcode_into_libs=yes
20400 ;;
20401
20402# No shared lib support for Linux oldld, aout, or coff.
20403linux*oldld* | linux*aout* | linux*coff*)
20404 dynamic_linker=no
20405 ;;
20406
20407# This must be Linux ELF.
20408linux*)
20409 version_type=linux
20410 need_lib_prefix=no
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=no
20417 # This implies no fast_install, which is unacceptable.
20418 # Some rework will be needed to allow for fast_install
20419 # before this can be enabled.
20420 hardcode_into_libs=yes
20421
Reid Spencer2706f8c2004-09-19 23:53:36 +000020422 # Append ld.so.conf contents to the search path
20423 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020424 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 +000020425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20426 fi
20427
John Criswell47fdd832003-07-14 16:52:07 +000020428 # We used to test for /lib/ld.so.1 and disable shared libraries on
20429 # powerpc, because MkLinux only supported shared libraries with the
20430 # GNU dynamic linker. Since this was broken with cross compilers,
20431 # most powerpc-linux boxes support dynamic linking these days and
20432 # people can always --disable-shared, the test was removed, and we
20433 # assume the GNU/Linux dynamic linker is in use.
20434 dynamic_linker='GNU/Linux ld.so'
20435 ;;
20436
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437knetbsd*-gnu)
20438 version_type=linux
20439 need_lib_prefix=no
20440 need_version=no
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20446 dynamic_linker='GNU ld.so'
20447 ;;
20448
John Criswell47fdd832003-07-14 16:52:07 +000020449netbsd*)
20450 version_type=sunos
20451 need_lib_prefix=no
20452 need_version=no
20453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20456 dynamic_linker='NetBSD (a.out) ld.so'
20457 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020459 soname_spec='${libname}${release}${shared_ext}$major'
20460 dynamic_linker='NetBSD ld.elf_so'
20461 fi
20462 shlibpath_var=LD_LIBRARY_PATH
20463 shlibpath_overrides_runpath=yes
20464 hardcode_into_libs=yes
20465 ;;
20466
20467newsos6)
20468 version_type=linux
20469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=yes
20472 ;;
20473
Reid Spencer2706f8c2004-09-19 23:53:36 +000020474nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020475 version_type=linux
20476 need_lib_prefix=no
20477 need_version=no
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479 soname_spec='${libname}${release}${shared_ext}$major'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20482 ;;
20483
20484openbsd*)
20485 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020486 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020487 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20489 case $host_os in
20490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20491 *) need_version=no ;;
20492 esac
John Criswell47fdd832003-07-14 16:52:07 +000020493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20497 case $host_os in
20498 openbsd2.[89] | openbsd2.[89].*)
20499 shlibpath_overrides_runpath=no
20500 ;;
20501 *)
20502 shlibpath_overrides_runpath=yes
20503 ;;
20504 esac
20505 else
20506 shlibpath_overrides_runpath=yes
20507 fi
20508 ;;
20509
20510os2*)
20511 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020512 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020513 need_lib_prefix=no
20514 library_names_spec='$libname${shared_ext} $libname.a'
20515 dynamic_linker='OS/2 ld.exe'
20516 shlibpath_var=LIBPATH
20517 ;;
20518
20519osf3* | osf4* | osf5*)
20520 version_type=osf
20521 need_lib_prefix=no
20522 need_version=no
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20528 ;;
20529
John Criswell47fdd832003-07-14 16:52:07 +000020530solaris*)
20531 version_type=linux
20532 need_lib_prefix=no
20533 need_version=no
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 shlibpath_var=LD_LIBRARY_PATH
20537 shlibpath_overrides_runpath=yes
20538 hardcode_into_libs=yes
20539 # ldd complains unless libraries are executable
20540 postinstall_cmds='chmod +x $lib'
20541 ;;
20542
20543sunos4*)
20544 version_type=sunos
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath=yes
20549 if test "$with_gnu_ld" = yes; then
20550 need_lib_prefix=no
20551 fi
20552 need_version=yes
20553 ;;
20554
Reid Spencera773bd52006-08-04 18:18:08 +000020555sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020556 version_type=linux
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558 soname_spec='${libname}${release}${shared_ext}$major'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 case $host_vendor in
20561 sni)
20562 shlibpath_overrides_runpath=no
20563 need_lib_prefix=no
20564 export_dynamic_flag_spec='${wl}-Blargedynsym'
20565 runpath_var=LD_RUN_PATH
20566 ;;
20567 siemens)
20568 need_lib_prefix=no
20569 ;;
20570 motorola)
20571 need_lib_prefix=no
20572 need_version=no
20573 shlibpath_overrides_runpath=no
20574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20575 ;;
20576 esac
20577 ;;
20578
20579sysv4*MP*)
20580 if test -d /usr/nec ;then
20581 version_type=linux
20582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20583 soname_spec='$libname${shared_ext}.$major'
20584 shlibpath_var=LD_LIBRARY_PATH
20585 fi
20586 ;;
20587
Reid Spencera773bd52006-08-04 18:18:08 +000020588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20589 version_type=freebsd-elf
20590 need_lib_prefix=no
20591 need_version=no
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 hardcode_into_libs=yes
20596 if test "$with_gnu_ld" = yes; then
20597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20598 shlibpath_overrides_runpath=no
20599 else
20600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20601 shlibpath_overrides_runpath=yes
20602 case $host_os in
20603 sco3.2v5*)
20604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20605 ;;
20606 esac
20607 fi
20608 sys_lib_dlsearch_path_spec='/usr/lib'
20609 ;;
20610
John Criswell47fdd832003-07-14 16:52:07 +000020611uts4*)
20612 version_type=linux
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LD_LIBRARY_PATH
20616 ;;
20617
20618*)
20619 dynamic_linker=no
20620 ;;
20621esac
Reid Spencera773bd52006-08-04 18:18:08 +000020622{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20623echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020624test "$dynamic_linker" = no && can_build_shared=no
20625
Reid Spencera773bd52006-08-04 18:18:08 +000020626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20627if test "$GCC" = yes; then
20628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20629fi
20630
20631{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20632echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020633hardcode_action_CXX=
20634if test -n "$hardcode_libdir_flag_spec_CXX" || \
20635 test -n "$runpath_var_CXX" || \
20636 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20637
20638 # We can hardcode non-existant directories.
20639 if test "$hardcode_direct_CXX" != no &&
20640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20641 # have to relink, otherwise we might link with an installed library
20642 # when we should be linking with a yet-to-be-installed one
20643 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20644 test "$hardcode_minus_L_CXX" != no; then
20645 # Linking always hardcodes the temporary library directory.
20646 hardcode_action_CXX=relink
20647 else
20648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20649 hardcode_action_CXX=immediate
20650 fi
20651else
20652 # We cannot hardcode anything, or else we can only hardcode existing
20653 # directories.
20654 hardcode_action_CXX=unsupported
20655fi
Reid Spencera773bd52006-08-04 18:18:08 +000020656{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20657echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020658
20659if test "$hardcode_action_CXX" = relink; then
20660 # Fast installation is not supported
20661 enable_fast_install=no
20662elif test "$shlibpath_overrides_runpath" = yes ||
20663 test "$enable_shared" = no; then
20664 # Fast installation is not necessary
20665 enable_fast_install=needless
20666fi
20667
John Criswell47fdd832003-07-14 16:52:07 +000020668
20669# The else clause should only fire when bootstrapping the
20670# libtool distribution, otherwise you forgot to ship ltmain.sh
20671# with your package, and you will get complaints that there are
20672# no rules to generate ltmain.sh.
20673if test -f "$ltmain"; then
20674 # See if we are running on zsh, and set the options which allow our commands through
20675 # without removal of \ escapes.
20676 if test -n "${ZSH_VERSION+set}" ; then
20677 setopt NO_GLOB_SUBST
20678 fi
20679 # Now quote all the things that may contain metacharacters while being
20680 # careful not to overquote the AC_SUBSTed values. We take copies of the
20681 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020682 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 +000020683 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20686 deplibs_check_method reload_flag reload_cmds need_locks \
20687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20688 lt_cv_sys_global_symbol_to_c_name_address \
20689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20690 old_postinstall_cmds old_postuninstall_cmds \
20691 compiler_CXX \
20692 CC_CXX \
20693 LD_CXX \
20694 lt_prog_compiler_wl_CXX \
20695 lt_prog_compiler_pic_CXX \
20696 lt_prog_compiler_static_CXX \
20697 lt_prog_compiler_no_builtin_flag_CXX \
20698 export_dynamic_flag_spec_CXX \
20699 thread_safe_flag_spec_CXX \
20700 whole_archive_flag_spec_CXX \
20701 enable_shared_with_static_runtimes_CXX \
20702 old_archive_cmds_CXX \
20703 old_archive_from_new_cmds_CXX \
20704 predep_objects_CXX \
20705 postdep_objects_CXX \
20706 predeps_CXX \
20707 postdeps_CXX \
20708 compiler_lib_search_path_CXX \
20709 archive_cmds_CXX \
20710 archive_expsym_cmds_CXX \
20711 postinstall_cmds_CXX \
20712 postuninstall_cmds_CXX \
20713 old_archive_from_expsyms_cmds_CXX \
20714 allow_undefined_flag_CXX \
20715 no_undefined_flag_CXX \
20716 export_symbols_cmds_CXX \
20717 hardcode_libdir_flag_spec_CXX \
20718 hardcode_libdir_flag_spec_ld_CXX \
20719 hardcode_libdir_separator_CXX \
20720 hardcode_automatic_CXX \
20721 module_cmds_CXX \
20722 module_expsym_cmds_CXX \
20723 lt_cv_prog_compiler_c_o_CXX \
20724 exclude_expsyms_CXX \
20725 include_expsyms_CXX; do
20726
20727 case $var in
20728 old_archive_cmds_CXX | \
20729 old_archive_from_new_cmds_CXX | \
20730 archive_cmds_CXX | \
20731 archive_expsym_cmds_CXX | \
20732 module_cmds_CXX | \
20733 module_expsym_cmds_CXX | \
20734 old_archive_from_expsyms_cmds_CXX | \
20735 export_symbols_cmds_CXX | \
20736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20737 postinstall_cmds | postuninstall_cmds | \
20738 old_postinstall_cmds | old_postuninstall_cmds | \
20739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20740 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020741 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 +000020742 ;;
20743 *)
20744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20745 ;;
20746 esac
20747 done
20748
20749 case $lt_echo in
20750 *'\$0 --fallback-echo"')
20751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20752 ;;
20753 esac
20754
20755cfgfile="$ofile"
20756
20757 cat <<__EOF__ >> "$cfgfile"
20758# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20759
20760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20761
20762# Shell to use when invoking shell scripts.
20763SHELL=$lt_SHELL
20764
20765# Whether or not to build shared libraries.
20766build_libtool_libs=$enable_shared
20767
20768# Whether or not to build static libraries.
20769build_old_libs=$enable_static
20770
20771# Whether or not to add -lc for building shared libraries.
20772build_libtool_need_lc=$archive_cmds_need_lc_CXX
20773
20774# Whether or not to disallow shared libs when runtime libs are static
20775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20776
20777# Whether or not to optimize for fast installation.
20778fast_install=$enable_fast_install
20779
20780# The host system.
20781host_alias=$host_alias
20782host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020783host_os=$host_os
20784
20785# The build system.
20786build_alias=$build_alias
20787build=$build
20788build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020789
20790# An echo program that does not interpret backslashes.
20791echo=$lt_echo
20792
20793# The archiver.
20794AR=$lt_AR
20795AR_FLAGS=$lt_AR_FLAGS
20796
20797# A C compiler.
20798LTCC=$lt_LTCC
20799
Reid Spencera773bd52006-08-04 18:18:08 +000020800# LTCC compiler flags.
20801LTCFLAGS=$lt_LTCFLAGS
20802
John Criswell47fdd832003-07-14 16:52:07 +000020803# A language-specific compiler.
20804CC=$lt_compiler_CXX
20805
20806# Is the compiler the GNU C compiler?
20807with_gcc=$GCC_CXX
20808
20809# An ERE matcher.
20810EGREP=$lt_EGREP
20811
20812# The linker used to build libraries.
20813LD=$lt_LD_CXX
20814
20815# Whether we need hard or soft links.
20816LN_S=$lt_LN_S
20817
20818# A BSD-compatible nm program.
20819NM=$lt_NM
20820
20821# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020822STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020823
20824# Used to examine libraries when file_magic_cmd begins "file"
20825MAGIC_CMD=$MAGIC_CMD
20826
20827# Used on cygwin: DLL creation program.
20828DLLTOOL="$DLLTOOL"
20829
20830# Used on cygwin: object dumper.
20831OBJDUMP="$OBJDUMP"
20832
20833# Used on cygwin: assembler.
20834AS="$AS"
20835
20836# The name of the directory that contains temporary libtool files.
20837objdir=$objdir
20838
20839# How to create reloadable object files.
20840reload_flag=$lt_reload_flag
20841reload_cmds=$lt_reload_cmds
20842
20843# How to pass a linker flag through the compiler.
20844wl=$lt_lt_prog_compiler_wl_CXX
20845
20846# Object file suffix (normally "o").
20847objext="$ac_objext"
20848
20849# Old archive suffix (normally "a").
20850libext="$libext"
20851
20852# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020853shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020854
20855# Executable file suffix (normally "").
20856exeext="$exeext"
20857
20858# Additional compiler flags for building library objects.
20859pic_flag=$lt_lt_prog_compiler_pic_CXX
20860pic_mode=$pic_mode
20861
20862# What is the maximum length of a command?
20863max_cmd_len=$lt_cv_sys_max_cmd_len
20864
20865# Does compiler simultaneously support -c and -o options?
20866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20867
Reid Spencera773bd52006-08-04 18:18:08 +000020868# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020869need_locks=$lt_need_locks
20870
20871# Do we need the lib prefix for modules?
20872need_lib_prefix=$need_lib_prefix
20873
20874# Do we need a version for libraries?
20875need_version=$need_version
20876
20877# Whether dlopen is supported.
20878dlopen_support=$enable_dlopen
20879
20880# Whether dlopen of programs is supported.
20881dlopen_self=$enable_dlopen_self
20882
20883# Whether dlopen of statically linked programs is supported.
20884dlopen_self_static=$enable_dlopen_self_static
20885
20886# Compiler flag to prevent dynamic linking.
20887link_static_flag=$lt_lt_prog_compiler_static_CXX
20888
20889# Compiler flag to turn off builtin functions.
20890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20891
20892# Compiler flag to allow reflexive dlopens.
20893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20894
20895# Compiler flag to generate shared objects directly from archives.
20896whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20897
20898# Compiler flag to generate thread-safe objects.
20899thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20900
20901# Library versioning type.
20902version_type=$version_type
20903
20904# Format of library name prefix.
20905libname_spec=$lt_libname_spec
20906
20907# List of archive names. First name is the real one, the rest are links.
20908# The last name is the one that the linker finds with -lNAME.
20909library_names_spec=$lt_library_names_spec
20910
20911# The coded name of the library, if different from the real name.
20912soname_spec=$lt_soname_spec
20913
20914# Commands used to build and install an old-style archive.
20915RANLIB=$lt_RANLIB
20916old_archive_cmds=$lt_old_archive_cmds_CXX
20917old_postinstall_cmds=$lt_old_postinstall_cmds
20918old_postuninstall_cmds=$lt_old_postuninstall_cmds
20919
20920# Create an old-style archive from a shared archive.
20921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20922
20923# Create a temporary old-style archive to link instead of a shared archive.
20924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20925
20926# Commands used to build and install a shared archive.
20927archive_cmds=$lt_archive_cmds_CXX
20928archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20929postinstall_cmds=$lt_postinstall_cmds
20930postuninstall_cmds=$lt_postuninstall_cmds
20931
20932# Commands used to build a loadable module (assumed same as above if empty)
20933module_cmds=$lt_module_cmds_CXX
20934module_expsym_cmds=$lt_module_expsym_cmds_CXX
20935
20936# Commands to strip libraries.
20937old_striplib=$lt_old_striplib
20938striplib=$lt_striplib
20939
20940# Dependencies to place before the objects being linked to create a
20941# shared library.
20942predep_objects=$lt_predep_objects_CXX
20943
20944# Dependencies to place after the objects being linked to create a
20945# shared library.
20946postdep_objects=$lt_postdep_objects_CXX
20947
20948# Dependencies to place before the objects being linked to create a
20949# shared library.
20950predeps=$lt_predeps_CXX
20951
20952# Dependencies to place after the objects being linked to create a
20953# shared library.
20954postdeps=$lt_postdeps_CXX
20955
20956# The library search path used internally by the compiler when linking
20957# a shared library.
20958compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20959
20960# Method to check whether dependent libraries are shared objects.
20961deplibs_check_method=$lt_deplibs_check_method
20962
20963# Command to use when deplibs_check_method == file_magic.
20964file_magic_cmd=$lt_file_magic_cmd
20965
20966# Flag that allows shared libraries with undefined symbols to be built.
20967allow_undefined_flag=$lt_allow_undefined_flag_CXX
20968
20969# Flag that forces no undefined symbols.
20970no_undefined_flag=$lt_no_undefined_flag_CXX
20971
20972# Commands used to finish a libtool library installation in a directory.
20973finish_cmds=$lt_finish_cmds
20974
20975# Same as above, but a single script fragment to be evaled but not shown.
20976finish_eval=$lt_finish_eval
20977
20978# Take the output of nm and produce a listing of raw symbols and C names.
20979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20980
20981# Transform the output of nm in a proper C declaration
20982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20983
20984# Transform the output of nm in a C name address pair
20985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20986
20987# This is the shared library runtime path variable.
20988runpath_var=$runpath_var
20989
20990# This is the shared library path variable.
20991shlibpath_var=$shlibpath_var
20992
20993# Is shlibpath searched before the hard-coded library search path?
20994shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20995
20996# How to hardcode a shared library path into an executable.
20997hardcode_action=$hardcode_action_CXX
20998
20999# Whether we should hardcode library paths into libraries.
21000hardcode_into_libs=$hardcode_into_libs
21001
21002# Flag to hardcode \$libdir into a binary during linking.
21003# This must work even if \$libdir does not exist.
21004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21005
21006# If ld is used when linking, flag to hardcode \$libdir into
21007# a binary during linking. This must work even if \$libdir does
21008# not exist.
21009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21010
21011# Whether we need a single -rpath flag with a separated argument.
21012hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21013
21014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21015# resulting binary.
21016hardcode_direct=$hardcode_direct_CXX
21017
21018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21019# resulting binary.
21020hardcode_minus_L=$hardcode_minus_L_CXX
21021
21022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21023# the resulting binary.
21024hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21025
21026# Set to yes if building a shared library automatically hardcodes DIR into the library
21027# and all subsequent libraries and executables linked against it.
21028hardcode_automatic=$hardcode_automatic_CXX
21029
21030# Variables whose values should be saved in libtool wrapper scripts and
21031# restored at relink time.
21032variables_saved_for_relink="$variables_saved_for_relink"
21033
21034# Whether libtool must link a program against all its dependency libraries.
21035link_all_deplibs=$link_all_deplibs_CXX
21036
21037# Compile-time system search path for libraries
21038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21039
21040# Run-time system search path for libraries
21041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21042
21043# Fix the shell variable \$srcfile for the compiler.
21044fix_srcfile_path="$fix_srcfile_path_CXX"
21045
21046# Set to yes if exported symbols are required.
21047always_export_symbols=$always_export_symbols_CXX
21048
21049# The commands to list exported symbols.
21050export_symbols_cmds=$lt_export_symbols_cmds_CXX
21051
21052# The commands to extract the exported symbol list from a shared archive.
21053extract_expsyms_cmds=$lt_extract_expsyms_cmds
21054
21055# Symbols that should not be listed in the preloaded symbols.
21056exclude_expsyms=$lt_exclude_expsyms_CXX
21057
21058# Symbols that must always be exported.
21059include_expsyms=$lt_include_expsyms_CXX
21060
21061# ### END LIBTOOL TAG CONFIG: $tagname
21062
21063__EOF__
21064
21065
21066else
21067 # If there is no Makefile yet, we rely on a make rule to execute
21068 # `config.status --recheck' to rerun these tests and create the
21069 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21071 if test -f "$ltmain_in"; then
21072 test -f Makefile && make "$ltmain"
21073 fi
John Criswell47fdd832003-07-14 16:52:07 +000021074fi
21075
21076
21077ac_ext=c
21078ac_cpp='$CPP $CPPFLAGS'
21079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081ac_compiler_gnu=$ac_cv_c_compiler_gnu
21082
21083CC=$lt_save_CC
21084LDCXX=$LD
21085LD=$lt_save_LD
21086GCC=$lt_save_GCC
21087with_gnu_ldcxx=$with_gnu_ld
21088with_gnu_ld=$lt_save_with_gnu_ld
21089lt_cv_path_LDCXX=$lt_cv_path_LD
21090lt_cv_path_LD=$lt_save_path_LD
21091lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21092lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21093
21094 else
21095 tagname=""
21096 fi
21097 ;;
21098
21099 F77)
21100 if test -n "$F77" && test "X$F77" != "Xno"; then
21101
21102ac_ext=f
21103ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21104ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21106
21107
21108archive_cmds_need_lc_F77=no
21109allow_undefined_flag_F77=
21110always_export_symbols_F77=no
21111archive_expsym_cmds_F77=
21112export_dynamic_flag_spec_F77=
21113hardcode_direct_F77=no
21114hardcode_libdir_flag_spec_F77=
21115hardcode_libdir_flag_spec_ld_F77=
21116hardcode_libdir_separator_F77=
21117hardcode_minus_L_F77=no
21118hardcode_automatic_F77=no
21119module_cmds_F77=
21120module_expsym_cmds_F77=
21121link_all_deplibs_F77=unknown
21122old_archive_cmds_F77=$old_archive_cmds
21123no_undefined_flag_F77=
21124whole_archive_flag_spec_F77=
21125enable_shared_with_static_runtimes_F77=no
21126
21127# Source file extension for f77 test sources.
21128ac_ext=f
21129
21130# Object file extension for compiled f77 test sources.
21131objext=o
21132objext_F77=$objext
21133
21134# Code to be used in simple compile tests
21135lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21136
21137# Code to be used in simple link tests
21138lt_simple_link_test_code=" program t\n end\n"
21139
21140# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21141
21142# If no C compiler was specified, use CC.
21143LTCC=${LTCC-"$CC"}
21144
Reid Spencera773bd52006-08-04 18:18:08 +000021145# If no C compiler flags were specified, use CFLAGS.
21146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21147
John Criswell47fdd832003-07-14 16:52:07 +000021148# Allow CC to be a program name with arguments.
21149compiler=$CC
21150
21151
Reid Spencera773bd52006-08-04 18:18:08 +000021152# save warnings/boilerplate of simple test code
21153ac_outfile=conftest.$ac_objext
21154printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21156_lt_compiler_boilerplate=`cat conftest.err`
21157$rm conftest*
21158
21159ac_outfile=conftest.$ac_objext
21160printf "$lt_simple_link_test_code" >conftest.$ac_ext
21161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21162_lt_linker_boilerplate=`cat conftest.err`
21163$rm conftest*
21164
21165
John Criswell47fdd832003-07-14 16:52:07 +000021166# Allow CC to be a program name with arguments.
21167lt_save_CC="$CC"
21168CC=${F77-"f77"}
21169compiler=$CC
21170compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021171for cc_temp in $compiler""; do
21172 case $cc_temp in
21173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21175 \-*) ;;
21176 *) break;;
21177 esac
21178done
21179cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021180
John Criswell47fdd832003-07-14 16:52:07 +000021181
Reid Spencera773bd52006-08-04 18:18:08 +000021182{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21183echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21184{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21185echo "${ECHO_T}$can_build_shared" >&6; }
21186
21187{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21188echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021189test "$can_build_shared" = "no" && enable_shared=no
21190
21191# On AIX, shared libraries and static libraries use the same namespace, and
21192# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021193case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021194aix3*)
21195 test "$enable_shared" = yes && enable_static=no
21196 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021198 postinstall_cmds='$RANLIB $lib'
21199 fi
21200 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021201aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21203 test "$enable_shared" = yes && enable_static=no
21204 fi
John Criswell47fdd832003-07-14 16:52:07 +000021205 ;;
21206esac
Reid Spencera773bd52006-08-04 18:18:08 +000021207{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21208echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021209
Reid Spencera773bd52006-08-04 18:18:08 +000021210{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21211echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021212# Make sure either enable_shared or enable_static is yes.
21213test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021214{ echo "$as_me:$LINENO: result: $enable_static" >&5
21215echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021216
21217GCC_F77="$G77"
21218LD_F77="$LD"
21219
21220lt_prog_compiler_wl_F77=
21221lt_prog_compiler_pic_F77=
21222lt_prog_compiler_static_F77=
21223
Reid Spencera773bd52006-08-04 18:18:08 +000021224{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21225echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021226
21227 if test "$GCC" = yes; then
21228 lt_prog_compiler_wl_F77='-Wl,'
21229 lt_prog_compiler_static_F77='-static'
21230
21231 case $host_os in
21232 aix*)
21233 # All AIX code is PIC.
21234 if test "$host_cpu" = ia64; then
21235 # AIX 5 now supports IA64 processor
21236 lt_prog_compiler_static_F77='-Bstatic'
21237 fi
21238 ;;
21239
21240 amigaos*)
21241 # FIXME: we need at least 68020 code to build shared libraries, but
21242 # adding the `-m68020' flag to GCC prevents building anything better,
21243 # like `-m68040'.
21244 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21245 ;;
21246
21247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21248 # PIC is the default for these OSes.
21249 ;;
21250
21251 mingw* | pw32* | os2*)
21252 # This hack is so that the source file can tell whether it is being
21253 # built for inclusion in a dll (and should export symbols for example).
21254 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21255 ;;
21256
21257 darwin* | rhapsody*)
21258 # PIC is the default on this platform
21259 # Common symbols not allowed in MH_DYLIB files
21260 lt_prog_compiler_pic_F77='-fno-common'
21261 ;;
21262
Reid Spencera773bd52006-08-04 18:18:08 +000021263 interix3*)
21264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21265 # Instead, we relocate shared libraries at runtime.
21266 ;;
21267
John Criswell47fdd832003-07-14 16:52:07 +000021268 msdosdjgpp*)
21269 # Just because we use GCC doesn't mean we suddenly get shared libraries
21270 # on systems that don't support them.
21271 lt_prog_compiler_can_build_shared_F77=no
21272 enable_shared=no
21273 ;;
21274
21275 sysv4*MP*)
21276 if test -d /usr/nec; then
21277 lt_prog_compiler_pic_F77=-Kconform_pic
21278 fi
21279 ;;
21280
21281 hpux*)
21282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21283 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021284 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021285 hppa*64*|ia64*)
21286 # +Z the default
21287 ;;
21288 *)
21289 lt_prog_compiler_pic_F77='-fPIC'
21290 ;;
21291 esac
21292 ;;
21293
21294 *)
21295 lt_prog_compiler_pic_F77='-fPIC'
21296 ;;
21297 esac
21298 else
21299 # PORTME Check for flag to pass linker flags through the system compiler.
21300 case $host_os in
21301 aix*)
21302 lt_prog_compiler_wl_F77='-Wl,'
21303 if test "$host_cpu" = ia64; then
21304 # AIX 5 now supports IA64 processor
21305 lt_prog_compiler_static_F77='-Bstatic'
21306 else
21307 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21308 fi
21309 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021310 darwin*)
21311 # PIC is the default on this platform
21312 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021313 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314 xlc*)
21315 lt_prog_compiler_pic_F77='-qnocommon'
21316 lt_prog_compiler_wl_F77='-Wl,'
21317 ;;
21318 esac
21319 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021320
21321 mingw* | pw32* | os2*)
21322 # This hack is so that the source file can tell whether it is being
21323 # built for inclusion in a dll (and should export symbols for example).
21324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21325 ;;
21326
21327 hpux9* | hpux10* | hpux11*)
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21330 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021331 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021332 hppa*64*|ia64*)
21333 # +Z the default
21334 ;;
21335 *)
21336 lt_prog_compiler_pic_F77='+Z'
21337 ;;
21338 esac
21339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21340 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21341 ;;
21342
21343 irix5* | irix6* | nonstopux*)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 # PIC (with -KPIC) is the default.
21346 lt_prog_compiler_static_F77='-non_shared'
21347 ;;
21348
21349 newsos6)
21350 lt_prog_compiler_pic_F77='-KPIC'
21351 lt_prog_compiler_static_F77='-Bstatic'
21352 ;;
21353
21354 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021355 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021356 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021357 lt_prog_compiler_wl_F77='-Wl,'
21358 lt_prog_compiler_pic_F77='-KPIC'
21359 lt_prog_compiler_static_F77='-static'
21360 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021361 pgcc* | pgf77* | pgf90* | pgf95*)
21362 # Portland Group compilers (*not* the Pentium gcc compiler,
21363 # which looks to be a dead project)
21364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_pic_F77='-fpic'
21366 lt_prog_compiler_static_F77='-Bstatic'
21367 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021368 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021369 lt_prog_compiler_wl_F77='-Wl,'
21370 # All Alpha code is PIC.
21371 lt_prog_compiler_static_F77='-non_shared'
21372 ;;
21373 esac
21374 ;;
21375
21376 osf3* | osf4* | osf5*)
21377 lt_prog_compiler_wl_F77='-Wl,'
21378 # All OSF/1 code is PIC.
21379 lt_prog_compiler_static_F77='-non_shared'
21380 ;;
21381
John Criswell47fdd832003-07-14 16:52:07 +000021382 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021383 lt_prog_compiler_pic_F77='-KPIC'
21384 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021385 case $cc_basename in
21386 f77* | f90* | f95*)
21387 lt_prog_compiler_wl_F77='-Qoption ld ';;
21388 *)
21389 lt_prog_compiler_wl_F77='-Wl,';;
21390 esac
John Criswell47fdd832003-07-14 16:52:07 +000021391 ;;
21392
21393 sunos4*)
21394 lt_prog_compiler_wl_F77='-Qoption ld '
21395 lt_prog_compiler_pic_F77='-PIC'
21396 lt_prog_compiler_static_F77='-Bstatic'
21397 ;;
21398
Reid Spencera773bd52006-08-04 18:18:08 +000021399 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021400 lt_prog_compiler_wl_F77='-Wl,'
21401 lt_prog_compiler_pic_F77='-KPIC'
21402 lt_prog_compiler_static_F77='-Bstatic'
21403 ;;
21404
21405 sysv4*MP*)
21406 if test -d /usr/nec ;then
21407 lt_prog_compiler_pic_F77='-Kconform_pic'
21408 lt_prog_compiler_static_F77='-Bstatic'
21409 fi
21410 ;;
21411
Reid Spencera773bd52006-08-04 18:18:08 +000021412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21413 lt_prog_compiler_wl_F77='-Wl,'
21414 lt_prog_compiler_pic_F77='-KPIC'
21415 lt_prog_compiler_static_F77='-Bstatic'
21416 ;;
21417
21418 unicos*)
21419 lt_prog_compiler_wl_F77='-Wl,'
21420 lt_prog_compiler_can_build_shared_F77=no
21421 ;;
21422
John Criswell47fdd832003-07-14 16:52:07 +000021423 uts4*)
21424 lt_prog_compiler_pic_F77='-pic'
21425 lt_prog_compiler_static_F77='-Bstatic'
21426 ;;
21427
21428 *)
21429 lt_prog_compiler_can_build_shared_F77=no
21430 ;;
21431 esac
21432 fi
21433
Reid Spencera773bd52006-08-04 18:18:08 +000021434{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21435echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021436
21437#
21438# Check to make sure the PIC flag actually works.
21439#
21440if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021441
Reid Spencera773bd52006-08-04 18:18:08 +000021442{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21443echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021444if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446else
21447 lt_prog_compiler_pic_works_F77=no
21448 ac_outfile=conftest.$ac_objext
21449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21450 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21451 # Insert the option either (1) after the last *FLAGS variable, or
21452 # (2) before a word containing "conftest.", or (3) at the end.
21453 # Note that $ac_compile itself does not contain backslashes and begins
21454 # with a dollar sign (not a hyphen), so the echo should work correctly.
21455 # The option is referenced via a variable to avoid confusing sed.
21456 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21459 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000021460 (eval echo "\"\$as_me:21460: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021461 (eval "$lt_compile" 2>conftest.err)
21462 ac_status=$?
21463 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000021464 echo "$as_me:21464: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021465 if (exit $ac_status) && test -s "$ac_outfile"; then
21466 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021467 # So say no if there are warnings other than the usual output.
21468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021471 lt_prog_compiler_pic_works_F77=yes
21472 fi
21473 fi
21474 $rm conftest*
21475
21476fi
Reid Spencera773bd52006-08-04 18:18:08 +000021477{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21478echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021479
21480if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21481 case $lt_prog_compiler_pic_F77 in
21482 "" | " "*) ;;
21483 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21484 esac
21485else
21486 lt_prog_compiler_pic_F77=
21487 lt_prog_compiler_can_build_shared_F77=no
21488fi
21489
21490fi
Reid Spencera773bd52006-08-04 18:18:08 +000021491case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021492 # For platforms which do not support PIC, -DPIC is meaningless:
21493 *djgpp*)
21494 lt_prog_compiler_pic_F77=
21495 ;;
21496 *)
21497 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21498 ;;
21499esac
21500
Reid Spencera773bd52006-08-04 18:18:08 +000021501#
21502# Check to make sure the static flag actually works.
21503#
21504wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21505{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21506echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21507if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510 lt_prog_compiler_static_works_F77=no
21511 save_LDFLAGS="$LDFLAGS"
21512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21515 # The linker can only warn and ignore the option if not recognized
21516 # So say no if there are warnings
21517 if test -s conftest.err; then
21518 # Append any errors to the config.log.
21519 cat conftest.err 1>&5
21520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21522 if diff conftest.exp conftest.er2 >/dev/null; then
21523 lt_prog_compiler_static_works_F77=yes
21524 fi
21525 else
21526 lt_prog_compiler_static_works_F77=yes
21527 fi
21528 fi
21529 $rm conftest*
21530 LDFLAGS="$save_LDFLAGS"
21531
21532fi
21533{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21534echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21535
21536if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21537 :
21538else
21539 lt_prog_compiler_static_F77=
21540fi
21541
21542
21543{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21544echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021545if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 lt_cv_prog_compiler_c_o_F77=no
21549 $rm -r conftest 2>/dev/null
21550 mkdir conftest
21551 cd conftest
21552 mkdir out
21553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21554
John Criswell47fdd832003-07-14 16:52:07 +000021555 lt_compiler_flag="-o out/conftest2.$ac_objext"
21556 # Insert the option either (1) after the last *FLAGS variable, or
21557 # (2) before a word containing "conftest.", or (3) at the end.
21558 # Note that $ac_compile itself does not contain backslashes and begins
21559 # with a dollar sign (not a hyphen), so the echo should work correctly.
21560 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21563 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000021564 (eval echo "\"\$as_me:21564: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021565 (eval "$lt_compile" 2>out/conftest.err)
21566 ac_status=$?
21567 cat out/conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000021568 echo "$as_me:21568: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21570 then
21571 # The compiler can only warn and ignore the option if not recognized
21572 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021576 lt_cv_prog_compiler_c_o_F77=yes
21577 fi
21578 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021579 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580 $rm conftest*
21581 # SGI C++ compiler will create directory out/ii_files/ for
21582 # template instantiation
21583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21584 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021585 cd ..
21586 rmdir conftest
21587 $rm conftest*
21588
21589fi
Reid Spencera773bd52006-08-04 18:18:08 +000021590{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21591echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021592
21593
21594hard_links="nottested"
21595if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21596 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21598echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021599 hard_links=yes
21600 $rm conftest*
21601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21602 touch conftest.a
21603 ln conftest.a conftest.b 2>&5 || hard_links=no
21604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021605 { echo "$as_me:$LINENO: result: $hard_links" >&5
21606echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021607 if test "$hard_links" = no; then
21608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21609echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21610 need_locks=warn
21611 fi
21612else
21613 need_locks=no
21614fi
21615
Reid Spencera773bd52006-08-04 18:18:08 +000021616{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21617echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021618
21619 runpath_var=
21620 allow_undefined_flag_F77=
21621 enable_shared_with_static_runtimes_F77=no
21622 archive_cmds_F77=
21623 archive_expsym_cmds_F77=
21624 old_archive_From_new_cmds_F77=
21625 old_archive_from_expsyms_cmds_F77=
21626 export_dynamic_flag_spec_F77=
21627 whole_archive_flag_spec_F77=
21628 thread_safe_flag_spec_F77=
21629 hardcode_libdir_flag_spec_F77=
21630 hardcode_libdir_flag_spec_ld_F77=
21631 hardcode_libdir_separator_F77=
21632 hardcode_direct_F77=no
21633 hardcode_minus_L_F77=no
21634 hardcode_shlibpath_var_F77=unsupported
21635 link_all_deplibs_F77=unknown
21636 hardcode_automatic_F77=no
21637 module_cmds_F77=
21638 module_expsym_cmds_F77=
21639 always_export_symbols_F77=no
21640 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21641 # include_expsyms should be a list of space-separated symbols to be *always*
21642 # included in the symbol list
21643 include_expsyms_F77=
21644 # exclude_expsyms can be an extended regexp of symbols to exclude
21645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21647 # as well as any symbol that contains `d'.
21648 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21650 # platforms (ab)use it in PIC code, but their linkers get confused if
21651 # the symbol is explicitly referenced. Since portable code cannot
21652 # rely on this symbol name, it's probably fine to never include it in
21653 # preloaded symbol tables.
21654 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021655 # Just being paranoid about ensuring that cc_basename is set.
21656 for cc_temp in $compiler""; do
21657 case $cc_temp in
21658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21660 \-*) ;;
21661 *) break;;
21662 esac
21663done
21664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021665
21666 case $host_os in
21667 cygwin* | mingw* | pw32*)
21668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21669 # When not using gcc, we currently assume that we are using
21670 # Microsoft Visual C++.
21671 if test "$GCC" != yes; then
21672 with_gnu_ld=no
21673 fi
21674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021675 interix*)
21676 # we just hope/assume this is gcc and not c89 (= MSVC++)
21677 with_gnu_ld=yes
21678 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021679 openbsd*)
21680 with_gnu_ld=no
21681 ;;
21682 esac
21683
21684 ld_shlibs_F77=yes
21685 if test "$with_gnu_ld" = yes; then
21686 # If archive_cmds runs LD, not CC, wlarc should be empty
21687 wlarc='${wl}'
21688
Reid Spencera773bd52006-08-04 18:18:08 +000021689 # Set some defaults for GNU ld with shared library support. These
21690 # are reset later if shared libraries are not supported. Putting them
21691 # here allows them to be overridden if necessary.
21692 runpath_var=LD_RUN_PATH
21693 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21694 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21695 # ancient GNU ld didn't support --whole-archive et. al.
21696 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21697 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21698 else
21699 whole_archive_flag_spec_F77=
21700 fi
21701 supports_anon_versioning=no
21702 case `$LD -v 2>/dev/null` in
21703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21706 *\ 2.11.*) ;; # other 2.11 versions
21707 *) supports_anon_versioning=yes ;;
21708 esac
21709
John Criswell47fdd832003-07-14 16:52:07 +000021710 # See if GNU ld supports shared libraries.
21711 case $host_os in
21712 aix3* | aix4* | aix5*)
21713 # On AIX/PPC, the GNU linker is very broken
21714 if test "$host_cpu" != ia64; then
21715 ld_shlibs_F77=no
21716 cat <<EOF 1>&2
21717
21718*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21719*** to be unable to reliably create shared libraries on AIX.
21720*** Therefore, libtool is disabling shared libraries support. If you
21721*** really care for shared libraries, you may want to modify your PATH
21722*** so that a non-GNU linker is found, and then restart.
21723
21724EOF
21725 fi
21726 ;;
21727
21728 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021729 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 +000021730 hardcode_libdir_flag_spec_F77='-L$libdir'
21731 hardcode_minus_L_F77=yes
21732
21733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21734 # that the semantics of dynamic libraries on AmigaOS, at least up
21735 # to version 4, is to share data among multiple programs linked
21736 # with the same dynamic library. Since this doesn't match the
21737 # behavior of shared libraries on other platforms, we can't use
21738 # them.
21739 ld_shlibs_F77=no
21740 ;;
21741
21742 beos*)
21743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21744 allow_undefined_flag_F77=unsupported
21745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21746 # support --undefined. This deserves some investigation. FIXME
21747 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21748 else
21749 ld_shlibs_F77=no
21750 fi
21751 ;;
21752
21753 cygwin* | mingw* | pw32*)
21754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21755 # as there is no search path for DLLs.
21756 hardcode_libdir_flag_spec_F77='-L$libdir'
21757 allow_undefined_flag_F77=unsupported
21758 always_export_symbols_F77=no
21759 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021760 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 +000021761
21762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021763 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 +000021764 # If the export-symbols file already is a .def file (1st line
21765 # is EXPORTS), use it as is; otherwise, prepend...
21766 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21767 cp $export_symbols $output_objdir/$soname.def;
21768 else
21769 echo EXPORTS > $output_objdir/$soname.def;
21770 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021771 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021772 $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 +000021773 else
Reid Spencera773bd52006-08-04 18:18:08 +000021774 ld_shlibs_F77=no
21775 fi
21776 ;;
21777
21778 interix3*)
21779 hardcode_direct_F77=no
21780 hardcode_shlibpath_var_F77=no
21781 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21782 export_dynamic_flag_spec_F77='${wl}-E'
21783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21784 # Instead, shared libraries are loaded at an image base (0x10000000 by
21785 # default) and relocated if they conflict, which is a slow very memory
21786 # consuming and fragmenting process. To avoid this, we pick a random,
21787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21789 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'
21790 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'
21791 ;;
21792
21793 linux*)
21794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21795 tmp_addflag=
21796 case $cc_basename,$host_cpu in
21797 pgcc*) # Portland Group C compiler
21798 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'
21799 tmp_addflag=' $pic_flag'
21800 ;;
21801 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21802 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'
21803 tmp_addflag=' $pic_flag -Mnomain' ;;
21804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21805 tmp_addflag=' -i_dynamic' ;;
21806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21807 tmp_addflag=' -i_dynamic -nofor_main' ;;
21808 ifc* | ifort*) # Intel Fortran compiler
21809 tmp_addflag=' -nofor_main' ;;
21810 esac
21811 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21812
21813 if test $supports_anon_versioning = yes; then
21814 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21816 $echo "local: *; };" >> $output_objdir/$libname.ver~
21817 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21818 fi
21819 else
21820 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021821 fi
21822 ;;
21823
21824 netbsd*)
21825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21826 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21827 wlarc=
21828 else
21829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21831 fi
21832 ;;
21833
Reid Spencera773bd52006-08-04 18:18:08 +000021834 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21836 ld_shlibs_F77=no
21837 cat <<EOF 1>&2
21838
21839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21840*** create shared libraries on Solaris systems. Therefore, libtool
21841*** is disabling shared libraries support. We urge you to upgrade GNU
21842*** binutils to release 2.9.1 or newer. Another option is to modify
21843*** your PATH or compiler configuration so that the native linker is
21844*** used, and then restart.
21845
21846EOF
21847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21848 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21849 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21850 else
21851 ld_shlibs_F77=no
21852 fi
21853 ;;
21854
Reid Spencera773bd52006-08-04 18:18:08 +000021855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21856 case `$LD -v 2>&1` in
21857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21858 ld_shlibs_F77=no
21859 cat <<_LT_EOF 1>&2
21860
21861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21862*** reliably create shared libraries on SCO systems. Therefore, libtool
21863*** is disabling shared libraries support. We urge you to upgrade GNU
21864*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21865*** your PATH or compiler configuration so that the native linker is
21866*** used, and then restart.
21867
21868_LT_EOF
21869 ;;
21870 *)
21871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21872 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21873 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21874 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21875 else
21876 ld_shlibs_F77=no
21877 fi
21878 ;;
21879 esac
21880 ;;
21881
John Criswell47fdd832003-07-14 16:52:07 +000021882 sunos4*)
21883 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21884 wlarc=
21885 hardcode_direct_F77=yes
21886 hardcode_shlibpath_var_F77=no
21887 ;;
21888
21889 *)
21890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21893 else
21894 ld_shlibs_F77=no
21895 fi
21896 ;;
21897 esac
21898
Reid Spencera773bd52006-08-04 18:18:08 +000021899 if test "$ld_shlibs_F77" = no; then
21900 runpath_var=
21901 hardcode_libdir_flag_spec_F77=
21902 export_dynamic_flag_spec_F77=
21903 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021904 fi
21905 else
21906 # PORTME fill in a description of your system's linker (not GNU ld)
21907 case $host_os in
21908 aix3*)
21909 allow_undefined_flag_F77=unsupported
21910 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021911 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 +000021912 # Note: this linker hardcodes the directories in LIBPATH if there
21913 # are no directories specified by -L.
21914 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021916 # Neither direct hardcoding nor static linking is supported with a
21917 # broken collect2.
21918 hardcode_direct_F77=unsupported
21919 fi
21920 ;;
21921
21922 aix4* | aix5*)
21923 if test "$host_cpu" = ia64; then
21924 # On IA64, the linker does run time linking by default, so we don't
21925 # have to do anything special.
21926 aix_use_runtimelinking=no
21927 exp_sym_flag='-Bexport'
21928 no_entry_flag=""
21929 else
21930 # If we're using GNU nm, then we don't want the "-C" option.
21931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21933 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'
21934 else
21935 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'
21936 fi
21937 aix_use_runtimelinking=no
21938
21939 # Test if we are trying to use run time linking or normal
21940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21941 # need to do runtime linking.
21942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21943 for ld_flag in $LDFLAGS; do
21944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21945 aix_use_runtimelinking=yes
21946 break
21947 fi
21948 done
Reid Spencera773bd52006-08-04 18:18:08 +000021949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021950 esac
21951
21952 exp_sym_flag='-bexport'
21953 no_entry_flag='-bnoentry'
21954 fi
21955
21956 # When large executables or shared objects are built, AIX ld can
21957 # have problems creating the table of contents. If linking a library
21958 # or program results in "error TOC overflow" add -mminimal-toc to
21959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21961
21962 archive_cmds_F77=''
21963 hardcode_direct_F77=yes
21964 hardcode_libdir_separator_F77=':'
21965 link_all_deplibs_F77=yes
21966
21967 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021968 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021969 # We only want to do this on AIX 4.2 and lower, the check
21970 # below for broken collect2 doesn't work under 4.3+
21971 collect2name=`${CC} -print-prog-name=collect2`
21972 if test -f "$collect2name" && \
21973 strings "$collect2name" | grep resolve_lib_name >/dev/null
21974 then
21975 # We have reworked collect2
21976 hardcode_direct_F77=yes
21977 else
21978 # We have old collect2
21979 hardcode_direct_F77=unsupported
21980 # It fails to find uninstalled libraries when the uninstalled
21981 # path is not listed in the libpath. Setting hardcode_minus_L
21982 # to unsupported forces relinking
21983 hardcode_minus_L_F77=yes
21984 hardcode_libdir_flag_spec_F77='-L$libdir'
21985 hardcode_libdir_separator_F77=
21986 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021988 esac
21989 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021990 if test "$aix_use_runtimelinking" = yes; then
21991 shared_flag="$shared_flag "'${wl}-G'
21992 fi
John Criswell47fdd832003-07-14 16:52:07 +000021993 else
21994 # not using gcc
21995 if test "$host_cpu" = ia64; then
21996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21997 # chokes on -Wl,-G. The following line is correct:
21998 shared_flag='-G'
21999 else
Reid Spencera773bd52006-08-04 18:18:08 +000022000 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022001 shared_flag='${wl}-G'
22002 else
22003 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022004 fi
John Criswell47fdd832003-07-14 16:52:07 +000022005 fi
22006 fi
22007
22008 # It seems that -bexpall does not export symbols beginning with
22009 # underscore (_), so it is better to generate a list of symbols to export.
22010 always_export_symbols_F77=yes
22011 if test "$aix_use_runtimelinking" = yes; then
22012 # Warning - without using the other runtime loading flags (-brtl),
22013 # -berok will link without error, but may produce a broken library.
22014 allow_undefined_flag_F77='-berok'
22015 # Determine the default libpath from the value encoded in an empty executable.
22016 cat >conftest.$ac_ext <<_ACEOF
22017 program main
22018
22019 end
22020_ACEOF
22021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022022if { (ac_try="$ac_link"
22023case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026esac
22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049esac
22050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022055
22056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22057}'`
22058# Check for a 64-bit object if we didn't find anything.
22059if 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; }
22060}'`; fi
22061else
22062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022063sed 's/^/| /' conftest.$ac_ext >&5
22064
Reid Spencera773bd52006-08-04 18:18:08 +000022065
John Criswell47fdd832003-07-14 16:52:07 +000022066fi
Reid Spencera773bd52006-08-04 18:18:08 +000022067
Bill Wendlingebcceee2009-04-18 11:20:33 +000022068rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022069 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22071
22072 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022073 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 +000022074 else
22075 if test "$host_cpu" = ia64; then
22076 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22077 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022078 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 +000022079 else
22080 # Determine the default libpath from the value encoded in an empty executable.
22081 cat >conftest.$ac_ext <<_ACEOF
22082 program main
22083
22084 end
22085_ACEOF
22086rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022087if { (ac_try="$ac_link"
22088case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22091esac
22092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22101 { (case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104esac
22105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_try") 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; } &&
22110 { ac_try='test -s conftest$ac_exeext'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22114esac
22115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_try") 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022120
22121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22122}'`
22123# Check for a 64-bit object if we didn't find anything.
22124if 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; }
22125}'`; fi
22126else
22127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022128sed 's/^/| /' conftest.$ac_ext >&5
22129
Reid Spencera773bd52006-08-04 18:18:08 +000022130
John Criswell47fdd832003-07-14 16:52:07 +000022131fi
Reid Spencera773bd52006-08-04 18:18:08 +000022132
Bill Wendlingebcceee2009-04-18 11:20:33 +000022133rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022134 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22136
22137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22138 # Warning - without using the other run time loading flags,
22139 # -berok will link without error, but may produce a broken library.
22140 no_undefined_flag_F77=' ${wl}-bernotok'
22141 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022142 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022143 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022144 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022145 # This is similar to how AIX traditionally builds its shared libraries.
22146 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 +000022147 fi
22148 fi
22149 ;;
22150
22151 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022152 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 +000022153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22155 # see comment about different semantics on the GNU ld section
22156 ld_shlibs_F77=no
22157 ;;
22158
Reid Spencer2706f8c2004-09-19 23:53:36 +000022159 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022160 export_dynamic_flag_spec_F77=-rdynamic
22161 ;;
22162
22163 cygwin* | mingw* | pw32*)
22164 # When not using gcc, we currently assume that we are using
22165 # Microsoft Visual C++.
22166 # hardcode_libdir_flag_spec is actually meaningless, as there is
22167 # no search path for DLLs.
22168 hardcode_libdir_flag_spec_F77=' '
22169 allow_undefined_flag_F77=unsupported
22170 # Tell ltmain to make .lib files, not .a files.
22171 libext=lib
22172 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022173 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022174 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022175 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 +000022176 # The linker will automatically build a .lib file if we build a DLL.
22177 old_archive_From_new_cmds_F77='true'
22178 # FIXME: Should let the user specify the lib program.
22179 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022180 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022181 enable_shared_with_static_runtimes_F77=yes
22182 ;;
22183
22184 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022185 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022186 rhapsody* | darwin1.[012])
22187 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22188 ;;
22189 *) # Darwin 1.3 on
22190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22191 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22192 else
22193 case ${MACOSX_DEPLOYMENT_TARGET} in
22194 10.[012])
22195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22196 ;;
22197 10.*)
22198 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22199 ;;
22200 esac
22201 fi
22202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022203 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022204 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022205 hardcode_direct_F77=no
22206 hardcode_automatic_F77=yes
22207 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022208 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022209 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022210 if test "$GCC" = yes ; then
22211 output_verbose_link_cmd='echo'
22212 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22213 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022214 # 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 +000022215 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}'
22216 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 +000022217 else
Reid Spencera773bd52006-08-04 18:18:08 +000022218 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022219 xlc*)
22220 output_verbose_link_cmd='echo'
22221 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22222 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022223 # 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 +000022224 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}'
22225 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 +000022226 ;;
22227 *)
22228 ld_shlibs_F77=no
22229 ;;
22230 esac
John Criswell47fdd832003-07-14 16:52:07 +000022231 fi
22232 ;;
22233
22234 dgux*)
22235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236 hardcode_libdir_flag_spec_F77='-L$libdir'
22237 hardcode_shlibpath_var_F77=no
22238 ;;
22239
22240 freebsd1*)
22241 ld_shlibs_F77=no
22242 ;;
22243
22244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22245 # support. Future versions do this automatically, but an explicit c++rt0.o
22246 # does not break anything, and helps significantly (at the cost of a little
22247 # extra space).
22248 freebsd2.2*)
22249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22250 hardcode_libdir_flag_spec_F77='-R$libdir'
22251 hardcode_direct_F77=yes
22252 hardcode_shlibpath_var_F77=no
22253 ;;
22254
22255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22256 freebsd2*)
22257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22258 hardcode_direct_F77=yes
22259 hardcode_minus_L_F77=yes
22260 hardcode_shlibpath_var_F77=no
22261 ;;
22262
22263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022264 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022265 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22266 hardcode_libdir_flag_spec_F77='-R$libdir'
22267 hardcode_direct_F77=yes
22268 hardcode_shlibpath_var_F77=no
22269 ;;
22270
22271 hpux9*)
22272 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022273 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 +000022274 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022275 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 +000022276 fi
22277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 hardcode_direct_F77=yes
22280
22281 # hardcode_minus_L: Not really in the search PATH,
22282 # but as the default location of the library.
22283 hardcode_minus_L_F77=yes
22284 export_dynamic_flag_spec_F77='${wl}-E'
22285 ;;
22286
Reid Spencera773bd52006-08-04 18:18:08 +000022287 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22290 else
22291 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22292 fi
22293 if test "$with_gnu_ld" = no; then
22294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296
22297 hardcode_direct_F77=yes
22298 export_dynamic_flag_spec_F77='${wl}-E'
22299
22300 # hardcode_minus_L: Not really in the search PATH,
22301 # but as the default location of the library.
22302 hardcode_minus_L_F77=yes
22303 fi
22304 ;;
22305
22306 hpux11*)
22307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22308 case $host_cpu in
22309 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022310 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22311 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022312 ia64*)
22313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022315 *)
22316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22317 ;;
22318 esac
22319 else
Reid Spencera773bd52006-08-04 18:18:08 +000022320 case $host_cpu in
22321 hppa*64*)
22322 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22323 ;;
22324 ia64*)
22325 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022326 ;;
22327 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022328 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 +000022329 ;;
22330 esac
22331 fi
22332 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22334 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022335
Reid Spencera773bd52006-08-04 18:18:08 +000022336 case $host_cpu in
22337 hppa*64*|ia64*)
22338 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22339 hardcode_direct_F77=no
22340 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022341 ;;
22342 *)
John Criswell47fdd832003-07-14 16:52:07 +000022343 hardcode_direct_F77=yes
22344 export_dynamic_flag_spec_F77='${wl}-E'
22345
22346 # hardcode_minus_L: Not really in the search PATH,
22347 # but as the default location of the library.
22348 hardcode_minus_L_F77=yes
22349 ;;
22350 esac
22351 fi
22352 ;;
22353
22354 irix5* | irix6* | nonstopux*)
22355 if test "$GCC" = yes; then
22356 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'
22357 else
22358 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'
22359 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22360 fi
22361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22362 hardcode_libdir_separator_F77=:
22363 link_all_deplibs_F77=yes
22364 ;;
22365
22366 netbsd*)
22367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22369 else
22370 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22371 fi
22372 hardcode_libdir_flag_spec_F77='-R$libdir'
22373 hardcode_direct_F77=yes
22374 hardcode_shlibpath_var_F77=no
22375 ;;
22376
22377 newsos6)
22378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22379 hardcode_direct_F77=yes
22380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22381 hardcode_libdir_separator_F77=:
22382 hardcode_shlibpath_var_F77=no
22383 ;;
22384
22385 openbsd*)
22386 hardcode_direct_F77=yes
22387 hardcode_shlibpath_var_F77=no
22388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022390 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 +000022391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22392 export_dynamic_flag_spec_F77='${wl}-E'
22393 else
22394 case $host_os in
22395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_libdir_flag_spec_F77='-R$libdir'
22398 ;;
22399 *)
22400 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22402 ;;
22403 esac
22404 fi
22405 ;;
22406
22407 os2*)
22408 hardcode_libdir_flag_spec_F77='-L$libdir'
22409 hardcode_minus_L_F77=yes
22410 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022411 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 +000022412 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22413 ;;
22414
22415 osf3*)
22416 if test "$GCC" = yes; then
22417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22418 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'
22419 else
22420 allow_undefined_flag_F77=' -expect_unresolved \*'
22421 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'
22422 fi
22423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22424 hardcode_libdir_separator_F77=:
22425 ;;
22426
22427 osf4* | osf5*) # as osf3* with the addition of -msym flag
22428 if test "$GCC" = yes; then
22429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22430 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'
22431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22432 else
22433 allow_undefined_flag_F77=' -expect_unresolved \*'
22434 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 +000022435 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 +000022436 $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 +000022437
John Criswell47fdd832003-07-14 16:52:07 +000022438 # Both c and cxx compiler support -rpath directly
22439 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22440 fi
22441 hardcode_libdir_separator_F77=:
22442 ;;
22443
John Criswell47fdd832003-07-14 16:52:07 +000022444 solaris*)
22445 no_undefined_flag_F77=' -z text'
22446 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022447 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22450 $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 +000022451 else
Reid Spencera773bd52006-08-04 18:18:08 +000022452 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022453 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022454 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22455 $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 +000022456 fi
22457 hardcode_libdir_flag_spec_F77='-R$libdir'
22458 hardcode_shlibpath_var_F77=no
22459 case $host_os in
22460 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022461 *)
22462 # The compiler driver will combine linker options so we
22463 # cannot just pass the convience library names through
22464 # without $wl, iff we do not link with $LD.
22465 # Luckily, gcc supports the same syntax we need for Sun Studio.
22466 # Supported since Solaris 2.6 (maybe 2.5.1?)
22467 case $wlarc in
22468 '')
22469 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22470 *)
22471 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' ;;
22472 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022473 esac
22474 link_all_deplibs_F77=yes
22475 ;;
22476
22477 sunos4*)
22478 if test "x$host_vendor" = xsequent; then
22479 # Use $CC to link under sequent, because it throws in some extra .o
22480 # files that make .init and .fini sections work.
22481 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22482 else
22483 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22484 fi
22485 hardcode_libdir_flag_spec_F77='-L$libdir'
22486 hardcode_direct_F77=yes
22487 hardcode_minus_L_F77=yes
22488 hardcode_shlibpath_var_F77=no
22489 ;;
22490
22491 sysv4)
22492 case $host_vendor in
22493 sni)
22494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22495 hardcode_direct_F77=yes # is this really true???
22496 ;;
22497 siemens)
22498 ## LD is ld it makes a PLAMLIB
22499 ## CC just makes a GrossModule.
22500 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22501 reload_cmds_F77='$CC -r -o $output$reload_objs'
22502 hardcode_direct_F77=no
22503 ;;
22504 motorola)
22505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22506 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22507 ;;
22508 esac
22509 runpath_var='LD_RUN_PATH'
22510 hardcode_shlibpath_var_F77=no
22511 ;;
22512
22513 sysv4.3*)
22514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22515 hardcode_shlibpath_var_F77=no
22516 export_dynamic_flag_spec_F77='-Bexport'
22517 ;;
22518
22519 sysv4*MP*)
22520 if test -d /usr/nec; then
22521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22522 hardcode_shlibpath_var_F77=no
22523 runpath_var=LD_RUN_PATH
22524 hardcode_runpath_var=yes
22525 ld_shlibs_F77=yes
22526 fi
22527 ;;
22528
Reid Spencera773bd52006-08-04 18:18:08 +000022529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22530 no_undefined_flag_F77='${wl}-z,text'
22531 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022532 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022533 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022534
John Criswell47fdd832003-07-14 16:52:07 +000022535 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022536 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22537 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 +000022538 else
Reid Spencera773bd52006-08-04 18:18:08 +000022539 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540 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 +000022541 fi
John Criswell47fdd832003-07-14 16:52:07 +000022542 ;;
22543
Reid Spencera773bd52006-08-04 18:18:08 +000022544 sysv5* | sco3.2v5* | sco5v6*)
22545 # Note: We can NOT use -z defs as we might desire, because we do not
22546 # link with -lc, and that would cause any symbols used from libc to
22547 # always be unresolved, which means just about no library would
22548 # ever link correctly. If we're not using GNU ld we use -z text
22549 # though, which does catch some bad symbols but isn't as heavy-handed
22550 # as -z defs.
22551 no_undefined_flag_F77='${wl}-z,text'
22552 allow_undefined_flag_F77='${wl}-z,nodefs'
22553 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022554 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022555 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22556 hardcode_libdir_separator_F77=':'
22557 link_all_deplibs_F77=yes
22558 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022559 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022560
22561 if test "$GCC" = yes; then
22562 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564 else
22565 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 fi
John Criswell47fdd832003-07-14 16:52:07 +000022568 ;;
22569
22570 uts4*)
22571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22572 hardcode_libdir_flag_spec_F77='-L$libdir'
22573 hardcode_shlibpath_var_F77=no
22574 ;;
22575
22576 *)
22577 ld_shlibs_F77=no
22578 ;;
22579 esac
22580 fi
22581
Reid Spencera773bd52006-08-04 18:18:08 +000022582{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22583echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022584test "$ld_shlibs_F77" = no && can_build_shared=no
22585
John Criswell47fdd832003-07-14 16:52:07 +000022586#
22587# Do we need to explicitly link libc?
22588#
22589case "x$archive_cmds_need_lc_F77" in
22590x|xyes)
22591 # Assume -lc should be added
22592 archive_cmds_need_lc_F77=yes
22593
22594 if test "$enable_shared" = yes && test "$GCC" = yes; then
22595 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022596 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022597 # FIXME: we may have to deal with multi-command sequences.
22598 ;;
22599 '$CC '*)
22600 # Test whether the compiler implicitly links with -lc since on some
22601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22602 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022603 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22604echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022605 $rm conftest*
22606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22607
22608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22609 (eval $ac_compile) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } 2>conftest.err; then
22613 soname=conftest
22614 lib=conftest
22615 libobjs=conftest.$ac_objext
22616 deplibs=
22617 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022618 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022619 compiler_flags=-v
22620 linker_flags=-v
22621 verstring=
22622 output_objdir=.
22623 libname=conftest
22624 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22625 allow_undefined_flag_F77=
22626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22627 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }
22631 then
22632 archive_cmds_need_lc_F77=no
22633 else
22634 archive_cmds_need_lc_F77=yes
22635 fi
22636 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22637 else
22638 cat conftest.err 1>&5
22639 fi
22640 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022641 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22642echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022643 ;;
22644 esac
22645 fi
22646 ;;
22647esac
22648
Reid Spencera773bd52006-08-04 18:18:08 +000022649{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22650echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022651library_names_spec=
22652libname_spec='lib$name'
22653soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022654shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022655postinstall_cmds=
22656postuninstall_cmds=
22657finish_cmds=
22658finish_eval=
22659shlibpath_var=
22660shlibpath_overrides_runpath=unknown
22661version_type=none
22662dynamic_linker="$host_os ld.so"
22663sys_lib_dlsearch_path_spec="/lib /usr/lib"
22664if test "$GCC" = yes; then
22665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22666 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22667 # if the path contains ";" then we assume it to be the separator
22668 # otherwise default to the standard path separator (i.e. ":") - it is
22669 # assumed that no part of a normal pathname contains ";" but that should
22670 # okay in the real world where ";" in dirpaths is itself problematic.
22671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22672 else
22673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22674 fi
22675else
22676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22677fi
22678need_lib_prefix=unknown
22679hardcode_into_libs=no
22680
22681# when you set need_version to no, make sure it does not cause -set_version
22682# flags to be left without arguments
22683need_version=unknown
22684
22685case $host_os in
22686aix3*)
22687 version_type=linux
22688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22689 shlibpath_var=LIBPATH
22690
22691 # AIX 3 has no versioning support, so we append a major version to the name.
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 ;;
22694
22695aix4* | aix5*)
22696 version_type=linux
22697 need_lib_prefix=no
22698 need_version=no
22699 hardcode_into_libs=yes
22700 if test "$host_cpu" = ia64; then
22701 # AIX 5 supports IA64
22702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22703 shlibpath_var=LD_LIBRARY_PATH
22704 else
22705 # With GCC up to 2.95.x, collect2 would create an import file
22706 # for dependence libraries. The import file would start with
22707 # the line `#! .'. This would cause the generated library to
22708 # depend on `.', always an invalid library. This was fixed in
22709 # development snapshots of GCC prior to 3.0.
22710 case $host_os in
22711 aix4 | aix4.[01] | aix4.[01].*)
22712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22713 echo ' yes '
22714 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22715 :
22716 else
22717 can_build_shared=no
22718 fi
22719 ;;
22720 esac
22721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22722 # soname into executable. Probably we can add versioning support to
22723 # collect2, so additional links can be useful in future.
22724 if test "$aix_use_runtimelinking" = yes; then
22725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22726 # instead of lib<name>.a to let people know that these are not
22727 # typical AIX shared libraries.
22728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22729 else
22730 # We preserve .a as extension for shared libraries through AIX4.2
22731 # and later when we are not doing run time linking.
22732 library_names_spec='${libname}${release}.a $libname.a'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 fi
22735 shlibpath_var=LIBPATH
22736 fi
22737 ;;
22738
22739amigaos*)
22740 library_names_spec='$libname.ixlibrary $libname.a'
22741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022742 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 +000022743 ;;
22744
22745beos*)
22746 library_names_spec='${libname}${shared_ext}'
22747 dynamic_linker="$host_os ld.so"
22748 shlibpath_var=LIBRARY_PATH
22749 ;;
22750
Reid Spencer2706f8c2004-09-19 23:53:36 +000022751bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022752 version_type=linux
22753 need_version=no
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755 soname_spec='${libname}${release}${shared_ext}$major'
22756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22757 shlibpath_var=LD_LIBRARY_PATH
22758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22760 # the default ld.so.conf also contains /usr/contrib/lib and
22761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22762 # libtool to hard-code these into programs
22763 ;;
22764
22765cygwin* | mingw* | pw32*)
22766 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022767 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022768 need_version=no
22769 need_lib_prefix=no
22770
22771 case $GCC,$host_os in
22772 yes,cygwin* | yes,mingw* | yes,pw32*)
22773 library_names_spec='$libname.dll.a'
22774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022775 postinstall_cmds='base_file=`basename \${file}`~
22776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22777 dldir=$destdir/`dirname \$dlpath`~
22778 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022779 $install_prog $dir/$dlname \$dldir/$dlname~
22780 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22782 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022783 $rm \$dlpath'
22784 shlibpath_overrides_runpath=yes
22785
22786 case $host_os in
22787 cygwin*)
22788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22789 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 +000022790 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022791 ;;
22792 mingw*)
22793 # MinGW DLLs use traditional 'lib' prefix
22794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22796 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22797 # It is most probably a Windows format PATH printed by
22798 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22799 # path with ; separators, and with drive letters. We can handle the
22800 # drive letters (cygwin fileutils understands them), so leave them,
22801 # especially as we might pass files found there to a mingw objdump,
22802 # which wouldn't understand a cygwinified path. Ahh.
22803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22804 else
22805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22806 fi
22807 ;;
22808 pw32*)
22809 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022810 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 +000022811 ;;
22812 esac
22813 ;;
22814
22815 *)
22816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22817 ;;
22818 esac
22819 dynamic_linker='Win32 ld.exe'
22820 # FIXME: first we should search . and the directory the executable is in
22821 shlibpath_var=PATH
22822 ;;
22823
22824darwin* | rhapsody*)
22825 dynamic_linker="$host_os dyld"
22826 version_type=darwin
22827 need_lib_prefix=no
22828 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022829 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022830 soname_spec='${libname}${release}${major}$shared_ext'
22831 shlibpath_overrides_runpath=yes
22832 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022833 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022834 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022835 if test "$GCC" = yes; then
22836 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"`
22837 else
22838 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022839 fi
22840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22841 ;;
22842
22843dgux*)
22844 version_type=linux
22845 need_lib_prefix=no
22846 need_version=no
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 ;;
22851
22852freebsd1*)
22853 dynamic_linker=no
22854 ;;
22855
Reid Spencer2706f8c2004-09-19 23:53:36 +000022856kfreebsd*-gnu)
22857 version_type=linux
22858 need_lib_prefix=no
22859 need_version=no
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=no
22864 hardcode_into_libs=yes
22865 dynamic_linker='GNU ld.so'
22866 ;;
22867
Reid Spencera773bd52006-08-04 18:18:08 +000022868freebsd* | dragonfly*)
22869 # DragonFly does not have aout. When/if they implement a new
22870 # versioning mechanism, adjust this.
22871 if test -x /usr/bin/objformat; then
22872 objformat=`/usr/bin/objformat`
22873 else
22874 case $host_os in
22875 freebsd[123]*) objformat=aout ;;
22876 *) objformat=elf ;;
22877 esac
22878 fi
John Criswell47fdd832003-07-14 16:52:07 +000022879 version_type=freebsd-$objformat
22880 case $version_type in
22881 freebsd-elf*)
22882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22883 need_version=no
22884 need_lib_prefix=no
22885 ;;
22886 freebsd-*)
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22888 need_version=yes
22889 ;;
22890 esac
22891 shlibpath_var=LD_LIBRARY_PATH
22892 case $host_os in
22893 freebsd2*)
22894 shlibpath_overrides_runpath=yes
22895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022896 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022902 shlibpath_overrides_runpath=no
22903 hardcode_into_libs=yes
22904 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022905 freebsd*) # from 4.6 on
22906 shlibpath_overrides_runpath=yes
22907 hardcode_into_libs=yes
22908 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022909 esac
22910 ;;
22911
22912gnu*)
22913 version_type=linux
22914 need_lib_prefix=no
22915 need_version=no
22916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22917 soname_spec='${libname}${release}${shared_ext}$major'
22918 shlibpath_var=LD_LIBRARY_PATH
22919 hardcode_into_libs=yes
22920 ;;
22921
22922hpux9* | hpux10* | hpux11*)
22923 # Give a soname corresponding to the major version so that dld.sl refuses to
22924 # link against other versions.
22925 version_type=sunos
22926 need_lib_prefix=no
22927 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022928 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022929 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022930 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022931 hardcode_into_libs=yes
22932 dynamic_linker="$host_os dld.so"
22933 shlibpath_var=LD_LIBRARY_PATH
22934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22937 if test "X$HPUX_IA64_MODE" = X32; then
22938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22939 else
22940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22941 fi
22942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22943 ;;
22944 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022945 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022946 hardcode_into_libs=yes
22947 dynamic_linker="$host_os dld.sl"
22948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951 soname_spec='${libname}${release}${shared_ext}$major'
22952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22954 ;;
22955 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022956 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022957 dynamic_linker="$host_os dld.sl"
22958 shlibpath_var=SHLIB_PATH
22959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 soname_spec='${libname}${release}${shared_ext}$major'
22962 ;;
22963 esac
22964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22965 postinstall_cmds='chmod 555 $lib'
22966 ;;
22967
Reid Spencera773bd52006-08-04 18:18:08 +000022968interix3*)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 shlibpath_overrides_runpath=no
22977 hardcode_into_libs=yes
22978 ;;
22979
John Criswell47fdd832003-07-14 16:52:07 +000022980irix5* | irix6* | nonstopux*)
22981 case $host_os in
22982 nonstopux*) version_type=nonstopux ;;
22983 *)
22984 if test "$lt_cv_prog_gnu_ld" = yes; then
22985 version_type=linux
22986 else
22987 version_type=irix
22988 fi ;;
22989 esac
22990 need_lib_prefix=no
22991 need_version=no
22992 soname_spec='${libname}${release}${shared_ext}$major'
22993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22994 case $host_os in
22995 irix5* | nonstopux*)
22996 libsuff= shlibsuff=
22997 ;;
22998 *)
22999 case $LD in # libtool.m4 will add one of these switches to LD
23000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23001 libsuff= shlibsuff= libmagic=32-bit;;
23002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23003 libsuff=32 shlibsuff=N32 libmagic=N32;;
23004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23006 *) libsuff= shlibsuff= libmagic=never-match;;
23007 esac
23008 ;;
23009 esac
23010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23011 shlibpath_overrides_runpath=no
23012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23014 hardcode_into_libs=yes
23015 ;;
23016
23017# No shared lib support for Linux oldld, aout, or coff.
23018linux*oldld* | linux*aout* | linux*coff*)
23019 dynamic_linker=no
23020 ;;
23021
23022# This must be Linux ELF.
23023linux*)
23024 version_type=linux
23025 need_lib_prefix=no
23026 need_version=no
23027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec='${libname}${release}${shared_ext}$major'
23029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 shlibpath_overrides_runpath=no
23032 # This implies no fast_install, which is unacceptable.
23033 # Some rework will be needed to allow for fast_install
23034 # before this can be enabled.
23035 hardcode_into_libs=yes
23036
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037 # Append ld.so.conf contents to the search path
23038 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023039 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 +000023040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23041 fi
23042
John Criswell47fdd832003-07-14 16:52:07 +000023043 # We used to test for /lib/ld.so.1 and disable shared libraries on
23044 # powerpc, because MkLinux only supported shared libraries with the
23045 # GNU dynamic linker. Since this was broken with cross compilers,
23046 # most powerpc-linux boxes support dynamic linking these days and
23047 # people can always --disable-shared, the test was removed, and we
23048 # assume the GNU/Linux dynamic linker is in use.
23049 dynamic_linker='GNU/Linux ld.so'
23050 ;;
23051
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052knetbsd*-gnu)
23053 version_type=linux
23054 need_lib_prefix=no
23055 need_version=no
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 shlibpath_var=LD_LIBRARY_PATH
23059 shlibpath_overrides_runpath=no
23060 hardcode_into_libs=yes
23061 dynamic_linker='GNU ld.so'
23062 ;;
23063
John Criswell47fdd832003-07-14 16:52:07 +000023064netbsd*)
23065 version_type=sunos
23066 need_lib_prefix=no
23067 need_version=no
23068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23071 dynamic_linker='NetBSD (a.out) ld.so'
23072 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023074 soname_spec='${libname}${release}${shared_ext}$major'
23075 dynamic_linker='NetBSD ld.elf_so'
23076 fi
23077 shlibpath_var=LD_LIBRARY_PATH
23078 shlibpath_overrides_runpath=yes
23079 hardcode_into_libs=yes
23080 ;;
23081
23082newsos6)
23083 version_type=linux
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085 shlibpath_var=LD_LIBRARY_PATH
23086 shlibpath_overrides_runpath=yes
23087 ;;
23088
Reid Spencer2706f8c2004-09-19 23:53:36 +000023089nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023090 version_type=linux
23091 need_lib_prefix=no
23092 need_version=no
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094 soname_spec='${libname}${release}${shared_ext}$major'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23097 ;;
23098
23099openbsd*)
23100 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023101 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023102 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23104 case $host_os in
23105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23106 *) need_version=no ;;
23107 esac
John Criswell47fdd832003-07-14 16:52:07 +000023108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23110 shlibpath_var=LD_LIBRARY_PATH
23111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23112 case $host_os in
23113 openbsd2.[89] | openbsd2.[89].*)
23114 shlibpath_overrides_runpath=no
23115 ;;
23116 *)
23117 shlibpath_overrides_runpath=yes
23118 ;;
23119 esac
23120 else
23121 shlibpath_overrides_runpath=yes
23122 fi
23123 ;;
23124
23125os2*)
23126 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023127 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023128 need_lib_prefix=no
23129 library_names_spec='$libname${shared_ext} $libname.a'
23130 dynamic_linker='OS/2 ld.exe'
23131 shlibpath_var=LIBPATH
23132 ;;
23133
23134osf3* | osf4* | osf5*)
23135 version_type=osf
23136 need_lib_prefix=no
23137 need_version=no
23138 soname_spec='${libname}${release}${shared_ext}$major'
23139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23143 ;;
23144
John Criswell47fdd832003-07-14 16:52:07 +000023145solaris*)
23146 version_type=linux
23147 need_lib_prefix=no
23148 need_version=no
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 shlibpath_var=LD_LIBRARY_PATH
23152 shlibpath_overrides_runpath=yes
23153 hardcode_into_libs=yes
23154 # ldd complains unless libraries are executable
23155 postinstall_cmds='chmod +x $lib'
23156 ;;
23157
23158sunos4*)
23159 version_type=sunos
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23162 shlibpath_var=LD_LIBRARY_PATH
23163 shlibpath_overrides_runpath=yes
23164 if test "$with_gnu_ld" = yes; then
23165 need_lib_prefix=no
23166 fi
23167 need_version=yes
23168 ;;
23169
Reid Spencera773bd52006-08-04 18:18:08 +000023170sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023171 version_type=linux
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 case $host_vendor in
23176 sni)
23177 shlibpath_overrides_runpath=no
23178 need_lib_prefix=no
23179 export_dynamic_flag_spec='${wl}-Blargedynsym'
23180 runpath_var=LD_RUN_PATH
23181 ;;
23182 siemens)
23183 need_lib_prefix=no
23184 ;;
23185 motorola)
23186 need_lib_prefix=no
23187 need_version=no
23188 shlibpath_overrides_runpath=no
23189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23190 ;;
23191 esac
23192 ;;
23193
23194sysv4*MP*)
23195 if test -d /usr/nec ;then
23196 version_type=linux
23197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23198 soname_spec='$libname${shared_ext}.$major'
23199 shlibpath_var=LD_LIBRARY_PATH
23200 fi
23201 ;;
23202
Reid Spencera773bd52006-08-04 18:18:08 +000023203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23204 version_type=freebsd-elf
23205 need_lib_prefix=no
23206 need_version=no
23207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23208 soname_spec='${libname}${release}${shared_ext}$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 hardcode_into_libs=yes
23211 if test "$with_gnu_ld" = yes; then
23212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23213 shlibpath_overrides_runpath=no
23214 else
23215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23216 shlibpath_overrides_runpath=yes
23217 case $host_os in
23218 sco3.2v5*)
23219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23220 ;;
23221 esac
23222 fi
23223 sys_lib_dlsearch_path_spec='/usr/lib'
23224 ;;
23225
John Criswell47fdd832003-07-14 16:52:07 +000023226uts4*)
23227 version_type=linux
23228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23229 soname_spec='${libname}${release}${shared_ext}$major'
23230 shlibpath_var=LD_LIBRARY_PATH
23231 ;;
23232
23233*)
23234 dynamic_linker=no
23235 ;;
23236esac
Reid Spencera773bd52006-08-04 18:18:08 +000023237{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23238echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023239test "$dynamic_linker" = no && can_build_shared=no
23240
Reid Spencera773bd52006-08-04 18:18:08 +000023241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23242if test "$GCC" = yes; then
23243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23244fi
23245
23246{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23247echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023248hardcode_action_F77=
23249if test -n "$hardcode_libdir_flag_spec_F77" || \
23250 test -n "$runpath_var_F77" || \
23251 test "X$hardcode_automatic_F77" = "Xyes" ; then
23252
23253 # We can hardcode non-existant directories.
23254 if test "$hardcode_direct_F77" != no &&
23255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23256 # have to relink, otherwise we might link with an installed library
23257 # when we should be linking with a yet-to-be-installed one
23258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23259 test "$hardcode_minus_L_F77" != no; then
23260 # Linking always hardcodes the temporary library directory.
23261 hardcode_action_F77=relink
23262 else
23263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23264 hardcode_action_F77=immediate
23265 fi
23266else
23267 # We cannot hardcode anything, or else we can only hardcode existing
23268 # directories.
23269 hardcode_action_F77=unsupported
23270fi
Reid Spencera773bd52006-08-04 18:18:08 +000023271{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23272echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023273
23274if test "$hardcode_action_F77" = relink; then
23275 # Fast installation is not supported
23276 enable_fast_install=no
23277elif test "$shlibpath_overrides_runpath" = yes ||
23278 test "$enable_shared" = no; then
23279 # Fast installation is not necessary
23280 enable_fast_install=needless
23281fi
23282
John Criswell47fdd832003-07-14 16:52:07 +000023283
23284# The else clause should only fire when bootstrapping the
23285# libtool distribution, otherwise you forgot to ship ltmain.sh
23286# with your package, and you will get complaints that there are
23287# no rules to generate ltmain.sh.
23288if test -f "$ltmain"; then
23289 # See if we are running on zsh, and set the options which allow our commands through
23290 # without removal of \ escapes.
23291 if test -n "${ZSH_VERSION+set}" ; then
23292 setopt NO_GLOB_SUBST
23293 fi
23294 # Now quote all the things that may contain metacharacters while being
23295 # careful not to overquote the AC_SUBSTed values. We take copies of the
23296 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023297 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 +000023298 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23301 deplibs_check_method reload_flag reload_cmds need_locks \
23302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23303 lt_cv_sys_global_symbol_to_c_name_address \
23304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23305 old_postinstall_cmds old_postuninstall_cmds \
23306 compiler_F77 \
23307 CC_F77 \
23308 LD_F77 \
23309 lt_prog_compiler_wl_F77 \
23310 lt_prog_compiler_pic_F77 \
23311 lt_prog_compiler_static_F77 \
23312 lt_prog_compiler_no_builtin_flag_F77 \
23313 export_dynamic_flag_spec_F77 \
23314 thread_safe_flag_spec_F77 \
23315 whole_archive_flag_spec_F77 \
23316 enable_shared_with_static_runtimes_F77 \
23317 old_archive_cmds_F77 \
23318 old_archive_from_new_cmds_F77 \
23319 predep_objects_F77 \
23320 postdep_objects_F77 \
23321 predeps_F77 \
23322 postdeps_F77 \
23323 compiler_lib_search_path_F77 \
23324 archive_cmds_F77 \
23325 archive_expsym_cmds_F77 \
23326 postinstall_cmds_F77 \
23327 postuninstall_cmds_F77 \
23328 old_archive_from_expsyms_cmds_F77 \
23329 allow_undefined_flag_F77 \
23330 no_undefined_flag_F77 \
23331 export_symbols_cmds_F77 \
23332 hardcode_libdir_flag_spec_F77 \
23333 hardcode_libdir_flag_spec_ld_F77 \
23334 hardcode_libdir_separator_F77 \
23335 hardcode_automatic_F77 \
23336 module_cmds_F77 \
23337 module_expsym_cmds_F77 \
23338 lt_cv_prog_compiler_c_o_F77 \
23339 exclude_expsyms_F77 \
23340 include_expsyms_F77; do
23341
23342 case $var in
23343 old_archive_cmds_F77 | \
23344 old_archive_from_new_cmds_F77 | \
23345 archive_cmds_F77 | \
23346 archive_expsym_cmds_F77 | \
23347 module_cmds_F77 | \
23348 module_expsym_cmds_F77 | \
23349 old_archive_from_expsyms_cmds_F77 | \
23350 export_symbols_cmds_F77 | \
23351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23352 postinstall_cmds | postuninstall_cmds | \
23353 old_postinstall_cmds | old_postuninstall_cmds | \
23354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23355 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023356 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 +000023357 ;;
23358 *)
23359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23360 ;;
23361 esac
23362 done
23363
23364 case $lt_echo in
23365 *'\$0 --fallback-echo"')
23366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23367 ;;
23368 esac
23369
23370cfgfile="$ofile"
23371
23372 cat <<__EOF__ >> "$cfgfile"
23373# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23374
23375# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23376
23377# Shell to use when invoking shell scripts.
23378SHELL=$lt_SHELL
23379
23380# Whether or not to build shared libraries.
23381build_libtool_libs=$enable_shared
23382
23383# Whether or not to build static libraries.
23384build_old_libs=$enable_static
23385
23386# Whether or not to add -lc for building shared libraries.
23387build_libtool_need_lc=$archive_cmds_need_lc_F77
23388
23389# Whether or not to disallow shared libs when runtime libs are static
23390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23391
23392# Whether or not to optimize for fast installation.
23393fast_install=$enable_fast_install
23394
23395# The host system.
23396host_alias=$host_alias
23397host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023398host_os=$host_os
23399
23400# The build system.
23401build_alias=$build_alias
23402build=$build
23403build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023404
23405# An echo program that does not interpret backslashes.
23406echo=$lt_echo
23407
23408# The archiver.
23409AR=$lt_AR
23410AR_FLAGS=$lt_AR_FLAGS
23411
23412# A C compiler.
23413LTCC=$lt_LTCC
23414
Reid Spencera773bd52006-08-04 18:18:08 +000023415# LTCC compiler flags.
23416LTCFLAGS=$lt_LTCFLAGS
23417
John Criswell47fdd832003-07-14 16:52:07 +000023418# A language-specific compiler.
23419CC=$lt_compiler_F77
23420
23421# Is the compiler the GNU C compiler?
23422with_gcc=$GCC_F77
23423
23424# An ERE matcher.
23425EGREP=$lt_EGREP
23426
23427# The linker used to build libraries.
23428LD=$lt_LD_F77
23429
23430# Whether we need hard or soft links.
23431LN_S=$lt_LN_S
23432
23433# A BSD-compatible nm program.
23434NM=$lt_NM
23435
23436# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023437STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023438
23439# Used to examine libraries when file_magic_cmd begins "file"
23440MAGIC_CMD=$MAGIC_CMD
23441
23442# Used on cygwin: DLL creation program.
23443DLLTOOL="$DLLTOOL"
23444
23445# Used on cygwin: object dumper.
23446OBJDUMP="$OBJDUMP"
23447
23448# Used on cygwin: assembler.
23449AS="$AS"
23450
23451# The name of the directory that contains temporary libtool files.
23452objdir=$objdir
23453
23454# How to create reloadable object files.
23455reload_flag=$lt_reload_flag
23456reload_cmds=$lt_reload_cmds
23457
23458# How to pass a linker flag through the compiler.
23459wl=$lt_lt_prog_compiler_wl_F77
23460
23461# Object file suffix (normally "o").
23462objext="$ac_objext"
23463
23464# Old archive suffix (normally "a").
23465libext="$libext"
23466
23467# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023468shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023469
23470# Executable file suffix (normally "").
23471exeext="$exeext"
23472
23473# Additional compiler flags for building library objects.
23474pic_flag=$lt_lt_prog_compiler_pic_F77
23475pic_mode=$pic_mode
23476
23477# What is the maximum length of a command?
23478max_cmd_len=$lt_cv_sys_max_cmd_len
23479
23480# Does compiler simultaneously support -c and -o options?
23481compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23482
Reid Spencera773bd52006-08-04 18:18:08 +000023483# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023484need_locks=$lt_need_locks
23485
23486# Do we need the lib prefix for modules?
23487need_lib_prefix=$need_lib_prefix
23488
23489# Do we need a version for libraries?
23490need_version=$need_version
23491
23492# Whether dlopen is supported.
23493dlopen_support=$enable_dlopen
23494
23495# Whether dlopen of programs is supported.
23496dlopen_self=$enable_dlopen_self
23497
23498# Whether dlopen of statically linked programs is supported.
23499dlopen_self_static=$enable_dlopen_self_static
23500
23501# Compiler flag to prevent dynamic linking.
23502link_static_flag=$lt_lt_prog_compiler_static_F77
23503
23504# Compiler flag to turn off builtin functions.
23505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23506
23507# Compiler flag to allow reflexive dlopens.
23508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23509
23510# Compiler flag to generate shared objects directly from archives.
23511whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23512
23513# Compiler flag to generate thread-safe objects.
23514thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23515
23516# Library versioning type.
23517version_type=$version_type
23518
23519# Format of library name prefix.
23520libname_spec=$lt_libname_spec
23521
23522# List of archive names. First name is the real one, the rest are links.
23523# The last name is the one that the linker finds with -lNAME.
23524library_names_spec=$lt_library_names_spec
23525
23526# The coded name of the library, if different from the real name.
23527soname_spec=$lt_soname_spec
23528
23529# Commands used to build and install an old-style archive.
23530RANLIB=$lt_RANLIB
23531old_archive_cmds=$lt_old_archive_cmds_F77
23532old_postinstall_cmds=$lt_old_postinstall_cmds
23533old_postuninstall_cmds=$lt_old_postuninstall_cmds
23534
23535# Create an old-style archive from a shared archive.
23536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23537
23538# Create a temporary old-style archive to link instead of a shared archive.
23539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23540
23541# Commands used to build and install a shared archive.
23542archive_cmds=$lt_archive_cmds_F77
23543archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23544postinstall_cmds=$lt_postinstall_cmds
23545postuninstall_cmds=$lt_postuninstall_cmds
23546
23547# Commands used to build a loadable module (assumed same as above if empty)
23548module_cmds=$lt_module_cmds_F77
23549module_expsym_cmds=$lt_module_expsym_cmds_F77
23550
23551# Commands to strip libraries.
23552old_striplib=$lt_old_striplib
23553striplib=$lt_striplib
23554
23555# Dependencies to place before the objects being linked to create a
23556# shared library.
23557predep_objects=$lt_predep_objects_F77
23558
23559# Dependencies to place after the objects being linked to create a
23560# shared library.
23561postdep_objects=$lt_postdep_objects_F77
23562
23563# Dependencies to place before the objects being linked to create a
23564# shared library.
23565predeps=$lt_predeps_F77
23566
23567# Dependencies to place after the objects being linked to create a
23568# shared library.
23569postdeps=$lt_postdeps_F77
23570
23571# The library search path used internally by the compiler when linking
23572# a shared library.
23573compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23574
23575# Method to check whether dependent libraries are shared objects.
23576deplibs_check_method=$lt_deplibs_check_method
23577
23578# Command to use when deplibs_check_method == file_magic.
23579file_magic_cmd=$lt_file_magic_cmd
23580
23581# Flag that allows shared libraries with undefined symbols to be built.
23582allow_undefined_flag=$lt_allow_undefined_flag_F77
23583
23584# Flag that forces no undefined symbols.
23585no_undefined_flag=$lt_no_undefined_flag_F77
23586
23587# Commands used to finish a libtool library installation in a directory.
23588finish_cmds=$lt_finish_cmds
23589
23590# Same as above, but a single script fragment to be evaled but not shown.
23591finish_eval=$lt_finish_eval
23592
23593# Take the output of nm and produce a listing of raw symbols and C names.
23594global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23595
23596# Transform the output of nm in a proper C declaration
23597global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23598
23599# Transform the output of nm in a C name address pair
23600global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23601
23602# This is the shared library runtime path variable.
23603runpath_var=$runpath_var
23604
23605# This is the shared library path variable.
23606shlibpath_var=$shlibpath_var
23607
23608# Is shlibpath searched before the hard-coded library search path?
23609shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23610
23611# How to hardcode a shared library path into an executable.
23612hardcode_action=$hardcode_action_F77
23613
23614# Whether we should hardcode library paths into libraries.
23615hardcode_into_libs=$hardcode_into_libs
23616
23617# Flag to hardcode \$libdir into a binary during linking.
23618# This must work even if \$libdir does not exist.
23619hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23620
23621# If ld is used when linking, flag to hardcode \$libdir into
23622# a binary during linking. This must work even if \$libdir does
23623# not exist.
23624hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23625
23626# Whether we need a single -rpath flag with a separated argument.
23627hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23628
23629# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23630# resulting binary.
23631hardcode_direct=$hardcode_direct_F77
23632
23633# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23634# resulting binary.
23635hardcode_minus_L=$hardcode_minus_L_F77
23636
23637# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23638# the resulting binary.
23639hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23640
23641# Set to yes if building a shared library automatically hardcodes DIR into the library
23642# and all subsequent libraries and executables linked against it.
23643hardcode_automatic=$hardcode_automatic_F77
23644
23645# Variables whose values should be saved in libtool wrapper scripts and
23646# restored at relink time.
23647variables_saved_for_relink="$variables_saved_for_relink"
23648
23649# Whether libtool must link a program against all its dependency libraries.
23650link_all_deplibs=$link_all_deplibs_F77
23651
23652# Compile-time system search path for libraries
23653sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23654
23655# Run-time system search path for libraries
23656sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23657
23658# Fix the shell variable \$srcfile for the compiler.
23659fix_srcfile_path="$fix_srcfile_path_F77"
23660
23661# Set to yes if exported symbols are required.
23662always_export_symbols=$always_export_symbols_F77
23663
23664# The commands to list exported symbols.
23665export_symbols_cmds=$lt_export_symbols_cmds_F77
23666
23667# The commands to extract the exported symbol list from a shared archive.
23668extract_expsyms_cmds=$lt_extract_expsyms_cmds
23669
23670# Symbols that should not be listed in the preloaded symbols.
23671exclude_expsyms=$lt_exclude_expsyms_F77
23672
23673# Symbols that must always be exported.
23674include_expsyms=$lt_include_expsyms_F77
23675
23676# ### END LIBTOOL TAG CONFIG: $tagname
23677
23678__EOF__
23679
23680
23681else
23682 # If there is no Makefile yet, we rely on a make rule to execute
23683 # `config.status --recheck' to rerun these tests and create the
23684 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023685 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23686 if test -f "$ltmain_in"; then
23687 test -f Makefile && make "$ltmain"
23688 fi
John Criswell47fdd832003-07-14 16:52:07 +000023689fi
23690
23691
23692ac_ext=c
23693ac_cpp='$CPP $CPPFLAGS'
23694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696ac_compiler_gnu=$ac_cv_c_compiler_gnu
23697
23698CC="$lt_save_CC"
23699
23700 else
23701 tagname=""
23702 fi
23703 ;;
23704
23705 GCJ)
23706 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023707 ac_ext=c
23708ac_cpp='$CPP $CPPFLAGS'
23709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23711ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023712
23713
23714# Source file extension for Java test sources.
23715ac_ext=java
23716
23717# Object file extension for compiled Java test sources.
23718objext=o
23719objext_GCJ=$objext
23720
23721# Code to be used in simple compile tests
23722lt_simple_compile_test_code="class foo {}\n"
23723
23724# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023725lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023726
23727# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23728
23729# If no C compiler was specified, use CC.
23730LTCC=${LTCC-"$CC"}
23731
Reid Spencera773bd52006-08-04 18:18:08 +000023732# If no C compiler flags were specified, use CFLAGS.
23733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23734
John Criswell47fdd832003-07-14 16:52:07 +000023735# Allow CC to be a program name with arguments.
23736compiler=$CC
23737
23738
Reid Spencera773bd52006-08-04 18:18:08 +000023739# save warnings/boilerplate of simple test code
23740ac_outfile=conftest.$ac_objext
23741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23743_lt_compiler_boilerplate=`cat conftest.err`
23744$rm conftest*
23745
23746ac_outfile=conftest.$ac_objext
23747printf "$lt_simple_link_test_code" >conftest.$ac_ext
23748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23749_lt_linker_boilerplate=`cat conftest.err`
23750$rm conftest*
23751
23752
John Criswell47fdd832003-07-14 16:52:07 +000023753# Allow CC to be a program name with arguments.
23754lt_save_CC="$CC"
23755CC=${GCJ-"gcj"}
23756compiler=$CC
23757compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023758for cc_temp in $compiler""; do
23759 case $cc_temp in
23760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23762 \-*) ;;
23763 *) break;;
23764 esac
23765done
23766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23767
John Criswell47fdd832003-07-14 16:52:07 +000023768
23769# GCJ did not exist at the time GCC didn't implicitly link libc in.
23770archive_cmds_need_lc_GCJ=no
23771
Reid Spencera773bd52006-08-04 18:18:08 +000023772old_archive_cmds_GCJ=$old_archive_cmds
23773
John Criswell47fdd832003-07-14 16:52:07 +000023774
23775lt_prog_compiler_no_builtin_flag_GCJ=
23776
23777if test "$GCC" = yes; then
23778 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23779
Reid Spencer2706f8c2004-09-19 23:53:36 +000023780
Reid Spencera773bd52006-08-04 18:18:08 +000023781{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23782echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023783if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785else
23786 lt_cv_prog_compiler_rtti_exceptions=no
23787 ac_outfile=conftest.$ac_objext
23788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23789 lt_compiler_flag="-fno-rtti -fno-exceptions"
23790 # Insert the option either (1) after the last *FLAGS variable, or
23791 # (2) before a word containing "conftest.", or (3) at the end.
23792 # Note that $ac_compile itself does not contain backslashes and begins
23793 # with a dollar sign (not a hyphen), so the echo should work correctly.
23794 # The option is referenced via a variable to avoid confusing sed.
23795 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23798 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000023799 (eval echo "\"\$as_me:23799: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023800 (eval "$lt_compile" 2>conftest.err)
23801 ac_status=$?
23802 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000023803 echo "$as_me:23803: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023804 if (exit $ac_status) && test -s "$ac_outfile"; then
23805 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023806 # So say no if there are warnings other than the usual output.
23807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023810 lt_cv_prog_compiler_rtti_exceptions=yes
23811 fi
23812 fi
23813 $rm conftest*
23814
23815fi
Reid Spencera773bd52006-08-04 18:18:08 +000023816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23817echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023818
23819if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23820 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23821else
23822 :
23823fi
23824
23825fi
23826
23827lt_prog_compiler_wl_GCJ=
23828lt_prog_compiler_pic_GCJ=
23829lt_prog_compiler_static_GCJ=
23830
Reid Spencera773bd52006-08-04 18:18:08 +000023831{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23832echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023833
23834 if test "$GCC" = yes; then
23835 lt_prog_compiler_wl_GCJ='-Wl,'
23836 lt_prog_compiler_static_GCJ='-static'
23837
23838 case $host_os in
23839 aix*)
23840 # All AIX code is PIC.
23841 if test "$host_cpu" = ia64; then
23842 # AIX 5 now supports IA64 processor
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23844 fi
23845 ;;
23846
23847 amigaos*)
23848 # FIXME: we need at least 68020 code to build shared libraries, but
23849 # adding the `-m68020' flag to GCC prevents building anything better,
23850 # like `-m68040'.
23851 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23852 ;;
23853
23854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23855 # PIC is the default for these OSes.
23856 ;;
23857
23858 mingw* | pw32* | os2*)
23859 # This hack is so that the source file can tell whether it is being
23860 # built for inclusion in a dll (and should export symbols for example).
23861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23862 ;;
23863
23864 darwin* | rhapsody*)
23865 # PIC is the default on this platform
23866 # Common symbols not allowed in MH_DYLIB files
23867 lt_prog_compiler_pic_GCJ='-fno-common'
23868 ;;
23869
Reid Spencera773bd52006-08-04 18:18:08 +000023870 interix3*)
23871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23872 # Instead, we relocate shared libraries at runtime.
23873 ;;
23874
John Criswell47fdd832003-07-14 16:52:07 +000023875 msdosdjgpp*)
23876 # Just because we use GCC doesn't mean we suddenly get shared libraries
23877 # on systems that don't support them.
23878 lt_prog_compiler_can_build_shared_GCJ=no
23879 enable_shared=no
23880 ;;
23881
23882 sysv4*MP*)
23883 if test -d /usr/nec; then
23884 lt_prog_compiler_pic_GCJ=-Kconform_pic
23885 fi
23886 ;;
23887
23888 hpux*)
23889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23890 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023891 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023892 hppa*64*|ia64*)
23893 # +Z the default
23894 ;;
23895 *)
23896 lt_prog_compiler_pic_GCJ='-fPIC'
23897 ;;
23898 esac
23899 ;;
23900
23901 *)
23902 lt_prog_compiler_pic_GCJ='-fPIC'
23903 ;;
23904 esac
23905 else
23906 # PORTME Check for flag to pass linker flags through the system compiler.
23907 case $host_os in
23908 aix*)
23909 lt_prog_compiler_wl_GCJ='-Wl,'
23910 if test "$host_cpu" = ia64; then
23911 # AIX 5 now supports IA64 processor
23912 lt_prog_compiler_static_GCJ='-Bstatic'
23913 else
23914 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23915 fi
23916 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023917 darwin*)
23918 # PIC is the default on this platform
23919 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023920 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023921 xlc*)
23922 lt_prog_compiler_pic_GCJ='-qnocommon'
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 ;;
23925 esac
23926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023927
23928 mingw* | pw32* | os2*)
23929 # This hack is so that the source file can tell whether it is being
23930 # built for inclusion in a dll (and should export symbols for example).
23931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23932 ;;
23933
23934 hpux9* | hpux10* | hpux11*)
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23937 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023938 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023939 hppa*64*|ia64*)
23940 # +Z the default
23941 ;;
23942 *)
23943 lt_prog_compiler_pic_GCJ='+Z'
23944 ;;
23945 esac
23946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23947 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23948 ;;
23949
23950 irix5* | irix6* | nonstopux*)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 # PIC (with -KPIC) is the default.
23953 lt_prog_compiler_static_GCJ='-non_shared'
23954 ;;
23955
23956 newsos6)
23957 lt_prog_compiler_pic_GCJ='-KPIC'
23958 lt_prog_compiler_static_GCJ='-Bstatic'
23959 ;;
23960
23961 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023962 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023963 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023964 lt_prog_compiler_wl_GCJ='-Wl,'
23965 lt_prog_compiler_pic_GCJ='-KPIC'
23966 lt_prog_compiler_static_GCJ='-static'
23967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023968 pgcc* | pgf77* | pgf90* | pgf95*)
23969 # Portland Group compilers (*not* the Pentium gcc compiler,
23970 # which looks to be a dead project)
23971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_pic_GCJ='-fpic'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23974 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023975 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023976 lt_prog_compiler_wl_GCJ='-Wl,'
23977 # All Alpha code is PIC.
23978 lt_prog_compiler_static_GCJ='-non_shared'
23979 ;;
23980 esac
23981 ;;
23982
23983 osf3* | osf4* | osf5*)
23984 lt_prog_compiler_wl_GCJ='-Wl,'
23985 # All OSF/1 code is PIC.
23986 lt_prog_compiler_static_GCJ='-non_shared'
23987 ;;
23988
John Criswell47fdd832003-07-14 16:52:07 +000023989 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023990 lt_prog_compiler_pic_GCJ='-KPIC'
23991 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023992 case $cc_basename in
23993 f77* | f90* | f95*)
23994 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23995 *)
23996 lt_prog_compiler_wl_GCJ='-Wl,';;
23997 esac
John Criswell47fdd832003-07-14 16:52:07 +000023998 ;;
23999
24000 sunos4*)
24001 lt_prog_compiler_wl_GCJ='-Qoption ld '
24002 lt_prog_compiler_pic_GCJ='-PIC'
24003 lt_prog_compiler_static_GCJ='-Bstatic'
24004 ;;
24005
Reid Spencera773bd52006-08-04 18:18:08 +000024006 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024007 lt_prog_compiler_wl_GCJ='-Wl,'
24008 lt_prog_compiler_pic_GCJ='-KPIC'
24009 lt_prog_compiler_static_GCJ='-Bstatic'
24010 ;;
24011
24012 sysv4*MP*)
24013 if test -d /usr/nec ;then
24014 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24015 lt_prog_compiler_static_GCJ='-Bstatic'
24016 fi
24017 ;;
24018
Reid Spencera773bd52006-08-04 18:18:08 +000024019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24020 lt_prog_compiler_wl_GCJ='-Wl,'
24021 lt_prog_compiler_pic_GCJ='-KPIC'
24022 lt_prog_compiler_static_GCJ='-Bstatic'
24023 ;;
24024
24025 unicos*)
24026 lt_prog_compiler_wl_GCJ='-Wl,'
24027 lt_prog_compiler_can_build_shared_GCJ=no
24028 ;;
24029
John Criswell47fdd832003-07-14 16:52:07 +000024030 uts4*)
24031 lt_prog_compiler_pic_GCJ='-pic'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24033 ;;
24034
24035 *)
24036 lt_prog_compiler_can_build_shared_GCJ=no
24037 ;;
24038 esac
24039 fi
24040
Reid Spencera773bd52006-08-04 18:18:08 +000024041{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24042echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024043
24044#
24045# Check to make sure the PIC flag actually works.
24046#
24047if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024048
Reid Spencera773bd52006-08-04 18:18:08 +000024049{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24050echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024051if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24053else
24054 lt_prog_compiler_pic_works_GCJ=no
24055 ac_outfile=conftest.$ac_objext
24056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24057 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24058 # Insert the option either (1) after the last *FLAGS variable, or
24059 # (2) before a word containing "conftest.", or (3) at the end.
24060 # Note that $ac_compile itself does not contain backslashes and begins
24061 # with a dollar sign (not a hyphen), so the echo should work correctly.
24062 # The option is referenced via a variable to avoid confusing sed.
24063 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24066 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000024067 (eval echo "\"\$as_me:24067: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024068 (eval "$lt_compile" 2>conftest.err)
24069 ac_status=$?
24070 cat conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000024071 echo "$as_me:24071: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024072 if (exit $ac_status) && test -s "$ac_outfile"; then
24073 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024074 # So say no if there are warnings other than the usual output.
24075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024078 lt_prog_compiler_pic_works_GCJ=yes
24079 fi
24080 fi
24081 $rm conftest*
24082
24083fi
Reid Spencera773bd52006-08-04 18:18:08 +000024084{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24085echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024086
24087if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24088 case $lt_prog_compiler_pic_GCJ in
24089 "" | " "*) ;;
24090 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24091 esac
24092else
24093 lt_prog_compiler_pic_GCJ=
24094 lt_prog_compiler_can_build_shared_GCJ=no
24095fi
24096
24097fi
Reid Spencera773bd52006-08-04 18:18:08 +000024098case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024099 # For platforms which do not support PIC, -DPIC is meaningless:
24100 *djgpp*)
24101 lt_prog_compiler_pic_GCJ=
24102 ;;
24103 *)
24104 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24105 ;;
24106esac
24107
Reid Spencera773bd52006-08-04 18:18:08 +000024108#
24109# Check to make sure the static flag actually works.
24110#
24111wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24112{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24113echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24114if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24116else
24117 lt_prog_compiler_static_works_GCJ=no
24118 save_LDFLAGS="$LDFLAGS"
24119 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24120 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24122 # The linker can only warn and ignore the option if not recognized
24123 # So say no if there are warnings
24124 if test -s conftest.err; then
24125 # Append any errors to the config.log.
24126 cat conftest.err 1>&5
24127 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24129 if diff conftest.exp conftest.er2 >/dev/null; then
24130 lt_prog_compiler_static_works_GCJ=yes
24131 fi
24132 else
24133 lt_prog_compiler_static_works_GCJ=yes
24134 fi
24135 fi
24136 $rm conftest*
24137 LDFLAGS="$save_LDFLAGS"
24138
24139fi
24140{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24141echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24142
24143if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24144 :
24145else
24146 lt_prog_compiler_static_GCJ=
24147fi
24148
24149
24150{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24151echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024152if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154else
24155 lt_cv_prog_compiler_c_o_GCJ=no
24156 $rm -r conftest 2>/dev/null
24157 mkdir conftest
24158 cd conftest
24159 mkdir out
24160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24161
John Criswell47fdd832003-07-14 16:52:07 +000024162 lt_compiler_flag="-o out/conftest2.$ac_objext"
24163 # Insert the option either (1) after the last *FLAGS variable, or
24164 # (2) before a word containing "conftest.", or (3) at the end.
24165 # Note that $ac_compile itself does not contain backslashes and begins
24166 # with a dollar sign (not a hyphen), so the echo should work correctly.
24167 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24170 -e 's:$: $lt_compiler_flag:'`
Douglas Gregora0162ff2009-06-23 17:22:05 +000024171 (eval echo "\"\$as_me:24171: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024172 (eval "$lt_compile" 2>out/conftest.err)
24173 ac_status=$?
24174 cat out/conftest.err >&5
Douglas Gregora0162ff2009-06-23 17:22:05 +000024175 echo "$as_me:24175: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24177 then
24178 # The compiler can only warn and ignore the option if not recognized
24179 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024183 lt_cv_prog_compiler_c_o_GCJ=yes
24184 fi
24185 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024186 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024187 $rm conftest*
24188 # SGI C++ compiler will create directory out/ii_files/ for
24189 # template instantiation
24190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24191 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024192 cd ..
24193 rmdir conftest
24194 $rm conftest*
24195
24196fi
Reid Spencera773bd52006-08-04 18:18:08 +000024197{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24198echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024199
24200
24201hard_links="nottested"
24202if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24203 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24205echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024206 hard_links=yes
24207 $rm conftest*
24208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24209 touch conftest.a
24210 ln conftest.a conftest.b 2>&5 || hard_links=no
24211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024212 { echo "$as_me:$LINENO: result: $hard_links" >&5
24213echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024214 if test "$hard_links" = no; then
24215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24216echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24217 need_locks=warn
24218 fi
24219else
24220 need_locks=no
24221fi
24222
Reid Spencera773bd52006-08-04 18:18:08 +000024223{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24224echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024225
24226 runpath_var=
24227 allow_undefined_flag_GCJ=
24228 enable_shared_with_static_runtimes_GCJ=no
24229 archive_cmds_GCJ=
24230 archive_expsym_cmds_GCJ=
24231 old_archive_From_new_cmds_GCJ=
24232 old_archive_from_expsyms_cmds_GCJ=
24233 export_dynamic_flag_spec_GCJ=
24234 whole_archive_flag_spec_GCJ=
24235 thread_safe_flag_spec_GCJ=
24236 hardcode_libdir_flag_spec_GCJ=
24237 hardcode_libdir_flag_spec_ld_GCJ=
24238 hardcode_libdir_separator_GCJ=
24239 hardcode_direct_GCJ=no
24240 hardcode_minus_L_GCJ=no
24241 hardcode_shlibpath_var_GCJ=unsupported
24242 link_all_deplibs_GCJ=unknown
24243 hardcode_automatic_GCJ=no
24244 module_cmds_GCJ=
24245 module_expsym_cmds_GCJ=
24246 always_export_symbols_GCJ=no
24247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24248 # include_expsyms should be a list of space-separated symbols to be *always*
24249 # included in the symbol list
24250 include_expsyms_GCJ=
24251 # exclude_expsyms can be an extended regexp of symbols to exclude
24252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24254 # as well as any symbol that contains `d'.
24255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24257 # platforms (ab)use it in PIC code, but their linkers get confused if
24258 # the symbol is explicitly referenced. Since portable code cannot
24259 # rely on this symbol name, it's probably fine to never include it in
24260 # preloaded symbol tables.
24261 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024262 # Just being paranoid about ensuring that cc_basename is set.
24263 for cc_temp in $compiler""; do
24264 case $cc_temp in
24265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24267 \-*) ;;
24268 *) break;;
24269 esac
24270done
24271cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024272
24273 case $host_os in
24274 cygwin* | mingw* | pw32*)
24275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24276 # When not using gcc, we currently assume that we are using
24277 # Microsoft Visual C++.
24278 if test "$GCC" != yes; then
24279 with_gnu_ld=no
24280 fi
24281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024282 interix*)
24283 # we just hope/assume this is gcc and not c89 (= MSVC++)
24284 with_gnu_ld=yes
24285 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024286 openbsd*)
24287 with_gnu_ld=no
24288 ;;
24289 esac
24290
24291 ld_shlibs_GCJ=yes
24292 if test "$with_gnu_ld" = yes; then
24293 # If archive_cmds runs LD, not CC, wlarc should be empty
24294 wlarc='${wl}'
24295
Reid Spencera773bd52006-08-04 18:18:08 +000024296 # Set some defaults for GNU ld with shared library support. These
24297 # are reset later if shared libraries are not supported. Putting them
24298 # here allows them to be overridden if necessary.
24299 runpath_var=LD_RUN_PATH
24300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24302 # ancient GNU ld didn't support --whole-archive et. al.
24303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24305 else
24306 whole_archive_flag_spec_GCJ=
24307 fi
24308 supports_anon_versioning=no
24309 case `$LD -v 2>/dev/null` in
24310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24313 *\ 2.11.*) ;; # other 2.11 versions
24314 *) supports_anon_versioning=yes ;;
24315 esac
24316
John Criswell47fdd832003-07-14 16:52:07 +000024317 # See if GNU ld supports shared libraries.
24318 case $host_os in
24319 aix3* | aix4* | aix5*)
24320 # On AIX/PPC, the GNU linker is very broken
24321 if test "$host_cpu" != ia64; then
24322 ld_shlibs_GCJ=no
24323 cat <<EOF 1>&2
24324
24325*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24326*** to be unable to reliably create shared libraries on AIX.
24327*** Therefore, libtool is disabling shared libraries support. If you
24328*** really care for shared libraries, you may want to modify your PATH
24329*** so that a non-GNU linker is found, and then restart.
24330
24331EOF
24332 fi
24333 ;;
24334
24335 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024336 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 +000024337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24338 hardcode_minus_L_GCJ=yes
24339
24340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24341 # that the semantics of dynamic libraries on AmigaOS, at least up
24342 # to version 4, is to share data among multiple programs linked
24343 # with the same dynamic library. Since this doesn't match the
24344 # behavior of shared libraries on other platforms, we can't use
24345 # them.
24346 ld_shlibs_GCJ=no
24347 ;;
24348
24349 beos*)
24350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24351 allow_undefined_flag_GCJ=unsupported
24352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24353 # support --undefined. This deserves some investigation. FIXME
24354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24355 else
24356 ld_shlibs_GCJ=no
24357 fi
24358 ;;
24359
24360 cygwin* | mingw* | pw32*)
24361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24362 # as there is no search path for DLLs.
24363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24364 allow_undefined_flag_GCJ=unsupported
24365 always_export_symbols_GCJ=no
24366 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024367 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 +000024368
24369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024370 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 +000024371 # If the export-symbols file already is a .def file (1st line
24372 # is EXPORTS), use it as is; otherwise, prepend...
24373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24374 cp $export_symbols $output_objdir/$soname.def;
24375 else
24376 echo EXPORTS > $output_objdir/$soname.def;
24377 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024378 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024379 $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 +000024380 else
Reid Spencera773bd52006-08-04 18:18:08 +000024381 ld_shlibs_GCJ=no
24382 fi
24383 ;;
24384
24385 interix3*)
24386 hardcode_direct_GCJ=no
24387 hardcode_shlibpath_var_GCJ=no
24388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24389 export_dynamic_flag_spec_GCJ='${wl}-E'
24390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24391 # Instead, shared libraries are loaded at an image base (0x10000000 by
24392 # default) and relocated if they conflict, which is a slow very memory
24393 # consuming and fragmenting process. To avoid this, we pick a random,
24394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24396 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'
24397 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'
24398 ;;
24399
24400 linux*)
24401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24402 tmp_addflag=
24403 case $cc_basename,$host_cpu in
24404 pgcc*) # Portland Group C compiler
24405 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'
24406 tmp_addflag=' $pic_flag'
24407 ;;
24408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24409 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'
24410 tmp_addflag=' $pic_flag -Mnomain' ;;
24411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24412 tmp_addflag=' -i_dynamic' ;;
24413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24414 tmp_addflag=' -i_dynamic -nofor_main' ;;
24415 ifc* | ifort*) # Intel Fortran compiler
24416 tmp_addflag=' -nofor_main' ;;
24417 esac
24418 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24419
24420 if test $supports_anon_versioning = yes; then
24421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24423 $echo "local: *; };" >> $output_objdir/$libname.ver~
24424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24425 fi
24426 else
24427 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024428 fi
24429 ;;
24430
24431 netbsd*)
24432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24433 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24434 wlarc=
24435 else
24436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24438 fi
24439 ;;
24440
Reid Spencera773bd52006-08-04 18:18:08 +000024441 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24443 ld_shlibs_GCJ=no
24444 cat <<EOF 1>&2
24445
24446*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24447*** create shared libraries on Solaris systems. Therefore, libtool
24448*** is disabling shared libraries support. We urge you to upgrade GNU
24449*** binutils to release 2.9.1 or newer. Another option is to modify
24450*** your PATH or compiler configuration so that the native linker is
24451*** used, and then restart.
24452
24453EOF
24454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24457 else
24458 ld_shlibs_GCJ=no
24459 fi
24460 ;;
24461
Reid Spencera773bd52006-08-04 18:18:08 +000024462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24463 case `$LD -v 2>&1` in
24464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24465 ld_shlibs_GCJ=no
24466 cat <<_LT_EOF 1>&2
24467
24468*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24469*** reliably create shared libraries on SCO systems. Therefore, libtool
24470*** is disabling shared libraries support. We urge you to upgrade GNU
24471*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24472*** your PATH or compiler configuration so that the native linker is
24473*** used, and then restart.
24474
24475_LT_EOF
24476 ;;
24477 *)
24478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24479 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24482 else
24483 ld_shlibs_GCJ=no
24484 fi
24485 ;;
24486 esac
24487 ;;
24488
John Criswell47fdd832003-07-14 16:52:07 +000024489 sunos4*)
24490 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24491 wlarc=
24492 hardcode_direct_GCJ=yes
24493 hardcode_shlibpath_var_GCJ=no
24494 ;;
24495
24496 *)
24497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24500 else
24501 ld_shlibs_GCJ=no
24502 fi
24503 ;;
24504 esac
24505
Reid Spencera773bd52006-08-04 18:18:08 +000024506 if test "$ld_shlibs_GCJ" = no; then
24507 runpath_var=
24508 hardcode_libdir_flag_spec_GCJ=
24509 export_dynamic_flag_spec_GCJ=
24510 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024511 fi
24512 else
24513 # PORTME fill in a description of your system's linker (not GNU ld)
24514 case $host_os in
24515 aix3*)
24516 allow_undefined_flag_GCJ=unsupported
24517 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024518 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 +000024519 # Note: this linker hardcodes the directories in LIBPATH if there
24520 # are no directories specified by -L.
24521 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024523 # Neither direct hardcoding nor static linking is supported with a
24524 # broken collect2.
24525 hardcode_direct_GCJ=unsupported
24526 fi
24527 ;;
24528
24529 aix4* | aix5*)
24530 if test "$host_cpu" = ia64; then
24531 # On IA64, the linker does run time linking by default, so we don't
24532 # have to do anything special.
24533 aix_use_runtimelinking=no
24534 exp_sym_flag='-Bexport'
24535 no_entry_flag=""
24536 else
24537 # If we're using GNU nm, then we don't want the "-C" option.
24538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24540 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'
24541 else
24542 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'
24543 fi
24544 aix_use_runtimelinking=no
24545
24546 # Test if we are trying to use run time linking or normal
24547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24548 # need to do runtime linking.
24549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24550 for ld_flag in $LDFLAGS; do
24551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24552 aix_use_runtimelinking=yes
24553 break
24554 fi
24555 done
Reid Spencera773bd52006-08-04 18:18:08 +000024556 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024557 esac
24558
24559 exp_sym_flag='-bexport'
24560 no_entry_flag='-bnoentry'
24561 fi
24562
24563 # When large executables or shared objects are built, AIX ld can
24564 # have problems creating the table of contents. If linking a library
24565 # or program results in "error TOC overflow" add -mminimal-toc to
24566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24568
24569 archive_cmds_GCJ=''
24570 hardcode_direct_GCJ=yes
24571 hardcode_libdir_separator_GCJ=':'
24572 link_all_deplibs_GCJ=yes
24573
24574 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024575 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024576 # We only want to do this on AIX 4.2 and lower, the check
24577 # below for broken collect2 doesn't work under 4.3+
24578 collect2name=`${CC} -print-prog-name=collect2`
24579 if test -f "$collect2name" && \
24580 strings "$collect2name" | grep resolve_lib_name >/dev/null
24581 then
24582 # We have reworked collect2
24583 hardcode_direct_GCJ=yes
24584 else
24585 # We have old collect2
24586 hardcode_direct_GCJ=unsupported
24587 # It fails to find uninstalled libraries when the uninstalled
24588 # path is not listed in the libpath. Setting hardcode_minus_L
24589 # to unsupported forces relinking
24590 hardcode_minus_L_GCJ=yes
24591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24592 hardcode_libdir_separator_GCJ=
24593 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024594 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024595 esac
24596 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024597 if test "$aix_use_runtimelinking" = yes; then
24598 shared_flag="$shared_flag "'${wl}-G'
24599 fi
John Criswell47fdd832003-07-14 16:52:07 +000024600 else
24601 # not using gcc
24602 if test "$host_cpu" = ia64; then
24603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24604 # chokes on -Wl,-G. The following line is correct:
24605 shared_flag='-G'
24606 else
Reid Spencera773bd52006-08-04 18:18:08 +000024607 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024608 shared_flag='${wl}-G'
24609 else
24610 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024611 fi
John Criswell47fdd832003-07-14 16:52:07 +000024612 fi
24613 fi
24614
24615 # It seems that -bexpall does not export symbols beginning with
24616 # underscore (_), so it is better to generate a list of symbols to export.
24617 always_export_symbols_GCJ=yes
24618 if test "$aix_use_runtimelinking" = yes; then
24619 # Warning - without using the other runtime loading flags (-brtl),
24620 # -berok will link without error, but may produce a broken library.
24621 allow_undefined_flag_GCJ='-berok'
24622 # Determine the default libpath from the value encoded in an empty executable.
24623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024629
John Criswell47fdd832003-07-14 16:52:07 +000024630int
24631main ()
24632{
24633
24634 ;
24635 return 0;
24636}
24637_ACEOF
24638rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024639if { (ac_try="$ac_link"
24640case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24643esac
24644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024647 grep -v '^ *+' conftest.er1 >conftest.err
24648 rm -f conftest.er1
24649 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024651 (exit $ac_status); } &&
24652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656esac
24657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest$ac_exeext'
24663 { (case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24666esac
24667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_try") 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024672
24673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24674}'`
24675# Check for a 64-bit object if we didn't find anything.
24676if 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; }
24677}'`; fi
24678else
24679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024680sed 's/^/| /' conftest.$ac_ext >&5
24681
Reid Spencera773bd52006-08-04 18:18:08 +000024682
John Criswell47fdd832003-07-14 16:52:07 +000024683fi
Reid Spencera773bd52006-08-04 18:18:08 +000024684
Bill Wendlingebcceee2009-04-18 11:20:33 +000024685rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024686 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24688
24689 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024690 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 +000024691 else
24692 if test "$host_cpu" = ia64; then
24693 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24694 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024695 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 +000024696 else
24697 # Determine the default libpath from the value encoded in an empty executable.
24698 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024699/* confdefs.h. */
24700_ACEOF
24701cat confdefs.h >>conftest.$ac_ext
24702cat >>conftest.$ac_ext <<_ACEOF
24703/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024704
John Criswell47fdd832003-07-14 16:52:07 +000024705int
24706main ()
24707{
24708
24709 ;
24710 return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024714if { (ac_try="$ac_link"
24715case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24718esac
24719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024726 (exit $ac_status); } &&
24727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24728 { (case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24731esac
24732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733 (eval "$ac_try") 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24741esac
24742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024747
24748aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24749}'`
24750# Check for a 64-bit object if we didn't find anything.
24751if 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; }
24752}'`; fi
24753else
24754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024755sed 's/^/| /' conftest.$ac_ext >&5
24756
Reid Spencera773bd52006-08-04 18:18:08 +000024757
John Criswell47fdd832003-07-14 16:52:07 +000024758fi
Reid Spencera773bd52006-08-04 18:18:08 +000024759
Bill Wendlingebcceee2009-04-18 11:20:33 +000024760rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024761 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24763
24764 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24765 # Warning - without using the other run time loading flags,
24766 # -berok will link without error, but may produce a broken library.
24767 no_undefined_flag_GCJ=' ${wl}-bernotok'
24768 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024769 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024770 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024771 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024772 # This is similar to how AIX traditionally builds its shared libraries.
24773 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 +000024774 fi
24775 fi
24776 ;;
24777
24778 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024779 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 +000024780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24781 hardcode_minus_L_GCJ=yes
24782 # see comment about different semantics on the GNU ld section
24783 ld_shlibs_GCJ=no
24784 ;;
24785
Reid Spencer2706f8c2004-09-19 23:53:36 +000024786 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024787 export_dynamic_flag_spec_GCJ=-rdynamic
24788 ;;
24789
24790 cygwin* | mingw* | pw32*)
24791 # When not using gcc, we currently assume that we are using
24792 # Microsoft Visual C++.
24793 # hardcode_libdir_flag_spec is actually meaningless, as there is
24794 # no search path for DLLs.
24795 hardcode_libdir_flag_spec_GCJ=' '
24796 allow_undefined_flag_GCJ=unsupported
24797 # Tell ltmain to make .lib files, not .a files.
24798 libext=lib
24799 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024800 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024801 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024802 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 +000024803 # The linker will automatically build a .lib file if we build a DLL.
24804 old_archive_From_new_cmds_GCJ='true'
24805 # FIXME: Should let the user specify the lib program.
24806 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024807 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024808 enable_shared_with_static_runtimes_GCJ=yes
24809 ;;
24810
24811 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024812 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024813 rhapsody* | darwin1.[012])
24814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24815 ;;
24816 *) # Darwin 1.3 on
24817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24818 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24819 else
24820 case ${MACOSX_DEPLOYMENT_TARGET} in
24821 10.[012])
24822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24823 ;;
24824 10.*)
24825 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24826 ;;
24827 esac
24828 fi
24829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024830 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024831 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024832 hardcode_direct_GCJ=no
24833 hardcode_automatic_GCJ=yes
24834 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024835 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024836 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024837 if test "$GCC" = yes ; then
24838 output_verbose_link_cmd='echo'
24839 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24840 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024841 # 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 +000024842 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}'
24843 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 +000024844 else
Reid Spencera773bd52006-08-04 18:18:08 +000024845 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024846 xlc*)
24847 output_verbose_link_cmd='echo'
24848 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24849 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024850 # 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 +000024851 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}'
24852 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 +000024853 ;;
24854 *)
24855 ld_shlibs_GCJ=no
24856 ;;
24857 esac
John Criswell47fdd832003-07-14 16:52:07 +000024858 fi
24859 ;;
24860
24861 dgux*)
24862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24864 hardcode_shlibpath_var_GCJ=no
24865 ;;
24866
24867 freebsd1*)
24868 ld_shlibs_GCJ=no
24869 ;;
24870
24871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24872 # support. Future versions do this automatically, but an explicit c++rt0.o
24873 # does not break anything, and helps significantly (at the cost of a little
24874 # extra space).
24875 freebsd2.2*)
24876 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24878 hardcode_direct_GCJ=yes
24879 hardcode_shlibpath_var_GCJ=no
24880 ;;
24881
24882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24883 freebsd2*)
24884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24885 hardcode_direct_GCJ=yes
24886 hardcode_minus_L_GCJ=yes
24887 hardcode_shlibpath_var_GCJ=no
24888 ;;
24889
24890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024891 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024892 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24894 hardcode_direct_GCJ=yes
24895 hardcode_shlibpath_var_GCJ=no
24896 ;;
24897
24898 hpux9*)
24899 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024900 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 +000024901 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024902 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 +000024903 fi
24904 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 hardcode_direct_GCJ=yes
24907
24908 # hardcode_minus_L: Not really in the search PATH,
24909 # but as the default location of the library.
24910 hardcode_minus_L_GCJ=yes
24911 export_dynamic_flag_spec_GCJ='${wl}-E'
24912 ;;
24913
Reid Spencera773bd52006-08-04 18:18:08 +000024914 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024916 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24917 else
24918 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24919 fi
24920 if test "$with_gnu_ld" = no; then
24921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923
24924 hardcode_direct_GCJ=yes
24925 export_dynamic_flag_spec_GCJ='${wl}-E'
24926
24927 # hardcode_minus_L: Not really in the search PATH,
24928 # but as the default location of the library.
24929 hardcode_minus_L_GCJ=yes
24930 fi
24931 ;;
24932
24933 hpux11*)
24934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24935 case $host_cpu in
24936 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24938 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024939 ia64*)
24940 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24941 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024942 *)
24943 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24944 ;;
24945 esac
24946 else
Reid Spencera773bd52006-08-04 18:18:08 +000024947 case $host_cpu in
24948 hppa*64*)
24949 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24950 ;;
24951 ia64*)
24952 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024953 ;;
24954 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024955 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 +000024956 ;;
24957 esac
24958 fi
24959 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24961 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024962
Reid Spencera773bd52006-08-04 18:18:08 +000024963 case $host_cpu in
24964 hppa*64*|ia64*)
24965 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24966 hardcode_direct_GCJ=no
24967 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024968 ;;
24969 *)
John Criswell47fdd832003-07-14 16:52:07 +000024970 hardcode_direct_GCJ=yes
24971 export_dynamic_flag_spec_GCJ='${wl}-E'
24972
24973 # hardcode_minus_L: Not really in the search PATH,
24974 # but as the default location of the library.
24975 hardcode_minus_L_GCJ=yes
24976 ;;
24977 esac
24978 fi
24979 ;;
24980
24981 irix5* | irix6* | nonstopux*)
24982 if test "$GCC" = yes; then
24983 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'
24984 else
24985 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'
24986 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24987 fi
24988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24989 hardcode_libdir_separator_GCJ=:
24990 link_all_deplibs_GCJ=yes
24991 ;;
24992
24993 netbsd*)
24994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24996 else
24997 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24998 fi
24999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25000 hardcode_direct_GCJ=yes
25001 hardcode_shlibpath_var_GCJ=no
25002 ;;
25003
25004 newsos6)
25005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25006 hardcode_direct_GCJ=yes
25007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25008 hardcode_libdir_separator_GCJ=:
25009 hardcode_shlibpath_var_GCJ=no
25010 ;;
25011
25012 openbsd*)
25013 hardcode_direct_GCJ=yes
25014 hardcode_shlibpath_var_GCJ=no
25015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25016 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025017 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 +000025018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25019 export_dynamic_flag_spec_GCJ='${wl}-E'
25020 else
25021 case $host_os in
25022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25023 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25025 ;;
25026 *)
25027 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25029 ;;
25030 esac
25031 fi
25032 ;;
25033
25034 os2*)
25035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25036 hardcode_minus_L_GCJ=yes
25037 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025038 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 +000025039 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25040 ;;
25041
25042 osf3*)
25043 if test "$GCC" = yes; then
25044 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25045 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'
25046 else
25047 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25048 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'
25049 fi
25050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25051 hardcode_libdir_separator_GCJ=:
25052 ;;
25053
25054 osf4* | osf5*) # as osf3* with the addition of -msym flag
25055 if test "$GCC" = yes; then
25056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25057 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'
25058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25059 else
25060 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25061 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 +000025062 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 +000025063 $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 +000025064
John Criswell47fdd832003-07-14 16:52:07 +000025065 # Both c and cxx compiler support -rpath directly
25066 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25067 fi
25068 hardcode_libdir_separator_GCJ=:
25069 ;;
25070
John Criswell47fdd832003-07-14 16:52:07 +000025071 solaris*)
25072 no_undefined_flag_GCJ=' -z text'
25073 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025074 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025075 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25077 $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 +000025078 else
Reid Spencera773bd52006-08-04 18:18:08 +000025079 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025080 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025081 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25082 $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 +000025083 fi
25084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25085 hardcode_shlibpath_var_GCJ=no
25086 case $host_os in
25087 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025088 *)
25089 # The compiler driver will combine linker options so we
25090 # cannot just pass the convience library names through
25091 # without $wl, iff we do not link with $LD.
25092 # Luckily, gcc supports the same syntax we need for Sun Studio.
25093 # Supported since Solaris 2.6 (maybe 2.5.1?)
25094 case $wlarc in
25095 '')
25096 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25097 *)
25098 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' ;;
25099 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025100 esac
25101 link_all_deplibs_GCJ=yes
25102 ;;
25103
25104 sunos4*)
25105 if test "x$host_vendor" = xsequent; then
25106 # Use $CC to link under sequent, because it throws in some extra .o
25107 # files that make .init and .fini sections work.
25108 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25109 else
25110 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25111 fi
25112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25113 hardcode_direct_GCJ=yes
25114 hardcode_minus_L_GCJ=yes
25115 hardcode_shlibpath_var_GCJ=no
25116 ;;
25117
25118 sysv4)
25119 case $host_vendor in
25120 sni)
25121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122 hardcode_direct_GCJ=yes # is this really true???
25123 ;;
25124 siemens)
25125 ## LD is ld it makes a PLAMLIB
25126 ## CC just makes a GrossModule.
25127 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25128 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25129 hardcode_direct_GCJ=no
25130 ;;
25131 motorola)
25132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25133 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25134 ;;
25135 esac
25136 runpath_var='LD_RUN_PATH'
25137 hardcode_shlibpath_var_GCJ=no
25138 ;;
25139
25140 sysv4.3*)
25141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25142 hardcode_shlibpath_var_GCJ=no
25143 export_dynamic_flag_spec_GCJ='-Bexport'
25144 ;;
25145
25146 sysv4*MP*)
25147 if test -d /usr/nec; then
25148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25149 hardcode_shlibpath_var_GCJ=no
25150 runpath_var=LD_RUN_PATH
25151 hardcode_runpath_var=yes
25152 ld_shlibs_GCJ=yes
25153 fi
25154 ;;
25155
Reid Spencera773bd52006-08-04 18:18:08 +000025156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25157 no_undefined_flag_GCJ='${wl}-z,text'
25158 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025159 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025160 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025161
John Criswell47fdd832003-07-14 16:52:07 +000025162 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025163 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25164 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 +000025165 else
Reid Spencera773bd52006-08-04 18:18:08 +000025166 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167 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 +000025168 fi
John Criswell47fdd832003-07-14 16:52:07 +000025169 ;;
25170
Reid Spencera773bd52006-08-04 18:18:08 +000025171 sysv5* | sco3.2v5* | sco5v6*)
25172 # Note: We can NOT use -z defs as we might desire, because we do not
25173 # link with -lc, and that would cause any symbols used from libc to
25174 # always be unresolved, which means just about no library would
25175 # ever link correctly. If we're not using GNU ld we use -z text
25176 # though, which does catch some bad symbols but isn't as heavy-handed
25177 # as -z defs.
25178 no_undefined_flag_GCJ='${wl}-z,text'
25179 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25180 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025181 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025182 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25183 hardcode_libdir_separator_GCJ=':'
25184 link_all_deplibs_GCJ=yes
25185 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025186 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025187
25188 if test "$GCC" = yes; then
25189 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25190 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25191 else
25192 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 fi
John Criswell47fdd832003-07-14 16:52:07 +000025195 ;;
25196
25197 uts4*)
25198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25200 hardcode_shlibpath_var_GCJ=no
25201 ;;
25202
25203 *)
25204 ld_shlibs_GCJ=no
25205 ;;
25206 esac
25207 fi
25208
Reid Spencera773bd52006-08-04 18:18:08 +000025209{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25210echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025211test "$ld_shlibs_GCJ" = no && can_build_shared=no
25212
John Criswell47fdd832003-07-14 16:52:07 +000025213#
25214# Do we need to explicitly link libc?
25215#
25216case "x$archive_cmds_need_lc_GCJ" in
25217x|xyes)
25218 # Assume -lc should be added
25219 archive_cmds_need_lc_GCJ=yes
25220
25221 if test "$enable_shared" = yes && test "$GCC" = yes; then
25222 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025223 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025224 # FIXME: we may have to deal with multi-command sequences.
25225 ;;
25226 '$CC '*)
25227 # Test whether the compiler implicitly links with -lc since on some
25228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25229 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025230 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25231echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025232 $rm conftest*
25233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25234
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236 (eval $ac_compile) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } 2>conftest.err; then
25240 soname=conftest
25241 lib=conftest
25242 libobjs=conftest.$ac_objext
25243 deplibs=
25244 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025245 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025246 compiler_flags=-v
25247 linker_flags=-v
25248 verstring=
25249 output_objdir=.
25250 libname=conftest
25251 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25252 allow_undefined_flag_GCJ=
25253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25254 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }
25258 then
25259 archive_cmds_need_lc_GCJ=no
25260 else
25261 archive_cmds_need_lc_GCJ=yes
25262 fi
25263 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25264 else
25265 cat conftest.err 1>&5
25266 fi
25267 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025268 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25269echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025270 ;;
25271 esac
25272 fi
25273 ;;
25274esac
25275
Reid Spencera773bd52006-08-04 18:18:08 +000025276{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25277echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025278library_names_spec=
25279libname_spec='lib$name'
25280soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025282postinstall_cmds=
25283postuninstall_cmds=
25284finish_cmds=
25285finish_eval=
25286shlibpath_var=
25287shlibpath_overrides_runpath=unknown
25288version_type=none
25289dynamic_linker="$host_os ld.so"
25290sys_lib_dlsearch_path_spec="/lib /usr/lib"
25291if test "$GCC" = yes; then
25292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25293 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25294 # if the path contains ";" then we assume it to be the separator
25295 # otherwise default to the standard path separator (i.e. ":") - it is
25296 # assumed that no part of a normal pathname contains ";" but that should
25297 # okay in the real world where ";" in dirpaths is itself problematic.
25298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25299 else
25300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25301 fi
25302else
25303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25304fi
25305need_lib_prefix=unknown
25306hardcode_into_libs=no
25307
25308# when you set need_version to no, make sure it does not cause -set_version
25309# flags to be left without arguments
25310need_version=unknown
25311
25312case $host_os in
25313aix3*)
25314 version_type=linux
25315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25316 shlibpath_var=LIBPATH
25317
25318 # AIX 3 has no versioning support, so we append a major version to the name.
25319 soname_spec='${libname}${release}${shared_ext}$major'
25320 ;;
25321
25322aix4* | aix5*)
25323 version_type=linux
25324 need_lib_prefix=no
25325 need_version=no
25326 hardcode_into_libs=yes
25327 if test "$host_cpu" = ia64; then
25328 # AIX 5 supports IA64
25329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25330 shlibpath_var=LD_LIBRARY_PATH
25331 else
25332 # With GCC up to 2.95.x, collect2 would create an import file
25333 # for dependence libraries. The import file would start with
25334 # the line `#! .'. This would cause the generated library to
25335 # depend on `.', always an invalid library. This was fixed in
25336 # development snapshots of GCC prior to 3.0.
25337 case $host_os in
25338 aix4 | aix4.[01] | aix4.[01].*)
25339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25340 echo ' yes '
25341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25342 :
25343 else
25344 can_build_shared=no
25345 fi
25346 ;;
25347 esac
25348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25349 # soname into executable. Probably we can add versioning support to
25350 # collect2, so additional links can be useful in future.
25351 if test "$aix_use_runtimelinking" = yes; then
25352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25353 # instead of lib<name>.a to let people know that these are not
25354 # typical AIX shared libraries.
25355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25356 else
25357 # We preserve .a as extension for shared libraries through AIX4.2
25358 # and later when we are not doing run time linking.
25359 library_names_spec='${libname}${release}.a $libname.a'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25361 fi
25362 shlibpath_var=LIBPATH
25363 fi
25364 ;;
25365
25366amigaos*)
25367 library_names_spec='$libname.ixlibrary $libname.a'
25368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369 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 +000025370 ;;
25371
25372beos*)
25373 library_names_spec='${libname}${shared_ext}'
25374 dynamic_linker="$host_os ld.so"
25375 shlibpath_var=LIBRARY_PATH
25376 ;;
25377
Reid Spencer2706f8c2004-09-19 23:53:36 +000025378bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025379 version_type=linux
25380 need_version=no
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25382 soname_spec='${libname}${release}${shared_ext}$major'
25383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25384 shlibpath_var=LD_LIBRARY_PATH
25385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25387 # the default ld.so.conf also contains /usr/contrib/lib and
25388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25389 # libtool to hard-code these into programs
25390 ;;
25391
25392cygwin* | mingw* | pw32*)
25393 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025394 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025395 need_version=no
25396 need_lib_prefix=no
25397
25398 case $GCC,$host_os in
25399 yes,cygwin* | yes,mingw* | yes,pw32*)
25400 library_names_spec='$libname.dll.a'
25401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025402 postinstall_cmds='base_file=`basename \${file}`~
25403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25404 dldir=$destdir/`dirname \$dlpath`~
25405 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025406 $install_prog $dir/$dlname \$dldir/$dlname~
25407 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25409 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025410 $rm \$dlpath'
25411 shlibpath_overrides_runpath=yes
25412
25413 case $host_os in
25414 cygwin*)
25415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25416 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 +000025417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025418 ;;
25419 mingw*)
25420 # MinGW DLLs use traditional 'lib' prefix
25421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25424 # It is most probably a Windows format PATH printed by
25425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25426 # path with ; separators, and with drive letters. We can handle the
25427 # drive letters (cygwin fileutils understands them), so leave them,
25428 # especially as we might pass files found there to a mingw objdump,
25429 # which wouldn't understand a cygwinified path. Ahh.
25430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25431 else
25432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25433 fi
25434 ;;
25435 pw32*)
25436 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025437 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 +000025438 ;;
25439 esac
25440 ;;
25441
25442 *)
25443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25444 ;;
25445 esac
25446 dynamic_linker='Win32 ld.exe'
25447 # FIXME: first we should search . and the directory the executable is in
25448 shlibpath_var=PATH
25449 ;;
25450
25451darwin* | rhapsody*)
25452 dynamic_linker="$host_os dyld"
25453 version_type=darwin
25454 need_lib_prefix=no
25455 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025457 soname_spec='${libname}${release}${major}$shared_ext'
25458 shlibpath_overrides_runpath=yes
25459 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025460 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025462 if test "$GCC" = yes; then
25463 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"`
25464 else
25465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025466 fi
25467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25468 ;;
25469
25470dgux*)
25471 version_type=linux
25472 need_lib_prefix=no
25473 need_version=no
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 ;;
25478
25479freebsd1*)
25480 dynamic_linker=no
25481 ;;
25482
Reid Spencer2706f8c2004-09-19 23:53:36 +000025483kfreebsd*-gnu)
25484 version_type=linux
25485 need_lib_prefix=no
25486 need_version=no
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25488 soname_spec='${libname}${release}${shared_ext}$major'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=no
25491 hardcode_into_libs=yes
25492 dynamic_linker='GNU ld.so'
25493 ;;
25494
Reid Spencera773bd52006-08-04 18:18:08 +000025495freebsd* | dragonfly*)
25496 # DragonFly does not have aout. When/if they implement a new
25497 # versioning mechanism, adjust this.
25498 if test -x /usr/bin/objformat; then
25499 objformat=`/usr/bin/objformat`
25500 else
25501 case $host_os in
25502 freebsd[123]*) objformat=aout ;;
25503 *) objformat=elf ;;
25504 esac
25505 fi
John Criswell47fdd832003-07-14 16:52:07 +000025506 version_type=freebsd-$objformat
25507 case $version_type in
25508 freebsd-elf*)
25509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25510 need_version=no
25511 need_lib_prefix=no
25512 ;;
25513 freebsd-*)
25514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25515 need_version=yes
25516 ;;
25517 esac
25518 shlibpath_var=LD_LIBRARY_PATH
25519 case $host_os in
25520 freebsd2*)
25521 shlibpath_overrides_runpath=yes
25522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025523 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025524 shlibpath_overrides_runpath=yes
25525 hardcode_into_libs=yes
25526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025529 shlibpath_overrides_runpath=no
25530 hardcode_into_libs=yes
25531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025532 freebsd*) # from 4.6 on
25533 shlibpath_overrides_runpath=yes
25534 hardcode_into_libs=yes
25535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025536 esac
25537 ;;
25538
25539gnu*)
25540 version_type=linux
25541 need_lib_prefix=no
25542 need_version=no
25543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25544 soname_spec='${libname}${release}${shared_ext}$major'
25545 shlibpath_var=LD_LIBRARY_PATH
25546 hardcode_into_libs=yes
25547 ;;
25548
25549hpux9* | hpux10* | hpux11*)
25550 # Give a soname corresponding to the major version so that dld.sl refuses to
25551 # link against other versions.
25552 version_type=sunos
25553 need_lib_prefix=no
25554 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025555 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025556 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025557 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025558 hardcode_into_libs=yes
25559 dynamic_linker="$host_os dld.so"
25560 shlibpath_var=LD_LIBRARY_PATH
25561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25563 soname_spec='${libname}${release}${shared_ext}$major'
25564 if test "X$HPUX_IA64_MODE" = X32; then
25565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25566 else
25567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25568 fi
25569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25570 ;;
25571 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025572 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025573 hardcode_into_libs=yes
25574 dynamic_linker="$host_os dld.sl"
25575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25578 soname_spec='${libname}${release}${shared_ext}$major'
25579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25581 ;;
25582 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025583 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025584 dynamic_linker="$host_os dld.sl"
25585 shlibpath_var=SHLIB_PATH
25586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 soname_spec='${libname}${release}${shared_ext}$major'
25589 ;;
25590 esac
25591 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25592 postinstall_cmds='chmod 555 $lib'
25593 ;;
25594
Reid Spencera773bd52006-08-04 18:18:08 +000025595interix3*)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25602 shlibpath_var=LD_LIBRARY_PATH
25603 shlibpath_overrides_runpath=no
25604 hardcode_into_libs=yes
25605 ;;
25606
John Criswell47fdd832003-07-14 16:52:07 +000025607irix5* | irix6* | nonstopux*)
25608 case $host_os in
25609 nonstopux*) version_type=nonstopux ;;
25610 *)
25611 if test "$lt_cv_prog_gnu_ld" = yes; then
25612 version_type=linux
25613 else
25614 version_type=irix
25615 fi ;;
25616 esac
25617 need_lib_prefix=no
25618 need_version=no
25619 soname_spec='${libname}${release}${shared_ext}$major'
25620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25621 case $host_os in
25622 irix5* | nonstopux*)
25623 libsuff= shlibsuff=
25624 ;;
25625 *)
25626 case $LD in # libtool.m4 will add one of these switches to LD
25627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25628 libsuff= shlibsuff= libmagic=32-bit;;
25629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25630 libsuff=32 shlibsuff=N32 libmagic=N32;;
25631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25633 *) libsuff= shlibsuff= libmagic=never-match;;
25634 esac
25635 ;;
25636 esac
25637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25638 shlibpath_overrides_runpath=no
25639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25641 hardcode_into_libs=yes
25642 ;;
25643
25644# No shared lib support for Linux oldld, aout, or coff.
25645linux*oldld* | linux*aout* | linux*coff*)
25646 dynamic_linker=no
25647 ;;
25648
25649# This must be Linux ELF.
25650linux*)
25651 version_type=linux
25652 need_lib_prefix=no
25653 need_version=no
25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec='${libname}${release}${shared_ext}$major'
25656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 shlibpath_overrides_runpath=no
25659 # This implies no fast_install, which is unacceptable.
25660 # Some rework will be needed to allow for fast_install
25661 # before this can be enabled.
25662 hardcode_into_libs=yes
25663
Reid Spencer2706f8c2004-09-19 23:53:36 +000025664 # Append ld.so.conf contents to the search path
25665 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025666 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 +000025667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25668 fi
25669
John Criswell47fdd832003-07-14 16:52:07 +000025670 # We used to test for /lib/ld.so.1 and disable shared libraries on
25671 # powerpc, because MkLinux only supported shared libraries with the
25672 # GNU dynamic linker. Since this was broken with cross compilers,
25673 # most powerpc-linux boxes support dynamic linking these days and
25674 # people can always --disable-shared, the test was removed, and we
25675 # assume the GNU/Linux dynamic linker is in use.
25676 dynamic_linker='GNU/Linux ld.so'
25677 ;;
25678
Reid Spencer2706f8c2004-09-19 23:53:36 +000025679knetbsd*-gnu)
25680 version_type=linux
25681 need_lib_prefix=no
25682 need_version=no
25683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25684 soname_spec='${libname}${release}${shared_ext}$major'
25685 shlibpath_var=LD_LIBRARY_PATH
25686 shlibpath_overrides_runpath=no
25687 hardcode_into_libs=yes
25688 dynamic_linker='GNU ld.so'
25689 ;;
25690
John Criswell47fdd832003-07-14 16:52:07 +000025691netbsd*)
25692 version_type=sunos
25693 need_lib_prefix=no
25694 need_version=no
25695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25698 dynamic_linker='NetBSD (a.out) ld.so'
25699 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025701 soname_spec='${libname}${release}${shared_ext}$major'
25702 dynamic_linker='NetBSD ld.elf_so'
25703 fi
25704 shlibpath_var=LD_LIBRARY_PATH
25705 shlibpath_overrides_runpath=yes
25706 hardcode_into_libs=yes
25707 ;;
25708
25709newsos6)
25710 version_type=linux
25711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25712 shlibpath_var=LD_LIBRARY_PATH
25713 shlibpath_overrides_runpath=yes
25714 ;;
25715
Reid Spencer2706f8c2004-09-19 23:53:36 +000025716nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025717 version_type=linux
25718 need_lib_prefix=no
25719 need_version=no
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721 soname_spec='${libname}${release}${shared_ext}$major'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25724 ;;
25725
25726openbsd*)
25727 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025728 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025729 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025730 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25731 case $host_os in
25732 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25733 *) need_version=no ;;
25734 esac
John Criswell47fdd832003-07-14 16:52:07 +000025735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25737 shlibpath_var=LD_LIBRARY_PATH
25738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25739 case $host_os in
25740 openbsd2.[89] | openbsd2.[89].*)
25741 shlibpath_overrides_runpath=no
25742 ;;
25743 *)
25744 shlibpath_overrides_runpath=yes
25745 ;;
25746 esac
25747 else
25748 shlibpath_overrides_runpath=yes
25749 fi
25750 ;;
25751
25752os2*)
25753 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025754 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025755 need_lib_prefix=no
25756 library_names_spec='$libname${shared_ext} $libname.a'
25757 dynamic_linker='OS/2 ld.exe'
25758 shlibpath_var=LIBPATH
25759 ;;
25760
25761osf3* | osf4* | osf5*)
25762 version_type=osf
25763 need_lib_prefix=no
25764 need_version=no
25765 soname_spec='${libname}${release}${shared_ext}$major'
25766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25769 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25770 ;;
25771
John Criswell47fdd832003-07-14 16:52:07 +000025772solaris*)
25773 version_type=linux
25774 need_lib_prefix=no
25775 need_version=no
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 shlibpath_var=LD_LIBRARY_PATH
25779 shlibpath_overrides_runpath=yes
25780 hardcode_into_libs=yes
25781 # ldd complains unless libraries are executable
25782 postinstall_cmds='chmod +x $lib'
25783 ;;
25784
25785sunos4*)
25786 version_type=sunos
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25789 shlibpath_var=LD_LIBRARY_PATH
25790 shlibpath_overrides_runpath=yes
25791 if test "$with_gnu_ld" = yes; then
25792 need_lib_prefix=no
25793 fi
25794 need_version=yes
25795 ;;
25796
Reid Spencera773bd52006-08-04 18:18:08 +000025797sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025798 version_type=linux
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25800 soname_spec='${libname}${release}${shared_ext}$major'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 case $host_vendor in
25803 sni)
25804 shlibpath_overrides_runpath=no
25805 need_lib_prefix=no
25806 export_dynamic_flag_spec='${wl}-Blargedynsym'
25807 runpath_var=LD_RUN_PATH
25808 ;;
25809 siemens)
25810 need_lib_prefix=no
25811 ;;
25812 motorola)
25813 need_lib_prefix=no
25814 need_version=no
25815 shlibpath_overrides_runpath=no
25816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25817 ;;
25818 esac
25819 ;;
25820
25821sysv4*MP*)
25822 if test -d /usr/nec ;then
25823 version_type=linux
25824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25825 soname_spec='$libname${shared_ext}.$major'
25826 shlibpath_var=LD_LIBRARY_PATH
25827 fi
25828 ;;
25829
Reid Spencera773bd52006-08-04 18:18:08 +000025830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25831 version_type=freebsd-elf
25832 need_lib_prefix=no
25833 need_version=no
25834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25835 soname_spec='${libname}${release}${shared_ext}$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25837 hardcode_into_libs=yes
25838 if test "$with_gnu_ld" = yes; then
25839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25840 shlibpath_overrides_runpath=no
25841 else
25842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25843 shlibpath_overrides_runpath=yes
25844 case $host_os in
25845 sco3.2v5*)
25846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25847 ;;
25848 esac
25849 fi
25850 sys_lib_dlsearch_path_spec='/usr/lib'
25851 ;;
25852
John Criswell47fdd832003-07-14 16:52:07 +000025853uts4*)
25854 version_type=linux
25855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25856 soname_spec='${libname}${release}${shared_ext}$major'
25857 shlibpath_var=LD_LIBRARY_PATH
25858 ;;
25859
25860*)
25861 dynamic_linker=no
25862 ;;
25863esac
Reid Spencera773bd52006-08-04 18:18:08 +000025864{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25865echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025866test "$dynamic_linker" = no && can_build_shared=no
25867
Reid Spencera773bd52006-08-04 18:18:08 +000025868variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25869if test "$GCC" = yes; then
25870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25871fi
25872
25873{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25874echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025875hardcode_action_GCJ=
25876if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25877 test -n "$runpath_var_GCJ" || \
25878 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25879
25880 # We can hardcode non-existant directories.
25881 if test "$hardcode_direct_GCJ" != no &&
25882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25883 # have to relink, otherwise we might link with an installed library
25884 # when we should be linking with a yet-to-be-installed one
25885 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25886 test "$hardcode_minus_L_GCJ" != no; then
25887 # Linking always hardcodes the temporary library directory.
25888 hardcode_action_GCJ=relink
25889 else
25890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25891 hardcode_action_GCJ=immediate
25892 fi
25893else
25894 # We cannot hardcode anything, or else we can only hardcode existing
25895 # directories.
25896 hardcode_action_GCJ=unsupported
25897fi
Reid Spencera773bd52006-08-04 18:18:08 +000025898{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25899echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025900
25901if test "$hardcode_action_GCJ" = relink; then
25902 # Fast installation is not supported
25903 enable_fast_install=no
25904elif test "$shlibpath_overrides_runpath" = yes ||
25905 test "$enable_shared" = no; then
25906 # Fast installation is not necessary
25907 enable_fast_install=needless
25908fi
25909
John Criswell47fdd832003-07-14 16:52:07 +000025910
25911# The else clause should only fire when bootstrapping the
25912# libtool distribution, otherwise you forgot to ship ltmain.sh
25913# with your package, and you will get complaints that there are
25914# no rules to generate ltmain.sh.
25915if test -f "$ltmain"; then
25916 # See if we are running on zsh, and set the options which allow our commands through
25917 # without removal of \ escapes.
25918 if test -n "${ZSH_VERSION+set}" ; then
25919 setopt NO_GLOB_SUBST
25920 fi
25921 # Now quote all the things that may contain metacharacters while being
25922 # careful not to overquote the AC_SUBSTed values. We take copies of the
25923 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025924 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 +000025925 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25928 deplibs_check_method reload_flag reload_cmds need_locks \
25929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25930 lt_cv_sys_global_symbol_to_c_name_address \
25931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25932 old_postinstall_cmds old_postuninstall_cmds \
25933 compiler_GCJ \
25934 CC_GCJ \
25935 LD_GCJ \
25936 lt_prog_compiler_wl_GCJ \
25937 lt_prog_compiler_pic_GCJ \
25938 lt_prog_compiler_static_GCJ \
25939 lt_prog_compiler_no_builtin_flag_GCJ \
25940 export_dynamic_flag_spec_GCJ \
25941 thread_safe_flag_spec_GCJ \
25942 whole_archive_flag_spec_GCJ \
25943 enable_shared_with_static_runtimes_GCJ \
25944 old_archive_cmds_GCJ \
25945 old_archive_from_new_cmds_GCJ \
25946 predep_objects_GCJ \
25947 postdep_objects_GCJ \
25948 predeps_GCJ \
25949 postdeps_GCJ \
25950 compiler_lib_search_path_GCJ \
25951 archive_cmds_GCJ \
25952 archive_expsym_cmds_GCJ \
25953 postinstall_cmds_GCJ \
25954 postuninstall_cmds_GCJ \
25955 old_archive_from_expsyms_cmds_GCJ \
25956 allow_undefined_flag_GCJ \
25957 no_undefined_flag_GCJ \
25958 export_symbols_cmds_GCJ \
25959 hardcode_libdir_flag_spec_GCJ \
25960 hardcode_libdir_flag_spec_ld_GCJ \
25961 hardcode_libdir_separator_GCJ \
25962 hardcode_automatic_GCJ \
25963 module_cmds_GCJ \
25964 module_expsym_cmds_GCJ \
25965 lt_cv_prog_compiler_c_o_GCJ \
25966 exclude_expsyms_GCJ \
25967 include_expsyms_GCJ; do
25968
25969 case $var in
25970 old_archive_cmds_GCJ | \
25971 old_archive_from_new_cmds_GCJ | \
25972 archive_cmds_GCJ | \
25973 archive_expsym_cmds_GCJ | \
25974 module_cmds_GCJ | \
25975 module_expsym_cmds_GCJ | \
25976 old_archive_from_expsyms_cmds_GCJ | \
25977 export_symbols_cmds_GCJ | \
25978 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25979 postinstall_cmds | postuninstall_cmds | \
25980 old_postinstall_cmds | old_postuninstall_cmds | \
25981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25982 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025983 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 +000025984 ;;
25985 *)
25986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25987 ;;
25988 esac
25989 done
25990
25991 case $lt_echo in
25992 *'\$0 --fallback-echo"')
25993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25994 ;;
25995 esac
25996
25997cfgfile="$ofile"
25998
25999 cat <<__EOF__ >> "$cfgfile"
26000# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26001
26002# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26003
26004# Shell to use when invoking shell scripts.
26005SHELL=$lt_SHELL
26006
26007# Whether or not to build shared libraries.
26008build_libtool_libs=$enable_shared
26009
26010# Whether or not to build static libraries.
26011build_old_libs=$enable_static
26012
26013# Whether or not to add -lc for building shared libraries.
26014build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26015
26016# Whether or not to disallow shared libs when runtime libs are static
26017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26018
26019# Whether or not to optimize for fast installation.
26020fast_install=$enable_fast_install
26021
26022# The host system.
26023host_alias=$host_alias
26024host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026025host_os=$host_os
26026
26027# The build system.
26028build_alias=$build_alias
26029build=$build
26030build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026031
26032# An echo program that does not interpret backslashes.
26033echo=$lt_echo
26034
26035# The archiver.
26036AR=$lt_AR
26037AR_FLAGS=$lt_AR_FLAGS
26038
26039# A C compiler.
26040LTCC=$lt_LTCC
26041
Reid Spencera773bd52006-08-04 18:18:08 +000026042# LTCC compiler flags.
26043LTCFLAGS=$lt_LTCFLAGS
26044
John Criswell47fdd832003-07-14 16:52:07 +000026045# A language-specific compiler.
26046CC=$lt_compiler_GCJ
26047
26048# Is the compiler the GNU C compiler?
26049with_gcc=$GCC_GCJ
26050
26051# An ERE matcher.
26052EGREP=$lt_EGREP
26053
26054# The linker used to build libraries.
26055LD=$lt_LD_GCJ
26056
26057# Whether we need hard or soft links.
26058LN_S=$lt_LN_S
26059
26060# A BSD-compatible nm program.
26061NM=$lt_NM
26062
26063# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026064STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026065
26066# Used to examine libraries when file_magic_cmd begins "file"
26067MAGIC_CMD=$MAGIC_CMD
26068
26069# Used on cygwin: DLL creation program.
26070DLLTOOL="$DLLTOOL"
26071
26072# Used on cygwin: object dumper.
26073OBJDUMP="$OBJDUMP"
26074
26075# Used on cygwin: assembler.
26076AS="$AS"
26077
26078# The name of the directory that contains temporary libtool files.
26079objdir=$objdir
26080
26081# How to create reloadable object files.
26082reload_flag=$lt_reload_flag
26083reload_cmds=$lt_reload_cmds
26084
26085# How to pass a linker flag through the compiler.
26086wl=$lt_lt_prog_compiler_wl_GCJ
26087
26088# Object file suffix (normally "o").
26089objext="$ac_objext"
26090
26091# Old archive suffix (normally "a").
26092libext="$libext"
26093
26094# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026095shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026096
26097# Executable file suffix (normally "").
26098exeext="$exeext"
26099
26100# Additional compiler flags for building library objects.
26101pic_flag=$lt_lt_prog_compiler_pic_GCJ
26102pic_mode=$pic_mode
26103
26104# What is the maximum length of a command?
26105max_cmd_len=$lt_cv_sys_max_cmd_len
26106
26107# Does compiler simultaneously support -c and -o options?
26108compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26109
Reid Spencera773bd52006-08-04 18:18:08 +000026110# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026111need_locks=$lt_need_locks
26112
26113# Do we need the lib prefix for modules?
26114need_lib_prefix=$need_lib_prefix
26115
26116# Do we need a version for libraries?
26117need_version=$need_version
26118
26119# Whether dlopen is supported.
26120dlopen_support=$enable_dlopen
26121
26122# Whether dlopen of programs is supported.
26123dlopen_self=$enable_dlopen_self
26124
26125# Whether dlopen of statically linked programs is supported.
26126dlopen_self_static=$enable_dlopen_self_static
26127
26128# Compiler flag to prevent dynamic linking.
26129link_static_flag=$lt_lt_prog_compiler_static_GCJ
26130
26131# Compiler flag to turn off builtin functions.
26132no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26133
26134# Compiler flag to allow reflexive dlopens.
26135export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26136
26137# Compiler flag to generate shared objects directly from archives.
26138whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26139
26140# Compiler flag to generate thread-safe objects.
26141thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26142
26143# Library versioning type.
26144version_type=$version_type
26145
26146# Format of library name prefix.
26147libname_spec=$lt_libname_spec
26148
26149# List of archive names. First name is the real one, the rest are links.
26150# The last name is the one that the linker finds with -lNAME.
26151library_names_spec=$lt_library_names_spec
26152
26153# The coded name of the library, if different from the real name.
26154soname_spec=$lt_soname_spec
26155
26156# Commands used to build and install an old-style archive.
26157RANLIB=$lt_RANLIB
26158old_archive_cmds=$lt_old_archive_cmds_GCJ
26159old_postinstall_cmds=$lt_old_postinstall_cmds
26160old_postuninstall_cmds=$lt_old_postuninstall_cmds
26161
26162# Create an old-style archive from a shared archive.
26163old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26164
26165# Create a temporary old-style archive to link instead of a shared archive.
26166old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26167
26168# Commands used to build and install a shared archive.
26169archive_cmds=$lt_archive_cmds_GCJ
26170archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26171postinstall_cmds=$lt_postinstall_cmds
26172postuninstall_cmds=$lt_postuninstall_cmds
26173
26174# Commands used to build a loadable module (assumed same as above if empty)
26175module_cmds=$lt_module_cmds_GCJ
26176module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26177
26178# Commands to strip libraries.
26179old_striplib=$lt_old_striplib
26180striplib=$lt_striplib
26181
26182# Dependencies to place before the objects being linked to create a
26183# shared library.
26184predep_objects=$lt_predep_objects_GCJ
26185
26186# Dependencies to place after the objects being linked to create a
26187# shared library.
26188postdep_objects=$lt_postdep_objects_GCJ
26189
26190# Dependencies to place before the objects being linked to create a
26191# shared library.
26192predeps=$lt_predeps_GCJ
26193
26194# Dependencies to place after the objects being linked to create a
26195# shared library.
26196postdeps=$lt_postdeps_GCJ
26197
26198# The library search path used internally by the compiler when linking
26199# a shared library.
26200compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26201
26202# Method to check whether dependent libraries are shared objects.
26203deplibs_check_method=$lt_deplibs_check_method
26204
26205# Command to use when deplibs_check_method == file_magic.
26206file_magic_cmd=$lt_file_magic_cmd
26207
26208# Flag that allows shared libraries with undefined symbols to be built.
26209allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26210
26211# Flag that forces no undefined symbols.
26212no_undefined_flag=$lt_no_undefined_flag_GCJ
26213
26214# Commands used to finish a libtool library installation in a directory.
26215finish_cmds=$lt_finish_cmds
26216
26217# Same as above, but a single script fragment to be evaled but not shown.
26218finish_eval=$lt_finish_eval
26219
26220# Take the output of nm and produce a listing of raw symbols and C names.
26221global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26222
26223# Transform the output of nm in a proper C declaration
26224global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26225
26226# Transform the output of nm in a C name address pair
26227global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26228
26229# This is the shared library runtime path variable.
26230runpath_var=$runpath_var
26231
26232# This is the shared library path variable.
26233shlibpath_var=$shlibpath_var
26234
26235# Is shlibpath searched before the hard-coded library search path?
26236shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26237
26238# How to hardcode a shared library path into an executable.
26239hardcode_action=$hardcode_action_GCJ
26240
26241# Whether we should hardcode library paths into libraries.
26242hardcode_into_libs=$hardcode_into_libs
26243
26244# Flag to hardcode \$libdir into a binary during linking.
26245# This must work even if \$libdir does not exist.
26246hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26247
26248# If ld is used when linking, flag to hardcode \$libdir into
26249# a binary during linking. This must work even if \$libdir does
26250# not exist.
26251hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26252
26253# Whether we need a single -rpath flag with a separated argument.
26254hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26255
26256# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26257# resulting binary.
26258hardcode_direct=$hardcode_direct_GCJ
26259
26260# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26261# resulting binary.
26262hardcode_minus_L=$hardcode_minus_L_GCJ
26263
26264# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26265# the resulting binary.
26266hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26267
26268# Set to yes if building a shared library automatically hardcodes DIR into the library
26269# and all subsequent libraries and executables linked against it.
26270hardcode_automatic=$hardcode_automatic_GCJ
26271
26272# Variables whose values should be saved in libtool wrapper scripts and
26273# restored at relink time.
26274variables_saved_for_relink="$variables_saved_for_relink"
26275
26276# Whether libtool must link a program against all its dependency libraries.
26277link_all_deplibs=$link_all_deplibs_GCJ
26278
26279# Compile-time system search path for libraries
26280sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26281
26282# Run-time system search path for libraries
26283sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26284
26285# Fix the shell variable \$srcfile for the compiler.
26286fix_srcfile_path="$fix_srcfile_path_GCJ"
26287
26288# Set to yes if exported symbols are required.
26289always_export_symbols=$always_export_symbols_GCJ
26290
26291# The commands to list exported symbols.
26292export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26293
26294# The commands to extract the exported symbol list from a shared archive.
26295extract_expsyms_cmds=$lt_extract_expsyms_cmds
26296
26297# Symbols that should not be listed in the preloaded symbols.
26298exclude_expsyms=$lt_exclude_expsyms_GCJ
26299
26300# Symbols that must always be exported.
26301include_expsyms=$lt_include_expsyms_GCJ
26302
26303# ### END LIBTOOL TAG CONFIG: $tagname
26304
26305__EOF__
26306
26307
26308else
26309 # If there is no Makefile yet, we rely on a make rule to execute
26310 # `config.status --recheck' to rerun these tests and create the
26311 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026312 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26313 if test -f "$ltmain_in"; then
26314 test -f Makefile && make "$ltmain"
26315 fi
John Criswell47fdd832003-07-14 16:52:07 +000026316fi
26317
26318
26319ac_ext=c
26320ac_cpp='$CPP $CPPFLAGS'
26321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323ac_compiler_gnu=$ac_cv_c_compiler_gnu
26324
26325CC="$lt_save_CC"
26326
26327 else
26328 tagname=""
26329 fi
26330 ;;
26331
26332 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026333 ac_ext=c
26334ac_cpp='$CPP $CPPFLAGS'
26335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26337ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026338
26339
26340# Source file extension for RC test sources.
26341ac_ext=rc
26342
26343# Object file extension for compiled RC test sources.
26344objext=o
26345objext_RC=$objext
26346
26347# Code to be used in simple compile tests
26348lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26349
26350# Code to be used in simple link tests
26351lt_simple_link_test_code="$lt_simple_compile_test_code"
26352
26353# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26354
26355# If no C compiler was specified, use CC.
26356LTCC=${LTCC-"$CC"}
26357
Reid Spencera773bd52006-08-04 18:18:08 +000026358# If no C compiler flags were specified, use CFLAGS.
26359LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26360
John Criswell47fdd832003-07-14 16:52:07 +000026361# Allow CC to be a program name with arguments.
26362compiler=$CC
26363
26364
Reid Spencera773bd52006-08-04 18:18:08 +000026365# save warnings/boilerplate of simple test code
26366ac_outfile=conftest.$ac_objext
26367printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26368eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26369_lt_compiler_boilerplate=`cat conftest.err`
26370$rm conftest*
26371
26372ac_outfile=conftest.$ac_objext
26373printf "$lt_simple_link_test_code" >conftest.$ac_ext
26374eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26375_lt_linker_boilerplate=`cat conftest.err`
26376$rm conftest*
26377
26378
John Criswell47fdd832003-07-14 16:52:07 +000026379# Allow CC to be a program name with arguments.
26380lt_save_CC="$CC"
26381CC=${RC-"windres"}
26382compiler=$CC
26383compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026384for cc_temp in $compiler""; do
26385 case $cc_temp in
26386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26388 \-*) ;;
26389 *) break;;
26390 esac
26391done
26392cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26393
John Criswell47fdd832003-07-14 16:52:07 +000026394lt_cv_prog_compiler_c_o_RC=yes
26395
26396# The else clause should only fire when bootstrapping the
26397# libtool distribution, otherwise you forgot to ship ltmain.sh
26398# with your package, and you will get complaints that there are
26399# no rules to generate ltmain.sh.
26400if test -f "$ltmain"; then
26401 # See if we are running on zsh, and set the options which allow our commands through
26402 # without removal of \ escapes.
26403 if test -n "${ZSH_VERSION+set}" ; then
26404 setopt NO_GLOB_SUBST
26405 fi
26406 # Now quote all the things that may contain metacharacters while being
26407 # careful not to overquote the AC_SUBSTed values. We take copies of the
26408 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026409 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 +000026410 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26413 deplibs_check_method reload_flag reload_cmds need_locks \
26414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26415 lt_cv_sys_global_symbol_to_c_name_address \
26416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26417 old_postinstall_cmds old_postuninstall_cmds \
26418 compiler_RC \
26419 CC_RC \
26420 LD_RC \
26421 lt_prog_compiler_wl_RC \
26422 lt_prog_compiler_pic_RC \
26423 lt_prog_compiler_static_RC \
26424 lt_prog_compiler_no_builtin_flag_RC \
26425 export_dynamic_flag_spec_RC \
26426 thread_safe_flag_spec_RC \
26427 whole_archive_flag_spec_RC \
26428 enable_shared_with_static_runtimes_RC \
26429 old_archive_cmds_RC \
26430 old_archive_from_new_cmds_RC \
26431 predep_objects_RC \
26432 postdep_objects_RC \
26433 predeps_RC \
26434 postdeps_RC \
26435 compiler_lib_search_path_RC \
26436 archive_cmds_RC \
26437 archive_expsym_cmds_RC \
26438 postinstall_cmds_RC \
26439 postuninstall_cmds_RC \
26440 old_archive_from_expsyms_cmds_RC \
26441 allow_undefined_flag_RC \
26442 no_undefined_flag_RC \
26443 export_symbols_cmds_RC \
26444 hardcode_libdir_flag_spec_RC \
26445 hardcode_libdir_flag_spec_ld_RC \
26446 hardcode_libdir_separator_RC \
26447 hardcode_automatic_RC \
26448 module_cmds_RC \
26449 module_expsym_cmds_RC \
26450 lt_cv_prog_compiler_c_o_RC \
26451 exclude_expsyms_RC \
26452 include_expsyms_RC; do
26453
26454 case $var in
26455 old_archive_cmds_RC | \
26456 old_archive_from_new_cmds_RC | \
26457 archive_cmds_RC | \
26458 archive_expsym_cmds_RC | \
26459 module_cmds_RC | \
26460 module_expsym_cmds_RC | \
26461 old_archive_from_expsyms_cmds_RC | \
26462 export_symbols_cmds_RC | \
26463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26464 postinstall_cmds | postuninstall_cmds | \
26465 old_postinstall_cmds | old_postuninstall_cmds | \
26466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26467 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026468 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 +000026469 ;;
26470 *)
26471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26472 ;;
26473 esac
26474 done
26475
26476 case $lt_echo in
26477 *'\$0 --fallback-echo"')
26478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26479 ;;
26480 esac
26481
26482cfgfile="$ofile"
26483
26484 cat <<__EOF__ >> "$cfgfile"
26485# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26486
26487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26488
26489# Shell to use when invoking shell scripts.
26490SHELL=$lt_SHELL
26491
26492# Whether or not to build shared libraries.
26493build_libtool_libs=$enable_shared
26494
26495# Whether or not to build static libraries.
26496build_old_libs=$enable_static
26497
26498# Whether or not to add -lc for building shared libraries.
26499build_libtool_need_lc=$archive_cmds_need_lc_RC
26500
26501# Whether or not to disallow shared libs when runtime libs are static
26502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26503
26504# Whether or not to optimize for fast installation.
26505fast_install=$enable_fast_install
26506
26507# The host system.
26508host_alias=$host_alias
26509host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026510host_os=$host_os
26511
26512# The build system.
26513build_alias=$build_alias
26514build=$build
26515build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026516
26517# An echo program that does not interpret backslashes.
26518echo=$lt_echo
26519
26520# The archiver.
26521AR=$lt_AR
26522AR_FLAGS=$lt_AR_FLAGS
26523
26524# A C compiler.
26525LTCC=$lt_LTCC
26526
Reid Spencera773bd52006-08-04 18:18:08 +000026527# LTCC compiler flags.
26528LTCFLAGS=$lt_LTCFLAGS
26529
John Criswell47fdd832003-07-14 16:52:07 +000026530# A language-specific compiler.
26531CC=$lt_compiler_RC
26532
26533# Is the compiler the GNU C compiler?
26534with_gcc=$GCC_RC
26535
26536# An ERE matcher.
26537EGREP=$lt_EGREP
26538
26539# The linker used to build libraries.
26540LD=$lt_LD_RC
26541
26542# Whether we need hard or soft links.
26543LN_S=$lt_LN_S
26544
26545# A BSD-compatible nm program.
26546NM=$lt_NM
26547
26548# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026549STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026550
26551# Used to examine libraries when file_magic_cmd begins "file"
26552MAGIC_CMD=$MAGIC_CMD
26553
26554# Used on cygwin: DLL creation program.
26555DLLTOOL="$DLLTOOL"
26556
26557# Used on cygwin: object dumper.
26558OBJDUMP="$OBJDUMP"
26559
26560# Used on cygwin: assembler.
26561AS="$AS"
26562
26563# The name of the directory that contains temporary libtool files.
26564objdir=$objdir
26565
26566# How to create reloadable object files.
26567reload_flag=$lt_reload_flag
26568reload_cmds=$lt_reload_cmds
26569
26570# How to pass a linker flag through the compiler.
26571wl=$lt_lt_prog_compiler_wl_RC
26572
26573# Object file suffix (normally "o").
26574objext="$ac_objext"
26575
26576# Old archive suffix (normally "a").
26577libext="$libext"
26578
26579# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026580shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026581
26582# Executable file suffix (normally "").
26583exeext="$exeext"
26584
26585# Additional compiler flags for building library objects.
26586pic_flag=$lt_lt_prog_compiler_pic_RC
26587pic_mode=$pic_mode
26588
26589# What is the maximum length of a command?
26590max_cmd_len=$lt_cv_sys_max_cmd_len
26591
26592# Does compiler simultaneously support -c and -o options?
26593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26594
Reid Spencera773bd52006-08-04 18:18:08 +000026595# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026596need_locks=$lt_need_locks
26597
26598# Do we need the lib prefix for modules?
26599need_lib_prefix=$need_lib_prefix
26600
26601# Do we need a version for libraries?
26602need_version=$need_version
26603
26604# Whether dlopen is supported.
26605dlopen_support=$enable_dlopen
26606
26607# Whether dlopen of programs is supported.
26608dlopen_self=$enable_dlopen_self
26609
26610# Whether dlopen of statically linked programs is supported.
26611dlopen_self_static=$enable_dlopen_self_static
26612
26613# Compiler flag to prevent dynamic linking.
26614link_static_flag=$lt_lt_prog_compiler_static_RC
26615
26616# Compiler flag to turn off builtin functions.
26617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26618
26619# Compiler flag to allow reflexive dlopens.
26620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26621
26622# Compiler flag to generate shared objects directly from archives.
26623whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26624
26625# Compiler flag to generate thread-safe objects.
26626thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26627
26628# Library versioning type.
26629version_type=$version_type
26630
26631# Format of library name prefix.
26632libname_spec=$lt_libname_spec
26633
26634# List of archive names. First name is the real one, the rest are links.
26635# The last name is the one that the linker finds with -lNAME.
26636library_names_spec=$lt_library_names_spec
26637
26638# The coded name of the library, if different from the real name.
26639soname_spec=$lt_soname_spec
26640
26641# Commands used to build and install an old-style archive.
26642RANLIB=$lt_RANLIB
26643old_archive_cmds=$lt_old_archive_cmds_RC
26644old_postinstall_cmds=$lt_old_postinstall_cmds
26645old_postuninstall_cmds=$lt_old_postuninstall_cmds
26646
26647# Create an old-style archive from a shared archive.
26648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26649
26650# Create a temporary old-style archive to link instead of a shared archive.
26651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26652
26653# Commands used to build and install a shared archive.
26654archive_cmds=$lt_archive_cmds_RC
26655archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26656postinstall_cmds=$lt_postinstall_cmds
26657postuninstall_cmds=$lt_postuninstall_cmds
26658
26659# Commands used to build a loadable module (assumed same as above if empty)
26660module_cmds=$lt_module_cmds_RC
26661module_expsym_cmds=$lt_module_expsym_cmds_RC
26662
26663# Commands to strip libraries.
26664old_striplib=$lt_old_striplib
26665striplib=$lt_striplib
26666
26667# Dependencies to place before the objects being linked to create a
26668# shared library.
26669predep_objects=$lt_predep_objects_RC
26670
26671# Dependencies to place after the objects being linked to create a
26672# shared library.
26673postdep_objects=$lt_postdep_objects_RC
26674
26675# Dependencies to place before the objects being linked to create a
26676# shared library.
26677predeps=$lt_predeps_RC
26678
26679# Dependencies to place after the objects being linked to create a
26680# shared library.
26681postdeps=$lt_postdeps_RC
26682
26683# The library search path used internally by the compiler when linking
26684# a shared library.
26685compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26686
26687# Method to check whether dependent libraries are shared objects.
26688deplibs_check_method=$lt_deplibs_check_method
26689
26690# Command to use when deplibs_check_method == file_magic.
26691file_magic_cmd=$lt_file_magic_cmd
26692
26693# Flag that allows shared libraries with undefined symbols to be built.
26694allow_undefined_flag=$lt_allow_undefined_flag_RC
26695
26696# Flag that forces no undefined symbols.
26697no_undefined_flag=$lt_no_undefined_flag_RC
26698
26699# Commands used to finish a libtool library installation in a directory.
26700finish_cmds=$lt_finish_cmds
26701
26702# Same as above, but a single script fragment to be evaled but not shown.
26703finish_eval=$lt_finish_eval
26704
26705# Take the output of nm and produce a listing of raw symbols and C names.
26706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26707
26708# Transform the output of nm in a proper C declaration
26709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26710
26711# Transform the output of nm in a C name address pair
26712global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26713
26714# This is the shared library runtime path variable.
26715runpath_var=$runpath_var
26716
26717# This is the shared library path variable.
26718shlibpath_var=$shlibpath_var
26719
26720# Is shlibpath searched before the hard-coded library search path?
26721shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26722
26723# How to hardcode a shared library path into an executable.
26724hardcode_action=$hardcode_action_RC
26725
26726# Whether we should hardcode library paths into libraries.
26727hardcode_into_libs=$hardcode_into_libs
26728
26729# Flag to hardcode \$libdir into a binary during linking.
26730# This must work even if \$libdir does not exist.
26731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26732
26733# If ld is used when linking, flag to hardcode \$libdir into
26734# a binary during linking. This must work even if \$libdir does
26735# not exist.
26736hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26737
26738# Whether we need a single -rpath flag with a separated argument.
26739hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26740
26741# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26742# resulting binary.
26743hardcode_direct=$hardcode_direct_RC
26744
26745# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26746# resulting binary.
26747hardcode_minus_L=$hardcode_minus_L_RC
26748
26749# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26750# the resulting binary.
26751hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26752
26753# Set to yes if building a shared library automatically hardcodes DIR into the library
26754# and all subsequent libraries and executables linked against it.
26755hardcode_automatic=$hardcode_automatic_RC
26756
26757# Variables whose values should be saved in libtool wrapper scripts and
26758# restored at relink time.
26759variables_saved_for_relink="$variables_saved_for_relink"
26760
26761# Whether libtool must link a program against all its dependency libraries.
26762link_all_deplibs=$link_all_deplibs_RC
26763
26764# Compile-time system search path for libraries
26765sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26766
26767# Run-time system search path for libraries
26768sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26769
26770# Fix the shell variable \$srcfile for the compiler.
26771fix_srcfile_path="$fix_srcfile_path_RC"
26772
26773# Set to yes if exported symbols are required.
26774always_export_symbols=$always_export_symbols_RC
26775
26776# The commands to list exported symbols.
26777export_symbols_cmds=$lt_export_symbols_cmds_RC
26778
26779# The commands to extract the exported symbol list from a shared archive.
26780extract_expsyms_cmds=$lt_extract_expsyms_cmds
26781
26782# Symbols that should not be listed in the preloaded symbols.
26783exclude_expsyms=$lt_exclude_expsyms_RC
26784
26785# Symbols that must always be exported.
26786include_expsyms=$lt_include_expsyms_RC
26787
26788# ### END LIBTOOL TAG CONFIG: $tagname
26789
26790__EOF__
26791
26792
26793else
26794 # If there is no Makefile yet, we rely on a make rule to execute
26795 # `config.status --recheck' to rerun these tests and create the
26796 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26798 if test -f "$ltmain_in"; then
26799 test -f Makefile && make "$ltmain"
26800 fi
John Criswell47fdd832003-07-14 16:52:07 +000026801fi
26802
26803
26804ac_ext=c
26805ac_cpp='$CPP $CPPFLAGS'
26806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808ac_compiler_gnu=$ac_cv_c_compiler_gnu
26809
26810CC="$lt_save_CC"
26811
26812 ;;
26813
26814 *)
26815 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26816echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26817 { (exit 1); exit 1; }; }
26818 ;;
26819 esac
26820
26821 # Append the new tag name to the list of available tags.
26822 if test -n "$tagname" ; then
26823 available_tags="$available_tags $tagname"
26824 fi
26825 fi
26826 done
26827 IFS="$lt_save_ifs"
26828
26829 # Now substitute the updated list of available tags.
26830 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26831 mv "${ofile}T" "$ofile"
26832 chmod +x "$ofile"
26833 else
26834 rm -f "${ofile}T"
26835 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26836echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26837 { (exit 1); exit 1; }; }
26838 fi
26839fi
John Criswell7a73b802003-06-30 21:59:07 +000026840
26841
26842
26843# This can be used to rebuild libtool when needed
26844LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26845
26846# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026847LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026848
26849# Prevent multiple expansion
26850
26851
26852
John Criswell47fdd832003-07-14 16:52:07 +000026853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026870
Reid Spencer582a23c2004-12-29 07:07:57 +000026871if test "$lt_cv_dlopen_self" = "yes" ; then
26872
26873cat >>confdefs.h <<\_ACEOF
26874#define CAN_DLOPEN_SELF 1
26875_ACEOF
26876
26877fi
26878
Douglas Gregor01746742009-05-11 18:05:52 +000026879
Reid Spencer7931a782004-12-27 06:15:02 +000026880if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026881 LLVMGCC="llvm-gcc${EXEEXT}"
26882 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026883 LLVMGCCCOMMAND="$LLVMGCC"
26884 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026885 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26886
26887 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26888
Reid Spencerc84492c2005-06-02 22:34:49 +000026889 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26890set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026893if test "${ac_cv_path_LLVMGCC+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 case $LLVMGCC in
26897 [\\/]* | ?:[\\/]*)
26898 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26899 ;;
26900 *)
26901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902for as_dir in $PATH
26903do
26904 IFS=$as_save_IFS
26905 test -z "$as_dir" && as_dir=.
26906 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026907 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 +000026908 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26910 break 2
26911 fi
26912done
26913done
Reid Spencera773bd52006-08-04 18:18:08 +000026914IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026915
Reid Spencer59473af2004-12-25 07:31:29 +000026916 ;;
26917esac
26918fi
26919LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026920if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026921 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26922echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026923else
Reid Spencera773bd52006-08-04 18:18:08 +000026924 { echo "$as_me:$LINENO: result: no" >&5
26925echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026926fi
26927
Reid Spencera773bd52006-08-04 18:18:08 +000026928
Reid Spencerc84492c2005-06-02 22:34:49 +000026929 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26930set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026933if test "${ac_cv_path_LLVMGXX+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
26936 case $LLVMGXX in
26937 [\\/]* | ?:[\\/]*)
26938 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26939 ;;
26940 *)
26941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942for as_dir in $PATH
26943do
26944 IFS=$as_save_IFS
26945 test -z "$as_dir" && as_dir=.
26946 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026947 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 +000026948 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26950 break 2
26951 fi
26952done
26953done
Reid Spencera773bd52006-08-04 18:18:08 +000026954IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026955
Reid Spencer59473af2004-12-25 07:31:29 +000026956 ;;
26957esac
26958fi
26959LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026960if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026961 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26962echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026963else
Reid Spencera773bd52006-08-04 18:18:08 +000026964 { echo "$as_me:$LINENO: result: no" >&5
26965echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026966fi
26967
Reid Spencera773bd52006-08-04 18:18:08 +000026968
Reid Spencer59473af2004-12-25 07:31:29 +000026969else
Devang Patel5d28b882007-12-04 22:54:47 +000026970 if test -z "$LLVMGCC"; then
26971 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026972 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026973 fi
26974 if test -z "$LLVMGXX"; then
26975 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026976 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026977 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026978
Reid Spencer59473af2004-12-25 07:31:29 +000026979 LLVMGCC=$LLVMGCC
26980
26981 LLVMGXX=$LLVMGXX
26982
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026983 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26984
26985 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26986
Reid Spencer59473af2004-12-25 07:31:29 +000026987fi
26988
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026989
Reid Spencera773bd52006-08-04 18:18:08 +000026990{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26991echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026992
Reid Spencer86901802004-12-08 23:07:27 +000026993ICC=no
26994IXX=no
26995case $CC in
26996 icc*|icpc*)
26997 ICC=yes
26998 IXX=yes
26999 ;;
27000 *)
27001 ;;
27002esac
27003
Duraid Madina937c60a2006-02-15 07:57:42 +000027004if test "$GCC" != "yes" && test "$ICC" != "yes"
27005then
27006 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27007echo "$as_me: error: gcc|icc required but not found" >&2;}
27008 { (exit 1); exit 1; }; }
27009fi
27010
27011if test "$GXX" != "yes" && test "$IXX" != "yes"
27012then
27013 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27014echo "$as_me: error: g++|icc required but not found" >&2;}
27015 { (exit 1); exit 1; }; }
27016fi
27017
Reid Spencer86901802004-12-08 23:07:27 +000027018if test "$GCC" = "yes"
27019then
Chris Lattner399c7c72008-02-05 19:43:53 +000027020 cat >conftest.$ac_ext <<_ACEOF
27021#if !defined(__GNUC__) || __GNUC__ < 3
27022#error Unsupported GCC version
27023#endif
27024
27025_ACEOF
27026rm -f conftest.$ac_objext
27027if { (ac_try="$ac_compile"
27028case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27031esac
27032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_compile") 2>conftest.er1
27034 ac_status=$?
27035 grep -v '^ *+' conftest.er1 >conftest.err
27036 rm -f conftest.er1
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027039 (exit $ac_status); } &&
27040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27041 { (case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27044esac
27045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_try") 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest.$ac_objext'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27054esac
27055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_try") 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027060 :
27061else
27062 echo "$as_me: failed program was:" >&5
27063sed 's/^/| /' conftest.$ac_ext >&5
27064
27065 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027066echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27067 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027068fi
27069
27070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027071fi
27072
27073if test -z "$llvm_cv_gnu_make_command"
27074then
27075 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27076echo "$as_me: error: GNU Make required but not found" >&2;}
27077 { (exit 1); exit 1; }; }
27078fi
27079
Reid Spencera773bd52006-08-04 18:18:08 +000027080{ echo "$as_me:$LINENO: result: ok" >&5
27081echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027082
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027083
John Criswell7a73b802003-06-30 21:59:07 +000027084
Reid Spencera773bd52006-08-04 18:18:08 +000027085{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27086echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027087if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090 ac_check_lib_save_LIBS=$LIBS
27091LIBS="-lelf $LIBS"
27092cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027098
Reid Spencera773bd52006-08-04 18:18:08 +000027099/* Override any GCC internal prototype to avoid an error.
27100 Use char because int might match the return type of a GCC
27101 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027102#ifdef __cplusplus
27103extern "C"
27104#endif
John Criswell7a73b802003-06-30 21:59:07 +000027105char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027106int
27107main ()
27108{
Reid Spencera773bd52006-08-04 18:18:08 +000027109return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027110 ;
27111 return 0;
27112}
27113_ACEOF
27114rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027115if { (ac_try="$ac_link"
27116case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027123 grep -v '^ *+' conftest.er1 >conftest.err
27124 rm -f conftest.er1
27125 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027127 (exit $ac_status); } &&
27128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27132esac
27133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
27135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; } &&
27138 { ac_try='test -s conftest$ac_exeext'
27139 { (case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27142esac
27143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_try") 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027148 ac_cv_lib_elf_elf_begin=yes
27149else
27150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027151sed 's/^/| /' conftest.$ac_ext >&5
27152
Reid Spencera773bd52006-08-04 18:18:08 +000027153 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027154fi
Reid Spencera773bd52006-08-04 18:18:08 +000027155
Bill Wendlingebcceee2009-04-18 11:20:33 +000027156rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027157 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027158LIBS=$ac_check_lib_save_LIBS
27159fi
Reid Spencera773bd52006-08-04 18:18:08 +000027160{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27161echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027162if test $ac_cv_lib_elf_elf_begin = yes; then
27163 cat >>confdefs.h <<_ACEOF
27164#define HAVE_LIBELF 1
27165_ACEOF
27166
27167 LIBS="-lelf $LIBS"
27168
27169fi
27170
27171
Reid Spencera773bd52006-08-04 18:18:08 +000027172{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27173echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027174if test "${ac_cv_lib_m_sin+set}" = set; then
27175 echo $ECHO_N "(cached) $ECHO_C" >&6
27176else
27177 ac_check_lib_save_LIBS=$LIBS
27178LIBS="-lm $LIBS"
27179cat >conftest.$ac_ext <<_ACEOF
27180/* confdefs.h. */
27181_ACEOF
27182cat confdefs.h >>conftest.$ac_ext
27183cat >>conftest.$ac_ext <<_ACEOF
27184/* end confdefs.h. */
27185
Reid Spencera773bd52006-08-04 18:18:08 +000027186/* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027189#ifdef __cplusplus
27190extern "C"
27191#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027192char sin ();
27193int
27194main ()
27195{
Reid Spencera773bd52006-08-04 18:18:08 +000027196return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027197 ;
27198 return 0;
27199}
27200_ACEOF
27201rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027202if { (ac_try="$ac_link"
27203case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27206esac
27207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027209 ac_status=$?
27210 grep -v '^ *+' conftest.er1 >conftest.err
27211 rm -f conftest.er1
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027214 (exit $ac_status); } &&
27215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27216 { (case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27219esac
27220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_try") 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
27226 { (case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_try") 2>&5
27232 ac_status=$?
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027235 ac_cv_lib_m_sin=yes
27236else
27237 echo "$as_me: failed program was:" >&5
27238sed 's/^/| /' conftest.$ac_ext >&5
27239
Reid Spencera773bd52006-08-04 18:18:08 +000027240 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027241fi
Reid Spencera773bd52006-08-04 18:18:08 +000027242
Bill Wendlingebcceee2009-04-18 11:20:33 +000027243rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027244 conftest$ac_exeext conftest.$ac_ext
27245LIBS=$ac_check_lib_save_LIBS
27246fi
Reid Spencera773bd52006-08-04 18:18:08 +000027247{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27248echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027249if test $ac_cv_lib_m_sin = yes; then
27250 cat >>confdefs.h <<_ACEOF
27251#define HAVE_LIBM 1
27252_ACEOF
27253
27254 LIBS="-lm $LIBS"
27255
27256fi
27257
Jeff Cohen28783c32007-01-12 18:22:38 +000027258if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027259
Reid Spencera773bd52006-08-04 18:18:08 +000027260{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27261echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027262if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027263 echo $ECHO_N "(cached) $ECHO_C" >&6
27264else
27265 ac_check_lib_save_LIBS=$LIBS
27266LIBS="-limagehlp $LIBS"
27267cat >conftest.$ac_ext <<_ACEOF
27268/* confdefs.h. */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h. */
27273
Reid Spencer48fdf912006-06-01 19:03:21 +000027274
Reid Spencer484fc8e2006-06-01 16:55:59 +000027275int
27276main ()
27277{
Reid Spencera773bd52006-08-04 18:18:08 +000027278return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027279 ;
27280 return 0;
27281}
27282_ACEOF
27283rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027284if { (ac_try="$ac_link"
27285case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27288esac
27289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027291 ac_status=$?
27292 grep -v '^ *+' conftest.er1 >conftest.err
27293 rm -f conftest.er1
27294 cat conftest.err >&5
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027296 (exit $ac_status); } &&
27297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27298 { (case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27301esac
27302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_try") 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27311esac
27312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_try") 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027317 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027318else
27319 echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
Reid Spencera773bd52006-08-04 18:18:08 +000027322 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027323fi
Reid Spencera773bd52006-08-04 18:18:08 +000027324
Bill Wendlingebcceee2009-04-18 11:20:33 +000027325rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027326 conftest$ac_exeext conftest.$ac_ext
27327LIBS=$ac_check_lib_save_LIBS
27328fi
Reid Spencera773bd52006-08-04 18:18:08 +000027329{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27330echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027331if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027332 cat >>confdefs.h <<_ACEOF
27333#define HAVE_LIBIMAGEHLP 1
27334_ACEOF
27335
27336 LIBS="-limagehlp $LIBS"
27337
27338fi
27339
27340
Reid Spencera773bd52006-08-04 18:18:08 +000027341{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27342echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027343if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027344 echo $ECHO_N "(cached) $ECHO_C" >&6
27345else
27346 ac_check_lib_save_LIBS=$LIBS
27347LIBS="-lpsapi $LIBS"
27348cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h. */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h. */
27354
Reid Spencer48fdf912006-06-01 19:03:21 +000027355
Reid Spencer484fc8e2006-06-01 16:55:59 +000027356int
27357main ()
27358{
Reid Spencera773bd52006-08-04 18:18:08 +000027359return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027360 ;
27361 return 0;
27362}
27363_ACEOF
27364rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027365if { (ac_try="$ac_link"
27366case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27369esac
27370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027372 ac_status=$?
27373 grep -v '^ *+' conftest.er1 >conftest.err
27374 rm -f conftest.er1
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379 { (case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27382esac
27383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384 (eval "$ac_try") 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest$ac_exeext'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27392esac
27393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027398 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027399else
27400 echo "$as_me: failed program was:" >&5
27401sed 's/^/| /' conftest.$ac_ext >&5
27402
Reid Spencera773bd52006-08-04 18:18:08 +000027403 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027404fi
Reid Spencera773bd52006-08-04 18:18:08 +000027405
Bill Wendlingebcceee2009-04-18 11:20:33 +000027406rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027407 conftest$ac_exeext conftest.$ac_ext
27408LIBS=$ac_check_lib_save_LIBS
27409fi
Reid Spencera773bd52006-08-04 18:18:08 +000027410{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27411echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027412if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027413 cat >>confdefs.h <<_ACEOF
27414#define HAVE_LIBPSAPI 1
27415_ACEOF
27416
27417 LIBS="-lpsapi $LIBS"
27418
27419fi
27420
27421fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027422
Reid Spencera773bd52006-08-04 18:18:08 +000027423{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27424echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027425if test "${ac_cv_search_dlopen+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27427else
27428 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027429cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027430/* confdefs.h. */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027435
Reid Spencera773bd52006-08-04 18:18:08 +000027436/* Override any GCC internal prototype to avoid an error.
27437 Use char because int might match the return type of a GCC
27438 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027439#ifdef __cplusplus
27440extern "C"
27441#endif
John Criswell7a73b802003-06-30 21:59:07 +000027442char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027443int
27444main ()
27445{
Reid Spencera773bd52006-08-04 18:18:08 +000027446return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027447 ;
27448 return 0;
27449}
27450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027451for ac_lib in '' dl; do
27452 if test -z "$ac_lib"; then
27453 ac_res="none required"
27454 else
27455 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027457 fi
27458 rm -f conftest.$ac_objext conftest$ac_exeext
27459if { (ac_try="$ac_link"
27460case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27463esac
27464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027471 (exit $ac_status); } &&
27472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27473 { (case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476esac
27477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_try") 2>&5
27479 ac_status=$?
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; } &&
27482 { ac_try='test -s conftest$ac_exeext'
27483 { (case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_try") 2>&5
27489 ac_status=$?
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027492 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027493else
27494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027495sed 's/^/| /' conftest.$ac_ext >&5
27496
Reid Spencera773bd52006-08-04 18:18:08 +000027497
John Criswell7a73b802003-06-30 21:59:07 +000027498fi
Reid Spencera773bd52006-08-04 18:18:08 +000027499
Bill Wendlingebcceee2009-04-18 11:20:33 +000027500rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027501 conftest$ac_exeext
27502 if test "${ac_cv_search_dlopen+set}" = set; then
27503 break
John Criswell7a73b802003-06-30 21:59:07 +000027504fi
Reid Spencera773bd52006-08-04 18:18:08 +000027505done
27506if test "${ac_cv_search_dlopen+set}" = set; then
27507 :
27508else
27509 ac_cv_search_dlopen=no
27510fi
27511rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027512LIBS=$ac_func_search_save_LIBS
27513fi
Reid Spencera773bd52006-08-04 18:18:08 +000027514{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27515echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27516ac_res=$ac_cv_search_dlopen
27517if test "$ac_res" != no; then
27518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027519
27520cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027521#define HAVE_DLOPEN 1
27522_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027523
27524else
Brian Gaekec45be042003-10-07 06:01:34 +000027525 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27526echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027527fi
27528
27529
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027530if test "$llvm_cv_enable_libffi" = "yes" ; then
27531 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027532echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27533if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027534 echo $ECHO_N "(cached) $ECHO_C" >&6
27535else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027536 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027537cat >conftest.$ac_ext <<_ACEOF
27538/* confdefs.h. */
27539_ACEOF
27540cat confdefs.h >>conftest.$ac_ext
27541cat >>conftest.$ac_ext <<_ACEOF
27542/* end confdefs.h. */
27543
27544/* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27547#ifdef __cplusplus
27548extern "C"
27549#endif
27550char ffi_call ();
27551int
27552main ()
27553{
27554return ffi_call ();
27555 ;
27556 return 0;
27557}
27558_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027559for ac_lib in '' ffi; do
27560 if test -z "$ac_lib"; then
27561 ac_res="none required"
27562 else
27563 ac_res=-l$ac_lib
27564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27565 fi
27566 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027567if { (ac_try="$ac_link"
27568case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_link") 2>conftest.er1
27574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest$ac_exeext'
27591 { (case "(($ac_try" in
27592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593 *) ac_try_echo=$ac_try;;
27594esac
27595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596 (eval "$ac_try") 2>&5
27597 ac_status=$?
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027600 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027601else
27602 echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
Nick Lewycky267fddb2009-04-13 04:26:27 +000027605
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027606fi
27607
Bill Wendlingebcceee2009-04-18 11:20:33 +000027608rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027609 conftest$ac_exeext
27610 if test "${ac_cv_search_ffi_call+set}" = set; then
27611 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027612fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027613done
27614if test "${ac_cv_search_ffi_call+set}" = set; then
27615 :
27616else
27617 ac_cv_search_ffi_call=no
27618fi
27619rm conftest.$ac_ext
27620LIBS=$ac_func_search_save_LIBS
27621fi
27622{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27623echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27624ac_res=$ac_cv_search_ffi_call
27625if test "$ac_res" != no; then
27626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27627
27628cat >>confdefs.h <<\_ACEOF
27629#define HAVE_FFI_CALL 1
27630_ACEOF
27631
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027632else
27633 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27634echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27635fi
27636
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027637fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027638
Reid Spencera773bd52006-08-04 18:18:08 +000027639{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27640echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027641if test "${ac_cv_search_mallinfo+set}" = set; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27643else
27644 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027645cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027646/* confdefs.h. */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027651
Reid Spencera773bd52006-08-04 18:18:08 +000027652/* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027655#ifdef __cplusplus
27656extern "C"
27657#endif
John Criswell7a73b802003-06-30 21:59:07 +000027658char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027659int
27660main ()
27661{
Reid Spencera773bd52006-08-04 18:18:08 +000027662return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027663 ;
27664 return 0;
27665}
27666_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027667for ac_lib in '' malloc; do
27668 if test -z "$ac_lib"; then
27669 ac_res="none required"
27670 else
27671 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027673 fi
27674 rm -f conftest.$ac_objext conftest$ac_exeext
27675if { (ac_try="$ac_link"
27676case "(($ac_try" in
27677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678 *) ac_try_echo=$ac_try;;
27679esac
27680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027683 grep -v '^ *+' conftest.er1 >conftest.err
27684 rm -f conftest.er1
27685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027687 (exit $ac_status); } &&
27688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27689 { (case "(($ac_try" in
27690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27691 *) ac_try_echo=$ac_try;;
27692esac
27693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27694 (eval "$ac_try") 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
27698 { ac_try='test -s conftest$ac_exeext'
27699 { (case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27702esac
27703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_try") 2>&5
27705 ac_status=$?
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027708 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027709else
27710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027711sed 's/^/| /' conftest.$ac_ext >&5
27712
Reid Spencera773bd52006-08-04 18:18:08 +000027713
John Criswell7a73b802003-06-30 21:59:07 +000027714fi
Reid Spencera773bd52006-08-04 18:18:08 +000027715
Bill Wendlingebcceee2009-04-18 11:20:33 +000027716rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027717 conftest$ac_exeext
27718 if test "${ac_cv_search_mallinfo+set}" = set; then
27719 break
John Criswell7a73b802003-06-30 21:59:07 +000027720fi
Reid Spencera773bd52006-08-04 18:18:08 +000027721done
27722if test "${ac_cv_search_mallinfo+set}" = set; then
27723 :
27724else
27725 ac_cv_search_mallinfo=no
27726fi
27727rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027728LIBS=$ac_func_search_save_LIBS
27729fi
Reid Spencera773bd52006-08-04 18:18:08 +000027730{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27731echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27732ac_res=$ac_cv_search_mallinfo
27733if test "$ac_res" != no; then
27734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027735
27736cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027737#define HAVE_MALLINFO 1
27738_ACEOF
27739
27740fi
27741
27742
Reid Spencer0a262ba2005-08-24 10:07:20 +000027743if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027744
Reid Spencera773bd52006-08-04 18:18:08 +000027745{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27746echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027747if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750 ac_check_lib_save_LIBS=$LIBS
27751LIBS="-lpthread $LIBS"
27752cat >conftest.$ac_ext <<_ACEOF
27753/* confdefs.h. */
27754_ACEOF
27755cat confdefs.h >>conftest.$ac_ext
27756cat >>conftest.$ac_ext <<_ACEOF
27757/* end confdefs.h. */
27758
Reid Spencera773bd52006-08-04 18:18:08 +000027759/* Override any GCC internal prototype to avoid an error.
27760 Use char because int might match the return type of a GCC
27761 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027762#ifdef __cplusplus
27763extern "C"
27764#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027765char pthread_mutex_init ();
27766int
27767main ()
27768{
Reid Spencera773bd52006-08-04 18:18:08 +000027769return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027770 ;
27771 return 0;
27772}
27773_ACEOF
27774rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027775if { (ac_try="$ac_link"
27776case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27779esac
27780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027782 ac_status=$?
27783 grep -v '^ *+' conftest.er1 >conftest.err
27784 rm -f conftest.er1
27785 cat conftest.err >&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027787 (exit $ac_status); } &&
27788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27789 { (case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27792esac
27793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_try") 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; } &&
27798 { ac_try='test -s conftest$ac_exeext'
27799 { (case "(($ac_try" in
27800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27801 *) ac_try_echo=$ac_try;;
27802esac
27803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27804 (eval "$ac_try") 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027808 ac_cv_lib_pthread_pthread_mutex_init=yes
27809else
27810 echo "$as_me: failed program was:" >&5
27811sed 's/^/| /' conftest.$ac_ext >&5
27812
Reid Spencera773bd52006-08-04 18:18:08 +000027813 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027814fi
Reid Spencera773bd52006-08-04 18:18:08 +000027815
Bill Wendlingebcceee2009-04-18 11:20:33 +000027816rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027817 conftest$ac_exeext conftest.$ac_ext
27818LIBS=$ac_check_lib_save_LIBS
27819fi
Reid Spencera773bd52006-08-04 18:18:08 +000027820{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27821echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027822if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27823 cat >>confdefs.h <<_ACEOF
27824#define HAVE_LIBPTHREAD 1
27825_ACEOF
27826
27827 LIBS="-lpthread $LIBS"
27828
27829fi
27830
Reid Spencera773bd52006-08-04 18:18:08 +000027831 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27832echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027833if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27835else
27836 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027837cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843
Reid Spencera773bd52006-08-04 18:18:08 +000027844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027847#ifdef __cplusplus
27848extern "C"
27849#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027850char pthread_mutex_lock ();
27851int
27852main ()
27853{
Reid Spencera773bd52006-08-04 18:18:08 +000027854return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027855 ;
27856 return 0;
27857}
27858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027859for ac_lib in '' pthread; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27862 else
27863 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027865 fi
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867if { (ac_try="$ac_link"
27868case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871esac
27872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27884esac
27885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894esac
27895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027900 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027901else
27902 echo "$as_me: failed program was:" >&5
27903sed 's/^/| /' conftest.$ac_ext >&5
27904
Reid Spencera773bd52006-08-04 18:18:08 +000027905
Brian Gaeke5f268f72003-12-05 19:29:01 +000027906fi
Reid Spencera773bd52006-08-04 18:18:08 +000027907
Bill Wendlingebcceee2009-04-18 11:20:33 +000027908rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027909 conftest$ac_exeext
27910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27911 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027912fi
Reid Spencera773bd52006-08-04 18:18:08 +000027913done
27914if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27915 :
27916else
27917 ac_cv_search_pthread_mutex_lock=no
27918fi
27919rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027920LIBS=$ac_func_search_save_LIBS
27921fi
Reid Spencera773bd52006-08-04 18:18:08 +000027922{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27923echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27924ac_res=$ac_cv_search_pthread_mutex_lock
27925if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027927
John Criswell40468462004-09-24 21:19:06 +000027928cat >>confdefs.h <<\_ACEOF
27929#define HAVE_PTHREAD_MUTEX_LOCK 1
27930_ACEOF
27931
27932fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027933
Owen Andersonde8aed22009-06-16 18:20:20 +000027934 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27935echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27936if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939 ac_func_search_save_LIBS=$LIBS
27940cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h. */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
27945/* end confdefs.h. */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char pthread_rwlock_init ();
27954int
27955main ()
27956{
27957return pthread_rwlock_init ();
27958 ;
27959 return 0;
27960}
27961_ACEOF
27962for ac_lib in '' pthread; do
27963 if test -z "$ac_lib"; then
27964 ac_res="none required"
27965 else
27966 ac_res=-l$ac_lib
27967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27968 fi
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970if { (ac_try="$ac_link"
27971case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27974esac
27975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_link") 2>conftest.er1
27977 ac_status=$?
27978 grep -v '^ *+' conftest.er1 >conftest.err
27979 rm -f conftest.er1
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } &&
27983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987esac
27988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; }; then
28003 ac_cv_search_pthread_rwlock_init=$ac_res
28004else
28005 echo "$as_me: failed program was:" >&5
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
28008
28009fi
28010
28011rm -f core conftest.err conftest.$ac_objext \
28012 conftest$ac_exeext
28013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28014 break
28015fi
28016done
28017if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28018 :
28019else
28020 ac_cv_search_pthread_rwlock_init=no
28021fi
28022rm conftest.$ac_ext
28023LIBS=$ac_func_search_save_LIBS
28024fi
28025{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28026echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28027ac_res=$ac_cv_search_pthread_rwlock_init
28028if test "$ac_res" != no; then
28029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28030
28031cat >>confdefs.h <<\_ACEOF
28032#define HAVE_PTHREAD_RWLOCK_INIT 1
28033_ACEOF
28034
28035fi
28036
Owen Anderson27fcfe12009-06-25 23:10:26 +000028037 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28038echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28039if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28040 echo $ECHO_N "(cached) $ECHO_C" >&6
28041else
28042 ac_func_search_save_LIBS=$LIBS
28043cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
28050/* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28053#ifdef __cplusplus
28054extern "C"
28055#endif
28056char pthread_getspecific ();
28057int
28058main ()
28059{
28060return pthread_getspecific ();
28061 ;
28062 return 0;
28063}
28064_ACEOF
28065for ac_lib in '' pthread; do
28066 if test -z "$ac_lib"; then
28067 ac_res="none required"
28068 else
28069 ac_res=-l$ac_lib
28070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28071 fi
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073if { (ac_try="$ac_link"
28074case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077esac
28078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_link") 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28090esac
28091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest$ac_exeext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100esac
28101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
28106 ac_cv_search_pthread_getspecific=$ac_res
28107else
28108 echo "$as_me: failed program was:" >&5
28109sed 's/^/| /' conftest.$ac_ext >&5
28110
28111
28112fi
28113
28114rm -f core conftest.err conftest.$ac_objext \
28115 conftest$ac_exeext
28116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28117 break
28118fi
28119done
28120if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28121 :
28122else
28123 ac_cv_search_pthread_getspecific=no
28124fi
28125rm conftest.$ac_ext
28126LIBS=$ac_func_search_save_LIBS
28127fi
28128{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28129echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28130ac_res=$ac_cv_search_pthread_getspecific
28131if test "$ac_res" != no; then
28132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133
28134cat >>confdefs.h <<\_ACEOF
28135#define HAVE_PTHREAD_GETSPECIFIC 1
28136_ACEOF
28137
28138fi
28139
Reid Spencer0a262ba2005-08-24 10:07:20 +000028140fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028142
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028143# Check whether --with-udis86 was given.
28144if test "${with_udis86+set}" = set; then
28145 withval=$with_udis86;
28146 USE_UDIS86=1
28147
28148 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028149 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028150 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28151 esac
28152
28153{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28154echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28155if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 ac_check_lib_save_LIBS=$LIBS
28159LIBS="-ludis86 $LIBS"
28160cat >conftest.$ac_ext <<_ACEOF
28161/* confdefs.h. */
28162_ACEOF
28163cat confdefs.h >>conftest.$ac_ext
28164cat >>conftest.$ac_ext <<_ACEOF
28165/* end confdefs.h. */
28166
28167/* Override any GCC internal prototype to avoid an error.
28168 Use char because int might match the return type of a GCC
28169 builtin and then its argument prototype would still apply. */
28170#ifdef __cplusplus
28171extern "C"
28172#endif
28173char ud_init ();
28174int
28175main ()
28176{
28177return ud_init ();
28178 ;
28179 return 0;
28180}
28181_ACEOF
28182rm -f conftest.$ac_objext conftest$ac_exeext
28183if { (ac_try="$ac_link"
28184case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_link") 2>conftest.er1
28190 ac_status=$?
28191 grep -v '^ *+' conftest.er1 >conftest.err
28192 rm -f conftest.er1
28193 cat conftest.err >&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028195 (exit $ac_status); } &&
28196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
28207 { (case "(($ac_try" in
28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209 *) ac_try_echo=$ac_try;;
28210esac
28211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_try") 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028216 ac_cv_lib_udis86_ud_init=yes
28217else
28218 echo "$as_me: failed program was:" >&5
28219sed 's/^/| /' conftest.$ac_ext >&5
28220
28221 ac_cv_lib_udis86_ud_init=no
28222fi
28223
Bill Wendlingebcceee2009-04-18 11:20:33 +000028224rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028225 conftest$ac_exeext conftest.$ac_ext
28226LIBS=$ac_check_lib_save_LIBS
28227fi
28228{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28229echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28230if test $ac_cv_lib_udis86_ud_init = yes; then
28231 cat >>confdefs.h <<_ACEOF
28232#define HAVE_LIBUDIS86 1
28233_ACEOF
28234
28235 LIBS="-ludis86 $LIBS"
28236
28237else
28238
28239 echo "Error! You need to have libudis86 around."
28240 exit -1
28241
28242fi
28243
28244
28245else
28246 USE_UDIS86=0
28247
28248fi
28249
28250
28251cat >>confdefs.h <<_ACEOF
28252#define USE_UDIS86 $USE_UDIS86
28253_ACEOF
28254
28255
28256
Reid Spencer59473af2004-12-25 07:31:29 +000028257
28258
28259
28260
28261
28262ac_header_dirent=no
28263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028265{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28266echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269else
28270 cat >conftest.$ac_ext <<_ACEOF
28271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
28276#include <sys/types.h>
28277#include <$ac_hdr>
28278
28279int
28280main ()
28281{
28282if ((DIR *) 0)
28283return 0;
28284 ;
28285 return 0;
28286}
28287_ACEOF
28288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028289if { (ac_try="$ac_compile"
28290case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28293esac
28294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028296 ac_status=$?
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303 { (case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28306esac
28307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308 (eval "$ac_try") 2>&5
28309 ac_status=$?
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest.$ac_objext'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28316esac
28317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028322 eval "$as_ac_Header=yes"
28323else
28324 echo "$as_me: failed program was:" >&5
28325sed 's/^/| /' conftest.$ac_ext >&5
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329
28330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028331fi
Reid Spencera773bd52006-08-04 18:18:08 +000028332ac_res=`eval echo '${'$as_ac_Header'}'`
28333 { echo "$as_me:$LINENO: result: $ac_res" >&5
28334echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028335if test `eval echo '${'$as_ac_Header'}'` = yes; then
28336 cat >>confdefs.h <<_ACEOF
28337#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28338_ACEOF
28339
28340ac_header_dirent=$ac_hdr; break
28341fi
28342
28343done
28344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28345if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28347echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028348if test "${ac_cv_search_opendir+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028352cat >conftest.$ac_ext <<_ACEOF
28353/* confdefs.h. */
28354_ACEOF
28355cat confdefs.h >>conftest.$ac_ext
28356cat >>conftest.$ac_ext <<_ACEOF
28357/* end confdefs.h. */
28358
Reid Spencera773bd52006-08-04 18:18:08 +000028359/* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028362#ifdef __cplusplus
28363extern "C"
28364#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028365char opendir ();
28366int
28367main ()
28368{
Reid Spencera773bd52006-08-04 18:18:08 +000028369return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028370 ;
28371 return 0;
28372}
28373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028374for ac_lib in '' dir; do
28375 if test -z "$ac_lib"; then
28376 ac_res="none required"
28377 else
28378 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028380 fi
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382if { (ac_try="$ac_link"
28383case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386esac
28387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028389 ac_status=$?
28390 grep -v '^ *+' conftest.er1 >conftest.err
28391 rm -f conftest.er1
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28399esac
28400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try='test -s conftest$ac_exeext'
28406 { (case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28409esac
28410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_try") 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028415 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028416else
28417 echo "$as_me: failed program was:" >&5
28418sed 's/^/| /' conftest.$ac_ext >&5
28419
Reid Spencera773bd52006-08-04 18:18:08 +000028420
Reid Spencer59473af2004-12-25 07:31:29 +000028421fi
Reid Spencera773bd52006-08-04 18:18:08 +000028422
Bill Wendlingebcceee2009-04-18 11:20:33 +000028423rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028424 conftest$ac_exeext
28425 if test "${ac_cv_search_opendir+set}" = set; then
28426 break
Reid Spencer59473af2004-12-25 07:31:29 +000028427fi
Reid Spencera773bd52006-08-04 18:18:08 +000028428done
28429if test "${ac_cv_search_opendir+set}" = set; then
28430 :
28431else
28432 ac_cv_search_opendir=no
28433fi
28434rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028435LIBS=$ac_func_search_save_LIBS
28436fi
Reid Spencera773bd52006-08-04 18:18:08 +000028437{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28438echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28439ac_res=$ac_cv_search_opendir
28440if test "$ac_res" != no; then
28441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028442
28443fi
28444
28445else
Reid Spencera773bd52006-08-04 18:18:08 +000028446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28447echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028448if test "${ac_cv_search_opendir+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28450else
28451 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028452cat >conftest.$ac_ext <<_ACEOF
28453/* confdefs.h. */
28454_ACEOF
28455cat confdefs.h >>conftest.$ac_ext
28456cat >>conftest.$ac_ext <<_ACEOF
28457/* end confdefs.h. */
28458
Reid Spencera773bd52006-08-04 18:18:08 +000028459/* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028462#ifdef __cplusplus
28463extern "C"
28464#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028465char opendir ();
28466int
28467main ()
28468{
Reid Spencera773bd52006-08-04 18:18:08 +000028469return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028470 ;
28471 return 0;
28472}
28473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028474for ac_lib in '' x; do
28475 if test -z "$ac_lib"; then
28476 ac_res="none required"
28477 else
28478 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028480 fi
28481 rm -f conftest.$ac_objext conftest$ac_exeext
28482if { (ac_try="$ac_link"
28483case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28486esac
28487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028489 ac_status=$?
28490 grep -v '^ *+' conftest.er1 >conftest.err
28491 rm -f conftest.er1
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028494 (exit $ac_status); } &&
28495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28499esac
28500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; } &&
28505 { ac_try='test -s conftest$ac_exeext'
28506 { (case "(($ac_try" in
28507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508 *) ac_try_echo=$ac_try;;
28509esac
28510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511 (eval "$ac_try") 2>&5
28512 ac_status=$?
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028515 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028516else
28517 echo "$as_me: failed program was:" >&5
28518sed 's/^/| /' conftest.$ac_ext >&5
28519
Reid Spencera773bd52006-08-04 18:18:08 +000028520
Reid Spencer59473af2004-12-25 07:31:29 +000028521fi
Reid Spencera773bd52006-08-04 18:18:08 +000028522
Bill Wendlingebcceee2009-04-18 11:20:33 +000028523rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028524 conftest$ac_exeext
28525 if test "${ac_cv_search_opendir+set}" = set; then
28526 break
Reid Spencer59473af2004-12-25 07:31:29 +000028527fi
Reid Spencera773bd52006-08-04 18:18:08 +000028528done
28529if test "${ac_cv_search_opendir+set}" = set; then
28530 :
28531else
28532 ac_cv_search_opendir=no
28533fi
28534rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028535LIBS=$ac_func_search_save_LIBS
28536fi
Reid Spencera773bd52006-08-04 18:18:08 +000028537{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28538echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28539ac_res=$ac_cv_search_opendir
28540if test "$ac_res" != no; then
28541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028542
28543fi
28544
28545fi
28546
Reid Spencera773bd52006-08-04 18:18:08 +000028547{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28548echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028549if test "${ac_cv_header_mmap_anon+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28551else
28552 ac_ext=c
28553ac_cpp='$CPP $CPPFLAGS'
28554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556ac_compiler_gnu=$ac_cv_c_compiler_gnu
28557
28558 cat >conftest.$ac_ext <<_ACEOF
28559/* confdefs.h. */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h. */
28564#include <sys/mman.h>
28565#include <unistd.h>
28566#include <fcntl.h>
28567int
28568main ()
28569{
28570mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28571 ;
28572 return 0;
28573}
28574_ACEOF
28575rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028576if { (ac_try="$ac_compile"
28577case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028583 ac_status=$?
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028588 (exit $ac_status); } &&
28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28593esac
28594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_try") 2>&5
28596 ac_status=$?
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try='test -s conftest.$ac_objext'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028609 ac_cv_header_mmap_anon=yes
28610else
28611 echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
Reid Spencera773bd52006-08-04 18:18:08 +000028614 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028615fi
Reid Spencera773bd52006-08-04 18:18:08 +000028616
28617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028618 ac_ext=c
28619ac_cpp='$CPP $CPPFLAGS'
28620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622ac_compiler_gnu=$ac_cv_c_compiler_gnu
28623
28624
28625fi
Reid Spencera773bd52006-08-04 18:18:08 +000028626{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28627echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028628if test "$ac_cv_header_mmap_anon" = yes; then
28629
28630cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028631#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028632_ACEOF
28633
28634fi
28635
Reid Spencera773bd52006-08-04 18:18:08 +000028636{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28637echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028638if test "${ac_cv_header_stat_broken+set}" = set; then
28639 echo $ECHO_N "(cached) $ECHO_C" >&6
28640else
28641 cat >conftest.$ac_ext <<_ACEOF
28642/* confdefs.h. */
28643_ACEOF
28644cat confdefs.h >>conftest.$ac_ext
28645cat >>conftest.$ac_ext <<_ACEOF
28646/* end confdefs.h. */
28647#include <sys/types.h>
28648#include <sys/stat.h>
28649
Reid Spencera773bd52006-08-04 18:18:08 +000028650#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028651# if S_ISBLK (S_IFDIR)
28652You lose.
28653# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028654#endif
28655
Reid Spencera773bd52006-08-04 18:18:08 +000028656#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028657# if S_ISBLK (S_IFCHR)
28658You lose.
28659# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028660#endif
28661
Reid Spencera773bd52006-08-04 18:18:08 +000028662#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028663# if S_ISLNK (S_IFREG)
28664You lose.
28665# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028666#endif
28667
Reid Spencera773bd52006-08-04 18:18:08 +000028668#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028669# if S_ISSOCK (S_IFREG)
28670You lose.
28671# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028672#endif
28673
28674_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28676 $EGREP "You lose" >/dev/null 2>&1; then
28677 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028678else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028679 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028680fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028681rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028682
Reid Spencer59473af2004-12-25 07:31:29 +000028683fi
Reid Spencera773bd52006-08-04 18:18:08 +000028684{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28685echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028686if test $ac_cv_header_stat_broken = yes; then
28687
28688cat >>confdefs.h <<\_ACEOF
28689#define STAT_MACROS_BROKEN 1
28690_ACEOF
28691
28692fi
28693
Reid Spencera773bd52006-08-04 18:18:08 +000028694{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28695echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028696if test "${ac_cv_header_stdc+set}" = set; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28698else
28699 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028700/* confdefs.h. */
28701_ACEOF
28702cat confdefs.h >>conftest.$ac_ext
28703cat >>conftest.$ac_ext <<_ACEOF
28704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028705#include <stdlib.h>
28706#include <stdarg.h>
28707#include <string.h>
28708#include <float.h>
28709
John Criswell0c38eaf2003-09-10 15:17:25 +000028710int
28711main ()
28712{
28713
28714 ;
28715 return 0;
28716}
John Criswell7a73b802003-06-30 21:59:07 +000028717_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028718rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028719if { (ac_try="$ac_compile"
28720case "(($ac_try" in
28721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28722 *) ac_try_echo=$ac_try;;
28723esac
28724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28725 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028727 grep -v '^ *+' conftest.er1 >conftest.err
28728 rm -f conftest.er1
28729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028731 (exit $ac_status); } &&
28732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28733 { (case "(($ac_try" in
28734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28735 *) ac_try_echo=$ac_try;;
28736esac
28737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28738 (eval "$ac_try") 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest.$ac_objext'
28743 { (case "(($ac_try" in
28744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745 *) ac_try_echo=$ac_try;;
28746esac
28747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748 (eval "$ac_try") 2>&5
28749 ac_status=$?
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028752 ac_cv_header_stdc=yes
28753else
28754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028755sed 's/^/| /' conftest.$ac_ext >&5
28756
Reid Spencera773bd52006-08-04 18:18:08 +000028757 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028758fi
Reid Spencera773bd52006-08-04 18:18:08 +000028759
28760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028761
28762if test $ac_cv_header_stdc = yes; then
28763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028770#include <string.h>
28771
28772_ACEOF
28773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028774 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028775 :
28776else
28777 ac_cv_header_stdc=no
28778fi
28779rm -f conftest*
28780
28781fi
28782
28783if test $ac_cv_header_stdc = yes; then
28784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028786/* confdefs.h. */
28787_ACEOF
28788cat confdefs.h >>conftest.$ac_ext
28789cat >>conftest.$ac_ext <<_ACEOF
28790/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028791#include <stdlib.h>
28792
28793_ACEOF
28794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028795 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028796 :
28797else
28798 ac_cv_header_stdc=no
28799fi
28800rm -f conftest*
28801
28802fi
28803
28804if test $ac_cv_header_stdc = yes; then
28805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28806 if test "$cross_compiling" = yes; then
28807 :
28808else
28809 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028815#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028816#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028817#if ((' ' & 0x0FF) == 0x020)
28818# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28819# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28820#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028821# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822 (('a' <= (c) && (c) <= 'i') \
28823 || ('j' <= (c) && (c) <= 'r') \
28824 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028825# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28826#endif
28827
28828#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28829int
28830main ()
28831{
28832 int i;
28833 for (i = 0; i < 256; i++)
28834 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028835 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028836 return 2;
28837 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028838}
28839_ACEOF
28840rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028841if { (ac_try="$ac_link"
28842case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28845esac
28846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028851 { (case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28854esac
28855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028857 ac_status=$?
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; }; then
28860 :
28861else
28862 echo "$as_me: program exited with status $ac_status" >&5
28863echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028864sed 's/^/| /' conftest.$ac_ext >&5
28865
John Criswell7a73b802003-06-30 21:59:07 +000028866( exit $ac_status )
28867ac_cv_header_stdc=no
28868fi
Reid Spencera773bd52006-08-04 18:18:08 +000028869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28870fi
28871
28872
John Criswell7a73b802003-06-30 21:59:07 +000028873fi
28874fi
Reid Spencera773bd52006-08-04 18:18:08 +000028875{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28876echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028877if test $ac_cv_header_stdc = yes; then
28878
28879cat >>confdefs.h <<\_ACEOF
28880#define STDC_HEADERS 1
28881_ACEOF
28882
28883fi
28884
Reid Spencera773bd52006-08-04 18:18:08 +000028885{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28886echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028887if test "${ac_cv_header_sys_wait_h+set}" = set; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28889else
28890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028891/* confdefs.h. */
28892_ACEOF
28893cat confdefs.h >>conftest.$ac_ext
28894cat >>conftest.$ac_ext <<_ACEOF
28895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028896#include <sys/types.h>
28897#include <sys/wait.h>
28898#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028899# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028900#endif
28901#ifndef WIFEXITED
28902# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28903#endif
28904
John Criswell7a73b802003-06-30 21:59:07 +000028905int
28906main ()
28907{
28908 int s;
28909 wait (&s);
28910 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28911 ;
28912 return 0;
28913}
28914_ACEOF
28915rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028916if { (ac_try="$ac_compile"
28917case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28920esac
28921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028924 grep -v '^ *+' conftest.er1 >conftest.err
28925 rm -f conftest.er1
28926 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028928 (exit $ac_status); } &&
28929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28930 { (case "(($ac_try" in
28931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932 *) ac_try_echo=$ac_try;;
28933esac
28934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28935 (eval "$ac_try") 2>&5
28936 ac_status=$?
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest.$ac_objext'
28940 { (case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28943esac
28944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_try") 2>&5
28946 ac_status=$?
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028949 ac_cv_header_sys_wait_h=yes
28950else
28951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028952sed 's/^/| /' conftest.$ac_ext >&5
28953
Reid Spencera773bd52006-08-04 18:18:08 +000028954 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028955fi
Reid Spencera773bd52006-08-04 18:18:08 +000028956
28957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028958fi
Reid Spencera773bd52006-08-04 18:18:08 +000028959{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28960echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028961if test $ac_cv_header_sys_wait_h = yes; then
28962
28963cat >>confdefs.h <<\_ACEOF
28964#define HAVE_SYS_WAIT_H 1
28965_ACEOF
28966
28967fi
28968
Reid Spencera773bd52006-08-04 18:18:08 +000028969{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28970echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028971if test "${ac_cv_header_time+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28973else
28974 cat >conftest.$ac_ext <<_ACEOF
28975/* confdefs.h. */
28976_ACEOF
28977cat confdefs.h >>conftest.$ac_ext
28978cat >>conftest.$ac_ext <<_ACEOF
28979/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028980#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028981#include <sys/time.h>
28982#include <time.h>
28983
28984int
28985main ()
28986{
28987if ((struct tm *) 0)
28988return 0;
28989 ;
28990 return 0;
28991}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028992_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028993rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028994if { (ac_try="$ac_compile"
28995case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28998esac
28999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029001 ac_status=$?
29002 grep -v '^ *+' conftest.er1 >conftest.err
29003 rm -f conftest.er1
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029006 (exit $ac_status); } &&
29007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29008 { (case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29011esac
29012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_try") 2>&5
29014 ac_status=$?
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest.$ac_objext'
29018 { (case "(($ac_try" in
29019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29020 *) ac_try_echo=$ac_try;;
29021esac
29022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29023 (eval "$ac_try") 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029027 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029028else
29029 echo "$as_me: failed program was:" >&5
29030sed 's/^/| /' conftest.$ac_ext >&5
29031
Reid Spencera773bd52006-08-04 18:18:08 +000029032 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029033fi
Reid Spencera773bd52006-08-04 18:18:08 +000029034
29035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029036fi
Reid Spencera773bd52006-08-04 18:18:08 +000029037{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29038echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029039if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029041cat >>confdefs.h <<\_ACEOF
29042#define TIME_WITH_SYS_TIME 1
29043_ACEOF
29044
29045fi
29046
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029047
Reid Spencer59473af2004-12-25 07:31:29 +000029048
29049
29050
29051
29052
29053
29054for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29055do
29056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062fi
Reid Spencera773bd52006-08-04 18:18:08 +000029063ac_res=`eval echo '${'$as_ac_Header'}'`
29064 { echo "$as_me:$LINENO: result: $ac_res" >&5
29065echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029066else
29067 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029068{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029070cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029071/* confdefs.h. */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029076$ac_includes_default
29077#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029078_ACEOF
29079rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029080if { (ac_try="$ac_compile"
29081case "(($ac_try" in
29082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083 *) ac_try_echo=$ac_try;;
29084esac
29085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029087 ac_status=$?
29088 grep -v '^ *+' conftest.er1 >conftest.err
29089 rm -f conftest.er1
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029092 (exit $ac_status); } &&
29093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest.$ac_objext'
29104 { (case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29107esac
29108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109 (eval "$ac_try") 2>&5
29110 ac_status=$?
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029113 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
Reid Spencera773bd52006-08-04 18:18:08 +000029118 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029119fi
Reid Spencera773bd52006-08-04 18:18:08 +000029120
29121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029124
Reid Spencer59473af2004-12-25 07:31:29 +000029125# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029128cat >conftest.$ac_ext <<_ACEOF
29129/* confdefs.h. */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h. */
29134#include <$ac_header>
29135_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029136if { (ac_try="$ac_cpp conftest.$ac_ext"
29137case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29140esac
29141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029143 ac_status=$?
29144 grep -v '^ *+' conftest.er1 >conftest.err
29145 rm -f conftest.er1
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029148 (exit $ac_status); } >/dev/null; then
29149 if test -s conftest.err; then
29150 ac_cpp_err=$ac_c_preproc_warn_flag
29151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29152 else
29153 ac_cpp_err=
29154 fi
29155else
29156 ac_cpp_err=yes
29157fi
29158if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029159 ac_header_preproc=yes
29160else
29161 echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164 ac_header_preproc=no
29165fi
Reid Spencera773bd52006-08-04 18:18:08 +000029166
Reid Spencer59473af2004-12-25 07:31:29 +000029167rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29169echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029170
29171# So? What about this header?
29172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29173 yes:no: )
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29178 ac_header_preproc=yes
29179 ;;
29180 no:yes:* )
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029193 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029194## ----------------------------------- ##
29195## Report this to llvmbugs@cs.uiuc.edu ##
29196## ----------------------------------- ##
29197_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029198 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029199 ;;
29200esac
Reid Spencera773bd52006-08-04 18:18:08 +000029201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205else
29206 eval "$as_ac_Header=\$ac_header_preproc"
29207fi
Reid Spencera773bd52006-08-04 18:18:08 +000029208ac_res=`eval echo '${'$as_ac_Header'}'`
29209 { echo "$as_me:$LINENO: result: $ac_res" >&5
29210echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029211
29212fi
Reid Spencer59473af2004-12-25 07:31:29 +000029213if test `eval echo '${'$as_ac_Header'}'` = yes; then
29214 cat >>confdefs.h <<_ACEOF
29215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029216_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029217
29218fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029219
Reid Spencer59473af2004-12-25 07:31:29 +000029220done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029221
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029222
29223
Reid Spencer59473af2004-12-25 07:31:29 +000029224
29225
29226
29227
Douglas Gregor071d73d2009-05-18 17:21:34 +000029228for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029229do
29230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029235 echo $ECHO_N "(cached) $ECHO_C" >&6
29236fi
Reid Spencera773bd52006-08-04 18:18:08 +000029237ac_res=`eval echo '${'$as_ac_Header'}'`
29238 { echo "$as_me:$LINENO: result: $ac_res" >&5
29239echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029240else
29241 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029244cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
29250$ac_includes_default
29251#include <$ac_header>
29252_ACEOF
29253rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029254if { (ac_try="$ac_compile"
29255case "(($ac_try" in
29256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257 *) ac_try_echo=$ac_try;;
29258esac
29259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029261 ac_status=$?
29262 grep -v '^ *+' conftest.er1 >conftest.err
29263 rm -f conftest.er1
29264 cat conftest.err >&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029266 (exit $ac_status); } &&
29267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29268 { (case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29271esac
29272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_try") 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest.$ac_objext'
29278 { (case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29281esac
29282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_try") 2>&5
29284 ac_status=$?
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029287 ac_header_compiler=yes
29288else
29289 echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
Reid Spencera773bd52006-08-04 18:18:08 +000029292 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029293fi
Reid Spencera773bd52006-08-04 18:18:08 +000029294
29295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29296{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29297echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029298
29299# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029300{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029302cat >conftest.$ac_ext <<_ACEOF
29303/* confdefs.h. */
29304_ACEOF
29305cat confdefs.h >>conftest.$ac_ext
29306cat >>conftest.$ac_ext <<_ACEOF
29307/* end confdefs.h. */
29308#include <$ac_header>
29309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029310if { (ac_try="$ac_cpp conftest.$ac_ext"
29311case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29314esac
29315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029317 ac_status=$?
29318 grep -v '^ *+' conftest.er1 >conftest.err
29319 rm -f conftest.er1
29320 cat conftest.err >&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029322 (exit $ac_status); } >/dev/null; then
29323 if test -s conftest.err; then
29324 ac_cpp_err=$ac_c_preproc_warn_flag
29325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29326 else
29327 ac_cpp_err=
29328 fi
29329else
29330 ac_cpp_err=yes
29331fi
29332if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029333 ac_header_preproc=yes
29334else
29335 echo "$as_me: failed program was:" >&5
29336sed 's/^/| /' conftest.$ac_ext >&5
29337
29338 ac_header_preproc=no
29339fi
Reid Spencera773bd52006-08-04 18:18:08 +000029340
Reid Spencer59473af2004-12-25 07:31:29 +000029341rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29343echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029344
29345# So? What about this header?
29346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29347 yes:no: )
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29352 ac_header_preproc=yes
29353 ;;
29354 no:yes:* )
29355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029367 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029368## ----------------------------------- ##
29369## Report this to llvmbugs@cs.uiuc.edu ##
29370## ----------------------------------- ##
29371_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029372 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029373 ;;
29374esac
Reid Spencera773bd52006-08-04 18:18:08 +000029375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029378 echo $ECHO_N "(cached) $ECHO_C" >&6
29379else
29380 eval "$as_ac_Header=\$ac_header_preproc"
29381fi
Reid Spencera773bd52006-08-04 18:18:08 +000029382ac_res=`eval echo '${'$as_ac_Header'}'`
29383 { echo "$as_me:$LINENO: result: $ac_res" >&5
29384echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029385
29386fi
29387if test `eval echo '${'$as_ac_Header'}'` = yes; then
29388 cat >>confdefs.h <<_ACEOF
29389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29390_ACEOF
29391
29392fi
29393
29394done
29395
29396
Douglas Gregor071d73d2009-05-18 17:21:34 +000029397
29398for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029399do
29400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29406fi
29407ac_res=`eval echo '${'$as_ac_Header'}'`
29408 { echo "$as_me:$LINENO: result: $ac_res" >&5
29409echo "${ECHO_T}$ac_res" >&6; }
29410else
29411 # Is the header compilable?
29412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29414cat >conftest.$ac_ext <<_ACEOF
29415/* confdefs.h. */
29416_ACEOF
29417cat confdefs.h >>conftest.$ac_ext
29418cat >>conftest.$ac_ext <<_ACEOF
29419/* end confdefs.h. */
29420$ac_includes_default
29421#include <$ac_header>
29422_ACEOF
29423rm -f conftest.$ac_objext
29424if { (ac_try="$ac_compile"
29425case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428esac
29429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_compile") 2>conftest.er1
29431 ac_status=$?
29432 grep -v '^ *+' conftest.er1 >conftest.err
29433 rm -f conftest.er1
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029436 (exit $ac_status); } &&
29437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29438 { (case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29441esac
29442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_try") 2>&5
29444 ac_status=$?
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); }; } &&
29447 { ac_try='test -s conftest.$ac_objext'
29448 { (case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29451esac
29452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_try") 2>&5
29454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029457 ac_header_compiler=yes
29458else
29459 echo "$as_me: failed program was:" >&5
29460sed 's/^/| /' conftest.$ac_ext >&5
29461
29462 ac_header_compiler=no
29463fi
29464
29465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29467echo "${ECHO_T}$ac_header_compiler" >&6; }
29468
29469# Is the header present?
29470{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29472cat >conftest.$ac_ext <<_ACEOF
29473/* confdefs.h. */
29474_ACEOF
29475cat confdefs.h >>conftest.$ac_ext
29476cat >>conftest.$ac_ext <<_ACEOF
29477/* end confdefs.h. */
29478#include <$ac_header>
29479_ACEOF
29480if { (ac_try="$ac_cpp conftest.$ac_ext"
29481case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29484esac
29485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29487 ac_status=$?
29488 grep -v '^ *+' conftest.er1 >conftest.err
29489 rm -f conftest.er1
29490 cat conftest.err >&5
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029492 (exit $ac_status); } >/dev/null; then
29493 if test -s conftest.err; then
29494 ac_cpp_err=$ac_c_preproc_warn_flag
29495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29496 else
29497 ac_cpp_err=
29498 fi
29499else
29500 ac_cpp_err=yes
29501fi
29502if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029503 ac_header_preproc=yes
29504else
29505 echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508 ac_header_preproc=no
29509fi
29510
29511rm -f conftest.err conftest.$ac_ext
29512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29513echo "${ECHO_T}$ac_header_preproc" >&6; }
29514
29515# So? What about this header?
29516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29517 yes:no: )
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29522 ac_header_preproc=yes
29523 ;;
29524 no:yes:* )
29525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29537 ( cat <<\_ASBOX
29538## ----------------------------------- ##
29539## Report this to llvmbugs@cs.uiuc.edu ##
29540## ----------------------------------- ##
29541_ASBOX
29542 ) | sed "s/^/$as_me: WARNING: /" >&2
29543 ;;
29544esac
29545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550 eval "$as_ac_Header=\$ac_header_preproc"
29551fi
29552ac_res=`eval echo '${'$as_ac_Header'}'`
29553 { echo "$as_me:$LINENO: result: $ac_res" >&5
29554echo "${ECHO_T}$ac_res" >&6; }
29555
29556fi
29557if test `eval echo '${'$as_ac_Header'}'` = yes; then
29558 cat >>confdefs.h <<_ACEOF
29559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29560_ACEOF
29561
29562fi
29563
29564done
Reid Spencer59473af2004-12-25 07:31:29 +000029565
29566
29567
29568
Reid Spencerbe3e4192007-08-17 05:45:26 +000029569
29570for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029571do
29572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029577 echo $ECHO_N "(cached) $ECHO_C" >&6
29578fi
Reid Spencera773bd52006-08-04 18:18:08 +000029579ac_res=`eval echo '${'$as_ac_Header'}'`
29580 { echo "$as_me:$LINENO: result: $ac_res" >&5
29581echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029582else
29583 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029584{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029586cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029587/* confdefs.h. */
29588_ACEOF
29589cat confdefs.h >>conftest.$ac_ext
29590cat >>conftest.$ac_ext <<_ACEOF
29591/* end confdefs.h. */
29592$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029593#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029594_ACEOF
29595rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029596if { (ac_try="$ac_compile"
29597case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029604 grep -v '^ *+' conftest.er1 >conftest.err
29605 rm -f conftest.er1
29606 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029608 (exit $ac_status); } &&
29609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29610 { (case "(($ac_try" in
29611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29612 *) ac_try_echo=$ac_try;;
29613esac
29614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29615 (eval "$ac_try") 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
29620 { (case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_try") 2>&5
29626 ac_status=$?
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029629 ac_header_compiler=yes
29630else
29631 echo "$as_me: failed program was:" >&5
29632sed 's/^/| /' conftest.$ac_ext >&5
29633
Reid Spencera773bd52006-08-04 18:18:08 +000029634 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029635fi
Reid Spencera773bd52006-08-04 18:18:08 +000029636
29637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29639echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029640
29641# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029642{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029644cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029645/* confdefs.h. */
29646_ACEOF
29647cat confdefs.h >>conftest.$ac_ext
29648cat >>conftest.$ac_ext <<_ACEOF
29649/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029650#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029651_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029652if { (ac_try="$ac_cpp conftest.$ac_ext"
29653case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29656esac
29657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029659 ac_status=$?
29660 grep -v '^ *+' conftest.er1 >conftest.err
29661 rm -f conftest.er1
29662 cat conftest.err >&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029664 (exit $ac_status); } >/dev/null; then
29665 if test -s conftest.err; then
29666 ac_cpp_err=$ac_c_preproc_warn_flag
29667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29668 else
29669 ac_cpp_err=
29670 fi
29671else
29672 ac_cpp_err=yes
29673fi
29674if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029675 ac_header_preproc=yes
29676else
29677 echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
29680 ac_header_preproc=no
29681fi
Reid Spencera773bd52006-08-04 18:18:08 +000029682
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029683rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29685echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029686
29687# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29689 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029694 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029695 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029696 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029709 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029710## ----------------------------------- ##
29711## Report this to llvmbugs@cs.uiuc.edu ##
29712## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029713_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029714 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029715 ;;
29716esac
Reid Spencera773bd52006-08-04 18:18:08 +000029717{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029720 echo $ECHO_N "(cached) $ECHO_C" >&6
29721else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029722 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029723fi
Reid Spencera773bd52006-08-04 18:18:08 +000029724ac_res=`eval echo '${'$as_ac_Header'}'`
29725 { echo "$as_me:$LINENO: result: $ac_res" >&5
29726echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029727
29728fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029729if test `eval echo '${'$as_ac_Header'}'` = yes; then
29730 cat >>confdefs.h <<_ACEOF
29731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029732_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029733
29734fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029735
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029736done
29737
John Criswell7ed43ad2004-07-19 16:12:29 +000029738
Reid Spencercdb08a32006-06-05 16:11:07 +000029739
Reid Spencera6d990a2006-09-14 06:17:21 +000029740
Douglas Gregor01746742009-05-11 18:05:52 +000029741
29742for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029743do
29744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750fi
Reid Spencera773bd52006-08-04 18:18:08 +000029751ac_res=`eval echo '${'$as_ac_Header'}'`
29752 { echo "$as_me:$LINENO: result: $ac_res" >&5
29753echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029754else
29755 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029756{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029758cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764$ac_includes_default
29765#include <$ac_header>
29766_ACEOF
29767rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029768if { (ac_try="$ac_compile"
29769case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772esac
29773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029780 (exit $ac_status); } &&
29781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785esac
29786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest.$ac_objext'
29792 { (case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29795esac
29796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797 (eval "$ac_try") 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029801 ac_header_compiler=yes
29802else
29803 echo "$as_me: failed program was:" >&5
29804sed 's/^/| /' conftest.$ac_ext >&5
29805
Reid Spencera773bd52006-08-04 18:18:08 +000029806 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029807fi
Reid Spencera773bd52006-08-04 18:18:08 +000029808
29809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29811echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029812
29813# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029816cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
29822#include <$ac_header>
29823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029824if { (ac_try="$ac_cpp conftest.$ac_ext"
29825case "(($ac_try" in
29826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29827 *) ac_try_echo=$ac_try;;
29828esac
29829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029831 ac_status=$?
29832 grep -v '^ *+' conftest.er1 >conftest.err
29833 rm -f conftest.er1
29834 cat conftest.err >&5
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029836 (exit $ac_status); } >/dev/null; then
29837 if test -s conftest.err; then
29838 ac_cpp_err=$ac_c_preproc_warn_flag
29839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29840 else
29841 ac_cpp_err=
29842 fi
29843else
29844 ac_cpp_err=yes
29845fi
29846if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029847 ac_header_preproc=yes
29848else
29849 echo "$as_me: failed program was:" >&5
29850sed 's/^/| /' conftest.$ac_ext >&5
29851
29852 ac_header_preproc=no
29853fi
Reid Spencera773bd52006-08-04 18:18:08 +000029854
Chris Lattner0b142592005-11-14 06:57:34 +000029855rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29857echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029858
29859# So? What about this header?
29860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29861 yes:no: )
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29866 ac_header_preproc=yes
29867 ;;
29868 no:yes:* )
29869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029881 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029882## ----------------------------------- ##
29883## Report this to llvmbugs@cs.uiuc.edu ##
29884## ----------------------------------- ##
29885_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029886 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029887 ;;
29888esac
Reid Spencera773bd52006-08-04 18:18:08 +000029889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029892 echo $ECHO_N "(cached) $ECHO_C" >&6
29893else
29894 eval "$as_ac_Header=\$ac_header_preproc"
29895fi
Reid Spencera773bd52006-08-04 18:18:08 +000029896ac_res=`eval echo '${'$as_ac_Header'}'`
29897 { echo "$as_me:$LINENO: result: $ac_res" >&5
29898echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029899
29900fi
29901if test `eval echo '${'$as_ac_Header'}'` = yes; then
29902 cat >>confdefs.h <<_ACEOF
29903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29904_ACEOF
29905
29906fi
29907
29908done
29909
Reid Spencer0a262ba2005-08-24 10:07:20 +000029910if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029911
29912for ac_header in pthread.h
29913do
29914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029919 echo $ECHO_N "(cached) $ECHO_C" >&6
29920fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029921ac_res=`eval echo '${'$as_ac_Header'}'`
29922 { echo "$as_me:$LINENO: result: $ac_res" >&5
29923echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029924else
29925 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029928cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
29934$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029935#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029936_ACEOF
29937rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029938if { (ac_try="$ac_compile"
29939case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29942esac
29943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029945 ac_status=$?
29946 grep -v '^ *+' conftest.er1 >conftest.err
29947 rm -f conftest.er1
29948 cat conftest.err >&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029950 (exit $ac_status); } &&
29951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29952 { (case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29955esac
29956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_try") 2>&5
29958 ac_status=$?
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; } &&
29961 { ac_try='test -s conftest.$ac_objext'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29965esac
29966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029971 ac_header_compiler=yes
29972else
29973 echo "$as_me: failed program was:" >&5
29974sed 's/^/| /' conftest.$ac_ext >&5
29975
Reid Spencera773bd52006-08-04 18:18:08 +000029976 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029977fi
Reid Spencera773bd52006-08-04 18:18:08 +000029978
29979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29981echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029982
29983# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029986cat >conftest.$ac_ext <<_ACEOF
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029992#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029993_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029994if { (ac_try="$ac_cpp conftest.$ac_ext"
29995case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29998esac
29999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030001 ac_status=$?
30002 grep -v '^ *+' conftest.er1 >conftest.err
30003 rm -f conftest.er1
30004 cat conftest.err >&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030006 (exit $ac_status); } >/dev/null; then
30007 if test -s conftest.err; then
30008 ac_cpp_err=$ac_c_preproc_warn_flag
30009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30010 else
30011 ac_cpp_err=
30012 fi
30013else
30014 ac_cpp_err=yes
30015fi
30016if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030017 ac_header_preproc=yes
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
30022 ac_header_preproc=no
30023fi
Reid Spencera773bd52006-08-04 18:18:08 +000030024
Reid Spencer0a262ba2005-08-24 10:07:20 +000030025rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30027echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030028
30029# So? What about this header?
30030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30031 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030036 ac_header_preproc=yes
30037 ;;
30038 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030051 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030052## ----------------------------------- ##
30053## Report this to llvmbugs@cs.uiuc.edu ##
30054## ----------------------------------- ##
30055_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030056 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030057 ;;
30058esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030062 echo $ECHO_N "(cached) $ECHO_C" >&6
30063else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030064 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030065fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030066ac_res=`eval echo '${'$as_ac_Header'}'`
30067 { echo "$as_me:$LINENO: result: $ac_res" >&5
30068echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030069
30070fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030071if test `eval echo '${'$as_ac_Header'}'` = yes; then
30072 cat >>confdefs.h <<_ACEOF
30073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30074_ACEOF
30075 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030076
30077else
30078 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030079
30080fi
30081
Reid Spencerbe3e4192007-08-17 05:45:26 +000030082done
Reid Spencer1000b732006-12-01 00:37:14 +000030083
30084else
30085 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030086
30087fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030088
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030089if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030090
30091
30092for ac_header in ffi.h ffi/ffi.h
30093do
30094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30099 echo $ECHO_N "(cached) $ECHO_C" >&6
30100fi
30101ac_res=`eval echo '${'$as_ac_Header'}'`
30102 { echo "$as_me:$LINENO: result: $ac_res" >&5
30103echo "${ECHO_T}$ac_res" >&6; }
30104else
30105 # Is the header compilable?
30106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30108cat >conftest.$ac_ext <<_ACEOF
30109/* confdefs.h. */
30110_ACEOF
30111cat confdefs.h >>conftest.$ac_ext
30112cat >>conftest.$ac_ext <<_ACEOF
30113/* end confdefs.h. */
30114$ac_includes_default
30115#include <$ac_header>
30116_ACEOF
30117rm -f conftest.$ac_objext
30118if { (ac_try="$ac_compile"
30119case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30122esac
30123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_compile") 2>conftest.er1
30125 ac_status=$?
30126 grep -v '^ *+' conftest.er1 >conftest.err
30127 rm -f conftest.er1
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030130 (exit $ac_status); } &&
30131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30132 { (case "(($ac_try" in
30133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134 *) ac_try_echo=$ac_try;;
30135esac
30136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137 (eval "$ac_try") 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest.$ac_objext'
30142 { (case "(($ac_try" in
30143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144 *) ac_try_echo=$ac_try;;
30145esac
30146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30147 (eval "$ac_try") 2>&5
30148 ac_status=$?
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030151 ac_header_compiler=yes
30152else
30153 echo "$as_me: failed program was:" >&5
30154sed 's/^/| /' conftest.$ac_ext >&5
30155
30156 ac_header_compiler=no
30157fi
30158
30159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30161echo "${ECHO_T}$ac_header_compiler" >&6; }
30162
30163# Is the header present?
30164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30166cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
30172#include <$ac_header>
30173_ACEOF
30174if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
30181 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
Bill Wendlingebcceee2009-04-18 11:20:33 +000030186 (exit $ac_status); } >/dev/null; then
30187 if test -s conftest.err; then
30188 ac_cpp_err=$ac_c_preproc_warn_flag
30189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30190 else
30191 ac_cpp_err=
30192 fi
30193else
30194 ac_cpp_err=yes
30195fi
30196if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030197 ac_header_preproc=yes
30198else
30199 echo "$as_me: failed program was:" >&5
30200sed 's/^/| /' conftest.$ac_ext >&5
30201
30202 ac_header_preproc=no
30203fi
30204
30205rm -f conftest.err conftest.$ac_ext
30206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30207echo "${ECHO_T}$ac_header_preproc" >&6; }
30208
30209# So? What about this header?
30210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30211 yes:no: )
30212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30216 ac_header_preproc=yes
30217 ;;
30218 no:yes:* )
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30231 ( cat <<\_ASBOX
30232## ----------------------------------- ##
30233## Report this to llvmbugs@cs.uiuc.edu ##
30234## ----------------------------------- ##
30235_ASBOX
30236 ) | sed "s/^/$as_me: WARNING: /" >&2
30237 ;;
30238esac
30239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243else
30244 eval "$as_ac_Header=\$ac_header_preproc"
30245fi
30246ac_res=`eval echo '${'$as_ac_Header'}'`
30247 { echo "$as_me:$LINENO: result: $ac_res" >&5
30248echo "${ECHO_T}$ac_res" >&6; }
30249
30250fi
30251if test `eval echo '${'$as_ac_Header'}'` = yes; then
30252 cat >>confdefs.h <<_ACEOF
30253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30254_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030255
30256fi
30257
30258done
30259
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030260fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030261
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030262
Reid Spencer8085cff2005-01-16 02:58:39 +000030263
Reid Spencerb2ed05262006-11-03 18:04:08 +000030264 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30265echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30266if test "${ac_cv_huge_val_sanity+set}" = set; then
30267 echo $ECHO_N "(cached) $ECHO_C" >&6
30268else
30269
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030270 ac_ext=cpp
30271ac_cpp='$CXXCPP $CPPFLAGS'
30272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030275
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030276 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030277 if test "$cross_compiling" = yes; then
30278 ac_cv_huge_val_sanity=yes
30279else
30280 cat >conftest.$ac_ext <<_ACEOF
30281/* confdefs.h. */
30282_ACEOF
30283cat confdefs.h >>conftest.$ac_ext
30284cat >>conftest.$ac_ext <<_ACEOF
30285/* end confdefs.h. */
30286#include <math.h>
30287int
30288main ()
30289{
30290double x = HUGE_VAL; return x != x;
30291 ;
30292 return 0;
30293}
30294_ACEOF
30295rm -f conftest$ac_exeext
30296if { (ac_try="$ac_link"
30297case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300esac
30301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_link") 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30309esac
30310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 ac_cv_huge_val_sanity=yes
30316else
30317 echo "$as_me: program exited with status $ac_status" >&5
30318echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
30321( exit $ac_status )
30322ac_cv_huge_val_sanity=no
30323fi
30324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30325fi
30326
30327
30328 ac_ext=c
30329ac_cpp='$CPP $CPPFLAGS'
30330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30332ac_compiler_gnu=$ac_cv_c_compiler_gnu
30333
30334
30335fi
30336{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30337echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30338 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30339
30340
Reid Spencera773bd52006-08-04 18:18:08 +000030341{ echo "$as_me:$LINENO: checking for pid_t" >&5
30342echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030343if test "${ac_cv_type_pid_t+set}" = set; then
30344 echo $ECHO_N "(cached) $ECHO_C" >&6
30345else
30346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030347/* confdefs.h. */
30348_ACEOF
30349cat confdefs.h >>conftest.$ac_ext
30350cat >>conftest.$ac_ext <<_ACEOF
30351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030352$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030353typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030354int
30355main ()
30356{
Reid Spencera773bd52006-08-04 18:18:08 +000030357if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030358 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030359if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030360 return 0;
30361 ;
30362 return 0;
30363}
30364_ACEOF
30365rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030366if { (ac_try="$ac_compile"
30367case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30370esac
30371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030374 grep -v '^ *+' conftest.er1 >conftest.err
30375 rm -f conftest.er1
30376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030378 (exit $ac_status); } &&
30379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; } &&
30389 { ac_try='test -s conftest.$ac_objext'
30390 { (case "(($ac_try" in
30391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30392 *) ac_try_echo=$ac_try;;
30393esac
30394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30395 (eval "$ac_try") 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030399 ac_cv_type_pid_t=yes
30400else
30401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030402sed 's/^/| /' conftest.$ac_ext >&5
30403
Reid Spencera773bd52006-08-04 18:18:08 +000030404 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030405fi
Reid Spencera773bd52006-08-04 18:18:08 +000030406
30407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030408fi
Reid Spencera773bd52006-08-04 18:18:08 +000030409{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30410echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030411if test $ac_cv_type_pid_t = yes; then
30412 :
30413else
30414
30415cat >>confdefs.h <<_ACEOF
30416#define pid_t int
30417_ACEOF
30418
30419fi
30420
Reid Spencera773bd52006-08-04 18:18:08 +000030421{ echo "$as_me:$LINENO: checking for size_t" >&5
30422echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030423if test "${ac_cv_type_size_t+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030432$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030433typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030434int
30435main ()
30436{
Reid Spencera773bd52006-08-04 18:18:08 +000030437if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030438 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030439if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030440 return 0;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030446if { (ac_try="$ac_compile"
30447case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450esac
30451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30463esac
30464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473esac
30474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030479 ac_cv_type_size_t=yes
30480else
30481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030482sed 's/^/| /' conftest.$ac_ext >&5
30483
Reid Spencera773bd52006-08-04 18:18:08 +000030484 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030485fi
Reid Spencera773bd52006-08-04 18:18:08 +000030486
30487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030488fi
Reid Spencera773bd52006-08-04 18:18:08 +000030489{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30490echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030491if test $ac_cv_type_size_t = yes; then
30492 :
30493else
30494
30495cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030496#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030497_ACEOF
30498
30499fi
30500
Reid Spencera773bd52006-08-04 18:18:08 +000030501{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30502echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030503if test "${ac_cv_type_signal+set}" = set; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30505else
30506 cat >conftest.$ac_ext <<_ACEOF
30507/* confdefs.h. */
30508_ACEOF
30509cat confdefs.h >>conftest.$ac_ext
30510cat >>conftest.$ac_ext <<_ACEOF
30511/* end confdefs.h. */
30512#include <sys/types.h>
30513#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030514
30515int
30516main ()
30517{
Reid Spencera773bd52006-08-04 18:18:08 +000030518return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519 ;
30520 return 0;
30521}
30522_ACEOF
30523rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030524if { (ac_try="$ac_compile"
30525case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030531 ac_status=$?
30532 grep -v '^ *+' conftest.er1 >conftest.err
30533 rm -f conftest.er1
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541esac
30542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_try") 2>&5
30544 ac_status=$?
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest.$ac_objext'
30548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551esac
30552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_try") 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030557 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030558else
30559 echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030563fi
Reid Spencera773bd52006-08-04 18:18:08 +000030564
30565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566fi
Reid Spencera773bd52006-08-04 18:18:08 +000030567{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30568echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030569
30570cat >>confdefs.h <<_ACEOF
30571#define RETSIGTYPE $ac_cv_type_signal
30572_ACEOF
30573
30574
Reid Spencera773bd52006-08-04 18:18:08 +000030575{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30576echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030577if test "${ac_cv_struct_tm+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
30586#include <sys/types.h>
30587#include <time.h>
30588
30589int
30590main ()
30591{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030592struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030598if { (ac_try="$ac_compile"
30599case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030605 ac_status=$?
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030610 (exit $ac_status); } &&
30611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30612 { (case "(($ac_try" in
30613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614 *) ac_try_echo=$ac_try;;
30615esac
30616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617 (eval "$ac_try") 2>&5
30618 ac_status=$?
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } &&
30621 { ac_try='test -s conftest.$ac_objext'
30622 { (case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30625esac
30626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_try") 2>&5
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030631 ac_cv_struct_tm=time.h
30632else
30633 echo "$as_me: failed program was:" >&5
30634sed 's/^/| /' conftest.$ac_ext >&5
30635
Reid Spencera773bd52006-08-04 18:18:08 +000030636 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030637fi
Reid Spencera773bd52006-08-04 18:18:08 +000030638
30639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030640fi
Reid Spencera773bd52006-08-04 18:18:08 +000030641{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30642echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030643if test $ac_cv_struct_tm = sys/time.h; then
30644
30645cat >>confdefs.h <<\_ACEOF
30646#define TM_IN_SYS_TIME 1
30647_ACEOF
30648
30649fi
30650
Reid Spencera773bd52006-08-04 18:18:08 +000030651{ echo "$as_me:$LINENO: checking for int64_t" >&5
30652echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030653if test "${ac_cv_type_int64_t+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030657/* confdefs.h. */
30658_ACEOF
30659cat confdefs.h >>conftest.$ac_ext
30660cat >>conftest.$ac_ext <<_ACEOF
30661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030662$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030663typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030664int
30665main ()
30666{
Reid Spencera773bd52006-08-04 18:18:08 +000030667if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030668 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030669if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030670 return 0;
30671 ;
30672 return 0;
30673}
30674_ACEOF
30675rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030676if { (ac_try="$ac_compile"
30677case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30680esac
30681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030684 grep -v '^ *+' conftest.er1 >conftest.err
30685 rm -f conftest.er1
30686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030688 (exit $ac_status); } &&
30689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30690 { (case "(($ac_try" in
30691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30692 *) ac_try_echo=$ac_try;;
30693esac
30694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30695 (eval "$ac_try") 2>&5
30696 ac_status=$?
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; } &&
30699 { ac_try='test -s conftest.$ac_objext'
30700 { (case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703esac
30704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_try") 2>&5
30706 ac_status=$?
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030709 ac_cv_type_int64_t=yes
30710else
30711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030712sed 's/^/| /' conftest.$ac_ext >&5
30713
Reid Spencera773bd52006-08-04 18:18:08 +000030714 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030715fi
Reid Spencera773bd52006-08-04 18:18:08 +000030716
30717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030718fi
Reid Spencera773bd52006-08-04 18:18:08 +000030719{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30720echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030721if test $ac_cv_type_int64_t = yes; then
30722
30723cat >>confdefs.h <<_ACEOF
30724#define HAVE_INT64_T 1
30725_ACEOF
30726
30727
30728else
30729 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30730echo "$as_me: error: Type int64_t required but not found" >&2;}
30731 { (exit 1); exit 1; }; }
30732fi
30733
Reid Spencera773bd52006-08-04 18:18:08 +000030734{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30735echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030736if test "${ac_cv_type_uint64_t+set}" = set; then
30737 echo $ECHO_N "(cached) $ECHO_C" >&6
30738else
30739 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030740/* confdefs.h. */
30741_ACEOF
30742cat confdefs.h >>conftest.$ac_ext
30743cat >>conftest.$ac_ext <<_ACEOF
30744/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030745$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030746typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030747int
30748main ()
30749{
Reid Spencera773bd52006-08-04 18:18:08 +000030750if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030751 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030752if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030753 return 0;
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030759if { (ac_try="$ac_compile"
30760case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30763esac
30764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030766 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030767 grep -v '^ *+' conftest.er1 >conftest.err
30768 rm -f conftest.er1
30769 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030771 (exit $ac_status); } &&
30772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30776esac
30777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; } &&
30782 { ac_try='test -s conftest.$ac_objext'
30783 { (case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30786esac
30787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_try") 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030792 ac_cv_type_uint64_t=yes
30793else
30794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030795sed 's/^/| /' conftest.$ac_ext >&5
30796
Reid Spencera773bd52006-08-04 18:18:08 +000030797 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030798fi
Reid Spencera773bd52006-08-04 18:18:08 +000030799
30800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030801fi
Reid Spencera773bd52006-08-04 18:18:08 +000030802{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30803echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030804if test $ac_cv_type_uint64_t = yes; then
30805
30806cat >>confdefs.h <<_ACEOF
30807#define HAVE_UINT64_T 1
30808_ACEOF
30809
30810
30811else
Reid Spencera773bd52006-08-04 18:18:08 +000030812 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30813echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030814if test "${ac_cv_type_u_int64_t+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30816else
30817 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030818/* confdefs.h. */
30819_ACEOF
30820cat confdefs.h >>conftest.$ac_ext
30821cat >>conftest.$ac_ext <<_ACEOF
30822/* end confdefs.h. */
30823$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030824typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030825int
30826main ()
30827{
Reid Spencera773bd52006-08-04 18:18:08 +000030828if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030829 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030830if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030831 return 0;
30832 ;
30833 return 0;
30834}
30835_ACEOF
30836rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030837if { (ac_try="$ac_compile"
30838case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30841esac
30842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030845 grep -v '^ *+' conftest.er1 >conftest.err
30846 rm -f conftest.er1
30847 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030849 (exit $ac_status); } &&
30850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30851 { (case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30854esac
30855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_try") 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest.$ac_objext'
30861 { (case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30864esac
30865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_try") 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030870 ac_cv_type_u_int64_t=yes
30871else
30872 echo "$as_me: failed program was:" >&5
30873sed 's/^/| /' conftest.$ac_ext >&5
30874
Reid Spencera773bd52006-08-04 18:18:08 +000030875 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030876fi
Reid Spencera773bd52006-08-04 18:18:08 +000030877
30878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030879fi
Reid Spencera773bd52006-08-04 18:18:08 +000030880{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30881echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030882if test $ac_cv_type_u_int64_t = yes; then
30883
30884cat >>confdefs.h <<_ACEOF
30885#define HAVE_U_INT64_T 1
30886_ACEOF
30887
30888
Misha Brukmanceca9042004-09-02 23:02:30 +000030889else
30890 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30891echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30892 { (exit 1); exit 1; }; }
30893fi
30894
John Criswell679ff312004-09-02 18:44:44 +000030895fi
30896
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030897
30898
30899
30900
30901
30902
30903
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030904
30905
Reid Spencerdf3be822006-01-23 08:15:53 +000030906for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030907do
30908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030912 echo $ECHO_N "(cached) $ECHO_C" >&6
30913else
30914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030915/* confdefs.h. */
30916_ACEOF
30917cat confdefs.h >>conftest.$ac_ext
30918cat >>conftest.$ac_ext <<_ACEOF
30919/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922#define $ac_func innocuous_$ac_func
30923
30924/* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30928
30929#ifdef __STDC__
30930# include <limits.h>
30931#else
30932# include <assert.h>
30933#endif
30934
30935#undef $ac_func
30936
Reid Spencera773bd52006-08-04 18:18:08 +000030937/* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030940#ifdef __cplusplus
30941extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030942#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030943char $ac_func ();
30944/* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030947#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030948choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030949#endif
John Criswell7a73b802003-06-30 21:59:07 +000030950
John Criswell7a73b802003-06-30 21:59:07 +000030951int
30952main ()
30953{
Reid Spencera773bd52006-08-04 18:18:08 +000030954return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030955 ;
30956 return 0;
30957}
30958_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030959rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030960if { (ac_try="$ac_link"
30961case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030968 grep -v '^ *+' conftest.er1 >conftest.err
30969 rm -f conftest.er1
30970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030972 (exit $ac_status); } &&
30973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30974 { (case "(($ac_try" in
30975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976 *) ac_try_echo=$ac_try;;
30977esac
30978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979 (eval "$ac_try") 2>&5
30980 ac_status=$?
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; } &&
30983 { ac_try='test -s conftest$ac_exeext'
30984 { (case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30987esac
30988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_try") 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030993 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030994else
30995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030996sed 's/^/| /' conftest.$ac_ext >&5
30997
Reid Spencera773bd52006-08-04 18:18:08 +000030998 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030999fi
Reid Spencera773bd52006-08-04 18:18:08 +000031000
Bill Wendlingebcceee2009-04-18 11:20:33 +000031001rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031002 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031003fi
Reid Spencera773bd52006-08-04 18:18:08 +000031004ac_res=`eval echo '${'$as_ac_var'}'`
31005 { echo "$as_me:$LINENO: result: $ac_res" >&5
31006echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031007if test `eval echo '${'$as_ac_var'}'` = yes; then
31008 cat >>confdefs.h <<_ACEOF
31009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031010_ACEOF
31011
31012fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013done
John Criswell7a73b802003-06-30 21:59:07 +000031014
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031015
31016
31017
Reid Spencer6af3d262004-12-15 04:01:48 +000031018
Reid Spencer96cf5872007-07-13 10:05:30 +000031019for ac_func in powf fmodf strtof round
31020do
31021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31022{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31025 echo $ECHO_N "(cached) $ECHO_C" >&6
31026else
31027 cat >conftest.$ac_ext <<_ACEOF
31028/* confdefs.h. */
31029_ACEOF
31030cat confdefs.h >>conftest.$ac_ext
31031cat >>conftest.$ac_ext <<_ACEOF
31032/* end confdefs.h. */
31033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31035#define $ac_func innocuous_$ac_func
31036
31037/* System header to define __stub macros and hopefully few prototypes,
31038 which can conflict with char $ac_func (); below.
31039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31040 <limits.h> exists even on freestanding compilers. */
31041
31042#ifdef __STDC__
31043# include <limits.h>
31044#else
31045# include <assert.h>
31046#endif
31047
31048#undef $ac_func
31049
31050/* Override any GCC internal prototype to avoid an error.
31051 Use char because int might match the return type of a GCC
31052 builtin and then its argument prototype would still apply. */
31053#ifdef __cplusplus
31054extern "C"
31055#endif
31056char $ac_func ();
31057/* The GNU C library defines this for functions which it implements
31058 to always fail with ENOSYS. Some functions are actually named
31059 something starting with __ and the normal name is an alias. */
31060#if defined __stub_$ac_func || defined __stub___$ac_func
31061choke me
31062#endif
31063
31064int
31065main ()
31066{
31067return $ac_func ();
31068 ;
31069 return 0;
31070}
31071_ACEOF
31072rm -f conftest.$ac_objext conftest$ac_exeext
31073if { (ac_try="$ac_link"
31074case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_link") 2>conftest.er1
31080 ac_status=$?
31081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031085 (exit $ac_status); } &&
31086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31087 { (case "(($ac_try" in
31088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31089 *) ac_try_echo=$ac_try;;
31090esac
31091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31092 (eval "$ac_try") 2>&5
31093 ac_status=$?
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); }; } &&
31096 { ac_try='test -s conftest$ac_exeext'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31100esac
31101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031106 eval "$as_ac_var=yes"
31107else
31108 echo "$as_me: failed program was:" >&5
31109sed 's/^/| /' conftest.$ac_ext >&5
31110
31111 eval "$as_ac_var=no"
31112fi
31113
Bill Wendlingebcceee2009-04-18 11:20:33 +000031114rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031115 conftest$ac_exeext conftest.$ac_ext
31116fi
31117ac_res=`eval echo '${'$as_ac_var'}'`
31118 { echo "$as_me:$LINENO: result: $ac_res" >&5
31119echo "${ECHO_T}$ac_res" >&6; }
31120if test `eval echo '${'$as_ac_var'}'` = yes; then
31121 cat >>confdefs.h <<_ACEOF
31122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31123_ACEOF
31124
31125fi
31126done
31127
31128
31129
31130
31131
Reid Spencer6af3d262004-12-15 04:01:48 +000031132
Reid Spencerb90645c2007-02-16 19:17:20 +000031133for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31134do
31135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31136{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31139 echo $ECHO_N "(cached) $ECHO_C" >&6
31140else
31141 cat >conftest.$ac_ext <<_ACEOF
31142/* confdefs.h. */
31143_ACEOF
31144cat confdefs.h >>conftest.$ac_ext
31145cat >>conftest.$ac_ext <<_ACEOF
31146/* end confdefs.h. */
31147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31149#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031150
Reid Spencerb90645c2007-02-16 19:17:20 +000031151/* System header to define __stub macros and hopefully few prototypes,
31152 which can conflict with char $ac_func (); below.
31153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31154 <limits.h> exists even on freestanding compilers. */
31155
31156#ifdef __STDC__
31157# include <limits.h>
31158#else
31159# include <assert.h>
31160#endif
31161
31162#undef $ac_func
31163
31164/* Override any GCC internal prototype to avoid an error.
31165 Use char because int might match the return type of a GCC
31166 builtin and then its argument prototype would still apply. */
31167#ifdef __cplusplus
31168extern "C"
31169#endif
31170char $ac_func ();
31171/* The GNU C library defines this for functions which it implements
31172 to always fail with ENOSYS. Some functions are actually named
31173 something starting with __ and the normal name is an alias. */
31174#if defined __stub_$ac_func || defined __stub___$ac_func
31175choke me
31176#endif
31177
31178int
31179main ()
31180{
31181return $ac_func ();
31182 ;
31183 return 0;
31184}
31185_ACEOF
31186rm -f conftest.$ac_objext conftest$ac_exeext
31187if { (ac_try="$ac_link"
31188case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31191esac
31192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_link") 2>conftest.er1
31194 ac_status=$?
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031199 (exit $ac_status); } &&
31200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204esac
31205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; } &&
31210 { ac_try='test -s conftest$ac_exeext'
31211 { (case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214esac
31215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_try") 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031220 eval "$as_ac_var=yes"
31221else
31222 echo "$as_me: failed program was:" >&5
31223sed 's/^/| /' conftest.$ac_ext >&5
31224
31225 eval "$as_ac_var=no"
31226fi
31227
Bill Wendlingebcceee2009-04-18 11:20:33 +000031228rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031229 conftest$ac_exeext conftest.$ac_ext
31230fi
31231ac_res=`eval echo '${'$as_ac_var'}'`
31232 { echo "$as_me:$LINENO: result: $ac_res" >&5
31233echo "${ECHO_T}$ac_res" >&6; }
31234if test `eval echo '${'$as_ac_var'}'` = yes; then
31235 cat >>confdefs.h <<_ACEOF
31236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31237_ACEOF
31238
31239fi
31240done
31241
31242
31243
31244
31245for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031246do
31247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031248{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31250if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031251 echo $ECHO_N "(cached) $ECHO_C" >&6
31252else
31253 cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
31259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31261#define $ac_func innocuous_$ac_func
31262
31263/* System header to define __stub macros and hopefully few prototypes,
31264 which can conflict with char $ac_func (); below.
31265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266 <limits.h> exists even on freestanding compilers. */
31267
31268#ifdef __STDC__
31269# include <limits.h>
31270#else
31271# include <assert.h>
31272#endif
31273
31274#undef $ac_func
31275
Reid Spencera773bd52006-08-04 18:18:08 +000031276/* Override any GCC internal prototype to avoid an error.
31277 Use char because int might match the return type of a GCC
31278 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031279#ifdef __cplusplus
31280extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031281#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031282char $ac_func ();
31283/* The GNU C library defines this for functions which it implements
31284 to always fail with ENOSYS. Some functions are actually named
31285 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031286#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031287choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031288#endif
31289
31290int
31291main ()
31292{
Reid Spencera773bd52006-08-04 18:18:08 +000031293return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031294 ;
31295 return 0;
31296}
31297_ACEOF
31298rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031299if { (ac_try="$ac_link"
31300case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031306 ac_status=$?
31307 grep -v '^ *+' conftest.er1 >conftest.err
31308 rm -f conftest.er1
31309 cat conftest.err >&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031311 (exit $ac_status); } &&
31312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31316esac
31317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest$ac_exeext'
31323 { (case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31326esac
31327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_try") 2>&5
31329 ac_status=$?
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031332 eval "$as_ac_var=yes"
31333else
31334 echo "$as_me: failed program was:" >&5
31335sed 's/^/| /' conftest.$ac_ext >&5
31336
Reid Spencera773bd52006-08-04 18:18:08 +000031337 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031338fi
Reid Spencera773bd52006-08-04 18:18:08 +000031339
Bill Wendlingebcceee2009-04-18 11:20:33 +000031340rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031341 conftest$ac_exeext conftest.$ac_ext
31342fi
Reid Spencera773bd52006-08-04 18:18:08 +000031343ac_res=`eval echo '${'$as_ac_var'}'`
31344 { echo "$as_me:$LINENO: result: $ac_res" >&5
31345echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031346if test `eval echo '${'$as_ac_var'}'` = yes; then
31347 cat >>confdefs.h <<_ACEOF
31348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31349_ACEOF
31350
31351fi
31352done
31353
31354
31355
31356
31357
31358
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031359for ac_func in mktemp realpath sbrk setrlimit strdup
31360do
31361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31362{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31365 echo $ECHO_N "(cached) $ECHO_C" >&6
31366else
31367 cat >conftest.$ac_ext <<_ACEOF
31368/* confdefs.h. */
31369_ACEOF
31370cat confdefs.h >>conftest.$ac_ext
31371cat >>conftest.$ac_ext <<_ACEOF
31372/* end confdefs.h. */
31373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31375#define $ac_func innocuous_$ac_func
31376
31377/* System header to define __stub macros and hopefully few prototypes,
31378 which can conflict with char $ac_func (); below.
31379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31380 <limits.h> exists even on freestanding compilers. */
31381
31382#ifdef __STDC__
31383# include <limits.h>
31384#else
31385# include <assert.h>
31386#endif
31387
31388#undef $ac_func
31389
31390/* Override any GCC internal prototype to avoid an error.
31391 Use char because int might match the return type of a GCC
31392 builtin and then its argument prototype would still apply. */
31393#ifdef __cplusplus
31394extern "C"
31395#endif
31396char $ac_func ();
31397/* The GNU C library defines this for functions which it implements
31398 to always fail with ENOSYS. Some functions are actually named
31399 something starting with __ and the normal name is an alias. */
31400#if defined __stub_$ac_func || defined __stub___$ac_func
31401choke me
31402#endif
31403
31404int
31405main ()
31406{
31407return $ac_func ();
31408 ;
31409 return 0;
31410}
31411_ACEOF
31412rm -f conftest.$ac_objext conftest$ac_exeext
31413if { (ac_try="$ac_link"
31414case "(($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_link") 2>conftest.er1
31420 ac_status=$?
31421 grep -v '^ *+' conftest.er1 >conftest.err
31422 rm -f conftest.er1
31423 cat conftest.err >&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } &&
31426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31430esac
31431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; } &&
31436 { ac_try='test -s conftest$ac_exeext'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440esac
31441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 eval "$as_ac_var=yes"
31447else
31448 echo "$as_me: failed program was:" >&5
31449sed 's/^/| /' conftest.$ac_ext >&5
31450
31451 eval "$as_ac_var=no"
31452fi
31453
31454rm -f core conftest.err conftest.$ac_objext \
31455 conftest$ac_exeext conftest.$ac_ext
31456fi
31457ac_res=`eval echo '${'$as_ac_var'}'`
31458 { echo "$as_me:$LINENO: result: $ac_res" >&5
31459echo "${ECHO_T}$ac_res" >&6; }
31460if test `eval echo '${'$as_ac_var'}'` = yes; then
31461 cat >>confdefs.h <<_ACEOF
31462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31463_ACEOF
31464
31465fi
31466done
Reid Spencerdf3be822006-01-23 08:15:53 +000031467
31468
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000031469
31470
31471for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000031472do
31473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031474{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31476if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031477 echo $ECHO_N "(cached) $ECHO_C" >&6
31478else
31479 cat >conftest.$ac_ext <<_ACEOF
31480/* confdefs.h. */
31481_ACEOF
31482cat confdefs.h >>conftest.$ac_ext
31483cat >>conftest.$ac_ext <<_ACEOF
31484/* end confdefs.h. */
31485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31487#define $ac_func innocuous_$ac_func
31488
31489/* System header to define __stub macros and hopefully few prototypes,
31490 which can conflict with char $ac_func (); below.
31491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31492 <limits.h> exists even on freestanding compilers. */
31493
31494#ifdef __STDC__
31495# include <limits.h>
31496#else
31497# include <assert.h>
31498#endif
31499
31500#undef $ac_func
31501
Reid Spencera773bd52006-08-04 18:18:08 +000031502/* Override any GCC internal prototype to avoid an error.
31503 Use char because int might match the return type of a GCC
31504 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031505#ifdef __cplusplus
31506extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031507#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031508char $ac_func ();
31509/* The GNU C library defines this for functions which it implements
31510 to always fail with ENOSYS. Some functions are actually named
31511 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031512#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031513choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031514#endif
31515
31516int
31517main ()
31518{
Reid Spencera773bd52006-08-04 18:18:08 +000031519return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031520 ;
31521 return 0;
31522}
31523_ACEOF
31524rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031525if { (ac_try="$ac_link"
31526case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031532 ac_status=$?
31533 grep -v '^ *+' conftest.er1 >conftest.err
31534 rm -f conftest.er1
31535 cat conftest.err >&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031537 (exit $ac_status); } &&
31538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31539 { (case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31542esac
31543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_try") 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; } &&
31548 { ac_try='test -s conftest$ac_exeext'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031558 eval "$as_ac_var=yes"
31559else
31560 echo "$as_me: failed program was:" >&5
31561sed 's/^/| /' conftest.$ac_ext >&5
31562
Reid Spencera773bd52006-08-04 18:18:08 +000031563 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031564fi
Reid Spencera773bd52006-08-04 18:18:08 +000031565
Bill Wendlingebcceee2009-04-18 11:20:33 +000031566rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031567 conftest$ac_exeext conftest.$ac_ext
31568fi
Reid Spencera773bd52006-08-04 18:18:08 +000031569ac_res=`eval echo '${'$as_ac_var'}'`
31570 { echo "$as_me:$LINENO: result: $ac_res" >&5
31571echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031572if test `eval echo '${'$as_ac_var'}'` = yes; then
31573 cat >>confdefs.h <<_ACEOF
31574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31575_ACEOF
31576
31577fi
31578done
31579
31580
Reid Spencerba46ca32004-12-31 05:49:15 +000031581
31582
Chris Lattner0b142592005-11-14 06:57:34 +000031583
Chris Lattner511f11d2005-11-14 07:25:50 +000031584for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031585do
31586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031590 echo $ECHO_N "(cached) $ECHO_C" >&6
31591else
31592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031593/* confdefs.h. */
31594_ACEOF
31595cat confdefs.h >>conftest.$ac_ext
31596cat >>conftest.$ac_ext <<_ACEOF
31597/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31600#define $ac_func innocuous_$ac_func
31601
31602/* System header to define __stub macros and hopefully few prototypes,
31603 which can conflict with char $ac_func (); below.
31604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31605 <limits.h> exists even on freestanding compilers. */
31606
31607#ifdef __STDC__
31608# include <limits.h>
31609#else
31610# include <assert.h>
31611#endif
31612
31613#undef $ac_func
31614
Reid Spencera773bd52006-08-04 18:18:08 +000031615/* Override any GCC internal prototype to avoid an error.
31616 Use char because int might match the return type of a GCC
31617 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618#ifdef __cplusplus
31619extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031620#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031621char $ac_func ();
31622/* The GNU C library defines this for functions which it implements
31623 to always fail with ENOSYS. Some functions are actually named
31624 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031625#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031626choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031627#endif
John Criswell7a73b802003-06-30 21:59:07 +000031628
John Criswell7a73b802003-06-30 21:59:07 +000031629int
31630main ()
31631{
Reid Spencera773bd52006-08-04 18:18:08 +000031632return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031633 ;
31634 return 0;
31635}
31636_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031637rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031638if { (ac_try="$ac_link"
31639case "(($ac_try" in
31640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31641 *) ac_try_echo=$ac_try;;
31642esac
31643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31644 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031646 grep -v '^ *+' conftest.er1 >conftest.err
31647 rm -f conftest.er1
31648 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031650 (exit $ac_status); } &&
31651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31652 { (case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_try") 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; } &&
31661 { ac_try='test -s conftest$ac_exeext'
31662 { (case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_try") 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031671 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031672else
31673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031674sed 's/^/| /' conftest.$ac_ext >&5
31675
Reid Spencera773bd52006-08-04 18:18:08 +000031676 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031677fi
Reid Spencera773bd52006-08-04 18:18:08 +000031678
Bill Wendlingebcceee2009-04-18 11:20:33 +000031679rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031680 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031681fi
Reid Spencera773bd52006-08-04 18:18:08 +000031682ac_res=`eval echo '${'$as_ac_var'}'`
31683 { echo "$as_me:$LINENO: result: $ac_res" >&5
31684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685if test `eval echo '${'$as_ac_var'}'` = yes; then
31686 cat >>confdefs.h <<_ACEOF
31687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031688_ACEOF
31689
31690fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691done
John Criswell7a73b802003-06-30 21:59:07 +000031692
Reid Spencercdb08a32006-06-05 16:11:07 +000031693
31694
31695
31696
Reid Spencerafa22e22006-12-10 23:29:19 +000031697for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031698do
31699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031700{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31702if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031703 echo $ECHO_N "(cached) $ECHO_C" >&6
31704else
31705 cat >conftest.$ac_ext <<_ACEOF
31706/* confdefs.h. */
31707_ACEOF
31708cat confdefs.h >>conftest.$ac_ext
31709cat >>conftest.$ac_ext <<_ACEOF
31710/* end confdefs.h. */
31711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31713#define $ac_func innocuous_$ac_func
31714
31715/* System header to define __stub macros and hopefully few prototypes,
31716 which can conflict with char $ac_func (); below.
31717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31718 <limits.h> exists even on freestanding compilers. */
31719
31720#ifdef __STDC__
31721# include <limits.h>
31722#else
31723# include <assert.h>
31724#endif
31725
31726#undef $ac_func
31727
Reid Spencera773bd52006-08-04 18:18:08 +000031728/* Override any GCC internal prototype to avoid an error.
31729 Use char because int might match the return type of a GCC
31730 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031731#ifdef __cplusplus
31732extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031733#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031734char $ac_func ();
31735/* The GNU C library defines this for functions which it implements
31736 to always fail with ENOSYS. Some functions are actually named
31737 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031738#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031739choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031740#endif
31741
31742int
31743main ()
31744{
Reid Spencera773bd52006-08-04 18:18:08 +000031745return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031746 ;
31747 return 0;
31748}
31749_ACEOF
31750rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031751if { (ac_try="$ac_link"
31752case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755esac
31756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031758 ac_status=$?
31759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031763 (exit $ac_status); } &&
31764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31765 { (case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31768esac
31769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_try") 2>&5
31771 ac_status=$?
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; } &&
31774 { ac_try='test -s conftest$ac_exeext'
31775 { (case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778esac
31779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_try") 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031784 eval "$as_ac_var=yes"
31785else
31786 echo "$as_me: failed program was:" >&5
31787sed 's/^/| /' conftest.$ac_ext >&5
31788
Reid Spencera773bd52006-08-04 18:18:08 +000031789 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031790fi
Reid Spencera773bd52006-08-04 18:18:08 +000031791
Bill Wendlingebcceee2009-04-18 11:20:33 +000031792rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031793 conftest$ac_exeext conftest.$ac_ext
31794fi
Reid Spencera773bd52006-08-04 18:18:08 +000031795ac_res=`eval echo '${'$as_ac_var'}'`
31796 { echo "$as_me:$LINENO: result: $ac_res" >&5
31797echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031798if test `eval echo '${'$as_ac_var'}'` = yes; then
31799 cat >>confdefs.h <<_ACEOF
31800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31801_ACEOF
31802
31803fi
31804done
31805
Reid Spencera773bd52006-08-04 18:18:08 +000031806{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31807echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031808if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031809 echo $ECHO_N "(cached) $ECHO_C" >&6
31810else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031811 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031812ac_cpp='$CPP $CPPFLAGS'
31813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31815ac_compiler_gnu=$ac_cv_c_compiler_gnu
31816
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031817 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031818 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031819else
31820 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031822 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031823_ACEOF
31824cat confdefs.h >>conftest.$ac_ext
31825cat >>conftest.$ac_ext <<_ACEOF
31826/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031827
John Criswella0137d32003-10-13 16:22:01 +000031828#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031829#include <stdlib.h>
31830
John Criswella0137d32003-10-13 16:22:01 +000031831int
31832main ()
31833{
31834
Reid Spencer2706f8c2004-09-19 23:53:36 +000031835volatile double A, B;
31836char Buffer[100];
31837A = 1;
31838A /= 10.0;
31839sprintf(Buffer, "%a", A);
31840B = atof(Buffer);
31841if (A != B)
31842 return (1);
31843if (A != 0x1.999999999999ap-4)
31844 return (1);
31845return (0);
John Criswella0137d32003-10-13 16:22:01 +000031846 ;
31847 return 0;
31848}
31849_ACEOF
31850rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031851if { (ac_try="$ac_link"
31852case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31855esac
31856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031861 { (case "(($ac_try" in
31862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31863 *) ac_try_echo=$ac_try;;
31864esac
31865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31866 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031867 ac_status=$?
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031870 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031871else
31872 echo "$as_me: program exited with status $ac_status" >&5
31873echo "$as_me: failed program was:" >&5
31874sed 's/^/| /' conftest.$ac_ext >&5
31875
31876( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031877llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031878fi
Reid Spencera773bd52006-08-04 18:18:08 +000031879rm -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 +000031880fi
Reid Spencera773bd52006-08-04 18:18:08 +000031881
31882
Reid Spencer2706f8c2004-09-19 23:53:36 +000031883 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031884ac_cpp='$CPP $CPPFLAGS'
31885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31887ac_compiler_gnu=$ac_cv_c_compiler_gnu
31888
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031889fi
Reid Spencera773bd52006-08-04 18:18:08 +000031890{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31891echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031892 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031893
31894cat >>confdefs.h <<\_ACEOF
31895#define HAVE_PRINTF_A 1
31896_ACEOF
31897
Reid Spencer2706f8c2004-09-19 23:53:36 +000031898 fi
John Criswella0137d32003-10-13 16:22:01 +000031899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031900# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31901# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031902{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31903echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
John Criswell0021c312004-02-13 21:57:29 +000031907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031913#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031914int
31915main ()
31916{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031917char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031918 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031919 ;
31920 return 0;
31921}
31922_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031923rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031924if { (ac_try="$ac_link"
31925case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31928esac
31929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031931 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031936 (exit $ac_status); } &&
31937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; } &&
31947 { ac_try='test -s conftest$ac_exeext'
31948 { (case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31951esac
31952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_try") 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031957 ac_cv_working_alloca_h=yes
31958else
31959 echo "$as_me: failed program was:" >&5
31960sed 's/^/| /' conftest.$ac_ext >&5
31961
Reid Spencera773bd52006-08-04 18:18:08 +000031962 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031963fi
Reid Spencera773bd52006-08-04 18:18:08 +000031964
Bill Wendlingebcceee2009-04-18 11:20:33 +000031965rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031966 conftest$ac_exeext conftest.$ac_ext
31967fi
Reid Spencera773bd52006-08-04 18:18:08 +000031968{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31969echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031970if test $ac_cv_working_alloca_h = yes; then
31971
31972cat >>confdefs.h <<\_ACEOF
31973#define HAVE_ALLOCA_H 1
31974_ACEOF
31975
31976fi
31977
Reid Spencera773bd52006-08-04 18:18:08 +000031978{ echo "$as_me:$LINENO: checking for alloca" >&5
31979echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031980if test "${ac_cv_func_alloca_works+set}" = set; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31982else
31983 cat >conftest.$ac_ext <<_ACEOF
31984/* confdefs.h. */
31985_ACEOF
31986cat confdefs.h >>conftest.$ac_ext
31987cat >>conftest.$ac_ext <<_ACEOF
31988/* end confdefs.h. */
31989#ifdef __GNUC__
31990# define alloca __builtin_alloca
31991#else
31992# ifdef _MSC_VER
31993# include <malloc.h>
31994# define alloca _alloca
31995# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031996# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031997# include <alloca.h>
31998# else
31999# ifdef _AIX
32000 #pragma alloca
32001# else
32002# ifndef alloca /* predefined by HP cc +Olibcalls */
32003char *alloca ();
32004# endif
32005# endif
32006# endif
32007# endif
32008#endif
32009
32010int
32011main ()
32012{
32013char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032014 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032015 ;
32016 return 0;
32017}
32018_ACEOF
32019rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032020if { (ac_try="$ac_link"
32021case "(($ac_try" in
32022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32023 *) ac_try_echo=$ac_try;;
32024esac
32025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32026 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032027 ac_status=$?
32028 grep -v '^ *+' conftest.er1 >conftest.err
32029 rm -f conftest.er1
32030 cat conftest.err >&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032032 (exit $ac_status); } &&
32033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32037esac
32038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; } &&
32043 { ac_try='test -s conftest$ac_exeext'
32044 { (case "(($ac_try" in
32045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046 *) ac_try_echo=$ac_try;;
32047esac
32048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049 (eval "$ac_try") 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032053 ac_cv_func_alloca_works=yes
32054else
32055 echo "$as_me: failed program was:" >&5
32056sed 's/^/| /' conftest.$ac_ext >&5
32057
Reid Spencera773bd52006-08-04 18:18:08 +000032058 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032059fi
Reid Spencera773bd52006-08-04 18:18:08 +000032060
Bill Wendlingebcceee2009-04-18 11:20:33 +000032061rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032062 conftest$ac_exeext conftest.$ac_ext
32063fi
Reid Spencera773bd52006-08-04 18:18:08 +000032064{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32065echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032066
32067if test $ac_cv_func_alloca_works = yes; then
32068
32069cat >>confdefs.h <<\_ACEOF
32070#define HAVE_ALLOCA 1
32071_ACEOF
32072
32073else
32074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32075# that cause trouble. Some versions do not even contain alloca or
32076# contain a buggy version. If you still want to use their alloca,
32077# use ar to extract alloca.o from them instead of compiling alloca.c.
32078
Reid Spencera773bd52006-08-04 18:18:08 +000032079ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032080
32081cat >>confdefs.h <<\_ACEOF
32082#define C_ALLOCA 1
32083_ACEOF
32084
32085
Reid Spencera773bd52006-08-04 18:18:08 +000032086{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32087echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032088if test "${ac_cv_os_cray+set}" = set; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32090else
32091 cat >conftest.$ac_ext <<_ACEOF
32092/* confdefs.h. */
32093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032097#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032098webecray
32099#else
32100wenotbecray
32101#endif
32102
32103_ACEOF
32104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32105 $EGREP "webecray" >/dev/null 2>&1; then
32106 ac_cv_os_cray=yes
32107else
32108 ac_cv_os_cray=no
32109fi
32110rm -f conftest*
32111
32112fi
Reid Spencera773bd52006-08-04 18:18:08 +000032113{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32114echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032115if test $ac_cv_os_cray = yes; then
32116 for ac_func in _getb67 GETB67 getb67; do
32117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032118{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32120if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032121 echo $ECHO_N "(cached) $ECHO_C" >&6
32122else
32123 cat >conftest.$ac_ext <<_ACEOF
32124/* confdefs.h. */
32125_ACEOF
32126cat confdefs.h >>conftest.$ac_ext
32127cat >>conftest.$ac_ext <<_ACEOF
32128/* end confdefs.h. */
32129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32131#define $ac_func innocuous_$ac_func
32132
32133/* System header to define __stub macros and hopefully few prototypes,
32134 which can conflict with char $ac_func (); below.
32135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32136 <limits.h> exists even on freestanding compilers. */
32137
32138#ifdef __STDC__
32139# include <limits.h>
32140#else
32141# include <assert.h>
32142#endif
32143
32144#undef $ac_func
32145
Reid Spencera773bd52006-08-04 18:18:08 +000032146/* Override any GCC internal prototype to avoid an error.
32147 Use char because int might match the return type of a GCC
32148 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032149#ifdef __cplusplus
32150extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032151#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032152char $ac_func ();
32153/* The GNU C library defines this for functions which it implements
32154 to always fail with ENOSYS. Some functions are actually named
32155 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032156#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032157choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032158#endif
32159
32160int
32161main ()
32162{
Reid Spencera773bd52006-08-04 18:18:08 +000032163return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032164 ;
32165 return 0;
32166}
32167_ACEOF
32168rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032169if { (ac_try="$ac_link"
32170case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173esac
32174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032176 ac_status=$?
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32186esac
32187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest$ac_exeext'
32193 { (case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196esac
32197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_try") 2>&5
32199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032202 eval "$as_ac_var=yes"
32203else
32204 echo "$as_me: failed program was:" >&5
32205sed 's/^/| /' conftest.$ac_ext >&5
32206
Reid Spencera773bd52006-08-04 18:18:08 +000032207 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032208fi
Reid Spencera773bd52006-08-04 18:18:08 +000032209
Bill Wendlingebcceee2009-04-18 11:20:33 +000032210rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032211 conftest$ac_exeext conftest.$ac_ext
32212fi
Reid Spencera773bd52006-08-04 18:18:08 +000032213ac_res=`eval echo '${'$as_ac_var'}'`
32214 { echo "$as_me:$LINENO: result: $ac_res" >&5
32215echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032216if test `eval echo '${'$as_ac_var'}'` = yes; then
32217
32218cat >>confdefs.h <<_ACEOF
32219#define CRAY_STACKSEG_END $ac_func
32220_ACEOF
32221
32222 break
32223fi
32224
32225 done
32226fi
32227
Reid Spencera773bd52006-08-04 18:18:08 +000032228{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32229echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032230if test "${ac_cv_c_stack_direction+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232else
32233 if test "$cross_compiling" = yes; then
32234 ac_cv_c_stack_direction=0
32235else
32236 cat >conftest.$ac_ext <<_ACEOF
32237/* confdefs.h. */
32238_ACEOF
32239cat confdefs.h >>conftest.$ac_ext
32240cat >>conftest.$ac_ext <<_ACEOF
32241/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032242$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032243int
32244find_stack_direction ()
32245{
32246 static char *addr = 0;
32247 auto char dummy;
32248 if (addr == 0)
32249 {
32250 addr = &dummy;
32251 return find_stack_direction ();
32252 }
John Criswell0021c312004-02-13 21:57:29 +000032253 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032254 return (&dummy > addr) ? 1 : -1;
32255}
John Criswell0021c312004-02-13 21:57:29 +000032256
John Criswell0021c312004-02-13 21:57:29 +000032257int
32258main ()
32259{
Reid Spencera773bd52006-08-04 18:18:08 +000032260 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032261}
32262_ACEOF
32263rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032264if { (ac_try="$ac_link"
32265case "(($ac_try" in
32266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32267 *) ac_try_echo=$ac_try;;
32268esac
32269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32270 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032271 ac_status=$?
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32277esac
32278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032283 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032284else
32285 echo "$as_me: program exited with status $ac_status" >&5
32286echo "$as_me: failed program was:" >&5
32287sed 's/^/| /' conftest.$ac_ext >&5
32288
32289( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032290ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032291fi
Reid Spencera773bd52006-08-04 18:18:08 +000032292rm -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 +000032293fi
Reid Spencera773bd52006-08-04 18:18:08 +000032294
32295
John Criswell0021c312004-02-13 21:57:29 +000032296fi
Reid Spencera773bd52006-08-04 18:18:08 +000032297{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32298echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032299
32300cat >>confdefs.h <<_ACEOF
32301#define STACK_DIRECTION $ac_cv_c_stack_direction
32302_ACEOF
32303
32304
John Criswell0021c312004-02-13 21:57:29 +000032305fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032306
32307
Reid Spencera773bd52006-08-04 18:18:08 +000032308{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32309echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032310if test "${ac_cv_func_rand48+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
Reid Spencera773bd52006-08-04 18:18:08 +000032313 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032314ac_cpp='$CXXCPP $CPPFLAGS'
32315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32318
32319 cat >conftest.$ac_ext <<_ACEOF
32320/* confdefs.h. */
32321_ACEOF
32322cat confdefs.h >>conftest.$ac_ext
32323cat >>conftest.$ac_ext <<_ACEOF
32324/* end confdefs.h. */
32325#include <stdlib.h>
32326int
32327main ()
32328{
32329srand48(0);lrand48();drand48();
32330 ;
32331 return 0;
32332}
32333_ACEOF
32334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032335if { (ac_try="$ac_compile"
32336case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32339esac
32340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032342 ac_status=$?
32343 grep -v '^ *+' conftest.er1 >conftest.err
32344 rm -f conftest.er1
32345 cat conftest.err >&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032347 (exit $ac_status); } &&
32348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349 { (case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32352esac
32353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_try") 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032368 ac_cv_func_rand48=yes
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
Reid Spencera773bd52006-08-04 18:18:08 +000032373 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032374fi
Reid Spencera773bd52006-08-04 18:18:08 +000032375
32376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032377 ac_ext=c
32378ac_cpp='$CPP $CPPFLAGS'
32379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381ac_compiler_gnu=$ac_cv_c_compiler_gnu
32382
32383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32385echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032386
32387if test "$ac_cv_func_rand48" = "yes" ; then
32388
32389cat >>confdefs.h <<\_ACEOF
32390#define HAVE_RAND48 1
32391_ACEOF
32392
32393fi
John Criswell0021c312004-02-13 21:57:29 +000032394
32395
Reid Spencera773bd52006-08-04 18:18:08 +000032396{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32397echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032398if test "${ac_cv_cxx_namespaces+set}" = set; then
32399 echo $ECHO_N "(cached) $ECHO_C" >&6
32400else
Reid Spencera773bd52006-08-04 18:18:08 +000032401 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032402ac_cpp='$CXXCPP $CPPFLAGS'
32403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32406
32407 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032408/* confdefs.h. */
32409_ACEOF
32410cat confdefs.h >>conftest.$ac_ext
32411cat >>conftest.$ac_ext <<_ACEOF
32412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032413namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032414int
32415main ()
32416{
32417using namespace Outer::Inner; return i;
32418 ;
32419 return 0;
32420}
32421_ACEOF
32422rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032423if { (ac_try="$ac_compile"
32424case "(($ac_try" in
32425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32426 *) ac_try_echo=$ac_try;;
32427esac
32428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32429 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032431 grep -v '^ *+' conftest.er1 >conftest.err
32432 rm -f conftest.er1
32433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032435 (exit $ac_status); } &&
32436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32437 { (case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32440esac
32441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_try") 2>&5
32443 ac_status=$?
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); }; } &&
32446 { ac_try='test -s conftest.$ac_objext'
32447 { (case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32450esac
32451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_try") 2>&5
32453 ac_status=$?
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032456 ac_cv_cxx_namespaces=yes
32457else
32458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032459sed 's/^/| /' conftest.$ac_ext >&5
32460
Reid Spencera773bd52006-08-04 18:18:08 +000032461 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032462fi
Reid Spencera773bd52006-08-04 18:18:08 +000032463
32464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032465 ac_ext=c
32466ac_cpp='$CPP $CPPFLAGS'
32467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469ac_compiler_gnu=$ac_cv_c_compiler_gnu
32470
32471
32472fi
Reid Spencera773bd52006-08-04 18:18:08 +000032473{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32474echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032475if test "$ac_cv_cxx_namespaces" = yes; then
32476
32477cat >>confdefs.h <<\_ACEOF
32478#define HAVE_NAMESPACES
32479_ACEOF
32480
32481fi
32482
Reid Spencera773bd52006-08-04 18:18:08 +000032483{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32484echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032485if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32487else
32488
Reid Spencera773bd52006-08-04 18:18:08 +000032489 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032490ac_cpp='$CXXCPP $CPPFLAGS'
32491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32494
32495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032501#include <iterator>
32502#ifdef HAVE_NAMESPACES
32503using namespace std;
32504#endif
John Criswell7a73b802003-06-30 21:59:07 +000032505int
32506main ()
32507{
32508iterator<int,int,int> t; return 0;
32509 ;
32510 return 0;
32511}
32512_ACEOF
32513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032514if { (ac_try="$ac_compile"
32515case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32541esac
32542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032547 ac_cv_cxx_have_std_iterator=yes
32548else
32549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032550sed 's/^/| /' conftest.$ac_ext >&5
32551
Reid Spencera773bd52006-08-04 18:18:08 +000032552 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032553fi
Reid Spencera773bd52006-08-04 18:18:08 +000032554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032556 ac_ext=c
32557ac_cpp='$CPP $CPPFLAGS'
32558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562
32563fi
Reid Spencera773bd52006-08-04 18:18:08 +000032564{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32565echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032566if test "$ac_cv_cxx_have_std_iterator" = yes
32567then
John Criswell40468462004-09-24 21:19:06 +000032568
32569cat >>confdefs.h <<\_ACEOF
32570#define HAVE_STD_ITERATOR 1
32571_ACEOF
32572
32573else
32574
32575cat >>confdefs.h <<\_ACEOF
32576#define HAVE_STD_ITERATOR 0
32577_ACEOF
32578
John Criswell7a73b802003-06-30 21:59:07 +000032579fi
32580
Reid Spencera773bd52006-08-04 18:18:08 +000032581{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32582echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032583if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32585else
32586
Reid Spencera773bd52006-08-04 18:18:08 +000032587 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032588ac_cpp='$CXXCPP $CPPFLAGS'
32589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
32593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032594/* confdefs.h. */
32595_ACEOF
32596cat confdefs.h >>conftest.$ac_ext
32597cat >>conftest.$ac_ext <<_ACEOF
32598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032599#include <iterator>
32600#ifdef HAVE_NAMESPACES
32601using namespace std;
32602#endif
John Criswell7a73b802003-06-30 21:59:07 +000032603int
32604main ()
32605{
John Criswellc78022e2003-07-29 19:11:58 +000032606bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032607 ;
32608 return 0;
32609}
32610_ACEOF
32611rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032612if { (ac_try="$ac_compile"
32613case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32616esac
32617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032620 grep -v '^ *+' conftest.er1 >conftest.err
32621 rm -f conftest.er1
32622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032624 (exit $ac_status); } &&
32625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32629esac
32630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
32632 ac_status=$?
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest.$ac_objext'
32636 { (case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_try") 2>&5
32642 ac_status=$?
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032645 ac_cv_cxx_have_bi_iterator=yes
32646else
32647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032648sed 's/^/| /' conftest.$ac_ext >&5
32649
Reid Spencera773bd52006-08-04 18:18:08 +000032650 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032651fi
Reid Spencera773bd52006-08-04 18:18:08 +000032652
32653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032654 ac_ext=c
32655ac_cpp='$CPP $CPPFLAGS'
32656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658ac_compiler_gnu=$ac_cv_c_compiler_gnu
32659
32660
32661fi
Reid Spencera773bd52006-08-04 18:18:08 +000032662{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32663echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032664if test "$ac_cv_cxx_have_bi_iterator" = yes
32665then
John Criswell40468462004-09-24 21:19:06 +000032666
32667cat >>confdefs.h <<\_ACEOF
32668#define HAVE_BI_ITERATOR 1
32669_ACEOF
32670
32671else
32672
32673cat >>confdefs.h <<\_ACEOF
32674#define HAVE_BI_ITERATOR 0
32675_ACEOF
32676
John Criswell7a73b802003-06-30 21:59:07 +000032677fi
32678
Reid Spencera773bd52006-08-04 18:18:08 +000032679{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32680echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032681if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32683else
32684
Reid Spencera773bd52006-08-04 18:18:08 +000032685 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032686ac_cpp='$CXXCPP $CPPFLAGS'
32687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32690
32691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032692/* confdefs.h. */
32693_ACEOF
32694cat confdefs.h >>conftest.$ac_ext
32695cat >>conftest.$ac_ext <<_ACEOF
32696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032697#include <iterator>
32698#ifdef HAVE_NAMESPACES
32699using namespace std;
32700#endif
John Criswell7a73b802003-06-30 21:59:07 +000032701int
32702main ()
32703{
John Criswellc78022e2003-07-29 19:11:58 +000032704forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032705 ;
32706 return 0;
32707}
32708_ACEOF
32709rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032710if { (ac_try="$ac_compile"
32711case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32714esac
32715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032718 grep -v '^ *+' conftest.er1 >conftest.err
32719 rm -f conftest.er1
32720 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032722 (exit $ac_status); } &&
32723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32724 { (case "(($ac_try" in
32725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726 *) ac_try_echo=$ac_try;;
32727esac
32728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729 (eval "$ac_try") 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest.$ac_objext'
32734 { (case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32737esac
32738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_try") 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032743 ac_cv_cxx_have_fwd_iterator=yes
32744else
32745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032746sed 's/^/| /' conftest.$ac_ext >&5
32747
Reid Spencera773bd52006-08-04 18:18:08 +000032748 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032749fi
Reid Spencera773bd52006-08-04 18:18:08 +000032750
32751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032752 ac_ext=c
32753ac_cpp='$CPP $CPPFLAGS'
32754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32756ac_compiler_gnu=$ac_cv_c_compiler_gnu
32757
32758
32759fi
Reid Spencera773bd52006-08-04 18:18:08 +000032760{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32761echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032762if test "$ac_cv_cxx_have_fwd_iterator" = yes
32763then
John Criswell40468462004-09-24 21:19:06 +000032764
32765cat >>confdefs.h <<\_ACEOF
32766#define HAVE_FWD_ITERATOR 1
32767_ACEOF
32768
32769else
32770
32771cat >>confdefs.h <<\_ACEOF
32772#define HAVE_FWD_ITERATOR 0
32773_ACEOF
32774
John Criswell7a73b802003-06-30 21:59:07 +000032775fi
32776
32777
Reid Spencera773bd52006-08-04 18:18:08 +000032778{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32779echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032780if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32782else
Reid Spencera773bd52006-08-04 18:18:08 +000032783 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032784ac_cpp='$CXXCPP $CPPFLAGS'
32785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32788
Reid Spencerabec8f92004-10-27 23:03:44 +000032789 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032790/* confdefs.h. */
32791_ACEOF
32792cat confdefs.h >>conftest.$ac_ext
32793cat >>conftest.$ac_ext <<_ACEOF
32794/* end confdefs.h. */
32795#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032796int
32797main ()
32798{
32799float f; isnan(f);
32800 ;
32801 return 0;
32802}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032803_ACEOF
32804rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032805if { (ac_try="$ac_compile"
32806case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32809esac
32810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032813 grep -v '^ *+' conftest.er1 >conftest.err
32814 rm -f conftest.er1
32815 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32822esac
32823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032838 ac_cv_func_isnan_in_math_h=yes
32839else
32840 echo "$as_me: failed program was:" >&5
32841sed 's/^/| /' conftest.$ac_ext >&5
32842
Reid Spencera773bd52006-08-04 18:18:08 +000032843 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032844fi
Reid Spencera773bd52006-08-04 18:18:08 +000032845
32846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032847 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032848ac_cpp='$CPP $CPPFLAGS'
32849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851ac_compiler_gnu=$ac_cv_c_compiler_gnu
32852
32853fi
Reid Spencera773bd52006-08-04 18:18:08 +000032854{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32855echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032856
32857
32858if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032859
32860cat >>confdefs.h <<\_ACEOF
32861#define HAVE_ISNAN_IN_MATH_H 1
32862_ACEOF
32863
Reid Spencerabec8f92004-10-27 23:03:44 +000032864fi
32865
Reid Spencera773bd52006-08-04 18:18:08 +000032866{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32867echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032868if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32869 echo $ECHO_N "(cached) $ECHO_C" >&6
32870else
Reid Spencera773bd52006-08-04 18:18:08 +000032871 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032872ac_cpp='$CXXCPP $CPPFLAGS'
32873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32876
Reid Spencerabec8f92004-10-27 23:03:44 +000032877 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032878/* confdefs.h. */
32879_ACEOF
32880cat confdefs.h >>conftest.$ac_ext
32881cat >>conftest.$ac_ext <<_ACEOF
32882/* end confdefs.h. */
32883#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032884int
32885main ()
32886{
32887float f; isnan(f);
32888 ;
32889 return 0;
32890}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032891_ACEOF
32892rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032893if { (ac_try="$ac_compile"
32894case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32897esac
32898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032900 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032901 grep -v '^ *+' conftest.er1 >conftest.err
32902 rm -f conftest.er1
32903 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032905 (exit $ac_status); } &&
32906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32907 { (case "(($ac_try" in
32908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32910esac
32911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912 (eval "$ac_try") 2>&5
32913 ac_status=$?
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest.$ac_objext'
32917 { (case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32920esac
32921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_try") 2>&5
32923 ac_status=$?
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032926 ac_cv_func_isnan_in_cmath=yes
32927else
32928 echo "$as_me: failed program was:" >&5
32929sed 's/^/| /' conftest.$ac_ext >&5
32930
Reid Spencera773bd52006-08-04 18:18:08 +000032931 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032932fi
Reid Spencera773bd52006-08-04 18:18:08 +000032933
32934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032935 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032936ac_cpp='$CPP $CPPFLAGS'
32937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32939ac_compiler_gnu=$ac_cv_c_compiler_gnu
32940
32941fi
Reid Spencera773bd52006-08-04 18:18:08 +000032942{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32943echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032944
32945if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032946
32947cat >>confdefs.h <<\_ACEOF
32948#define HAVE_ISNAN_IN_CMATH 1
32949_ACEOF
32950
Reid Spencerabec8f92004-10-27 23:03:44 +000032951fi
32952
Reid Spencera773bd52006-08-04 18:18:08 +000032953{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32954echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032955if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957else
Reid Spencera773bd52006-08-04 18:18:08 +000032958 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032959ac_cpp='$CXXCPP $CPPFLAGS'
32960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32963
Reid Spencerabec8f92004-10-27 23:03:44 +000032964 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032965/* confdefs.h. */
32966_ACEOF
32967cat confdefs.h >>conftest.$ac_ext
32968cat >>conftest.$ac_ext <<_ACEOF
32969/* end confdefs.h. */
32970#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032971int
32972main ()
32973{
32974float f; std::isnan(f);
32975 ;
32976 return 0;
32977}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032978_ACEOF
32979rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032980if { (ac_try="$ac_compile"
32981case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032988 grep -v '^ *+' conftest.er1 >conftest.err
32989 rm -f conftest.er1
32990 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32997esac
32998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33000 ac_status=$?
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; } &&
33003 { ac_try='test -s conftest.$ac_objext'
33004 { (case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33007esac
33008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_try") 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033013 ac_cv_func_std_isnan_in_cmath=yes
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
Reid Spencera773bd52006-08-04 18:18:08 +000033018 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033019fi
Reid Spencera773bd52006-08-04 18:18:08 +000033020
33021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033022 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033023ac_cpp='$CPP $CPPFLAGS'
33024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026ac_compiler_gnu=$ac_cv_c_compiler_gnu
33027
33028fi
Reid Spencera773bd52006-08-04 18:18:08 +000033029{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33030echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033031
33032if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033033
33034cat >>confdefs.h <<\_ACEOF
33035#define HAVE_STD_ISNAN_IN_CMATH 1
33036_ACEOF
33037
Reid Spencerabec8f92004-10-27 23:03:44 +000033038fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033039
33040
Reid Spencera773bd52006-08-04 18:18:08 +000033041{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33042echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033043if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33045else
Reid Spencera773bd52006-08-04 18:18:08 +000033046 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033047ac_cpp='$CXXCPP $CPPFLAGS'
33048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33051
Reid Spencerabec8f92004-10-27 23:03:44 +000033052 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033053/* confdefs.h. */
33054_ACEOF
33055cat confdefs.h >>conftest.$ac_ext
33056cat >>conftest.$ac_ext <<_ACEOF
33057/* end confdefs.h. */
33058#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033059int
33060main ()
33061{
33062float f; isinf(f);
33063 ;
33064 return 0;
33065}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033066_ACEOF
33067rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033068if { (ac_try="$ac_compile"
33069case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33072esac
33073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033076 grep -v '^ *+' conftest.er1 >conftest.err
33077 rm -f conftest.er1
33078 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033101 ac_cv_func_isinf_in_math_h=yes
33102else
33103 echo "$as_me: failed program was:" >&5
33104sed 's/^/| /' conftest.$ac_ext >&5
33105
Reid Spencera773bd52006-08-04 18:18:08 +000033106 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033107fi
Reid Spencera773bd52006-08-04 18:18:08 +000033108
33109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033110 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033111ac_cpp='$CPP $CPPFLAGS'
33112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33114ac_compiler_gnu=$ac_cv_c_compiler_gnu
33115
33116fi
Reid Spencera773bd52006-08-04 18:18:08 +000033117{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33118echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033119
33120if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033121
33122cat >>confdefs.h <<\_ACEOF
33123#define HAVE_ISINF_IN_MATH_H 1
33124_ACEOF
33125
Reid Spencerabec8f92004-10-27 23:03:44 +000033126fi
33127
Reid Spencera773bd52006-08-04 18:18:08 +000033128{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33129echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033130if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33131 echo $ECHO_N "(cached) $ECHO_C" >&6
33132else
Reid Spencera773bd52006-08-04 18:18:08 +000033133 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033134ac_cpp='$CXXCPP $CPPFLAGS'
33135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33138
Reid Spencerabec8f92004-10-27 23:03:44 +000033139 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033140/* confdefs.h. */
33141_ACEOF
33142cat confdefs.h >>conftest.$ac_ext
33143cat >>conftest.$ac_ext <<_ACEOF
33144/* end confdefs.h. */
33145#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033146int
33147main ()
33148{
33149float f; isinf(f);
33150 ;
33151 return 0;
33152}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033153_ACEOF
33154rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033155if { (ac_try="$ac_compile"
33156case "(($ac_try" in
33157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158 *) ac_try_echo=$ac_try;;
33159esac
33160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33161 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033162 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033163 grep -v '^ *+' conftest.er1 >conftest.err
33164 rm -f conftest.er1
33165 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033167 (exit $ac_status); } &&
33168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33169 { (case "(($ac_try" in
33170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171 *) ac_try_echo=$ac_try;;
33172esac
33173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174 (eval "$ac_try") 2>&5
33175 ac_status=$?
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; } &&
33178 { ac_try='test -s conftest.$ac_objext'
33179 { (case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33182esac
33183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_try") 2>&5
33185 ac_status=$?
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033188 ac_cv_func_isinf_in_cmath=yes
33189else
33190 echo "$as_me: failed program was:" >&5
33191sed 's/^/| /' conftest.$ac_ext >&5
33192
Reid Spencera773bd52006-08-04 18:18:08 +000033193 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033194fi
Reid Spencera773bd52006-08-04 18:18:08 +000033195
33196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033197 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033198ac_cpp='$CPP $CPPFLAGS'
33199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33201ac_compiler_gnu=$ac_cv_c_compiler_gnu
33202
33203fi
Reid Spencera773bd52006-08-04 18:18:08 +000033204{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33205echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033206
33207if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033208
33209cat >>confdefs.h <<\_ACEOF
33210#define HAVE_ISINF_IN_CMATH 1
33211_ACEOF
33212
Reid Spencerabec8f92004-10-27 23:03:44 +000033213fi
33214
Reid Spencera773bd52006-08-04 18:18:08 +000033215{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33216echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033217if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219else
Reid Spencera773bd52006-08-04 18:18:08 +000033220 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033221ac_cpp='$CXXCPP $CPPFLAGS'
33222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33225
Reid Spencerabec8f92004-10-27 23:03:44 +000033226 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033227/* confdefs.h. */
33228_ACEOF
33229cat confdefs.h >>conftest.$ac_ext
33230cat >>conftest.$ac_ext <<_ACEOF
33231/* end confdefs.h. */
33232#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033233int
33234main ()
33235{
33236float f; std::isinf(f)}
33237 ;
33238 return 0;
33239}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033240_ACEOF
33241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033242if { (ac_try="$ac_compile"
33243case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033250 grep -v '^ *+' conftest.er1 >conftest.err
33251 rm -f conftest.er1
33252 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259esac
33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033275 ac_cv_func_std_isinf_in_cmath=yes
33276else
33277 echo "$as_me: failed program was:" >&5
33278sed 's/^/| /' conftest.$ac_ext >&5
33279
Reid Spencera773bd52006-08-04 18:18:08 +000033280 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033281fi
Reid Spencera773bd52006-08-04 18:18:08 +000033282
33283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033284 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033285ac_cpp='$CPP $CPPFLAGS'
33286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288ac_compiler_gnu=$ac_cv_c_compiler_gnu
33289
33290fi
Reid Spencera773bd52006-08-04 18:18:08 +000033291{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33292echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033293
33294if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033295
33296cat >>confdefs.h <<\_ACEOF
33297#define HAVE_STD_ISINF_IN_CMATH 1
33298_ACEOF
33299
Reid Spencerabec8f92004-10-27 23:03:44 +000033300fi
33301
Reid Spencera773bd52006-08-04 18:18:08 +000033302{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33303echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033304if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
Reid Spencera773bd52006-08-04 18:18:08 +000033307 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033308ac_cpp='$CXXCPP $CPPFLAGS'
33309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33312
Reid Spencerabec8f92004-10-27 23:03:44 +000033313 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033314/* confdefs.h. */
33315_ACEOF
33316cat confdefs.h >>conftest.$ac_ext
33317cat >>conftest.$ac_ext <<_ACEOF
33318/* end confdefs.h. */
33319#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033320int
33321main ()
33322{
33323float f; finite(f);
33324 ;
33325 return 0;
33326}
Brian Gaeked59a6472004-07-21 03:33:58 +000033327_ACEOF
33328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033329if { (ac_try="$ac_compile"
33330case "(($ac_try" in
33331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332 *) ac_try_echo=$ac_try;;
33333esac
33334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033337 grep -v '^ *+' conftest.er1 >conftest.err
33338 rm -f conftest.er1
33339 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033341 (exit $ac_status); } &&
33342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33346esac
33347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; } &&
33352 { ac_try='test -s conftest.$ac_objext'
33353 { (case "(($ac_try" in
33354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355 *) ac_try_echo=$ac_try;;
33356esac
33357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358 (eval "$ac_try") 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033362 ac_cv_func_finite_in_ieeefp_h=yes
33363else
33364 echo "$as_me: failed program was:" >&5
33365sed 's/^/| /' conftest.$ac_ext >&5
33366
Reid Spencera773bd52006-08-04 18:18:08 +000033367 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033368fi
Reid Spencera773bd52006-08-04 18:18:08 +000033369
33370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033371 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033372ac_cpp='$CPP $CPPFLAGS'
33373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33375ac_compiler_gnu=$ac_cv_c_compiler_gnu
33376
33377fi
Reid Spencera773bd52006-08-04 18:18:08 +000033378{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33379echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033380
Brian Gaeke6802b552004-10-28 05:06:45 +000033381if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033382
33383cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033384#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033385_ACEOF
33386
Reid Spencerabec8f92004-10-27 23:03:44 +000033387fi
33388
33389
33390
Reid Spencer30fe5262007-01-20 07:48:49 +000033391if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033392
33393
33394for ac_header in stdlib.h unistd.h
33395do
33396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033401 echo $ECHO_N "(cached) $ECHO_C" >&6
33402fi
Reid Spencera773bd52006-08-04 18:18:08 +000033403ac_res=`eval echo '${'$as_ac_Header'}'`
33404 { echo "$as_me:$LINENO: result: $ac_res" >&5
33405echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033406else
33407 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033410cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033411/* confdefs.h. */
33412_ACEOF
33413cat confdefs.h >>conftest.$ac_ext
33414cat >>conftest.$ac_ext <<_ACEOF
33415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033416$ac_includes_default
33417#include <$ac_header>
33418_ACEOF
33419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033420if { (ac_try="$ac_compile"
33421case "(($ac_try" in
33422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33423 *) ac_try_echo=$ac_try;;
33424esac
33425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33426 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033428 grep -v '^ *+' conftest.er1 >conftest.err
33429 rm -f conftest.er1
33430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033432 (exit $ac_status); } &&
33433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33434 { (case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33437esac
33438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_try") 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; } &&
33443 { ac_try='test -s conftest.$ac_objext'
33444 { (case "(($ac_try" in
33445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446 *) ac_try_echo=$ac_try;;
33447esac
33448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449 (eval "$ac_try") 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033453 ac_header_compiler=yes
33454else
33455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033456sed 's/^/| /' conftest.$ac_ext >&5
33457
Reid Spencera773bd52006-08-04 18:18:08 +000033458 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033459fi
Reid Spencera773bd52006-08-04 18:18:08 +000033460
33461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33463echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033464
33465# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033468cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033469/* confdefs.h. */
33470_ACEOF
33471cat confdefs.h >>conftest.$ac_ext
33472cat >>conftest.$ac_ext <<_ACEOF
33473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033474#include <$ac_header>
33475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033476if { (ac_try="$ac_cpp conftest.$ac_ext"
33477case "(($ac_try" in
33478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33479 *) ac_try_echo=$ac_try;;
33480esac
33481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033483 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033484 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033485 rm -f conftest.er1
33486 cat conftest.err >&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033488 (exit $ac_status); } >/dev/null; then
33489 if test -s conftest.err; then
33490 ac_cpp_err=$ac_c_preproc_warn_flag
33491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33492 else
33493 ac_cpp_err=
33494 fi
33495else
33496 ac_cpp_err=yes
33497fi
33498if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033499 ac_header_preproc=yes
33500else
33501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033502sed 's/^/| /' conftest.$ac_ext >&5
33503
John Criswell7a73b802003-06-30 21:59:07 +000033504 ac_header_preproc=no
33505fi
Reid Spencera773bd52006-08-04 18:18:08 +000033506
John Criswell7a73b802003-06-30 21:59:07 +000033507rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33509echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033510
33511# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33513 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33518 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033519 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033520 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033533 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033534## ----------------------------------- ##
33535## Report this to llvmbugs@cs.uiuc.edu ##
33536## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033537_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033538 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033539 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033540esac
Reid Spencera773bd52006-08-04 18:18:08 +000033541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033544 echo $ECHO_N "(cached) $ECHO_C" >&6
33545else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033546 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033547fi
Reid Spencera773bd52006-08-04 18:18:08 +000033548ac_res=`eval echo '${'$as_ac_Header'}'`
33549 { echo "$as_me:$LINENO: result: $ac_res" >&5
33550echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033551
33552fi
33553if test `eval echo '${'$as_ac_Header'}'` = yes; then
33554 cat >>confdefs.h <<_ACEOF
33555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33556_ACEOF
33557
33558fi
33559
33560done
33561
33562
33563for ac_func in getpagesize
33564do
33565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570else
33571 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33579#define $ac_func innocuous_$ac_func
33580
John Criswell7a73b802003-06-30 21:59:07 +000033581/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033585
John Criswell0c38eaf2003-09-10 15:17:25 +000033586#ifdef __STDC__
33587# include <limits.h>
33588#else
33589# include <assert.h>
33590#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033591
33592#undef $ac_func
33593
Reid Spencera773bd52006-08-04 18:18:08 +000033594/* Override any GCC internal prototype to avoid an error.
33595 Use char because int might match the return type of a GCC
33596 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033597#ifdef __cplusplus
33598extern "C"
33599#endif
John Criswell7a73b802003-06-30 21:59:07 +000033600char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033601/* The GNU C library defines this for functions which it implements
33602 to always fail with ENOSYS. Some functions are actually named
33603 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033604#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033605choke me
John Criswell7a73b802003-06-30 21:59:07 +000033606#endif
33607
John Criswell0c38eaf2003-09-10 15:17:25 +000033608int
33609main ()
33610{
Reid Spencera773bd52006-08-04 18:18:08 +000033611return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033612 ;
33613 return 0;
33614}
33615_ACEOF
33616rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033617if { (ac_try="$ac_link"
33618case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621esac
33622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634esac
33635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest$ac_exeext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033650 eval "$as_ac_var=yes"
33651else
33652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033653sed 's/^/| /' conftest.$ac_ext >&5
33654
Reid Spencera773bd52006-08-04 18:18:08 +000033655 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033656fi
Reid Spencera773bd52006-08-04 18:18:08 +000033657
Bill Wendlingebcceee2009-04-18 11:20:33 +000033658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033659 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033660fi
Reid Spencera773bd52006-08-04 18:18:08 +000033661ac_res=`eval echo '${'$as_ac_var'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033664if test `eval echo '${'$as_ac_var'}'` = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33667_ACEOF
33668
33669fi
33670done
33671
Reid Spencera773bd52006-08-04 18:18:08 +000033672{ echo "$as_me:$LINENO: checking for working mmap" >&5
33673echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033674if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33676else
33677 if test "$cross_compiling" = yes; then
33678 ac_cv_func_mmap_fixed_mapped=no
33679else
33680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033681/* confdefs.h. */
33682_ACEOF
33683cat confdefs.h >>conftest.$ac_ext
33684cat >>conftest.$ac_ext <<_ACEOF
33685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033686$ac_includes_default
33687/* malloc might have been renamed as rpl_malloc. */
33688#undef malloc
33689
33690/* Thanks to Mike Haertel and Jim Avera for this test.
33691 Here is a matrix of mmap possibilities:
33692 mmap private not fixed
33693 mmap private fixed at somewhere currently unmapped
33694 mmap private fixed at somewhere already mapped
33695 mmap shared not fixed
33696 mmap shared fixed at somewhere currently unmapped
33697 mmap shared fixed at somewhere already mapped
33698 For private mappings, we should verify that changes cannot be read()
33699 back from the file, nor mmap's back from the file at a different
33700 address. (There have been systems where private was not correctly
33701 implemented like the infamous i386 svr4.0, and systems where the
33702 VM page cache was not coherent with the file system buffer cache
33703 like early versions of FreeBSD and possibly contemporary NetBSD.)
33704 For shared mappings, we should conversely verify that changes get
33705 propagated back to all the places they're supposed to be.
33706
33707 Grep wants private fixed already mapped.
33708 The main things grep needs to know about mmap are:
33709 * does it exist and is it safe to write into the mmap'd area
33710 * how to use it (BSD variants) */
33711
33712#include <fcntl.h>
33713#include <sys/mman.h>
33714
Bill Wendlingebcceee2009-04-18 11:20:33 +000033715#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033716char *malloc ();
33717#endif
33718
33719/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033720#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033721/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033722# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033723# define HAVE_SYS_PARAM_H 1
33724# endif
33725
33726# ifdef _SC_PAGESIZE
33727# define getpagesize() sysconf(_SC_PAGESIZE)
33728# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033729# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033730# include <sys/param.h>
33731# ifdef EXEC_PAGESIZE
33732# define getpagesize() EXEC_PAGESIZE
33733# else /* no EXEC_PAGESIZE */
33734# ifdef NBPG
33735# define getpagesize() NBPG * CLSIZE
33736# ifndef CLSIZE
33737# define CLSIZE 1
33738# endif /* no CLSIZE */
33739# else /* no NBPG */
33740# ifdef NBPC
33741# define getpagesize() NBPC
33742# else /* no NBPC */
33743# ifdef PAGESIZE
33744# define getpagesize() PAGESIZE
33745# endif /* PAGESIZE */
33746# endif /* no NBPC */
33747# endif /* no NBPG */
33748# endif /* no EXEC_PAGESIZE */
33749# else /* no HAVE_SYS_PARAM_H */
33750# define getpagesize() 8192 /* punt totally */
33751# endif /* no HAVE_SYS_PARAM_H */
33752# endif /* no _SC_PAGESIZE */
33753
33754#endif /* no HAVE_GETPAGESIZE */
33755
33756int
33757main ()
33758{
33759 char *data, *data2, *data3;
33760 int i, pagesize;
33761 int fd;
33762
33763 pagesize = getpagesize ();
33764
33765 /* First, make a file with some known garbage in it. */
33766 data = (char *) malloc (pagesize);
33767 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033768 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033769 for (i = 0; i < pagesize; ++i)
33770 *(data + i) = rand ();
33771 umask (0);
33772 fd = creat ("conftest.mmap", 0600);
33773 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033774 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033775 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033776 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033777 close (fd);
33778
33779 /* Next, try to mmap the file at a fixed address which already has
33780 something else allocated at it. If we can, also make sure that
33781 we see the same garbage. */
33782 fd = open ("conftest.mmap", O_RDWR);
33783 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033784 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033785 data2 = (char *) malloc (2 * pagesize);
33786 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033787 return 1;
33788 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033789 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033790 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033791 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033792 for (i = 0; i < pagesize; ++i)
33793 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033794 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033795
33796 /* Finally, make sure that changes to the mapped area do not
33797 percolate back to the file as seen by read(). (This is a bug on
33798 some variants of i386 svr4.0.) */
33799 for (i = 0; i < pagesize; ++i)
33800 *(data2 + i) = *(data2 + i) + 1;
33801 data3 = (char *) malloc (pagesize);
33802 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033803 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033804 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033805 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033806 for (i = 0; i < pagesize; ++i)
33807 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033808 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033809 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033810 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033811}
33812_ACEOF
33813rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033814if { (ac_try="$ac_link"
33815case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33818esac
33819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033824 { (case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827esac
33828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 ac_cv_func_mmap_fixed_mapped=yes
33834else
33835 echo "$as_me: program exited with status $ac_status" >&5
33836echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033837sed 's/^/| /' conftest.$ac_ext >&5
33838
John Criswell7a73b802003-06-30 21:59:07 +000033839( exit $ac_status )
33840ac_cv_func_mmap_fixed_mapped=no
33841fi
Reid Spencera773bd52006-08-04 18:18:08 +000033842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033843fi
Reid Spencera773bd52006-08-04 18:18:08 +000033844
33845
John Criswell7a73b802003-06-30 21:59:07 +000033846fi
Reid Spencera773bd52006-08-04 18:18:08 +000033847{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33848echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033849if test $ac_cv_func_mmap_fixed_mapped = yes; then
33850
33851cat >>confdefs.h <<\_ACEOF
33852#define HAVE_MMAP 1
33853_ACEOF
33854
33855fi
33856rm -f conftest.mmap
33857
Reid Spencer30fe5262007-01-20 07:48:49 +000033858 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033859echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033860if test "${ac_cv_func_mmap_file+set}" = set; then
33861 echo $ECHO_N "(cached) $ECHO_C" >&6
33862else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033863 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033864ac_cpp='$CPP $CPPFLAGS'
33865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33867ac_compiler_gnu=$ac_cv_c_compiler_gnu
33868
33869 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033870 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033871else
33872 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033873
Reid Spencer777ce172004-09-20 04:09:56 +000033874 /* confdefs.h. */
33875_ACEOF
33876cat confdefs.h >>conftest.$ac_ext
33877cat >>conftest.$ac_ext <<_ACEOF
33878/* end confdefs.h. */
33879
John Criswell7a73b802003-06-30 21:59:07 +000033880#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033881#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033882#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033883
33884int
33885main ()
33886{
John Criswell7a73b802003-06-30 21:59:07 +000033887
33888 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033889 fd = creat ("foo",0777);
33890 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33891 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033892 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033893 ;
33894 return 0;
33895}
John Criswell7a73b802003-06-30 21:59:07 +000033896_ACEOF
33897rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033898if { (ac_try="$ac_link"
33899case "(($ac_try" in
33900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33901 *) ac_try_echo=$ac_try;;
33902esac
33903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33904 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033905 ac_status=$?
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033908 { (case "(($ac_try" in
33909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910 *) ac_try_echo=$ac_try;;
33911esac
33912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33913 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033914 ac_status=$?
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); }; }; then
33917 ac_cv_func_mmap_file=yes
33918else
33919 echo "$as_me: program exited with status $ac_status" >&5
33920echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033921sed 's/^/| /' conftest.$ac_ext >&5
33922
John Criswell7a73b802003-06-30 21:59:07 +000033923( exit $ac_status )
33924ac_cv_func_mmap_file=no
33925fi
Reid Spencera773bd52006-08-04 18:18:08 +000033926rm -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 +000033927fi
Reid Spencera773bd52006-08-04 18:18:08 +000033928
33929
John Criswell7a73b802003-06-30 21:59:07 +000033930 ac_ext=c
33931ac_cpp='$CPP $CPPFLAGS'
33932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33934ac_compiler_gnu=$ac_cv_c_compiler_gnu
33935
33936
33937fi
Reid Spencera773bd52006-08-04 18:18:08 +000033938{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33939echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033940if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033941
33942cat >>confdefs.h <<\_ACEOF
33943#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033944_ACEOF
33945
33946 MMAP_FILE=yes
33947
33948fi
33949
Reid Spencer30fe5262007-01-20 07:48:49 +000033950 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033951echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033952if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33953 echo $ECHO_N "(cached) $ECHO_C" >&6
33954else
Reid Spencer582a23c2004-12-29 07:07:57 +000033955 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033956 ac_cv_need_dev_zero_for_mmap=yes
33957 else
33958 ac_cv_need_dev_zero_for_mmap=no
33959 fi
33960
33961fi
Reid Spencera773bd52006-08-04 18:18:08 +000033962{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33963echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033964if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33965
33966cat >>confdefs.h <<\_ACEOF
33967#define NEED_DEV_ZERO_FOR_MMAP 1
33968_ACEOF
33969
33970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033971
Reid Spencer30fe5262007-01-20 07:48:49 +000033972 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33973 then
33974 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033975echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033976 fi
33977 if test "$ac_cv_func_mmap_file" = "no"
33978 then
33979 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033980echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033981 fi
John Criswellb13092b2003-07-22 21:00:24 +000033982fi
John Criswell7a73b802003-06-30 21:59:07 +000033983
Owen Andersona8603702009-05-19 22:18:56 +000033984{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000033985echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033986cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000033987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992int main() {
Owen Andersona8603702009-05-19 22:18:56 +000033993 volatile unsigned long val = 1;
33994 __sync_synchronize();
33995 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000033996 __sync_add_and_fetch(&val, 1);
33997 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000033998 return 0;
33999 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034000
34001_ACEOF
34002rm -f conftest.$ac_objext conftest$ac_exeext
34003if { (ac_try="$ac_link"
34004case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34007esac
34008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_link") 2>conftest.er1
34010 ac_status=$?
34011 grep -v '^ *+' conftest.er1 >conftest.err
34012 rm -f conftest.er1
34013 cat conftest.err >&5
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
34016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34020esac
34021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; } &&
34026 { ac_try='test -s conftest$ac_exeext'
34027 { (case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34030esac
34031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_try") 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 { echo "$as_me:$LINENO: result: yes" >&5
34037echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034038
34039cat >>confdefs.h <<\_ACEOF
34040#define LLVM_MULTITHREADED 1
34041_ACEOF
34042
Owen Andersond4b272b2009-05-18 23:58:51 +000034043else
34044 echo "$as_me: failed program was:" >&5
34045sed 's/^/| /' conftest.$ac_ext >&5
34046
34047 { echo "$as_me:$LINENO: result: no" >&5
34048echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034049
Owen Andersona8603702009-05-19 22:18:56 +000034050cat >>confdefs.h <<\_ACEOF
34051#define LLVM_MULTITHREADED 0
34052_ACEOF
34053
34054 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34055echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034056fi
34057
34058rm -f core conftest.err conftest.$ac_objext \
34059 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034060
34061
John Criswell7a73b802003-06-30 21:59:07 +000034062
Reid Spencer9372f152007-07-30 20:13:24 +000034063
34064for ac_func in __dso_handle
34065do
34066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34067{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34069if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34071else
34072 cat >conftest.$ac_ext <<_ACEOF
34073/* confdefs.h. */
34074_ACEOF
34075cat confdefs.h >>conftest.$ac_ext
34076cat >>conftest.$ac_ext <<_ACEOF
34077/* end confdefs.h. */
34078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34080#define $ac_func innocuous_$ac_func
34081
34082/* System header to define __stub macros and hopefully few prototypes,
34083 which can conflict with char $ac_func (); below.
34084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34085 <limits.h> exists even on freestanding compilers. */
34086
34087#ifdef __STDC__
34088# include <limits.h>
34089#else
34090# include <assert.h>
34091#endif
34092
34093#undef $ac_func
34094
34095/* Override any GCC internal prototype to avoid an error.
34096 Use char because int might match the return type of a GCC
34097 builtin and then its argument prototype would still apply. */
34098#ifdef __cplusplus
34099extern "C"
34100#endif
34101char $ac_func ();
34102/* The GNU C library defines this for functions which it implements
34103 to always fail with ENOSYS. Some functions are actually named
34104 something starting with __ and the normal name is an alias. */
34105#if defined __stub_$ac_func || defined __stub___$ac_func
34106choke me
34107#endif
34108
34109int
34110main ()
34111{
34112return $ac_func ();
34113 ;
34114 return 0;
34115}
34116_ACEOF
34117rm -f conftest.$ac_objext conftest$ac_exeext
34118if { (ac_try="$ac_link"
34119case "(($ac_try" in
34120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121 *) ac_try_echo=$ac_try;;
34122esac
34123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124 (eval "$ac_link") 2>conftest.er1
34125 ac_status=$?
34126 grep -v '^ *+' conftest.er1 >conftest.err
34127 rm -f conftest.er1
34128 cat conftest.err >&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034130 (exit $ac_status); } &&
34131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34132 { (case "(($ac_try" in
34133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134 *) ac_try_echo=$ac_try;;
34135esac
34136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137 (eval "$ac_try") 2>&5
34138 ac_status=$?
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
34142 { (case "(($ac_try" in
34143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144 *) ac_try_echo=$ac_try;;
34145esac
34146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147 (eval "$ac_try") 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034151 eval "$as_ac_var=yes"
34152else
34153 echo "$as_me: failed program was:" >&5
34154sed 's/^/| /' conftest.$ac_ext >&5
34155
34156 eval "$as_ac_var=no"
34157fi
34158
Bill Wendlingebcceee2009-04-18 11:20:33 +000034159rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034160 conftest$ac_exeext conftest.$ac_ext
34161fi
34162ac_res=`eval echo '${'$as_ac_var'}'`
34163 { echo "$as_me:$LINENO: result: $ac_res" >&5
34164echo "${ECHO_T}$ac_res" >&6; }
34165if test `eval echo '${'$as_ac_var'}'` = yes; then
34166 cat >>confdefs.h <<_ACEOF
34167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34168_ACEOF
34169
34170fi
34171done
34172
34173
Reid Spencera773bd52006-08-04 18:18:08 +000034174{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34175echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034176if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34177 echo $ECHO_N "(cached) $ECHO_C" >&6
34178else
34179 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034180if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034181 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034182 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34183 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034184 if test $? -eq 0 ; then
34185 llvm_cv_llvmgcc_sanity="yes"
34186 fi
34187 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034188fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034189fi
Reid Spencera773bd52006-08-04 18:18:08 +000034190{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34191echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034192
34193if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034194 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34195echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034196 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034197 LLVMCC1=$llvmcc1path
34198
Reid Spencer502935f2004-12-22 05:56:56 +000034199 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034200 LLVMCC1PLUS=$llvmcc1pluspath
34201
Reid Spencer502935f2004-12-22 05:56:56 +000034202 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34203 LLVMGCCDIR=$llvmgccdir
34204
Reid Spencer282d8c12006-12-21 22:55:41 +000034205 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34206 LLVMGCCLIBEXEC=$llvmgcclibexec
34207
Reid Spencerb5d75b82006-05-09 00:31:01 +000034208 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034209 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34210 LLVMGCC_VERSION=$llvmgccversion
34211
34212 LLVMGCC_MAJVERS=$llvmgccmajvers
34213
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034214 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034215 LLVMGCC_LANGS=$llvmgcclangs
34216
34217 { echo "$as_me:$LINENO: result: ok" >&5
34218echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034219fi
34220
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034221SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034222
34223
Reid Spencere9de0912004-08-20 09:03:57 +000034224# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034225# information into substitutions that will end up in Makefile.config.in
34226# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034227if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034228 prefix="/usr/local"
34229fi
Reid Spencere9de0912004-08-20 09:03:57 +000034230eval LLVM_PREFIX="${prefix}";
34231eval LLVM_BINDIR="${prefix}/bin";
34232eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034233eval LLVM_DATADIR="${prefix}/share/llvm";
34234eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34235eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034236eval LLVM_INCLUDEDIR="${prefix}/include";
34237eval LLVM_INFODIR="${prefix}/info";
34238eval LLVM_MANDIR="${prefix}/man";
34239LLVM_CONFIGTIME=`date`
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034251# Place the various directores into the config.h file as #defines so that we
34252# can know about the installation paths within LLVM.
34253
Reid Spencere9de0912004-08-20 09:03:57 +000034254cat >>confdefs.h <<_ACEOF
34255#define LLVM_PREFIX "$LLVM_PREFIX"
34256_ACEOF
34257
34258
34259cat >>confdefs.h <<_ACEOF
34260#define LLVM_BINDIR "$LLVM_BINDIR"
34261_ACEOF
34262
34263
34264cat >>confdefs.h <<_ACEOF
34265#define LLVM_LIBDIR "$LLVM_LIBDIR"
34266_ACEOF
34267
34268
34269cat >>confdefs.h <<_ACEOF
34270#define LLVM_DATADIR "$LLVM_DATADIR"
34271_ACEOF
34272
34273
34274cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034275#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034276_ACEOF
34277
34278
34279cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034280#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034281_ACEOF
34282
34283
34284cat >>confdefs.h <<_ACEOF
34285#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34286_ACEOF
34287
34288
34289cat >>confdefs.h <<_ACEOF
34290#define LLVM_INFODIR "$LLVM_INFODIR"
34291_ACEOF
34292
34293
34294cat >>confdefs.h <<_ACEOF
34295#define LLVM_MANDIR "$LLVM_MANDIR"
34296_ACEOF
34297
34298
34299cat >>confdefs.h <<_ACEOF
34300#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34301_ACEOF
34302
34303
Eric Christopher790e11c2007-12-01 00:34:39 +000034304cat >>confdefs.h <<_ACEOF
34305#define LLVM_HOSTTRIPLE "$host"
34306_ACEOF
34307
34308
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034309# Determine which bindings to build.
34310if test "$BINDINGS_TO_BUILD" = auto ; then
34311 BINDINGS_TO_BUILD=""
34312 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34313 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34314 fi
34315fi
34316BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34317
34318
34319# This isn't really configurey, but it avoids having to repeat the list in
34320# other files.
34321ALL_BINDINGS=ocaml
34322
34323
Gordon Henriksenf0915682007-10-02 16:42:22 +000034324# Do any work necessary to ensure that bindings have what they need.
34325binding_prereqs_failed=0
34326for a_binding in $BINDINGS_TO_BUILD ; do
34327 case "$a_binding" in
34328 ocaml)
34329 if test "x$OCAMLC" = x ; then
34330 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34331echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34332 binding_prereqs_failed=1
34333 fi
34334 if test "x$OCAMLDEP" = x ; then
34335 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34336echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34337 binding_prereqs_failed=1
34338 fi
34339 if test "x$OCAMLOPT" = x ; then
34340 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34341echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34342 fi
34343 if test "x$with_ocaml_libdir" != xauto ; then
34344 OCAML_LIBDIR=$with_ocaml_libdir
34345
34346 else
34347 ocaml_stdlib="`"$OCAMLC" -where`"
34348 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34349 then
34350 # ocaml stdlib is beneath our prefix; use stdlib
34351 OCAML_LIBDIR=$ocaml_stdlib
34352
34353 else
34354 # ocaml stdlib is outside our prefix; use libdir/ocaml
34355 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34356
34357 fi
34358 fi
34359 ;;
34360 esac
34361done
34362if test "$binding_prereqs_failed" = 1 ; then
34363 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34364echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34365 { (exit 1); exit 1; }; }
34366fi
34367
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034368{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34369echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34370if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34371 echo $ECHO_N "(cached) $ECHO_C" >&6
34372else
34373 ac_ext=cpp
34374ac_cpp='$CXXCPP $CPPFLAGS'
34375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34378
34379 oldcxxflags="$CXXFLAGS"
34380 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34381 cat >conftest.$ac_ext <<_ACEOF
34382/* confdefs.h. */
34383_ACEOF
34384cat confdefs.h >>conftest.$ac_ext
34385cat >>conftest.$ac_ext <<_ACEOF
34386/* end confdefs.h. */
34387
34388int
34389main ()
34390{
34391
34392 ;
34393 return 0;
34394}
34395_ACEOF
34396rm -f conftest.$ac_objext
34397if { (ac_try="$ac_compile"
34398case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34401esac
34402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_compile") 2>conftest.er1
34404 ac_status=$?
34405 grep -v '^ *+' conftest.er1 >conftest.err
34406 rm -f conftest.er1
34407 cat conftest.err >&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034409 (exit $ac_status); } &&
34410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34411 { (case "(($ac_try" in
34412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34413 *) ac_try_echo=$ac_try;;
34414esac
34415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34416 (eval "$ac_try") 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest.$ac_objext'
34421 { (case "(($ac_try" in
34422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34423 *) ac_try_echo=$ac_try;;
34424esac
34425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34426 (eval "$ac_try") 2>&5
34427 ac_status=$?
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034430 llvm_cv_cxx_visibility_inlines_hidden=yes
34431else
34432 echo "$as_me: failed program was:" >&5
34433sed 's/^/| /' conftest.$ac_ext >&5
34434
34435 llvm_cv_cxx_visibility_inlines_hidden=no
34436fi
34437
34438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 CXXFLAGS="$oldcxxflags"
34440 ac_ext=c
34441ac_cpp='$CPP $CPPFLAGS'
34442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34444ac_compiler_gnu=$ac_cv_c_compiler_gnu
34445
34446
34447fi
34448{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34449echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34450if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34451 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34452
34453else
34454 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34455
34456fi
34457
Gordon Henriksenf0915682007-10-02 16:42:22 +000034458
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034459if test "$llvm_cv_link_use_r" = "yes" ; then
34460 RPATH="-Wl,-R"
34461else
34462 RPATH="-Wl,-rpath"
34463fi
34464
34465
34466if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34467 RDYNAMIC="-Wl,-export-dynamic"
34468else
34469 RDYNAMIC=""
34470fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034471
34472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034473
Reid Spencera773bd52006-08-04 18:18:08 +000034474ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034475
Douglas Gregor1555a232009-06-16 20:12:29 +000034476ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34477
34478ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34479
Reid Spencera773bd52006-08-04 18:18:08 +000034480ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034481
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034482ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034483
34484
Reid Spencera773bd52006-08-04 18:18:08 +000034485ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034486
34487
Reid Spencerea949cf2006-08-16 00:45:38 +000034488ac_config_files="$ac_config_files llvm.spec"
34489
34490
Reid Spencera773bd52006-08-04 18:18:08 +000034491ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034492
34493
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034494ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34495
34496
Reid Spencera773bd52006-08-04 18:18:08 +000034497ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034498
34499
Reid Spencera773bd52006-08-04 18:18:08 +000034500ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034501
Reid Spencera773bd52006-08-04 18:18:08 +000034502ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034503
34504
Reid Spencera773bd52006-08-04 18:18:08 +000034505ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034506
34507
Reid Spencera773bd52006-08-04 18:18:08 +000034508ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034509
34510
Reid Spencera773bd52006-08-04 18:18:08 +000034511ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034512
34513
Reid Spencer8b2e1412006-11-17 03:32:33 +000034514ac_config_commands="$ac_config_commands runtime/Makefile"
34515
34516
Reid Spencera773bd52006-08-04 18:18:08 +000034517ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034518
34519
Reid Spencera773bd52006-08-04 18:18:08 +000034520ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034521
34522
Bill Wendlingf24eb392009-01-04 23:12:30 +000034523ac_config_commands="$ac_config_commands unittests/Makefile"
34524
34525
Reid Spencera773bd52006-08-04 18:18:08 +000034526ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034527
34528
Reid Spencera773bd52006-08-04 18:18:08 +000034529ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034530
34531
Reid Spencera773bd52006-08-04 18:18:08 +000034532ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034533
34534
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034535ac_config_commands="$ac_config_commands bindings/Makefile"
34536
34537
34538ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34539
34540
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034541
John Criswell7a73b802003-06-30 21:59:07 +000034542cat >confcache <<\_ACEOF
34543# This file is a shell script that caches the results of configure
34544# tests run on this system so they can be shared between configure
34545# scripts and configure runs, see configure's option --config-cache.
34546# It is not useful on other systems. If it contains results you don't
34547# want to keep, you may remove or edit it.
34548#
34549# config.status only pays attention to the cache file if you give it
34550# the --recheck option to rerun configure.
34551#
John Criswell0c38eaf2003-09-10 15:17:25 +000034552# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034553# loading this file, other *unset* `ac_cv_foo' will be assigned the
34554# following values.
34555
34556_ACEOF
34557
34558# The following way of writing the cache mishandles newlines in values,
34559# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034560# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034561# Ultrix sh set writes to stderr and can't be redirected directly,
34562# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034563(
34564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34565 eval ac_val=\$$ac_var
34566 case $ac_val in #(
34567 *${as_nl}*)
34568 case $ac_var in #(
34569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34570echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34571 esac
34572 case $ac_var in #(
34573 _ | IFS | as_nl) ;; #(
34574 *) $as_unset $ac_var ;;
34575 esac ;;
34576 esac
34577 done
34578
John Criswell7a73b802003-06-30 21:59:07 +000034579 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34581 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034582 # `set' does not quote correctly, so add quotes (double-quote
34583 # substitution turns \\\\ into \\, and sed turns \\ into \).
34584 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034585 "s/'/'\\\\''/g;
34586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034587 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034588 *)
34589 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034592 esac |
34593 sort
34594) |
John Criswell7a73b802003-06-30 21:59:07 +000034595 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034596 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034597 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034598 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34600 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34602 :end' >>confcache
34603if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34604 if test -w "$cache_file"; then
34605 test "x$cache_file" != "x/dev/null" &&
34606 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34607echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034608 cat confcache >$cache_file
34609 else
Reid Spencera773bd52006-08-04 18:18:08 +000034610 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34611echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034612 fi
34613fi
34614rm -f confcache
34615
34616test "x$prefix" = xNONE && prefix=$ac_default_prefix
34617# Let make expand exec_prefix.
34618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34619
John Criswell7a73b802003-06-30 21:59:07 +000034620DEFS=-DHAVE_CONFIG_H
34621
John Criswell0c38eaf2003-09-10 15:17:25 +000034622ac_libobjs=
34623ac_ltlibobjs=
34624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34625 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34627 ac_i=`echo "$ac_i" | sed "$ac_script"`
34628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34629 # will be set to the directory where LIBOBJS objects are built.
34630 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34631 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034632done
34633LIBOBJS=$ac_libobjs
34634
34635LTLIBOBJS=$ac_ltlibobjs
34636
34637
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034638if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34639 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34640Usually this means the macro was only invoked conditionally." >&5
34641echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34642Usually this means the macro was only invoked conditionally." >&2;}
34643 { (exit 1); exit 1; }; }
34644fi
34645if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34646 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34647Usually this means the macro was only invoked conditionally." >&5
34648echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34649Usually this means the macro was only invoked conditionally." >&2;}
34650 { (exit 1); exit 1; }; }
34651fi
John Criswell7a73b802003-06-30 21:59:07 +000034652
34653: ${CONFIG_STATUS=./config.status}
34654ac_clean_files_save=$ac_clean_files
34655ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34656{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34657echo "$as_me: creating $CONFIG_STATUS" >&6;}
34658cat >$CONFIG_STATUS <<_ACEOF
34659#! $SHELL
34660# Generated by $as_me.
34661# Run this file to recreate the current configuration.
34662# Compiler output produced by configure, useful for debugging
34663# configure, is in config.log if it exists.
34664
34665debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034666ac_cs_recheck=false
34667ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034668SHELL=\${CONFIG_SHELL-$SHELL}
34669_ACEOF
34670
34671cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034672## --------------------- ##
34673## M4sh Initialization. ##
34674## --------------------- ##
34675
Bill Wendlingebcceee2009-04-18 11:20:33 +000034676# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034677if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34678 emulate sh
34679 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34681 # is contrary to our usage. Disable this feature.
34682 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034683 setopt NO_GLOB_SUBST
34684else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034685 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034686fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034687BIN_SH=xpg4; export BIN_SH # for Tru64
34688DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034689
John Criswell7a73b802003-06-30 21:59:07 +000034690
Reid Spencera773bd52006-08-04 18:18:08 +000034691# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034692# Avoid depending upon Character Ranges.
34693as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34694as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34695as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34696as_cr_digits='0123456789'
34697as_cr_alnum=$as_cr_Letters$as_cr_digits
34698
34699# The user is always right.
34700if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034701 echo "#! /bin/sh" >conf$$.sh
34702 echo "exit 0" >>conf$$.sh
34703 chmod +x conf$$.sh
34704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034705 PATH_SEPARATOR=';'
34706 else
34707 PATH_SEPARATOR=:
34708 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034709 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034710fi
34711
Reid Spencera773bd52006-08-04 18:18:08 +000034712# Support unset when possible.
34713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34714 as_unset=unset
34715else
34716 as_unset=false
34717fi
John Criswell7a73b802003-06-30 21:59:07 +000034718
Reid Spencera773bd52006-08-04 18:18:08 +000034719
34720# IFS
34721# We need space, tab and new line, in precisely that order. Quoting is
34722# there to prevent editors from complaining about space-tab.
34723# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34724# splitting by setting IFS to empty value.)
34725as_nl='
34726'
34727IFS=" "" $as_nl"
34728
34729# Find who we are. Look in the path if we contain no directory separator.
34730case $0 in
34731 *[\\/]* ) as_myself=$0 ;;
34732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034733for as_dir in $PATH
34734do
34735 IFS=$as_save_IFS
34736 test -z "$as_dir" && as_dir=.
34737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34738done
Reid Spencera773bd52006-08-04 18:18:08 +000034739IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034740
Reid Spencera773bd52006-08-04 18:18:08 +000034741 ;;
34742esac
34743# We did not find ourselves, most probably we were run as `sh COMMAND'
34744# in which case we are not to be found in the path.
34745if test "x$as_myself" = x; then
34746 as_myself=$0
34747fi
34748if test ! -f "$as_myself"; then
34749 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34750 { (exit 1); exit 1; }
34751fi
34752
34753# Work around bugs in pre-3.0 UWIN ksh.
34754for as_var in ENV MAIL MAILPATH
34755do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34756done
34757PS1='$ '
34758PS2='> '
34759PS4='+ '
34760
34761# NLS nuisances.
34762for as_var in \
34763 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34764 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34765 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034766do
Reid Spencera773bd52006-08-04 18:18:08 +000034767 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34768 eval $as_var=C; export $as_var
34769 else
34770 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34771 fi
34772done
34773
34774# Required to use basename.
34775if expr a : '\(a\)' >/dev/null 2>&1 &&
34776 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34777 as_expr=expr
34778else
34779 as_expr=false
34780fi
34781
34782if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34783 as_basename=basename
34784else
34785 as_basename=false
34786fi
34787
34788
34789# Name of the executable.
34790as_me=`$as_basename -- "$0" ||
34791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34792 X"$0" : 'X\(//\)$' \| \
34793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34794echo X/"$0" |
34795 sed '/^.*\/\([^/][^/]*\)\/*$/{
34796 s//\1/
34797 q
34798 }
34799 /^X\/\(\/\/\)$/{
34800 s//\1/
34801 q
34802 }
34803 /^X\/\(\/\).*/{
34804 s//\1/
34805 q
34806 }
34807 s/.*/./; q'`
34808
34809# CDPATH.
34810$as_unset CDPATH
34811
34812
34813
John Criswell7a73b802003-06-30 21:59:07 +000034814 as_lineno_1=$LINENO
34815 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034816 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034817 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034818
34819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34820 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034821 # line-number line after each line using $LINENO; the second 'sed'
34822 # does the real work. The second script uses 'N' to pair each
34823 # line-number line with the line containing $LINENO, and appends
34824 # trailing '-' during substitution so that $LINENO is not a special
34825 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034827 # scripts with optimization help from Paolo Bonzini. Blame Lee
34828 # E. McMahon (1931-1989) for sed's syntax. :-)
34829 sed -n '
34830 p
34831 /[$]LINENO/=
34832 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034833 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034834 s/[$]LINENO.*/&-/
34835 t lineno
34836 b
34837 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034838 N
Reid Spencera773bd52006-08-04 18:18:08 +000034839 :loop
34840 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034841 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034842 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034843 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034844 chmod +x "$as_me.lineno" ||
34845 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034846 { (exit 1); exit 1; }; }
34847
34848 # Don't try to exec as it changes $[0], causing all sort of problems
34849 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034850 # original and so on. Autoconf is especially sensitive to this).
34851 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034852 # Exit status is that of the last command.
34853 exit
34854}
34855
34856
Reid Spencera773bd52006-08-04 18:18:08 +000034857if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34858 as_dirname=dirname
34859else
34860 as_dirname=false
34861fi
34862
34863ECHO_C= ECHO_N= ECHO_T=
34864case `echo -n x` in
34865-n*)
34866 case `echo 'x\c'` in
34867 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34868 *) ECHO_C='\c';;
34869 esac;;
34870*)
34871 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034872esac
34873
Reid Spencera773bd52006-08-04 18:18:08 +000034874if expr a : '\(a\)' >/dev/null 2>&1 &&
34875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034876 as_expr=expr
34877else
34878 as_expr=false
34879fi
34880
34881rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034882if test -d conf$$.dir; then
34883 rm -f conf$$.dir/conf$$.file
34884else
34885 rm -f conf$$.dir
34886 mkdir conf$$.dir
34887fi
John Criswell7a73b802003-06-30 21:59:07 +000034888echo >conf$$.file
34889if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034890 as_ln_s='ln -s'
34891 # ... but there are two gotchas:
34892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34894 # In both cases, we have to default to `cp -p'.
34895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034896 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034897elif ln conf$$.file conf$$ 2>/dev/null; then
34898 as_ln_s=ln
34899else
34900 as_ln_s='cp -p'
34901fi
Reid Spencera773bd52006-08-04 18:18:08 +000034902rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34903rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034904
John Criswell0c38eaf2003-09-10 15:17:25 +000034905if mkdir -p . 2>/dev/null; then
34906 as_mkdir_p=:
34907else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034908 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034909 as_mkdir_p=false
34910fi
34911
Bill Wendlingebcceee2009-04-18 11:20:33 +000034912# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34913# systems may use methods other than mode bits to determine executability.
34914cat >conf$$.file <<_ASEOF
34915#! /bin/sh
34916exit 0
34917_ASEOF
34918chmod +x conf$$.file
34919if test -x conf$$.file >/dev/null 2>&1; then
34920 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034921else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034922 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034923fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034924rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034925
34926# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034928
34929# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034931
34932
John Criswell7a73b802003-06-30 21:59:07 +000034933exec 6>&1
34934
Reid Spencera773bd52006-08-04 18:18:08 +000034935# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034936# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034937# values after options handling.
34938ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034939This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034940generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034941
34942 CONFIG_FILES = $CONFIG_FILES
34943 CONFIG_HEADERS = $CONFIG_HEADERS
34944 CONFIG_LINKS = $CONFIG_LINKS
34945 CONFIG_COMMANDS = $CONFIG_COMMANDS
34946 $ $0 $@
34947
Reid Spencera773bd52006-08-04 18:18:08 +000034948on `(hostname || uname -n) 2>/dev/null | sed 1q`
34949"
34950
John Criswell7a73b802003-06-30 21:59:07 +000034951_ACEOF
34952
Reid Spencera773bd52006-08-04 18:18:08 +000034953cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034954# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034955config_files="$ac_config_files"
34956config_headers="$ac_config_headers"
34957config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034958
Reid Spencera773bd52006-08-04 18:18:08 +000034959_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034960
34961cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034962ac_cs_usage="\
34963\`$as_me' instantiates files from templates according to the
34964current configuration.
34965
34966Usage: $0 [OPTIONS] [FILE]...
34967
34968 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034969 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034970 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034971 -d, --debug don't remove temporary files
34972 --recheck update $as_me by reconfiguring in the same conditions
34973 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034974 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034975 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034976 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034977
34978Configuration files:
34979$config_files
34980
34981Configuration headers:
34982$config_headers
34983
John Criswellc764fbc2003-09-06 15:17:13 +000034984Configuration commands:
34985$config_commands
34986
John Criswell7a73b802003-06-30 21:59:07 +000034987Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034988
Reid Spencera773bd52006-08-04 18:18:08 +000034989_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034990cat >>$CONFIG_STATUS <<_ACEOF
34991ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034992llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034993configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034994 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034995
Reid Spencera773bd52006-08-04 18:18:08 +000034996Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034997This config.status script is free software; the Free Software Foundation
34998gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034999
35000ac_pwd='$ac_pwd'
35001srcdir='$srcdir'
35002INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035003_ACEOF
35004
35005cat >>$CONFIG_STATUS <<\_ACEOF
35006# If no file are specified by the user, then we need to provide default
35007# value. By we need to know if files were specified by the user.
35008ac_need_defaults=:
35009while test $# != 0
35010do
35011 case $1 in
35012 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035015 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035017 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035018 ac_option=$1
35019 ac_optarg=$2
35020 ac_shift=shift
35021 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035022 esac
35023
John Criswell0c38eaf2003-09-10 15:17:25 +000035024 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035025 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35027 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35029 echo "$ac_cs_version"; exit ;;
35030 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035031 debug=: ;;
35032 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035033 $ac_shift
35034 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035035 ac_need_defaults=false;;
35036 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035037 $ac_shift
35038 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035039 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035040 --he | --h)
35041 # Conflict between --help and --header
35042 { echo "$as_me: error: ambiguous option: $1
35043Try \`$0 --help' for more information." >&2
35044 { (exit 1); exit 1; }; };;
35045 --help | --hel | -h )
35046 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35049 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035050
35051 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035052 -*) { echo "$as_me: error: unrecognized option: $1
35053Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035054 { (exit 1); exit 1; }; } ;;
35055
Reid Spencera773bd52006-08-04 18:18:08 +000035056 *) ac_config_targets="$ac_config_targets $1"
35057 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035058
35059 esac
35060 shift
35061done
35062
John Criswell0c38eaf2003-09-10 15:17:25 +000035063ac_configure_extra_args=
35064
35065if $ac_cs_silent; then
35066 exec 6>/dev/null
35067 ac_configure_extra_args="$ac_configure_extra_args --silent"
35068fi
35069
35070_ACEOF
35071cat >>$CONFIG_STATUS <<_ACEOF
35072if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035073 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35074 CONFIG_SHELL=$SHELL
35075 export CONFIG_SHELL
35076 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035077fi
35078
John Criswell7a73b802003-06-30 21:59:07 +000035079_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035080cat >>$CONFIG_STATUS <<\_ACEOF
35081exec 5>>config.log
35082{
35083 echo
35084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35085## Running $as_me. ##
35086_ASBOX
35087 echo "$ac_log"
35088} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035089
Reid Spencera773bd52006-08-04 18:18:08 +000035090_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035091cat >>$CONFIG_STATUS <<_ACEOF
35092#
Reid Spencera773bd52006-08-04 18:18:08 +000035093# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035094#
Reid Spencerc0682832005-02-24 19:05:19 +000035095llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035096
35097_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035098
John Criswell7a73b802003-06-30 21:59:07 +000035099cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035100
35101# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035102for ac_config_target in $ac_config_targets
35103do
Reid Spencera773bd52006-08-04 18:18:08 +000035104 case $ac_config_target in
35105 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035106 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35107 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035108 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035109 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035110 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035111 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035112 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035113 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035114 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35115 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35116 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35117 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35118 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35119 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035120 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035121 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35122 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035123 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035124 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35125 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35126 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035127 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35128 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035129
John Criswell7a73b802003-06-30 21:59:07 +000035130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35131echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35132 { (exit 1); exit 1; }; };;
35133 esac
35134done
35135
Reid Spencera773bd52006-08-04 18:18:08 +000035136
John Criswell7a73b802003-06-30 21:59:07 +000035137# If the user did not use the arguments to specify the items to instantiate,
35138# then the envvar interface is used. Set only those that are not.
35139# We use the long form for the default assignment because of an extremely
35140# bizarre bug on SunOS 4.1.3.
35141if $ac_need_defaults; then
35142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035145fi
35146
John Criswell0c38eaf2003-09-10 15:17:25 +000035147# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035148# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035149# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035150# Hook for its removal unless debugging.
35151# Note that there is a small window in which the directory will not be cleaned:
35152# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035153$debug ||
35154{
Reid Spencera773bd52006-08-04 18:18:08 +000035155 tmp=
35156 trap 'exit_status=$?
35157 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35158' 0
John Criswell7a73b802003-06-30 21:59:07 +000035159 trap '{ (exit 1); exit 1; }' 1 2 13 15
35160}
John Criswell7a73b802003-06-30 21:59:07 +000035161# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035162
John Criswell7a73b802003-06-30 21:59:07 +000035163{
Reid Spencera773bd52006-08-04 18:18:08 +000035164 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035165 test -n "$tmp" && test -d "$tmp"
35166} ||
35167{
Reid Spencera773bd52006-08-04 18:18:08 +000035168 tmp=./conf$$-$RANDOM
35169 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035170} ||
35171{
John Criswell0c38eaf2003-09-10 15:17:25 +000035172 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035173 { (exit 1); exit 1; }
35174}
35175
John Criswell7a73b802003-06-30 21:59:07 +000035176#
Reid Spencera773bd52006-08-04 18:18:08 +000035177# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035178#
35179
35180# No need to generate the scripts if there are no CONFIG_FILES.
35181# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035182if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035183
35184_ACEOF
35185
Reid Spencera773bd52006-08-04 18:18:08 +000035186
35187
35188ac_delim='%!_!# '
35189for ac_last_try in false false false false false :; do
35190 cat >conf$$subs.sed <<_ACEOF
35191SHELL!$SHELL$ac_delim
35192PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35193PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35194PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35195PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35196PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35197PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35198exec_prefix!$exec_prefix$ac_delim
35199prefix!$prefix$ac_delim
35200program_transform_name!$program_transform_name$ac_delim
35201bindir!$bindir$ac_delim
35202sbindir!$sbindir$ac_delim
35203libexecdir!$libexecdir$ac_delim
35204datarootdir!$datarootdir$ac_delim
35205datadir!$datadir$ac_delim
35206sysconfdir!$sysconfdir$ac_delim
35207sharedstatedir!$sharedstatedir$ac_delim
35208localstatedir!$localstatedir$ac_delim
35209includedir!$includedir$ac_delim
35210oldincludedir!$oldincludedir$ac_delim
35211docdir!$docdir$ac_delim
35212infodir!$infodir$ac_delim
35213htmldir!$htmldir$ac_delim
35214dvidir!$dvidir$ac_delim
35215pdfdir!$pdfdir$ac_delim
35216psdir!$psdir$ac_delim
35217libdir!$libdir$ac_delim
35218localedir!$localedir$ac_delim
35219mandir!$mandir$ac_delim
35220DEFS!$DEFS$ac_delim
35221ECHO_C!$ECHO_C$ac_delim
35222ECHO_N!$ECHO_N$ac_delim
35223ECHO_T!$ECHO_T$ac_delim
35224LIBS!$LIBS$ac_delim
35225build_alias!$build_alias$ac_delim
35226host_alias!$host_alias$ac_delim
35227target_alias!$target_alias$ac_delim
35228LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35229subdirs!$subdirs$ac_delim
35230build!$build$ac_delim
35231build_cpu!$build_cpu$ac_delim
35232build_vendor!$build_vendor$ac_delim
35233build_os!$build_os$ac_delim
35234host!$host$ac_delim
35235host_cpu!$host_cpu$ac_delim
35236host_vendor!$host_vendor$ac_delim
35237host_os!$host_os$ac_delim
35238target!$target$ac_delim
35239target_cpu!$target_cpu$ac_delim
35240target_vendor!$target_vendor$ac_delim
35241target_os!$target_os$ac_delim
35242OS!$OS$ac_delim
35243LINKALL!$LINKALL$ac_delim
35244NOLINKALL!$NOLINKALL$ac_delim
35245LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35246LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035247ARCH!$ARCH$ac_delim
35248ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035249CC!$CC$ac_delim
35250CFLAGS!$CFLAGS$ac_delim
35251LDFLAGS!$LDFLAGS$ac_delim
35252CPPFLAGS!$CPPFLAGS$ac_delim
35253ac_ct_CC!$ac_ct_CC$ac_delim
35254EXEEXT!$EXEEXT$ac_delim
35255OBJEXT!$OBJEXT$ac_delim
35256CPP!$CPP$ac_delim
35257GREP!$GREP$ac_delim
35258EGREP!$EGREP$ac_delim
35259LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35260BUILD_CC!$BUILD_CC$ac_delim
35261BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035262BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035263CVSBUILD!$CVSBUILD$ac_delim
35264ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035265ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035266DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035267ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35268EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035269DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035270JIT!$JIT$ac_delim
35271TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35272ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35273ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035274ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035275TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035276LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35277LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035278ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035279EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035280BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035281CXX!$CXX$ac_delim
35282CXXFLAGS!$CXXFLAGS$ac_delim
35283ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035284NM!$NM$ac_delim
35285ifGNUmake!$ifGNUmake$ac_delim
35286LN_S!$LN_S$ac_delim
35287CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035288_ACEOF
35289
35290 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35291 break
35292 elif $ac_last_try; then
35293 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35294echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35295 { (exit 1); exit 1; }; }
35296 else
35297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035298 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035299done
35300
35301ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35302if test -n "$ac_eof"; then
35303 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35304 ac_eof=`expr $ac_eof + 1`
35305fi
35306
35307cat >>$CONFIG_STATUS <<_ACEOF
35308cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35310_ACEOF
35311sed '
35312s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35313s/^/s,@/; s/!/@,|#_!!_#|/
35314:n
35315t n
35316s/'"$ac_delim"'$/,g/; t
35317s/$/\\/; p
35318N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35319' >>$CONFIG_STATUS <conf$$subs.sed
35320rm -f conf$$subs.sed
35321cat >>$CONFIG_STATUS <<_ACEOF
35322CEOF$ac_eof
35323_ACEOF
35324
35325
35326ac_delim='%!_!# '
35327for ac_last_try in false false false false false :; do
35328 cat >conf$$subs.sed <<_ACEOF
Douglas Gregor1555a232009-06-16 20:12:29 +000035329CP!$CP$ac_delim
35330DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035331FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035332MKDIR!$MKDIR$ac_delim
35333MV!$MV$ac_delim
35334RANLIB!$RANLIB$ac_delim
35335RM!$RM$ac_delim
35336SED!$SED$ac_delim
35337TAR!$TAR$ac_delim
35338BINPWD!$BINPWD$ac_delim
35339GRAPHVIZ!$GRAPHVIZ$ac_delim
35340DOT!$DOT$ac_delim
35341GV!$GV$ac_delim
35342DOTTY!$DOTTY$ac_delim
35343PERL!$PERL$ac_delim
35344HAVE_PERL!$HAVE_PERL$ac_delim
35345INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35346INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35347INSTALL_DATA!$INSTALL_DATA$ac_delim
35348BZIP2!$BZIP2$ac_delim
35349DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035350GROFF!$GROFF$ac_delim
35351GZIP!$GZIP$ac_delim
35352POD2HTML!$POD2HTML$ac_delim
35353POD2MAN!$POD2MAN$ac_delim
35354RUNTEST!$RUNTEST$ac_delim
35355TCLSH!$TCLSH$ac_delim
35356ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035357OCAMLC!$OCAMLC$ac_delim
35358OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035359OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035360OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035361GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035362INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35363INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35364CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35365CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35366LIBADD_DL!$LIBADD_DL$ac_delim
35367ECHO!$ECHO$ac_delim
35368AR!$AR$ac_delim
35369STRIP!$STRIP$ac_delim
35370CXXCPP!$CXXCPP$ac_delim
35371F77!$F77$ac_delim
35372FFLAGS!$FFLAGS$ac_delim
35373ac_ct_F77!$ac_ct_F77$ac_delim
35374LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035375LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35376LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035377LLVMGCC!$LLVMGCC$ac_delim
35378LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035379USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035380HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035381HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035382ALLOCA!$ALLOCA$ac_delim
35383MMAP_FILE!$MMAP_FILE$ac_delim
35384LLVMCC1!$LLVMCC1$ac_delim
35385LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35386LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035387LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035388LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35389LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035390LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035391SHLIBEXT!$SHLIBEXT$ac_delim
35392LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35393LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35394LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35395LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35396LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35397LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35398LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35399LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35400LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35401LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035402BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35403ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035404OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035405ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035406RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035407RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035408LIBOBJS!$LIBOBJS$ac_delim
35409LTLIBOBJS!$LTLIBOBJS$ac_delim
35410_ACEOF
35411
Douglas Gregor1555a232009-06-16 20:12:29 +000035412 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Reid Spencera773bd52006-08-04 18:18:08 +000035413 break
35414 elif $ac_last_try; then
35415 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35416echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35417 { (exit 1); exit 1; }; }
35418 else
35419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35420 fi
35421done
35422
35423ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35424if test -n "$ac_eof"; then
35425 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35426 ac_eof=`expr $ac_eof + 1`
35427fi
35428
35429cat >>$CONFIG_STATUS <<_ACEOF
35430cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35431/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35432_ACEOF
35433sed '
35434s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35435s/^/s,@/; s/!/@,|#_!!_#|/
35436:n
35437t n
35438s/'"$ac_delim"'$/,g/; t
35439s/$/\\/; p
35440N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35441' >>$CONFIG_STATUS <conf$$subs.sed
35442rm -f conf$$subs.sed
35443cat >>$CONFIG_STATUS <<_ACEOF
35444:end
35445s/|#_!!_#|//g
35446CEOF$ac_eof
35447_ACEOF
35448
35449
35450# VPATH may cause trouble with some makes, so we remove $(srcdir),
35451# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35452# trailing colons and then remove the whole line if VPATH becomes empty
35453# (actually we leave an empty line to preserve line numbers).
35454if test "x$srcdir" = x.; then
35455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35456s/:*\$(srcdir):*/:/
35457s/:*\${srcdir}:*/:/
35458s/:*@srcdir@:*/:/
35459s/^\([^=]*=[ ]*\):*/\1/
35460s/:*$//
35461s/^[^=]*=[ ]*$//
35462}'
35463fi
35464
35465cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035466fi # test -n "$CONFIG_FILES"
35467
Reid Spencera773bd52006-08-04 18:18:08 +000035468
35469for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35470do
35471 case $ac_tag in
35472 :[FHLC]) ac_mode=$ac_tag; continue;;
35473 esac
35474 case $ac_mode$ac_tag in
35475 :[FHL]*:*);;
35476 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35477echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35478 { (exit 1); exit 1; }; };;
35479 :[FH]-) ac_tag=-:-;;
35480 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35481 esac
35482 ac_save_IFS=$IFS
35483 IFS=:
35484 set x $ac_tag
35485 IFS=$ac_save_IFS
35486 shift
35487 ac_file=$1
35488 shift
35489
35490 case $ac_mode in
35491 :L) ac_source=$1;;
35492 :[FH])
35493 ac_file_inputs=
35494 for ac_f
35495 do
35496 case $ac_f in
35497 -) ac_f="$tmp/stdin";;
35498 *) # Look for the file first in the build tree, then in the source tree
35499 # (if the path is not absolute). The absolute path cannot be DOS-style,
35500 # because $ac_f cannot contain `:'.
35501 test -f "$ac_f" ||
35502 case $ac_f in
35503 [\\/$]*) false;;
35504 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35505 esac ||
35506 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35507echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35508 { (exit 1); exit 1; }; };;
35509 esac
35510 ac_file_inputs="$ac_file_inputs $ac_f"
35511 done
35512
35513 # Let's still pretend it is `configure' which instantiates (i.e., don't
35514 # use $as_me), people would be surprised to read:
35515 # /* config.h. Generated by config.status. */
35516 configure_input="Generated from "`IFS=:
35517 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35518 if test x"$ac_file" != x-; then
35519 configure_input="$ac_file. $configure_input"
35520 { echo "$as_me:$LINENO: creating $ac_file" >&5
35521echo "$as_me: creating $ac_file" >&6;}
35522 fi
35523
35524 case $ac_tag in
35525 *:-:* | *:-) cat >"$tmp/stdin";;
35526 esac
35527 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035528 esac
35529
Reid Spencera773bd52006-08-04 18:18:08 +000035530 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035531$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035532 X"$ac_file" : 'X\(//\)[^/]' \| \
35533 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035535echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35537 s//\1/
35538 q
35539 }
35540 /^X\(\/\/\)[^/].*/{
35541 s//\1/
35542 q
35543 }
35544 /^X\(\/\/\)$/{
35545 s//\1/
35546 q
35547 }
35548 /^X\(\/\).*/{
35549 s//\1/
35550 q
35551 }
35552 s/.*/./; q'`
35553 { as_dir="$ac_dir"
35554 case $as_dir in #(
35555 -*) as_dir=./$as_dir;;
35556 esac
35557 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035558 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035559 while :; do
35560 case $as_dir in #(
35561 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35562 *) as_qdir=$as_dir;;
35563 esac
35564 as_dirs="'$as_qdir' $as_dirs"
35565 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035567 X"$as_dir" : 'X\(//\)[^/]' \| \
35568 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035570echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35572 s//\1/
35573 q
35574 }
35575 /^X\(\/\/\)[^/].*/{
35576 s//\1/
35577 q
35578 }
35579 /^X\(\/\/\)$/{
35580 s//\1/
35581 q
35582 }
35583 /^X\(\/\).*/{
35584 s//\1/
35585 q
35586 }
35587 s/.*/./; q'`
35588 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035589 done
Reid Spencera773bd52006-08-04 18:18:08 +000035590 test -z "$as_dirs" || eval "mkdir $as_dirs"
35591 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35592echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035593 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035594 ac_builddir=.
35595
Reid Spencera773bd52006-08-04 18:18:08 +000035596case "$ac_dir" in
35597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35598*)
John Criswell7a73b802003-06-30 21:59:07 +000035599 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035600 # A ".." for each directory in $ac_dir_suffix.
35601 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35602 case $ac_top_builddir_sub in
35603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35605 esac ;;
35606esac
35607ac_abs_top_builddir=$ac_pwd
35608ac_abs_builddir=$ac_pwd$ac_dir_suffix
35609# for backward compatibility:
35610ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035611
35612case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035613 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035614 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035615 ac_top_srcdir=$ac_top_builddir_sub
35616 ac_abs_top_srcdir=$ac_pwd ;;
35617 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035618 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035619 ac_top_srcdir=$srcdir
35620 ac_abs_top_srcdir=$srcdir ;;
35621 *) # Relative name.
35622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35623 ac_top_srcdir=$ac_top_build_prefix$srcdir
35624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035625esac
Reid Spencera773bd52006-08-04 18:18:08 +000035626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035627
John Criswell7a73b802003-06-30 21:59:07 +000035628
Reid Spencera773bd52006-08-04 18:18:08 +000035629 case $ac_mode in
35630 :F)
35631 #
35632 # CONFIG_FILE
35633 #
John Criswell7a73b802003-06-30 21:59:07 +000035634
35635 case $INSTALL in
35636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035637 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035638 esac
John Criswell7a73b802003-06-30 21:59:07 +000035639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035640
35641cat >>$CONFIG_STATUS <<\_ACEOF
35642# If the template does not know about datarootdir, expand it.
35643# FIXME: This hack should be removed a few years after 2.60.
35644ac_datarootdir_hack=; ac_datarootdir_seen=
35645
35646case `sed -n '/datarootdir/ {
35647 p
35648 q
35649}
35650/@datadir@/p
35651/@docdir@/p
35652/@infodir@/p
35653/@localedir@/p
35654/@mandir@/p
35655' $ac_file_inputs` in
35656*datarootdir*) ac_datarootdir_seen=yes;;
35657*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35659echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35660_ACEOF
35661cat >>$CONFIG_STATUS <<_ACEOF
35662 ac_datarootdir_hack='
35663 s&@datadir@&$datadir&g
35664 s&@docdir@&$docdir&g
35665 s&@infodir@&$infodir&g
35666 s&@localedir@&$localedir&g
35667 s&@mandir@&$mandir&g
35668 s&\\\${datarootdir}&$datarootdir&g' ;;
35669esac
35670_ACEOF
35671
35672# Neutralize VPATH when `$srcdir' = `.'.
35673# Shell code in configure.ac might set extrasub.
35674# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035675cat >>$CONFIG_STATUS <<_ACEOF
35676 sed "$ac_vpsub
35677$extrasub
35678_ACEOF
35679cat >>$CONFIG_STATUS <<\_ACEOF
35680:t
35681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035682s&@configure_input@&$configure_input&;t t
35683s&@top_builddir@&$ac_top_builddir_sub&;t t
35684s&@srcdir@&$ac_srcdir&;t t
35685s&@abs_srcdir@&$ac_abs_srcdir&;t t
35686s&@top_srcdir@&$ac_top_srcdir&;t t
35687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35688s&@builddir@&$ac_builddir&;t t
35689s&@abs_builddir@&$ac_abs_builddir&;t t
35690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35691s&@INSTALL@&$ac_INSTALL&;t t
35692$ac_datarootdir_hack
35693" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035694
Reid Spencera773bd52006-08-04 18:18:08 +000035695test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35696 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35697 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35698 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35699which seems to be undefined. Please make sure it is defined." >&5
35700echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35701which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035702
Reid Spencera773bd52006-08-04 18:18:08 +000035703 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035704 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035705 -) cat "$tmp/out"; rm -f "$tmp/out";;
35706 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035707 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035708 ;;
35709 :H)
35710 #
35711 # CONFIG_HEADER
35712 #
John Criswell7a73b802003-06-30 21:59:07 +000035713_ACEOF
35714
Reid Spencera773bd52006-08-04 18:18:08 +000035715# Transform confdefs.h into a sed script `conftest.defines', that
35716# substitutes the proper values into config.h.in to produce config.h.
35717rm -f conftest.defines conftest.tail
35718# First, append a space to every undef/define line, to ease matching.
35719echo 's/$/ /' >conftest.defines
35720# Then, protect against being on the right side of a sed subst, or in
35721# an unquoted here document, in config.status. If some macros were
35722# called several times there might be several #defines for the same
35723# symbol, which is useless. But do not sort them, since the last
35724# AC_DEFINE must be honored.
35725ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35726# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35727# NAME is the cpp macro being defined, VALUE is the value it is being given.
35728# PARAMS is the parameter list in the macro definition--in most cases, it's
35729# just an empty string.
35730ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35731ac_dB='\\)[ (].*,\\1define\\2'
35732ac_dC=' '
35733ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035734
Reid Spencera773bd52006-08-04 18:18:08 +000035735uniq confdefs.h |
35736 sed -n '
35737 t rset
35738 :rset
35739 s/^[ ]*#[ ]*define[ ][ ]*//
35740 t ok
35741 d
35742 :ok
35743 s/[\\&,]/\\&/g
35744 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35745 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35746 ' >>conftest.defines
35747
35748# Remove the space that was appended to ease matching.
35749# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035750# example, in the case of _POSIX_SOURCE, which is predefined and required
35751# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035752# (The regexp can be short, since the line contains either #define or #undef.)
35753echo 's/ $//
35754s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035755
Reid Spencera773bd52006-08-04 18:18:08 +000035756# Break up conftest.defines:
35757ac_max_sed_lines=50
35758
35759# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35760# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35761# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35762# et cetera.
35763ac_in='$ac_file_inputs'
35764ac_out='"$tmp/out1"'
35765ac_nxt='"$tmp/out2"'
35766
35767while :
John Criswell7a73b802003-06-30 21:59:07 +000035768do
Reid Spencera773bd52006-08-04 18:18:08 +000035769 # Write a here document:
35770 cat >>$CONFIG_STATUS <<_ACEOF
35771 # First, check the format of the line:
35772 cat >"\$tmp/defines.sed" <<\\CEOF
35773/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35774/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35775b
35776:def
35777_ACEOF
35778 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035779 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035780 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35781 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35782 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35783 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035784 rm -f conftest.defines
35785 mv conftest.tail conftest.defines
35786done
Reid Spencera773bd52006-08-04 18:18:08 +000035787rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035788
Reid Spencera773bd52006-08-04 18:18:08 +000035789echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035790cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035791 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035792 echo "/* $configure_input */" >"$tmp/config.h"
35793 cat "$ac_result" >>"$tmp/config.h"
35794 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035795 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35796echo "$as_me: $ac_file is unchanged" >&6;}
35797 else
John Criswell7a73b802003-06-30 21:59:07 +000035798 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035799 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035800 fi
35801 else
Reid Spencera773bd52006-08-04 18:18:08 +000035802 echo "/* $configure_input */"
35803 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035804 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035805 rm -f "$tmp/out12"
35806 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035807
Reid Spencera773bd52006-08-04 18:18:08 +000035808 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35809echo "$as_me: executing $ac_file commands" >&6;}
35810 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035811 esac
John Criswell7a73b802003-06-30 21:59:07 +000035812
Reid Spencera773bd52006-08-04 18:18:08 +000035813
35814 case $ac_file$ac_mode in
35815 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35816 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35817 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35818 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35819 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35820 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35821 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35822 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035823 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35824 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035825 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35826 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35827 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35828 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035829 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35830 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035831 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35832 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35833 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35834 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35835 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35836 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035837 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35838 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35839 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35840 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035841
35842 esac
35843done # for ac_tag
35844
John Criswell7a73b802003-06-30 21:59:07 +000035845
35846{ (exit 0); exit 0; }
35847_ACEOF
35848chmod +x $CONFIG_STATUS
35849ac_clean_files=$ac_clean_files_save
35850
35851
35852# configure is writing to config.log, and then calls config.status.
35853# config.status does its own redirection, appending to config.log.
35854# Unfortunately, on DOS this fails, as config.log is still kept open
35855# by configure, so config.status won't be able to write to it; its
35856# output is simply discarded. So we exec the FD to /dev/null,
35857# effectively closing config.log, so it can be properly (re)opened and
35858# appended to by config.status. When coming back to configure, we
35859# need to make the FD available again.
35860if test "$no_create" != yes; then
35861 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035862 ac_config_status_args=
35863 test "$silent" = yes &&
35864 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035865 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035867 exec 5>>config.log
35868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35869 # would make configure fail if this is the last instruction.
35870 $ac_cs_success || { (exit 1); exit 1; }
35871fi
35872
John Criswell12399a12003-09-30 15:55:44 +000035873#
35874# CONFIG_SUBDIRS section.
35875#
35876if test "$no_recursion" != yes; then
35877
35878 # Remove --cache-file and --srcdir arguments so they do not pile up.
35879 ac_sub_configure_args=
35880 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035881 eval "set x $ac_configure_args"
35882 shift
35883 for ac_arg
35884 do
John Criswell12399a12003-09-30 15:55:44 +000035885 if test -n "$ac_prev"; then
35886 ac_prev=
35887 continue
35888 fi
35889 case $ac_arg in
35890 -cache-file | --cache-file | --cache-fil | --cache-fi \
35891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35892 ac_prev=cache_file ;;
35893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35895 | --c=*)
35896 ;;
35897 --config-cache | -C)
35898 ;;
35899 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35900 ac_prev=srcdir ;;
35901 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35902 ;;
35903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35904 ac_prev=prefix ;;
35905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035907 *)
35908 case $ac_arg in
35909 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35910 esac
35911 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035912 esac
35913 done
35914
35915 # Always prepend --prefix to ensure using the same prefix
35916 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035917 ac_arg="--prefix=$prefix"
35918 case $ac_arg in
35919 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35920 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035921 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035922
35923 ac_popdir=`pwd`
35924 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35925
35926 # Do not complain, so a configure script can configure whichever
35927 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035928 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035929
Reid Spencera773bd52006-08-04 18:18:08 +000035930 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35931 echo "$as_me:$LINENO: $ac_msg" >&5
35932 echo "$ac_msg" >&6
35933 { as_dir="$ac_dir"
35934 case $as_dir in #(
35935 -*) as_dir=./$as_dir;;
35936 esac
35937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035938 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035939 while :; do
35940 case $as_dir in #(
35941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35942 *) as_qdir=$as_dir;;
35943 esac
35944 as_dirs="'$as_qdir' $as_dirs"
35945 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035947 X"$as_dir" : 'X\(//\)[^/]' \| \
35948 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035950echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35952 s//\1/
35953 q
35954 }
35955 /^X\(\/\/\)[^/].*/{
35956 s//\1/
35957 q
35958 }
35959 /^X\(\/\/\)$/{
35960 s//\1/
35961 q
35962 }
35963 /^X\(\/\).*/{
35964 s//\1/
35965 q
35966 }
35967 s/.*/./; q'`
35968 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035969 done
Reid Spencera773bd52006-08-04 18:18:08 +000035970 test -z "$as_dirs" || eval "mkdir $as_dirs"
35971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35972echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035973 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035974 ac_builddir=.
35975
Reid Spencera773bd52006-08-04 18:18:08 +000035976case "$ac_dir" in
35977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35978*)
John Criswell12399a12003-09-30 15:55:44 +000035979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035980 # A ".." for each directory in $ac_dir_suffix.
35981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35982 case $ac_top_builddir_sub in
35983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35985 esac ;;
35986esac
35987ac_abs_top_builddir=$ac_pwd
35988ac_abs_builddir=$ac_pwd$ac_dir_suffix
35989# for backward compatibility:
35990ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035991
35992case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035993 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035994 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035995 ac_top_srcdir=$ac_top_builddir_sub
35996 ac_abs_top_srcdir=$ac_pwd ;;
35997 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035998 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035999 ac_top_srcdir=$srcdir
36000 ac_abs_top_srcdir=$srcdir ;;
36001 *) # Relative name.
36002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36003 ac_top_srcdir=$ac_top_build_prefix$srcdir
36004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036005esac
Reid Spencera773bd52006-08-04 18:18:08 +000036006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036007
36008
Reid Spencera773bd52006-08-04 18:18:08 +000036009 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036010
36011 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036012 if test -f "$ac_srcdir/configure.gnu"; then
36013 ac_sub_configure=$ac_srcdir/configure.gnu
36014 elif test -f "$ac_srcdir/configure"; then
36015 ac_sub_configure=$ac_srcdir/configure
36016 elif test -f "$ac_srcdir/configure.in"; then
36017 # This should be Cygnus configure.
36018 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036019 else
36020 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36021echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36022 ac_sub_configure=
36023 fi
36024
36025 # The recursion is here.
36026 if test -n "$ac_sub_configure"; then
36027 # Make the cache file name correct relative to the subdirectory.
36028 case $cache_file in
36029 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036030 *) # Relative name.
36031 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036032 esac
36033
Reid Spencera773bd52006-08-04 18:18:08 +000036034 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36035echo "$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 +000036036 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036037 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36038 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036039 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036040echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36041 { (exit 1); exit 1; }; }
36042 fi
36043
Reid Spencera773bd52006-08-04 18:18:08 +000036044 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036045 done
36046fi
36047