blob: d53611303b8b6462244f31e230833ad7ddd78470 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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 Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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 Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000851EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000897OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000898GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000916USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000917USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000918HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000919HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000925LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000928LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000945RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000946LIBOBJS
947LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000948ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000960CXXCPP
961F77
962FFLAGS'
963ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000965projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000966projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000967projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000968projects/llvm-reopt
969projects/llvm-gcc
970projects/llvm-java
971projects/llvm-tv
972projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000973projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000974projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001001# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001023ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001028 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001029 ac_prev=
1030 continue
1031 fi
1032
Reid Spencera773bd52006-08-04 18:18:08 +00001033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
John Criswell7a73b802003-06-30 21:59:07 +00001037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
Reid Spencera773bd52006-08-04 18:18:08 +00001064 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001065 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001067 datadir=$ac_optarg ;;
1068
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
John Criswell7a73b802003-06-30 21:59:07 +00001076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001083 eval enable_$ac_feature=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001094
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001102 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
Reid Spencera773bd52006-08-04 18:18:08 +00001129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
Reid Spencera773bd52006-08-04 18:18:08 +00001159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
John Criswell7a73b802003-06-30 21:59:07 +00001164 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001165 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
Reid Spencera773bd52006-08-04 18:18:08 +00001233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
John Criswell7a73b802003-06-30 21:59:07 +00001243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001299 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001300
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001308 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001339 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357fi
1358
Reid Spencera773bd52006-08-04 18:18:08 +00001359# Be sure to have absolute directory names.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001364do
Reid Spencera773bd52006-08-04 18:18:08 +00001365 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001366 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001369 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
Reid Spencera773bd52006-08-04 18:18:08 +00001398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1406
1407
John Criswell7a73b802003-06-30 21:59:07 +00001408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001413$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001417echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001435 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001436 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
Reid Spencera773bd52006-08-04 18:18:08 +00001442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001445 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001446fi
Reid Spencera773bd52006-08-04 18:18:08 +00001447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001450 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001476\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
John Criswell7a73b802003-06-30 21:59:07 +00001496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001498 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001500 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
David Greenea696d242007-06-28 19:36:08 +00001553 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001561 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001562 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001563 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001564 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1571 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001574 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1576 Win32)
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001579 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001580 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001581 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001582 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001583 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001584 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001587 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1593 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001594 --with-llvmgcc Specify location of llvm-gcc driver (default
1595 searches PATH)
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1597 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001598 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1600 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001603 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001607 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001608 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001611
1612Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001613 CC C compiler command
1614 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001619 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <llvmbugs@cs.uiuc.edu>.
1630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001631ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001637 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_builddir=.
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
John Criswell7a73b802003-06-30 21:59:07 +00001643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001655
1656case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001657 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001658 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001662 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001669esac
Reid Spencera773bd52006-08-04 18:18:08 +00001670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001671
Reid Spencera773bd52006-08-04 18:18:08 +00001672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001680 else
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001684 done
1685fi
1686
Reid Spencera773bd52006-08-04 18:18:08 +00001687test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001688if $ac_init_version; then
1689 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001690llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001692
Reid Spencera773bd52006-08-04 18:18:08 +00001693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001697
Tanya Lattnerc2264592009-08-22 21:01:26 +00001698Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001700 exit
John Criswell7a73b802003-06-30 21:59:07 +00001701fi
Reid Spencera773bd52006-08-04 18:18:08 +00001702cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
Tanya Lattner953042b2009-08-22 04:37:30 +00001706It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001707generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001708
1709 $ $0 $@
1710
1711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001712exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1744done
Reid Spencera773bd52006-08-04 18:18:08 +00001745IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001761# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001762# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001764ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001765ac_configure_args0=
1766ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001767ac_must_keep_next=false
1768for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001769do
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001777 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001785 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001786 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001798 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001799 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ;;
1801 esac
1802 done
John Criswell7a73b802003-06-30 21:59:07 +00001803done
John Criswell0c38eaf2003-09-10 15:17:25 +00001804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$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 +00001806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log. We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001812trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001816
John Criswell7a73b802003-06-30 21:59:07 +00001817 cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001824(
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
John Criswell7a73b802003-06-30 21:59:07 +00001839 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001842 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001846 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001849 esac |
1850 sort
1851)
John Criswell7a73b802003-06-30 21:59:07 +00001852 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001853
1854 cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
Reid Spencera773bd52006-08-04 18:18:08 +00001862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001875_ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
Reid Spencera773bd52006-08-04 18:18:08 +00001879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001884 done | sort
1885 echo
1886 fi
1887
John Criswell7a73b802003-06-30 21:59:07 +00001888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001895 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1901 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001904 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001905' 0
John Criswell7a73b802003-06-30 21:59:07 +00001906for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001912rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001943if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947else
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001950fi
Reid Spencera773bd52006-08-04 18:18:08 +00001951shift
1952for ac_site_file
1953do
John Criswell7a73b802003-06-30 21:59:07 +00001954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1958 . "$ac_site_file"
1959 fi
1960done
1961
1962if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001971 esac
1972 fi
1973else
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1977fi
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001982for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1997 *)
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002002echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002004echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002005 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2026fi
2027
Reid Spencera773bd52006-08-04 18:18:08 +00002028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
Tanya Lattnerc2264592009-08-22 21:01:26 +00002060LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061
2062
2063
2064
2065
2066
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002069for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2073 break
Reid Spencera773bd52006-08-04 18:18:08 +00002074 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2077 break
Reid Spencera773bd52006-08-04 18:18:08 +00002078 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 break
2082 fi
2083done
2084if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002087 { (exit 1); exit 1; }; }
2088fi
Reid Spencera773bd52006-08-04 18:18:08 +00002089
2090# These three variables are undocumented and unsupported,
2091# and are intended to be withdrawn in a future Autoconf release.
2092# They can cause serious problems if a builder's source tree is in a directory
2093# whose full name contains unusual characters.
2094ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097
John Criswell7a73b802003-06-30 21:59:07 +00002098
John Criswell392aaa32003-07-22 19:18:09 +00002099
Reid Spencer2706f8c2004-09-19 23:53:36 +00002100if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002103echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105 fi
John Criswell93e1c722003-09-15 17:04:06 +00002106fi
2107
John Criswell33a911a2003-11-25 20:36:46 +00002108for i in `ls ${srcdir}/projects`
2109do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 if test -d ${srcdir}/projects/${i} ; then
2111 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 CVS) ;;
2113 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002119 # llvm-test is the old name of the test-suite, kept here for backwards
2120 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002121 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002123 test-suite) subdirs="$subdirs projects/test-suite"
2124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002126;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002132 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002134 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002135 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002136 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002138 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002139 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002142 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002143 esac
John Criswell33a911a2003-11-25 20:36:46 +00002144 fi
2145done
John Criswell559a6c12003-09-30 16:31:48 +00002146
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
2153
Reid Spencera773bd52006-08-04 18:18:08 +00002154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002156if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
Reid Spencera773bd52006-08-04 18:18:08 +00002159 ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002169 { (exit 1); exit 1; }; }
2170
2171fi
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
John Criswell7a73b802003-06-30 21:59:07 +00002180build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
Reid Spencera773bd52006-08-04 18:18:08 +00002199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002205 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002206fi
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208fi
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2216esac
John Criswell7a73b802003-06-30 21:59:07 +00002217host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230
Reid Spencera773bd52006-08-04 18:18:08 +00002231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002233if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
Reid Spencera773bd52006-08-04 18:18:08 +00002236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2238else
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002242 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002243fi
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245fi
Reid Spencera773bd52006-08-04 18:18:08 +00002246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2253esac
John Criswell7a73b802003-06-30 21:59:07 +00002254target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2272 NONENONEs,x,x, &&
2273 program_prefix=${target_alias}-
2274
Reid Spencera773bd52006-08-04 18:18:08 +00002275{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002280 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002286 *-*-irix*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002298 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002306 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002311 *-*-netbsd*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002316 *-*-dragonfly*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002321 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2341 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002351 *-unknown-eabi*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2356 *-unknown-elf*)
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002362 llvm_cv_link_all_option=""
2363 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002366esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
Reid Spencera773bd52006-08-04 18:18:08 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002370
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002371{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 case $target in
2377 *-*-aix*)
2378 llvm_cv_target_os_type="AIX" ;;
2379 *-*-irix*)
2380 llvm_cv_target_os_type="IRIX" ;;
2381 *-*-cygwin*)
2382 llvm_cv_target_os_type="Cygwin" ;;
2383 *-*-darwin*)
2384 llvm_cv_target_os_type="Darwin" ;;
2385 *-*-freebsd*)
2386 llvm_cv_target_os_type="FreeBSD" ;;
2387 *-*-openbsd*)
2388 llvm_cv_target_os_type="OpenBSD" ;;
2389 *-*-netbsd*)
2390 llvm_cv_target_os_type="NetBSD" ;;
2391 *-*-dragonfly*)
2392 llvm_cv_target_os_type="DragonFly" ;;
2393 *-*-hpux*)
2394 llvm_cv_target_os_type="HP-UX" ;;
2395 *-*-interix*)
2396 llvm_cv_target_os_type="Interix" ;;
2397 *-*-linux*)
2398 llvm_cv_target_os_type="Linux" ;;
2399 *-*-solaris*)
2400 llvm_cv_target_os_type="SunOS" ;;
2401 *-*-win32*)
2402 llvm_cv_target_os_type="Win32" ;;
2403 *-*-mingw*)
2404 llvm_cv_target_os_type="MingW" ;;
2405 *-unknown-eabi*)
2406 llvm_cv_target_os_type="Freestanding" ;;
2407 *)
2408 llvm_cv_target_os_type="Unknown" ;;
2409esac
2410fi
2411{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
Reid Spencer7b3e8512004-12-24 06:29:05 +00002414if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002417 { (exit 1); exit 1; }; }
2418fi
2419
Reid Spencer7b3e8512004-12-24 06:29:05 +00002420OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002422HOST_OS=$llvm_cv_os_type
2423
2424TARGET_OS=$llvm_cv_target_os_type
2425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426
Reid Spencera773bd52006-08-04 18:18:08 +00002427LINKALL=$llvm_cv_link_all_option
2428
2429NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
Reid Spencer7b3e8512004-12-24 06:29:05 +00002432case $llvm_cv_platform_type in
2433 Unix)
2434
2435cat >>confdefs.h <<\_ACEOF
2436#define LLVM_ON_UNIX 1
2437_ACEOF
2438
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002439 LLVM_ON_UNIX=1
2440
2441 LLVM_ON_WIN32=0
2442
Reid Spencer7b3e8512004-12-24 06:29:05 +00002443 ;;
2444 Win32)
2445
2446cat >>confdefs.h <<\_ACEOF
2447#define LLVM_ON_WIN32 1
2448_ACEOF
2449
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002450 LLVM_ON_UNIX=0
2451
2452 LLVM_ON_WIN32=1
2453
Reid Spencer7b3e8512004-12-24 06:29:05 +00002454 ;;
2455esac
2456
Reid Spencera773bd52006-08-04 18:18:08 +00002457{ echo "$as_me:$LINENO: checking target architecture" >&5
2458echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002463 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002468 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002469 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002470 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002471 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002472 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002475 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002476esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
Reid Spencera773bd52006-08-04 18:18:08 +00002478{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002480
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484fi
John Criswell76595452003-07-01 22:07:39 +00002485
Nick Lewycky83fc4472009-09-29 05:48:51 +00002486# Determine the LLVM native architecture for the target
2487case "$llvm_cv_target_arch" in
2488 x86) LLVM_NATIVE_ARCH="X86" ;;
2489 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2490 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2491esac
2492
2493ARCH=$llvm_cv_target_arch
2494
2495
2496ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002501if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
Reid Spencera773bd52006-08-04 18:18:08 +00002525IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002531 { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533else
Reid Spencera773bd52006-08-04 18:18:08 +00002534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536fi
2537
Reid Spencera773bd52006-08-04 18:18:08 +00002538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539fi
2540if test -z "$ac_cv_prog_CC"; then
2541 ac_ct_CC=$CC
2542 # Extract the first word of "gcc", so it can be a program name with args.
2543set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559 ac_cv_prog_ac_ct_CC="gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
Reid Spencera773bd52006-08-04 18:18:08 +00002565IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002571 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573else
Reid Spencera773bd52006-08-04 18:18:08 +00002574 { echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576fi
2577
Reid Spencera773bd52006-08-04 18:18:08 +00002578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584whose name does not start with the host triplet. If you think this
2585configuration is useful to you, please write to autoconf@gnu.org." >&5
2586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587whose name does not start with the host triplet. If you think this
2588configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591 CC=$ac_ct_CC
2592 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593else
2594 CC="$ac_cv_prog_CC"
2595fi
2596
2597if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 if test -n "$ac_tool_prefix"; then
2599 # 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 +00002600set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002615 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 +00002616 ac_cv_prog_CC="${ac_tool_prefix}cc"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
Reid Spencera773bd52006-08-04 18:18:08 +00002622IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002628 { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633fi
2634
Reid Spencera773bd52006-08-04 18:18:08 +00002635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637fi
2638if test -z "$CC"; then
2639 # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649 ac_prog_rejected=no
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002656 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 +00002657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658 ac_prog_rejected=yes
2659 continue
2660 fi
2661 ac_cv_prog_CC="cc"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
Reid Spencera773bd52006-08-04 18:18:08 +00002667IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668
2669if test $ac_prog_rejected = yes; then
2670 # We found a bogon in the path, so make sure we never use it.
2671 set dummy $ac_cv_prog_CC
2672 shift
2673 if test $# != 0; then
2674 # We chose a different compiler from the bogus one.
2675 # However, it has the same basename, so the bogon will be chosen
2676 # first if we set CC to just the basename; use the full file name.
2677 shift
2678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679 fi
2680fi
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687else
Reid Spencera773bd52006-08-04 18:18:08 +00002688 { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690fi
2691
Reid Spencera773bd52006-08-04 18:18:08 +00002692
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693fi
2694if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002696 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002697 do
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002714 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 +00002715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
Reid Spencera773bd52006-08-04 18:18:08 +00002721IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002722
2723fi
2724fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002727 { echo "$as_me:$LINENO: result: $CC" >&5
2728echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002729else
Reid Spencera773bd52006-08-04 18:18:08 +00002730 { echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002732fi
2733
Reid Spencera773bd52006-08-04 18:18:08 +00002734
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002736 done
2737fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738if test -z "$CC"; then
2739 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002740 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002741do
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002758 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 +00002759 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763done
2764done
Reid Spencera773bd52006-08-04 18:18:08 +00002765IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002766
2767fi
2768fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002773else
Reid Spencera773bd52006-08-04 18:18:08 +00002774 { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002776fi
2777
Reid Spencera773bd52006-08-04 18:18:08 +00002778
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002779 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002780done
John Criswell7a73b802003-06-30 21:59:07 +00002781
Reid Spencera773bd52006-08-04 18:18:08 +00002782 if test "x$ac_ct_CC" = x; then
2783 CC=""
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet. If you think this
2789configuration is useful to you, please write to autoconf@gnu.org." >&5
2790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet. If you think this
2792configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795 CC=$ac_ct_CC
2796 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002797fi
2798
John Criswell7a73b802003-06-30 21:59:07 +00002799fi
2800
2801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002802test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803See \`config.log' for more details." >&5
2804echo "$as_me: error: no acceptable C compiler found in \$PATH
2805See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2807
John Criswell7a73b802003-06-30 21:59:07 +00002808# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002809echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002810ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002811{ (ac_try="$ac_compiler --version >&5"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002821{ (ac_try="$ac_compiler -v >&5"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002831{ (ac_try="$ac_compiler -V >&5"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841
2842cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002843/* confdefs.h. */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002848
John Criswell7a73b802003-06-30 21:59:07 +00002849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002858ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002859# Try to create an executable without -o first, disregard a.out.
2860# It will help us diagnose broken compilers, and finding out an intuition
2861# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002862{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002864ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002865#
2866# List of possible output files, starting from the most likely.
2867# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868# only as a last resort. b.out is created by i960 compilers.
2869ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2870#
2871# The IRIX 6 linker writes into existing files which may not be
2872# executable, retaining their permissions. Remove them first so a
2873# subsequent execution test works.
2874ac_rmfiles=
2875for ac_file in $ac_files
2876do
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880 esac
2881done
2882rm -f $ac_rmfiles
2883
2884if { (ac_try="$ac_link_default"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896# in a Makefile. We should not override ac_cv_exeext if it was cached,
2897# so that the user can short-circuit this test for compilers unknown to
2898# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002899for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002900do
2901 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002902 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002904 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002905 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002906 # We found the default executable, but exeext='' is most
2907 # certainly right.
2908 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002909 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911 then :; else
2912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 fi
2914 # We set ac_cv_exeext here because the later test for it is not
2915 # safe: cross compilers may not add the suffix if given an `-o'
2916 # argument, so we may need to know it at that point already.
2917 # Even if this section looks crufty: it has the advantage of
2918 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002919 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002920 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002921 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002922 esac
2923done
Reid Spencera773bd52006-08-04 18:18:08 +00002924test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
John Criswell7a73b802003-06-30 21:59:07 +00002926else
2927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002928sed 's/^/| /' conftest.$ac_ext >&5
2929
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002930{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002931See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002932echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002933See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002934 { (exit 77); exit 77; }; }
2935fi
2936
2937ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002938{ echo "$as_me:$LINENO: result: $ac_file" >&5
2939echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002940
Reid Spencera773bd52006-08-04 18:18:08 +00002941# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002942# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002943{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002945# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946# If not cross compiling, check that we can run a simple program.
2947if test "$cross_compiling" != yes; then
2948 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 cross_compiling=no
2959 else
2960 if test "$cross_compiling" = maybe; then
2961 cross_compiling=yes
2962 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002966echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002967If you meant to cross compile, use \`--host'.
2968See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002969 { (exit 1); exit 1; }; }
2970 fi
2971 fi
2972fi
Reid Spencera773bd52006-08-04 18:18:08 +00002973{ echo "$as_me:$LINENO: result: yes" >&5
2974echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002975
John Criswell0c38eaf2003-09-10 15:17:25 +00002976rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002977ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002978# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002979# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002980{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2982{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002984
Reid Spencera773bd52006-08-04 18:18:08 +00002985{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2987if { (ac_try="$ac_link"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999# work properly (i.e., refer to `conftest.exe'), while it won't with
3000# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003001for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003003 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003006 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003007 * ) break;;
3008 esac
3009done
3010else
John Criswell0c38eaf2003-09-10 15:17:25 +00003011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3012See \`config.log' for more details." >&5
3013echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3014See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003015 { (exit 1); exit 1; }; }
3016fi
3017
3018rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003019{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3020echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003021
3022rm -f conftest.$ac_ext
3023EXEEXT=$ac_cv_exeext
3024ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003025{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3026echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003027if test "${ac_cv_objext+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003036
John Criswell7a73b802003-06-30 21:59:07 +00003037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003056 for ac_file in conftest.o conftest.obj conftest.*; do
3057 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003058 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3061 break;;
3062 esac
3063done
3064else
3065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3069See \`config.log' for more details." >&5
3070echo "$as_me: error: cannot compute suffix of object files: cannot compile
3071See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003072 { (exit 1); exit 1; }; }
3073fi
3074
3075rm -f conftest.$ac_cv_objext conftest.$ac_ext
3076fi
Reid Spencera773bd52006-08-04 18:18:08 +00003077{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003079OBJEXT=$ac_cv_objext
3080ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003081{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003083if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003092
John Criswell7a73b802003-06-30 21:59:07 +00003093int
3094main ()
3095{
3096#ifndef __GNUC__
3097 choke me
3098#endif
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003105if { (ac_try="$ac_compile"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003138 ac_compiler_gnu=yes
3139else
3140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003141sed 's/^/| /' conftest.$ac_ext >&5
3142
Reid Spencera773bd52006-08-04 18:18:08 +00003143 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003144fi
Reid Spencera773bd52006-08-04 18:18:08 +00003145
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003147ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003148
3149fi
Reid Spencera773bd52006-08-04 18:18:08 +00003150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003152GCC=`test $ac_compiler_gnu = yes && echo yes`
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003157if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
Reid Spencera773bd52006-08-04 18:18:08 +00003160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003170
John Criswell7a73b802003-06-30 21:59:07 +00003171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003214else
3215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003216sed 's/^/| /' conftest.$ac_ext >&5
3217
Reid Spencera773bd52006-08-04 18:18:08 +00003218 CFLAGS=""
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003268 :
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274 CFLAGS="-g"
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003324 ac_cv_prog_cc_g=yes
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
John Criswell7a73b802003-06-30 21:59:07 +00003330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003333fi
Reid Spencera773bd52006-08-04 18:18:08 +00003334
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336fi
3337
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003348 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003350 fi
3351else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003354 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003356 fi
3357fi
Reid Spencera773bd52006-08-04 18:18:08 +00003358{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
Reid Spencera773bd52006-08-04 18:18:08 +00003363 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364ac_save_CC=$CC
3365cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdarg.h>
3372#include <stdio.h>
3373#include <sys/types.h>
3374#include <sys/stat.h>
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379 char **p;
3380 int i;
3381{
3382 return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003397 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003400 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
Reid Spencera773bd52006-08-04 18:18:08 +00003403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420}
3421_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424do
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003427if { (ac_try="$ac_compile"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441 { (case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003460 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
Reid Spencera773bd52006-08-04 18:18:08 +00003465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466fi
Reid Spencera773bd52006-08-04 18:18:08 +00003467
3468rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470done
Reid Spencera773bd52006-08-04 18:18:08 +00003471rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472CC=$ac_save_CC
3473
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475# AC_CACHE_VAL
3476case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479echo "${ECHO_T}none needed" >&6; } ;;
3480 xno)
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487esac
3488
John Criswell0c38eaf2003-09-10 15:17:25 +00003489
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003502{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504# On Suns, sometimes $CPP names a directory.
3505if test -n "$CPP" && test -d "$CPP"; then
3506 CPP=
3507fi
3508if test -z "$CPP"; then
3509 if test "${ac_cv_prog_CPP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 # Double quotes because CPP needs to be expanded
3513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3514 do
3515 ac_preproc_ok=false
3516for ac_c_preproc_warn_flag in '' yes
3517do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530#ifdef __STDC__
3531# include <limits.h>
3532#else
3533# include <assert.h>
3534#endif
3535 Syntax error
3536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003537if { (ac_try="$ac_cpp conftest.$ac_ext"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553 else
3554 ac_cpp_err=
3555 fi
3556else
3557 ac_cpp_err=yes
3558fi
3559if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560 :
3561else
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 # Broken: fails on valid input.
3566continue
3567fi
Reid Spencera773bd52006-08-04 18:18:08 +00003568
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569rm -f conftest.err conftest.$ac_ext
3570
Reid Spencera773bd52006-08-04 18:18:08 +00003571 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 # can be detected and how.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#include <ac_nonexistent.h>
3580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003581if { (ac_try="$ac_cpp conftest.$ac_ext"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 else
3598 ac_cpp_err=
3599 fi
3600else
3601 ac_cpp_err=yes
3602fi
3603if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604 # Broken: success on invalid input.
3605continue
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Passes both tests.
3611ac_preproc_ok=:
3612break
3613fi
Reid Spencera773bd52006-08-04 18:18:08 +00003614
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615rm -f conftest.err conftest.$ac_ext
3616
3617done
3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619rm -f conftest.err conftest.$ac_ext
3620if $ac_preproc_ok; then
3621 break
3622fi
3623
3624 done
3625 ac_cv_prog_CPP=$CPP
3626
3627fi
3628 CPP=$ac_cv_prog_CPP
3629else
3630 ac_cv_prog_CPP=$CPP
3631fi
Reid Spencera773bd52006-08-04 18:18:08 +00003632{ echo "$as_me:$LINENO: result: $CPP" >&5
3633echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634ac_preproc_ok=false
3635for ac_c_preproc_warn_flag in '' yes
3636do
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#ifdef __STDC__
3650# include <limits.h>
3651#else
3652# include <assert.h>
3653#endif
3654 Syntax error
3655_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003656if { (ac_try="$ac_cpp conftest.$ac_ext"
3657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003668 (exit $ac_status); } >/dev/null; then
3669 if test -s conftest.err; then
3670 ac_cpp_err=$ac_c_preproc_warn_flag
3671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672 else
3673 ac_cpp_err=
3674 fi
3675else
3676 ac_cpp_err=yes
3677fi
3678if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679 :
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 # Broken: fails on valid input.
3685continue
3686fi
Reid Spencera773bd52006-08-04 18:18:08 +00003687
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003688rm -f conftest.err conftest.$ac_ext
3689
Reid Spencera773bd52006-08-04 18:18:08 +00003690 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698#include <ac_nonexistent.h>
3699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003700if { (ac_try="$ac_cpp conftest.$ac_ext"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 else
3717 ac_cpp_err=
3718 fi
3719else
3720 ac_cpp_err=yes
3721fi
3722if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003723 # Broken: success on invalid input.
3724continue
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 # Passes both tests.
3730ac_preproc_ok=:
3731break
3732fi
Reid Spencera773bd52006-08-04 18:18:08 +00003733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003734rm -f conftest.err conftest.$ac_ext
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738rm -f conftest.err conftest.$ac_ext
3739if $ac_preproc_ok; then
3740 :
3741else
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743See \`config.log' for more details." >&5
3744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3747fi
3748
John Criswell7a73b802003-06-30 21:59:07 +00003749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
John Criswell7a73b802003-06-30 21:59:07 +00003755
Reid Spencera773bd52006-08-04 18:18:08 +00003756{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3757echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003758if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
Reid Spencera773bd52006-08-04 18:18:08 +00003761 # Extract the first word of "grep ggrep" to use in msg output
3762if test -z "$GREP"; then
3763set dummy grep ggrep; ac_prog_name=$2
3764if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
Reid Spencera773bd52006-08-04 18:18:08 +00003767 ac_path_GREP_found=false
3768# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003774 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003775 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003776 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003777 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003778 # Check for GNU ac_path_GREP and select it if it is found.
3779 # Check for GNU $ac_path_GREP
3780case `"$ac_path_GREP" --version 2>&1` in
3781*GNU*)
3782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783*)
3784 ac_count=0
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 while :
3787 do
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'GREP' >> "conftest.nl"
3792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 ac_count=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_GREP="$ac_path_GREP"
3798 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003799 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3802 done
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804esac
3805
3806
3807 $ac_path_GREP_found && break 3
3808 done
3809done
3810
3811done
3812IFS=$as_save_IFS
3813
3814
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003815fi
Reid Spencera773bd52006-08-04 18:18:08 +00003816
3817GREP="$ac_cv_path_GREP"
3818if test -z "$GREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3822fi
3823
3824else
3825 ac_cv_path_GREP=$GREP
3826fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003827
John Criswell7a73b802003-06-30 21:59:07 +00003828
Reid Spencera773bd52006-08-04 18:18:08 +00003829fi
3830{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3831echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3832 GREP="$ac_cv_path_GREP"
3833
3834
3835{ echo "$as_me:$LINENO: checking for egrep" >&5
3836echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3837if test "${ac_cv_path_EGREP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841 then ac_cv_path_EGREP="$GREP -E"
3842 else
3843 # Extract the first word of "egrep" to use in msg output
3844if test -z "$EGREP"; then
3845set dummy egrep; ac_prog_name=$2
3846if test "${ac_cv_path_EGREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 ac_path_EGREP_found=false
3850# Loop through the user's path and test for each of PROGNAME-LIST
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in egrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003859 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003860 # Check for GNU ac_path_EGREP and select it if it is found.
3861 # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866 ac_count=0
3867 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868 while :
3869 do
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 echo 'EGREP' >> "conftest.nl"
3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_EGREP="$ac_path_EGREP"
3880 ac_path_EGREP_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3884 done
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888
3889 $ac_path_EGREP_found && break 3
3890 done
3891done
3892
3893done
3894IFS=$as_save_IFS
3895
3896
3897fi
3898
3899EGREP="$ac_cv_path_EGREP"
3900if test -z "$EGREP"; then
3901 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903 { (exit 1); exit 1; }; }
3904fi
3905
3906else
3907 ac_cv_path_EGREP=$EGREP
3908fi
3909
3910
3911 fi
3912fi
3913{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3914echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3915 EGREP="$ac_cv_path_EGREP"
3916
3917
3918{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3919echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003920if test "${ac_cv_header_stdc+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <stdlib.h>
3930#include <stdarg.h>
3931#include <string.h>
3932#include <float.h>
3933
John Criswell0c38eaf2003-09-10 15:17:25 +00003934int
3935main ()
3936{
3937
3938 ;
3939 return 0;
3940}
John Criswell7a73b802003-06-30 21:59:07 +00003941_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003942rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003943if { (ac_try="$ac_compile"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003950 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_cv_header_stdc=yes
3977else
3978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003979sed 's/^/| /' conftest.$ac_ext >&5
3980
Reid Spencera773bd52006-08-04 18:18:08 +00003981 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
Reid Spencera773bd52006-08-04 18:18:08 +00003983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003985
3986if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003994#include <string.h>
3995
3996_ACEOF
3997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003998 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003999 :
4000else
4001 ac_cv_header_stdc=no
4002fi
4003rm -f conftest*
4004
4005fi
4006
4007if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004015#include <stdlib.h>
4016
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004019 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004020 :
4021else
4022 ac_cv_header_stdc=no
4023fi
4024rm -f conftest*
4025
4026fi
4027
4028if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4031 :
4032else
4033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004039#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004040#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004041#if ((' ' & 0x0FF) == 0x020)
4042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004045# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
4051
4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053int
4054main ()
4055{
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004059 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004060 return 2;
4061 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004062}
4063_ACEOF
4064rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 :
4085else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004088sed 's/^/| /' conftest.$ac_ext >&5
4089
John Criswell7a73b802003-06-30 21:59:07 +00004090( exit $ac_status )
4091ac_cv_header_stdc=no
4092fi
Reid Spencera773bd52006-08-04 18:18:08 +00004093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094fi
4095
4096
John Criswell7a73b802003-06-30 21:59:07 +00004097fi
4098fi
Reid Spencera773bd52006-08-04 18:18:08 +00004099{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004101if test $ac_cv_header_stdc = yes; then
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define STDC_HEADERS 1
4105_ACEOF
4106
4107fi
4108
Reid Spencera773bd52006-08-04 18:18:08 +00004109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4120 inttypes.h stdint.h unistd.h
4121do
4122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_includes_default
4135
4136#include <$ac_header>
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004172 eval "$as_ac_Header=yes"
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 eval "$as_ac_Header=no"
4178fi
4179
4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181fi
4182ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184echo "${ECHO_T}$ac_res" >&6; }
4185if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188_ACEOF
4189
4190fi
4191
4192done
4193
4194
4195{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4196echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4197if test "${ac_cv_c_bigendian+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 # See if sys/param.h defines the BYTE_ORDER macro.
4201cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <sys/types.h>
4208#include <sys/param.h>
4209
4210int
4211main ()
4212{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004213#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004214 bogus endian macros
4215#endif
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004255 # It does; now see whether it defined to BIG_ENDIAN or not.
4256cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262#include <sys/types.h>
4263#include <sys/param.h>
4264
4265int
4266main ()
4267{
4268#if BYTE_ORDER != BIG_ENDIAN
4269 not big endian
4270#endif
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext
4277if { (ac_try="$ac_compile"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004310 ac_cv_c_bigendian=yes
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ac_cv_c_bigendian=no
4316fi
4317
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 # It does not; compile a test program.
4324if test "$cross_compiling" = yes; then
4325 # try to guess the endianness by grepping values into an object file
4326 ac_cv_c_bigendian=unknown
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339int
4340main ()
4341{
4342 _ascii (); _ebcdic ();
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext
4348if { (ac_try="$ac_compile"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_compile") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004381 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4382 ac_cv_c_bigendian=yes
4383fi
4384if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4385 if test "$ac_cv_c_bigendian" = unknown; then
4386 ac_cv_c_bigendian=no
4387 else
4388 # finding both strings is unlikely to happen, but who knows?
4389 ac_cv_c_bigendian=unknown
4390 fi
4391fi
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396
4397fi
4398
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400else
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408int
4409main ()
4410{
4411
4412 /* Are we little or big endian? From Harbison&Steele. */
4413 union
4414 {
4415 long int l;
4416 char c[sizeof (long int)];
4417 } u;
4418 u.l = 1;
4419 return u.c[sizeof (long int) - 1] == 1;
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest$ac_exeext
4426if { (ac_try="$ac_link"
4427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_link") 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4436 { (case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_try") 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_c_bigendian=no
4446else
4447 echo "$as_me: program exited with status $ac_status" >&5
4448echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451( exit $ac_status )
4452ac_cv_c_bigendian=yes
4453fi
4454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455fi
4456
4457
4458fi
4459
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4463echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4464case $ac_cv_c_bigendian in
4465 yes)
4466 ENDIAN=big
4467 ;;
4468 no)
4469 ENDIAN=little
4470 ;;
4471 *)
4472 { { echo "$as_me:$LINENO: error: unknown endianness
4473presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4474echo "$as_me: error: unknown endianness
4475presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4476 { (exit 1); exit 1; }; } ;;
4477esac
4478
4479
4480if test "$cross_compiling" = yes; then
4481 LLVM_CROSS_COMPILING=1
4482
4483
4484{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4485echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4486if test "${ac_cv_build_exeext+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4490 ac_cv_build_exeext=.exe
4491else
4492 ac_build_prefix=${build_alias}-
4493
4494 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4495set dummy ${ac_build_prefix}gcc; ac_word=$2
4496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004510 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 +00004511 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 if test -z "$BUILD_CC"; then
4532 # Extract the first word of "gcc", so it can be a program name with args.
4533set dummy gcc; ac_word=$2
4534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539 if test -n "$BUILD_CC"; then
4540 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004548 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 +00004549 ac_cv_prog_BUILD_CC="gcc"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559BUILD_CC=$ac_cv_prog_BUILD_CC
4560if test -n "$BUILD_CC"; then
4561 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4562echo "${ECHO_T}$BUILD_CC" >&6; }
4563else
4564 { echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6; }
4566fi
4567
4568
4569 if test -z "$BUILD_CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
4572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$BUILD_CC"; then
4578 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4579else
4580 ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004587 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 +00004588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_BUILD_CC="cc"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_BUILD_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set BUILD_CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614BUILD_CC=$ac_cv_prog_BUILD_CC
4615if test -n "$BUILD_CC"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4617echo "${ECHO_T}$BUILD_CC" >&6; }
4618else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; }
4621fi
4622
4623
4624 fi
4625 fi
4626 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4627echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4628 { (exit 1); exit 1; }; }
4629 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4630 rm -f conftest*
4631 echo 'int main () { return 0; }' > conftest.$ac_ext
4632 ac_cv_build_exeext=
4633 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4634 (eval $ac_build_link) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; then
4638 for file in conftest.*; do
4639 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004640 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004641 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4642 esac
4643 done
4644 else
4645 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4646echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4647 { (exit 1); exit 1; }; }
4648 fi
4649 rm -f conftest*
4650 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4651fi
4652fi
4653
4654BUILD_EXEEXT=""
4655test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4656{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4657echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4658ac_build_exeext=$BUILD_EXEEXT
4659
Jim Grosbach673612e2008-10-02 22:56:44 +00004660 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4662set dummy ${ac_build_prefix}g++; ac_word=$2
4663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004677 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 +00004678 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 if test -z "$BUILD_CXX"; then
4699 # Extract the first word of "g++", so it can be a program name with args.
4700set dummy g++; ac_word=$2
4701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 if test -n "$BUILD_CXX"; then
4707 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004715 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 +00004716 ac_cv_prog_BUILD_CXX="g++"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CXX=$ac_cv_prog_BUILD_CXX
4727if test -n "$BUILD_CXX"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4729echo "${ECHO_T}$BUILD_CXX" >&6; }
4730else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736 if test -z "$BUILD_CXX"; then
4737 # Extract the first word of "c++", so it can be a program name with args.
4738set dummy c++; ac_word=$2
4739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 if test -n "$BUILD_CXX"; then
4745 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4746else
4747 ac_prog_rejected=no
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004754 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 +00004755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4756 ac_prog_rejected=yes
4757 continue
4758 fi
4759 ac_cv_prog_BUILD_CXX="c++"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
4765IFS=$as_save_IFS
4766
4767if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CXX
4770 shift
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CXX to just the basename; use the full file name.
4775 shift
4776 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4777 fi
4778fi
4779fi
4780fi
4781BUILD_CXX=$ac_cv_prog_BUILD_CXX
4782if test -n "$BUILD_CXX"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4784echo "${ECHO_T}$BUILD_CXX" >&6; }
4785else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
4788fi
4789
4790
4791 fi
4792 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004793else
4794 LLVM_CROSS_COMPILING=0
4795
4796fi
4797
Nick Lewycky5b28f862009-04-10 05:18:27 +00004798if 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 +00004799 cvsbuild="yes"
4800 optimize="no"
4801 CVSBUILD=CVSBUILD=1
4802
4803else
4804 cvsbuild="no"
4805 optimize="yes"
4806fi
4807
4808
4809# Check whether --enable-optimized was given.
4810if test "${enable_optimized+set}" = set; then
4811 enableval=$enable_optimized;
4812else
4813 enableval=$optimize
4814fi
4815
4816if test ${enableval} = "no" ; then
4817 ENABLE_OPTIMIZED=
4818
4819else
4820 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4821
4822fi
4823
David Greene2a5a12c2009-04-17 14:50:39 +00004824# Check whether --enable-profiling was given.
4825if test "${enable_profiling+set}" = set; then
4826 enableval=$enable_profiling;
4827else
4828 enableval="no"
4829fi
4830
4831if test ${enableval} = "no" ; then
4832 ENABLE_PROFILING=
4833
4834else
4835 ENABLE_PROFILING=ENABLE_PROFILING=1
4836
4837fi
4838
Reid Spencera773bd52006-08-04 18:18:08 +00004839# Check whether --enable-assertions was given.
4840if test "${enable_assertions+set}" = set; then
4841 enableval=$enable_assertions;
4842else
4843 enableval="yes"
4844fi
4845
4846if test ${enableval} = "yes" ; then
4847 DISABLE_ASSERTIONS=
4848
4849else
4850 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4851
4852fi
4853
David Greenea696d242007-06-28 19:36:08 +00004854# Check whether --enable-expensive-checks was given.
4855if test "${enable_expensive_checks+set}" = set; then
4856 enableval=$enable_expensive_checks;
4857else
4858 enableval="no"
4859fi
4860
4861if test ${enableval} = "yes" ; then
4862 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4863
4864 EXPENSIVE_CHECKS=yes
4865
4866else
4867 ENABLE_EXPENSIVE_CHECKS=
4868
4869 EXPENSIVE_CHECKS=no
4870
4871fi
4872
Reid Spencer8b2e1412006-11-17 03:32:33 +00004873# Check whether --enable-debug-runtime was given.
4874if test "${enable_debug_runtime+set}" = set; then
4875 enableval=$enable_debug_runtime;
4876else
4877 enableval=no
4878fi
4879
4880if test ${enableval} = "no" ; then
4881 DEBUG_RUNTIME=
4882
4883else
4884 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4885
4886fi
4887
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004888# Check whether --enable-debug-symbols was given.
4889if test "${enable_debug_symbols+set}" = set; then
4890 enableval=$enable_debug_symbols;
4891else
4892 enableval=no
4893fi
4894
4895if test ${enableval} = "no" ; then
4896 DEBUG_SYMBOLS=
4897
4898else
4899 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4900
4901fi
4902
Reid Spencera773bd52006-08-04 18:18:08 +00004903# Check whether --enable-jit was given.
4904if test "${enable_jit+set}" = set; then
4905 enableval=$enable_jit;
4906else
4907 enableval=default
4908fi
4909
4910if test ${enableval} = "no"
4911then
4912 JIT=
4913
4914else
4915 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004916 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004917 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004918 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004919 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004920 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004921 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004922 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004923 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004924 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004925 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004926 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004927 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004928 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004929 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004930 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004931 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004932 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004933 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004934 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004935 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004936 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004937 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004938 Blackfin) TARGET_HAS_JIT=0
4939 ;;
4940 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004941 ;;
4942 esac
4943fi
4944
4945# Check whether --enable-doxygen was given.
4946if test "${enable_doxygen+set}" = set; then
4947 enableval=$enable_doxygen;
4948else
4949 enableval=default
4950fi
4951
4952case "$enableval" in
4953 yes) ENABLE_DOXYGEN=1
4954 ;;
4955 no) ENABLE_DOXYGEN=0
4956 ;;
4957 default) ENABLE_DOXYGEN=0
4958 ;;
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4960echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4962esac
4963
4964# Check whether --enable-threads was given.
4965if test "${enable_threads+set}" = set; then
4966 enableval=$enable_threads;
4967else
Reid Spencer65c5d752006-11-05 17:08:18 +00004968 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_THREADS=1
4973 ;;
4974 no) ENABLE_THREADS=0
4975 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004976 default) ENABLE_THREADS=1
4977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
Owen Andersona8603702009-05-19 22:18:56 +00004983cat >>confdefs.h <<_ACEOF
4984#define ENABLE_THREADS $ENABLE_THREADS
4985_ACEOF
4986
4987
Reid Spencer89b0d992006-12-16 22:07:52 +00004988# Check whether --enable-pic was given.
4989if test "${enable_pic+set}" = set; then
4990 enableval=$enable_pic;
4991else
4992 enableval=default
4993fi
4994
4995case "$enableval" in
4996 yes) ENABLE_PIC=1
4997 ;;
4998 no) ENABLE_PIC=0
4999 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005000 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005001 ;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5003echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005esac
5006
5007cat >>confdefs.h <<_ACEOF
5008#define ENABLE_PIC $ENABLE_PIC
5009_ACEOF
5010
5011
Reid Spencera773bd52006-08-04 18:18:08 +00005012TARGETS_TO_BUILD=""
5013# Check whether --enable-targets was given.
5014if test "${enable_targets+set}" = set; then
5015 enableval=$enable_targets;
5016else
5017 enableval=all
5018fi
5019
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005020if test "$enableval" = host-only ; then
5021 enableval=host
5022fi
Reid Spencera773bd52006-08-04 18:18:08 +00005023case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005024 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005025 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5026 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005027 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5029 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5030 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5031 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5032 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5033 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5034 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5035 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5036 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5037 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5038 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5039 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5040 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5041 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5042 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005043 host) case "$llvm_cv_target_arch" in
5044 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5046 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5047 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5048 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5049 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5050 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5051 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5052 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5053 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5054 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5055 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5056 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5057 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5058echo "$as_me: error: Can not set target to build" >&2;}
5059 { (exit 1); exit 1; }; } ;;
5060 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005061 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5062echo "$as_me: error: Unrecognized target $a_target" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5064 esac
5065 done
5066 ;;
5067esac
Reid Spencera773bd52006-08-04 18:18:08 +00005068TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5069
5070
Douglas Gregor0711c302009-06-17 00:43:20 +00005071# Determine whether we are building LLVM support for the native architecture.
5072# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5073for a_target in $TARGETS_TO_BUILD; do
5074 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005075 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005076
5077cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005078#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005079_ACEOF
5080
5081 fi
5082done
5083
Douglas Gregor1555a232009-06-16 20:12:29 +00005084# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005085# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005086LLVM_ENUM_TARGETS=""
5087LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005088LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005089for target_to_build in $TARGETS_TO_BUILD; do
5090 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5091 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5092 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5093 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005094 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5095 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5096 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005097done
5098
5099
5100
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005101
Reid Spencer65c5d752006-11-05 17:08:18 +00005102# Check whether --enable-cbe-printf-a was given.
5103if test "${enable_cbe_printf_a+set}" = set; then
5104 enableval=$enable_cbe_printf_a;
5105else
5106 enableval=default
5107fi
5108
5109case "$enableval" in
5110 yes) ENABLE_CBE_PRINTF_A=1
5111 ;;
5112 no) ENABLE_CBE_PRINTF_A=0
5113 ;;
5114 default) ENABLE_CBE_PRINTF_A=1
5115 ;;
5116 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5117echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5119esac
5120
5121cat >>confdefs.h <<_ACEOF
5122#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5123_ACEOF
5124
5125
Reid Spencera773bd52006-08-04 18:18:08 +00005126
5127# Check whether --with-llvmgccdir was given.
5128if test "${with_llvmgccdir+set}" = set; then
5129 withval=$with_llvmgccdir;
5130else
5131 withval=default
5132fi
5133
5134case "$withval" in
5135 default) WITH_LLVMGCCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5138echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
5142
Devang Patel5d28b882007-12-04 22:54:47 +00005143# Check whether --with-llvmgcc was given.
5144if test "${with_llvmgcc+set}" = set; then
5145 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5146 WITH_LLVMGCCDIR=""
5147fi
5148
5149
5150
5151# Check whether --with-llvmgxx was given.
5152if test "${with_llvmgxx+set}" = set; then
5153 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5154 WITH_LLVMGCCDIR=""
5155fi
5156
Douglas Gregor01746742009-05-11 18:05:52 +00005157
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005158if test -n "$LLVMGCC"; then
5159 LLVMGCCCOMMAND="$LLVMGCC"
5160fi
5161
5162if test -n "$LLVMGXX"; then
5163 LLVMGXXCOMMAND="$LLVMGXX"
5164fi
Devang Patel5d28b882007-12-04 22:54:47 +00005165
5166if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5168echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5169 { (exit 1); exit 1; }; };
5170fi
5171
5172if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5173 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5174echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5175 { (exit 1); exit 1; }; };
5176fi
5177
5178
Reid Spencera773bd52006-08-04 18:18:08 +00005179# Check whether --with-extra-options was given.
5180if test "${with_extra_options+set}" = set; then
5181 withval=$with_extra_options;
5182else
5183 withval=default
5184fi
5185
5186case "$withval" in
5187 default) EXTRA_OPTIONS= ;;
5188 *) EXTRA_OPTIONS=$withval ;;
5189esac
5190EXTRA_OPTIONS=$EXTRA_OPTIONS
5191
5192
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005193# Check whether --enable-bindings was given.
5194if test "${enable_bindings+set}" = set; then
5195 enableval=$enable_bindings;
5196else
5197 enableval=default
5198fi
5199
5200BINDINGS_TO_BUILD=""
5201case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005202 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005203 all ) BINDINGS_TO_BUILD="ocaml" ;;
5204 none | no) BINDINGS_TO_BUILD="" ;;
5205 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5206 case "$a_binding" in
5207 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5208 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5209echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5211 esac
5212 done
5213 ;;
5214esac
5215
Reid Spencera773bd52006-08-04 18:18:08 +00005216
Gordon Henriksenf0915682007-10-02 16:42:22 +00005217# Check whether --with-ocaml-libdir was given.
5218if test "${with_ocaml_libdir+set}" = set; then
5219 withval=$with_ocaml_libdir;
5220else
5221 withval=auto
5222fi
5223
5224case "$withval" in
5225 auto) with_ocaml_libdir="$withval" ;;
5226 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5227 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5228echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5230esac
5231
5232
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005233# Check whether --with-binutils-include was given.
5234if test "${with_binutils_include+set}" = set; then
5235 withval=$with_binutils_include;
5236else
5237 withval=default
5238fi
5239
5240case "$withval" in
5241 default) WITH_BINUTILS_INCDIR=default ;;
5242 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5244echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5248 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5249
5250 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5251 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5252 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5253echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5254 { (exit 1); exit 1; }; };
5255 fi
5256fi
5257
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005258# Check whether --enable-libffi was given.
5259if test "${enable_libffi+set}" = set; then
5260 enableval=$enable_libffi;
5261else
5262 enableval=yes
5263fi
5264
5265case "$enableval" in
5266 yes) llvm_cv_enable_libffi="yes" ;;
5267 no) llvm_cv_enable_libffi="no" ;;
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5269echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5271esac
5272
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005273if test "$llvm_cv_os_type" = "Win32" ; then
5274 llvmc_dynamic="yes"
5275else
5276 llvmc_dynamic="no"
5277fi
5278
5279# Check whether --enable-llvmc-dynamic was given.
5280if test "${enable_llvmc_dynamic+set}" = set; then
5281 enableval=$enable_llvmc_dynamic;
5282else
5283 enableval=$llvmc_dynamic
5284fi
5285
5286if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5287 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5288
5289else
5290 ENABLE_LLVMC_DYNAMIC=
5291
5292fi
5293
5294# Check whether --enable-llvmc-dynamic-plugins was given.
5295if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5296 enableval=$enable_llvmc_dynamic_plugins;
5297else
5298 enableval=yes
5299fi
5300
5301if test ${enableval} = "yes" ; then
5302 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5303
5304else
5305 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5306
5307fi
5308
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005309
Reid Spencera773bd52006-08-04 18:18:08 +00005310ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5316echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5317# On Suns, sometimes $CPP names a directory.
5318if test -n "$CPP" && test -d "$CPP"; then
5319 CPP=
5320fi
5321if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 # Double quotes because CPP needs to be expanded
5326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327 do
5328 ac_preproc_ok=false
5329for ac_c_preproc_warn_flag in '' yes
5330do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
5347#endif
5348 Syntax error
5349_ACEOF
5350if { (ac_try="$ac_cpp conftest.$ac_ext"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366 else
5367 ac_cpp_err=
5368 fi
5369else
5370 ac_cpp_err=yes
5371fi
5372if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005373 :
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 # Broken: fails on valid input.
5379continue
5380fi
5381
5382rm -f conftest.err conftest.$ac_ext
5383
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <ac_nonexistent.h>
5393_ACEOF
5394if { (ac_try="$ac_cpp conftest.$ac_ext"
5395case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410 else
5411 ac_cpp_err=
5412 fi
5413else
5414 ac_cpp_err=yes
5415fi
5416if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005417 # Broken: success on invalid input.
5418continue
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
5427
5428rm -f conftest.err conftest.$ac_ext
5429
5430done
5431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432rm -f conftest.err conftest.$ac_ext
5433if $ac_preproc_ok; then
5434 break
5435fi
5436
5437 done
5438 ac_cv_prog_CPP=$CPP
5439
5440fi
5441 CPP=$ac_cv_prog_CPP
5442else
5443 ac_cv_prog_CPP=$CPP
5444fi
5445{ echo "$as_me:$LINENO: result: $CPP" >&5
5446echo "${ECHO_T}$CPP" >&6; }
5447ac_preproc_ok=false
5448for ac_c_preproc_warn_flag in '' yes
5449do
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462#ifdef __STDC__
5463# include <limits.h>
5464#else
5465# include <assert.h>
5466#endif
5467 Syntax error
5468_ACEOF
5469if { (ac_try="$ac_cpp conftest.$ac_ext"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 else
5486 ac_cpp_err=
5487 fi
5488else
5489 ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005492 :
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 # Broken: fails on valid input.
5498continue
5499fi
5500
5501rm -f conftest.err conftest.$ac_ext
5502
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511#include <ac_nonexistent.h>
5512_ACEOF
5513if { (ac_try="$ac_cpp conftest.$ac_ext"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 else
5530 ac_cpp_err=
5531 fi
5532else
5533 ac_cpp_err=yes
5534fi
5535if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005536 # Broken: success on invalid input.
5537continue
5538else
5539 echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 # Passes both tests.
5543ac_preproc_ok=:
5544break
5545fi
5546
5547rm -f conftest.err conftest.$ac_ext
5548
5549done
5550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551rm -f conftest.err conftest.$ac_ext
5552if $ac_preproc_ok; then
5553 :
5554else
5555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556See \`config.log' for more details." >&5
5557echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560fi
5561
5562ac_ext=c
5563ac_cpp='$CPP $CPPFLAGS'
5564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568ac_ext=c
5569ac_cpp='$CPP $CPPFLAGS'
5570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573if test -n "$ac_tool_prefix"; then
5574 for ac_prog in gcc
5575 do
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580if test "${ac_cv_prog_CC+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 if test -n "$CC"; then
5584 ac_cv_prog_CC="$CC" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005592 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 +00005593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603CC=$ac_cv_prog_CC
5604if test -n "$CC"; then
5605 { echo "$as_me:$LINENO: result: $CC" >&5
5606echo "${ECHO_T}$CC" >&6; }
5607else
5608 { echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6; }
5610fi
5611
5612
5613 test -n "$CC" && break
5614 done
5615fi
5616if test -z "$CC"; then
5617 ac_ct_CC=$CC
5618 for ac_prog in gcc
5619do
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621set dummy $ac_prog; ac_word=$2
5622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 if test -n "$ac_ct_CC"; then
5628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005636 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 +00005637 ac_cv_prog_ac_ct_CC="$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648if test -n "$ac_ct_CC"; then
5649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5650echo "${ECHO_T}$ac_ct_CC" >&6; }
5651else
5652 { echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6; }
5654fi
5655
5656
5657 test -n "$ac_ct_CC" && break
5658done
5659
5660 if test "x$ac_ct_CC" = x; then
5661 CC=""
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664yes:)
5665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666whose name does not start with the host triplet. If you think this
5667configuration is useful to you, please write to autoconf@gnu.org." >&5
5668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669whose name does not start with the host triplet. If you think this
5670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673 CC=$ac_ct_CC
5674 fi
5675fi
5676
5677
5678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5679See \`config.log' for more details." >&5
5680echo "$as_me: error: no acceptable C compiler found in \$PATH
5681See \`config.log' for more details." >&2;}
5682 { (exit 1); exit 1; }; }
5683
5684# Provide some information about the compiler.
5685echo "$as_me:$LINENO: checking for C compiler version" >&5
5686ac_compiler=`set X $ac_compile; echo $2`
5687{ (ac_try="$ac_compiler --version >&5"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compiler --version >&5") 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }
5697{ (ac_try="$ac_compiler -v >&5"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compiler -v >&5") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }
5707{ (ac_try="$ac_compiler -V >&5"
5708case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler -V >&5") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717
5718{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5719echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5720if test "${ac_cv_c_compiler_gnu+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723 cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729
5730int
5731main ()
5732{
5733#ifndef __GNUC__
5734 choke me
5735#endif
5736
5737 ;
5738 return 0;
5739}
5740_ACEOF
5741rm -f conftest.$ac_objext
5742if { (ac_try="$ac_compile"
5743case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_try") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005775 ac_compiler_gnu=yes
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_compiler_gnu=no
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784ac_cv_c_compiler_gnu=$ac_compiler_gnu
5785
5786fi
5787{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5789GCC=`test $ac_compiler_gnu = yes && echo yes`
5790ac_test_CFLAGS=${CFLAGS+set}
5791ac_save_CFLAGS=$CFLAGS
5792{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5793echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5794if test "${ac_cv_prog_cc_g+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 ac_save_c_werror_flag=$ac_c_werror_flag
5798 ac_c_werror_flag=yes
5799 ac_cv_prog_cc_g=no
5800 CFLAGS="-g"
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005850 ac_cv_prog_cc_g=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 CFLAGS=""
5856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005905 :
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_c_werror_flag=$ac_save_c_werror_flag
5911 CFLAGS="-g"
5912 cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918
5919int
5920main ()
5921{
5922
5923 ;
5924 return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (ac_try="$ac_compile"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_compile") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005961 ac_cv_prog_cc_g=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977fi
5978{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5979echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5980if test "$ac_test_CFLAGS" = set; then
5981 CFLAGS=$ac_save_CFLAGS
5982elif test $ac_cv_prog_cc_g = yes; then
5983 if test "$GCC" = yes; then
5984 CFLAGS="-g -O2"
5985 else
5986 CFLAGS="-g"
5987 fi
5988else
5989 if test "$GCC" = yes; then
5990 CFLAGS="-O2"
5991 else
5992 CFLAGS=
5993 fi
5994fi
5995{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5996echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_cc_c89+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 ac_cv_prog_cc_c89=no
6001ac_save_CC=$CC
6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <stdarg.h>
6009#include <stdio.h>
6010#include <sys/types.h>
6011#include <sys/stat.h>
6012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6013struct buf { int x; };
6014FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015static char *e (p, i)
6016 char **p;
6017 int i;
6018{
6019 return p[i];
6020}
6021static char *f (char * (*g) (char **, int), char **p, ...)
6022{
6023 char *s;
6024 va_list v;
6025 va_start (v,p);
6026 s = g (p, va_arg (v,int));
6027 va_end (v);
6028 return s;
6029}
6030
6031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6032 function prototypes and stuff, but not '\xHH' hex character constants.
6033 These don't provoke an error unfortunately, instead are silently treated
6034 as 'x'. The following induces an error, until -std is added to get
6035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6036 array size at least. It's necessary to write '\x00'==0 to get something
6037 that's true only with -std. */
6038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6039
6040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041 inside strings and character constants. */
6042#define FOO(x) 'x'
6043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6044
6045int test (int i, double x);
6046struct s1 {int (*f) (int a);};
6047struct s2 {int (*f) (double a);};
6048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6049int argc;
6050char **argv;
6051int
6052main ()
6053{
6054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6061do
6062 CC="$ac_save_CC $ac_arg"
6063 rm -f conftest.$ac_objext
6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006097 ac_cv_prog_cc_c89=$ac_arg
6098else
6099 echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102
6103fi
6104
6105rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114 x)
6115 { echo "$as_me:$LINENO: result: none needed" >&5
6116echo "${ECHO_T}none needed" >&6; } ;;
6117 xno)
6118 { echo "$as_me:$LINENO: result: unsupported" >&5
6119echo "${ECHO_T}unsupported" >&6; } ;;
6120 *)
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6123echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125
6126
6127ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138if test -z "$CXX"; then
6139 if test -n "$CCC"; then
6140 CXX=$CCC
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 for ac_prog in g++
6144 do
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_CXX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 if test -n "$CXX"; then
6153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006161 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 +00006162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172CXX=$ac_cv_prog_CXX
6173if test -n "$CXX"; then
6174 { echo "$as_me:$LINENO: result: $CXX" >&5
6175echo "${ECHO_T}$CXX" >&6; }
6176else
6177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
6179fi
6180
6181
6182 test -n "$CXX" && break
6183 done
6184fi
6185if test -z "$CXX"; then
6186 ac_ct_CXX=$CXX
6187 for ac_prog in g++
6188do
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 if test -n "$ac_ct_CXX"; then
6197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006205 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 +00006206 ac_cv_prog_ac_ct_CXX="$ac_prog"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211done
6212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217if test -n "$ac_ct_CXX"; then
6218 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6219echo "${ECHO_T}$ac_ct_CXX" >&6; }
6220else
6221 { echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6; }
6223fi
6224
6225
6226 test -n "$ac_ct_CXX" && break
6227done
6228
6229 if test "x$ac_ct_CXX" = x; then
6230 CXX="g++"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6235whose name does not start with the host triplet. If you think this
6236configuration is useful to you, please write to autoconf@gnu.org." >&5
6237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6238whose name does not start with the host triplet. If you think this
6239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242 CXX=$ac_ct_CXX
6243 fi
6244fi
6245
6246 fi
6247fi
6248# Provide some information about the compiler.
6249echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6250ac_compiler=`set X $ac_compile; echo $2`
6251{ (ac_try="$ac_compiler --version >&5"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compiler --version >&5") 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261{ (ac_try="$ac_compiler -v >&5"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compiler -v >&5") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271{ (ac_try="$ac_compiler -V >&5"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler -V >&5") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6281
6282{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6284if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h. */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h. */
6293
6294int
6295main ()
6296{
6297#ifndef __GNUC__
6298 choke me
6299#endif
6300
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006339 ac_compiler_gnu=yes
6340else
6341 echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_compiler_gnu=no
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6349
6350fi
6351{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6353GXX=`test $ac_compiler_gnu = yes && echo yes`
6354ac_test_CXXFLAGS=${CXXFLAGS+set}
6355ac_save_CXXFLAGS=$CXXFLAGS
6356{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6357echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6358if test "${ac_cv_prog_cxx_g+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6362 ac_cxx_werror_flag=yes
6363 ac_cv_prog_cxx_g=no
6364 CXXFLAGS="-g"
6365 cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006414 ac_cv_prog_cxx_g=yes
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 CXXFLAGS=""
6420 cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006469 :
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475 CXXFLAGS="-g"
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482
6483int
6484main ()
6485{
6486
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext
6492if { (ac_try="$ac_compile"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006525 ac_cv_prog_cxx_g=yes
6526else
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi
6535
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538
6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541fi
6542{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6543echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6544if test "$ac_test_CXXFLAGS" = set; then
6545 CXXFLAGS=$ac_save_CXXFLAGS
6546elif test $ac_cv_prog_cxx_g = yes; then
6547 if test "$GXX" = yes; then
6548 CXXFLAGS="-g -O2"
6549 else
6550 CXXFLAGS="-g"
6551 fi
6552else
6553 if test "$GXX" = yes; then
6554 CXXFLAGS="-O2"
6555 else
6556 CXXFLAGS=
6557 fi
6558fi
6559ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
Reid Spencera773bd52006-08-04 18:18:08 +00006565
6566{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6567echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6568if test "${lt_cv_path_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 if test -n "$NM"; then
6572 # Let the user override the test.
6573 lt_cv_path_NM="$NM"
6574else
6575 lt_nm_to_check="${ac_tool_prefix}nm"
6576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6577 lt_nm_to_check="$lt_nm_to_check nm"
6578 fi
6579 for lt_tmp_nm in $lt_nm_to_check; do
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6582 IFS="$lt_save_ifs"
6583 test -z "$ac_dir" && ac_dir=.
6584 tmp_nm="$ac_dir/$lt_tmp_nm"
6585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6586 # Check to see if the nm accepts a BSD-compat flag.
6587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6588 # nm: unknown option "B" ignored
6589 # Tru64's nm complains that /dev/null is an invalid object file
6590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6591 */dev/null* | *'Invalid file or object type'*)
6592 lt_cv_path_NM="$tmp_nm -B"
6593 break
6594 ;;
6595 *)
6596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6597 */dev/null*)
6598 lt_cv_path_NM="$tmp_nm -p"
6599 break
6600 ;;
6601 *)
6602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6603 continue # so that we can try to find one that supports BSD flags
6604 ;;
6605 esac
6606 ;;
6607 esac
6608 fi
6609 done
6610 IFS="$lt_save_ifs"
6611 done
6612 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6613fi
6614fi
6615{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6616echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617NM="$lt_cv_path_NM"
6618
6619
6620
6621{ echo "$as_me:$LINENO: checking for GNU make" >&5
6622echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6623if test "${llvm_cv_gnu_make_command+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 llvm_cv_gnu_make_command=''
6627 for a in "$MAKE" make gmake gnumake ; do
6628 if test -z "$a" ; then continue ; fi ;
6629 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6630 then
6631 llvm_cv_gnu_make_command=$a ;
6632 break;
6633 fi
6634 done
6635fi
6636{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6637echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6638 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6639 ifGNUmake='' ;
6640 else
6641 ifGNUmake='#' ;
6642 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6643echo "${ECHO_T}\"Not found\"" >&6; };
6644 fi
6645
6646
6647{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6648echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6649LN_S=$as_ln_s
6650if test "$LN_S" = "ln -s"; then
6651 { echo "$as_me:$LINENO: result: yes" >&5
6652echo "${ECHO_T}yes" >&6; }
6653else
6654 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6655echo "${ECHO_T}no, using $LN_S" >&6; }
6656fi
6657
6658# Extract the first word of "cmp", so it can be a program name with args.
6659set dummy cmp; ac_word=$2
6660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662if test "${ac_cv_path_CMP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 case $CMP in
6666 [\\/]* | ?:[\\/]*)
6667 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6668 ;;
6669 *)
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006676 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 +00006677 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682done
6683IFS=$as_save_IFS
6684
6685 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686 ;;
6687esac
6688fi
6689CMP=$ac_cv_path_CMP
6690if test -n "$CMP"; then
6691 { echo "$as_me:$LINENO: result: $CMP" >&5
6692echo "${ECHO_T}$CMP" >&6; }
6693else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699# Extract the first word of "cp", so it can be a program name with args.
6700set dummy cp; ac_word=$2
6701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703if test "${ac_cv_path_CP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706 case $CP in
6707 [\\/]* | ?:[\\/]*)
6708 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6709 ;;
6710 *)
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006717 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 +00006718 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722done
6723done
6724IFS=$as_save_IFS
6725
6726 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727 ;;
6728esac
6729fi
6730CP=$ac_cv_path_CP
6731if test -n "$CP"; then
6732 { echo "$as_me:$LINENO: result: $CP" >&5
6733echo "${ECHO_T}$CP" >&6; }
6734else
6735 { echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6; }
6737fi
6738
6739
6740# Extract the first word of "date", so it can be a program name with args.
6741set dummy date; ac_word=$2
6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_DATE+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 case $DATE in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006758 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 +00006759 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6768 ;;
6769esac
6770fi
6771DATE=$ac_cv_path_DATE
6772if test -n "$DATE"; then
6773 { echo "$as_me:$LINENO: result: $DATE" >&5
6774echo "${ECHO_T}$DATE" >&6; }
6775else
6776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
6778fi
6779
6780
6781# Extract the first word of "find", so it can be a program name with args.
6782set dummy find; ac_word=$2
6783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_path_FIND+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 case $FIND in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006799 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 +00006800 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804done
6805done
6806IFS=$as_save_IFS
6807
6808 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6809 ;;
6810esac
6811fi
6812FIND=$ac_cv_path_FIND
6813if test -n "$FIND"; then
6814 { echo "$as_me:$LINENO: result: $FIND" >&5
6815echo "${ECHO_T}$FIND" >&6; }
6816else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
6819fi
6820
6821
6822# Extract the first word of "grep", so it can be a program name with args.
6823set dummy grep; ac_word=$2
6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_path_GREP+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 case $GREP in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6832 ;;
6833 *)
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006840 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 +00006841 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846done
6847IFS=$as_save_IFS
6848
6849 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6850 ;;
6851esac
6852fi
6853GREP=$ac_cv_path_GREP
6854if test -n "$GREP"; then
6855 { echo "$as_me:$LINENO: result: $GREP" >&5
6856echo "${ECHO_T}$GREP" >&6; }
6857else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
6860fi
6861
6862
6863# Extract the first word of "mkdir", so it can be a program name with args.
6864set dummy mkdir; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_MKDIR+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 case $MKDIR in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006881 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 +00006882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6891 ;;
6892esac
6893fi
6894MKDIR=$ac_cv_path_MKDIR
6895if test -n "$MKDIR"; then
6896 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6897echo "${ECHO_T}$MKDIR" >&6; }
6898else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
6901fi
6902
6903
6904# Extract the first word of "mv", so it can be a program name with args.
6905set dummy mv; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_MV+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 case $MV in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006922 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 +00006923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932 ;;
6933esac
6934fi
6935MV=$ac_cv_path_MV
6936if test -n "$MV"; then
6937 { echo "$as_me:$LINENO: result: $MV" >&5
6938echo "${ECHO_T}$MV" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_prog_RANLIB+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 if test -n "$RANLIB"; then
6954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006962 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 +00006963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973RANLIB=$ac_cv_prog_RANLIB
6974if test -n "$RANLIB"; then
6975 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6976echo "${ECHO_T}$RANLIB" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983fi
6984if test -z "$ac_cv_prog_RANLIB"; then
6985 ac_ct_RANLIB=$RANLIB
6986 # Extract the first word of "ranlib", so it can be a program name with args.
6987set dummy ranlib; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 if test -n "$ac_ct_RANLIB"; then
6994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007002 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 +00007003 ac_cv_prog_ac_ct_RANLIB="ranlib"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7014if test -n "$ac_ct_RANLIB"; then
7015 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7016echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022 if test "x$ac_ct_RANLIB" = x; then
7023 RANLIB=":"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7028whose name does not start with the host triplet. If you think this
7029configuration is useful to you, please write to autoconf@gnu.org." >&5
7030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7031whose name does not start with the host triplet. If you think this
7032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7033ac_tool_warned=yes ;;
7034esac
7035 RANLIB=$ac_ct_RANLIB
7036 fi
7037else
7038 RANLIB="$ac_cv_prog_RANLIB"
7039fi
7040
7041# Extract the first word of "rm", so it can be a program name with args.
7042set dummy rm; ac_word=$2
7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_RM+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 case $RM in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007059 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 +00007060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066IFS=$as_save_IFS
7067
7068 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069 ;;
7070esac
7071fi
7072RM=$ac_cv_path_RM
7073if test -n "$RM"; then
7074 { echo "$as_me:$LINENO: result: $RM" >&5
7075echo "${ECHO_T}$RM" >&6; }
7076else
7077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
7079fi
7080
7081
7082# Extract the first word of "sed", so it can be a program name with args.
7083set dummy sed; ac_word=$2
7084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_SED+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 case $SED in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007100 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 +00007101 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110 ;;
7111esac
7112fi
7113SED=$ac_cv_path_SED
7114if test -n "$SED"; then
7115 { echo "$as_me:$LINENO: result: $SED" >&5
7116echo "${ECHO_T}$SED" >&6; }
7117else
7118 { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123# Extract the first word of "tar", so it can be a program name with args.
7124set dummy tar; ac_word=$2
7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_TAR+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130 case $TAR in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7133 ;;
7134 *)
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007141 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 +00007142 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147done
7148IFS=$as_save_IFS
7149
7150 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151 ;;
7152esac
7153fi
7154TAR=$ac_cv_path_TAR
7155if test -n "$TAR"; then
7156 { echo "$as_me:$LINENO: result: $TAR" >&5
7157echo "${ECHO_T}$TAR" >&6; }
7158else
7159 { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
7161fi
7162
7163
7164# Extract the first word of "pwd", so it can be a program name with args.
7165set dummy pwd; ac_word=$2
7166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_path_BINPWD+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171 case $BINPWD in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007182 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 +00007183 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188done
7189IFS=$as_save_IFS
7190
7191 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7192 ;;
7193esac
7194fi
7195BINPWD=$ac_cv_path_BINPWD
7196if test -n "$BINPWD"; then
7197 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7198echo "${ECHO_T}$BINPWD" >&6; }
7199else
7200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205
7206# Extract the first word of "Graphviz", so it can be a program name with args.
7207set dummy Graphviz; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $GRAPHVIZ in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007224 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 +00007225 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7234 ;;
7235esac
7236fi
7237GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7238if test -n "$GRAPHVIZ"; then
7239 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7240echo "${ECHO_T}$GRAPHVIZ" >&6; }
7241else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6; }
7244fi
7245
7246
7247if test "$GRAPHVIZ" != "echo Graphviz" ; then
7248
7249cat >>confdefs.h <<\_ACEOF
7250#define HAVE_GRAPHVIZ 1
7251_ACEOF
7252
Jeff Cohen28783c32007-01-12 18:22:38 +00007253 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007254 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 fi
7256
7257cat >>confdefs.h <<_ACEOF
7258#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7259_ACEOF
7260
7261fi
7262# Extract the first word of "dot", so it can be a program name with args.
7263set dummy dot; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_DOT+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 case $DOT in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007280 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 +00007281 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290 ;;
7291esac
7292fi
7293DOT=$ac_cv_path_DOT
7294if test -n "$DOT"; then
7295 { echo "$as_me:$LINENO: result: $DOT" >&5
7296echo "${ECHO_T}$DOT" >&6; }
7297else
7298 { echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6; }
7300fi
7301
7302
7303if test "$DOT" != "echo dot" ; then
7304
7305cat >>confdefs.h <<\_ACEOF
7306#define HAVE_DOT 1
7307_ACEOF
7308
Jeff Cohen28783c32007-01-12 18:22:38 +00007309 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007310 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311 fi
7312
7313cat >>confdefs.h <<_ACEOF
7314#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7315_ACEOF
7316
7317fi
David Greenef0b9eff2009-07-09 17:16:26 +00007318# Extract the first word of "fdp", so it can be a program name with args.
7319set dummy fdp; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_FDP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $FDP in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7346 ;;
7347esac
7348fi
7349FDP=$ac_cv_path_FDP
7350if test -n "$FDP"; then
7351 { echo "$as_me:$LINENO: result: $FDP" >&5
7352echo "${ECHO_T}$FDP" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359if test "$FDP" != "echo fdp" ; then
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define HAVE_FDP 1
7363_ACEOF
7364
7365 if test "$llvm_cv_os_type" = "MingW" ; then
7366 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7367 fi
7368
7369cat >>confdefs.h <<_ACEOF
7370#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7371_ACEOF
7372
7373fi
7374# Extract the first word of "neato", so it can be a program name with args.
7375set dummy neato; ac_word=$2
7376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378if test "${ac_cv_path_NEATO+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 case $NEATO in
7382 [\\/]* | ?:[\\/]*)
7383 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7384 ;;
7385 *)
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398done
7399IFS=$as_save_IFS
7400
7401 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7402 ;;
7403esac
7404fi
7405NEATO=$ac_cv_path_NEATO
7406if test -n "$NEATO"; then
7407 { echo "$as_me:$LINENO: result: $NEATO" >&5
7408echo "${ECHO_T}$NEATO" >&6; }
7409else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6; }
7412fi
7413
7414
7415if test "$NEATO" != "echo neato" ; then
7416
7417cat >>confdefs.h <<\_ACEOF
7418#define HAVE_NEATO 1
7419_ACEOF
7420
7421 if test "$llvm_cv_os_type" = "MingW" ; then
7422 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7423 fi
7424
7425cat >>confdefs.h <<_ACEOF
7426#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7427_ACEOF
7428
7429fi
7430# Extract the first word of "twopi", so it can be a program name with args.
7431set dummy twopi; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_TWOPI+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 case $TWOPI in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7458 ;;
7459esac
7460fi
7461TWOPI=$ac_cv_path_TWOPI
7462if test -n "$TWOPI"; then
7463 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7464echo "${ECHO_T}$TWOPI" >&6; }
7465else
7466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
7468fi
7469
7470
7471if test "$TWOPI" != "echo twopi" ; then
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define HAVE_TWOPI 1
7475_ACEOF
7476
7477 if test "$llvm_cv_os_type" = "MingW" ; then
7478 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7479 fi
7480
7481cat >>confdefs.h <<_ACEOF
7482#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7483_ACEOF
7484
7485fi
7486# Extract the first word of "circo", so it can be a program name with args.
7487set dummy circo; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_CIRCO+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 case $CIRCO in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7514 ;;
7515esac
7516fi
7517CIRCO=$ac_cv_path_CIRCO
7518if test -n "$CIRCO"; then
7519 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7520echo "${ECHO_T}$CIRCO" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527if test "$CIRCO" != "echo circo" ; then
7528
7529cat >>confdefs.h <<\_ACEOF
7530#define HAVE_CIRCO 1
7531_ACEOF
7532
7533 if test "$llvm_cv_os_type" = "MingW" ; then
7534 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7535 fi
7536
7537cat >>confdefs.h <<_ACEOF
7538#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7539_ACEOF
7540
7541fi
Reid Spencera773bd52006-08-04 18:18:08 +00007542for ac_prog in gv gsview32
7543do
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545set dummy $ac_prog; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_GV+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $GV in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007562 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 +00007563 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571 ;;
7572esac
7573fi
7574GV=$ac_cv_path_GV
7575if test -n "$GV"; then
7576 { echo "$as_me:$LINENO: result: $GV" >&5
7577echo "${ECHO_T}$GV" >&6; }
7578else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584 test -n "$GV" && break
7585done
7586test -n "$GV" || GV="echo gv"
7587
7588if test "$GV" != "echo gv" ; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_GV 1
7592_ACEOF
7593
Jeff Cohen28783c32007-01-12 18:22:38 +00007594 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007595 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_GV "$GV${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "dotty", so it can be a program name with args.
7604set dummy dotty; 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_DOTTY+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 case $DOTTY in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$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
7630 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7631 ;;
7632esac
7633fi
7634DOTTY=$ac_cv_path_DOTTY
7635if test -n "$DOTTY"; then
7636 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7637echo "${ECHO_T}$DOTTY" >&6; }
7638else
7639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
7641fi
7642
7643
7644if test "$DOTTY" != "echo dotty" ; then
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_DOTTY 1
7648_ACEOF
7649
Jeff Cohen28783c32007-01-12 18:22:38 +00007650 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007651 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7656_ACEOF
7657
7658fi
7659
7660
7661# Extract the first word of "perl", so it can be a program name with args.
7662set dummy perl; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_PERL+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $PERL in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007679 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 +00007680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7689 ;;
7690esac
7691fi
7692PERL=$ac_cv_path_PERL
7693if test -n "$PERL"; then
7694 { echo "$as_me:$LINENO: result: $PERL" >&5
7695echo "${ECHO_T}$PERL" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702if test "$PERL" != "none"; then
7703 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7704echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7705 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7706 { echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6; }
7708 else
7709 PERL=none
7710 { echo "$as_me:$LINENO: result: not found" >&5
7711echo "${ECHO_T}not found" >&6; }
7712 fi
7713fi
7714
7715
7716if test x"$PERL" = xnone; then
7717 HAVE_PERL=0
7718
Reid Spencer59807fa2007-05-17 18:11:03 +00007719 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7720echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7721 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007722else
7723 HAVE_PERL=1
7724
7725fi
7726
7727# Find a good install program. We prefer a C program (faster),
7728# so one script is as good as another. But avoid the broken or
7729# incompatible versions:
7730# SysV /etc/install, /usr/sbin/install
7731# SunOS /usr/etc/install
7732# IRIX /sbin/install
7733# AIX /bin/install
7734# AmigaOS /C/install, which installs bootblocks on floppy discs
7735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7738# OS/2's system install, which has a completely different semantic
7739# ./install, which can be erroneously created by make from ./install.sh.
7740{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7741echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7742if test -z "$INSTALL"; then
7743if test "${ac_cv_path_install+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 # Account for people who put trailing slashes in PATH elements.
7752case $as_dir/ in
7753 ./ | .// | /cC/* | \
7754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7755 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7756 /usr/ucb/* ) ;;
7757 *)
7758 # OSF1 and SCO ODT 3.0 have their own names for install.
7759 # Don't use installbsd from OSF since it installs stuff as root
7760 # by default.
7761 for ac_prog in ginstall scoinst install; do
7762 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007763 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 +00007764 if test $ac_prog = install &&
7765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7766 # AIX install. It has an incompatible calling convention.
7767 :
7768 elif test $ac_prog = install &&
7769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7770 # program-specific install script used by HP pwplus--don't use.
7771 :
7772 else
7773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7774 break 3
7775 fi
7776 fi
7777 done
7778 done
7779 ;;
7780esac
7781done
7782IFS=$as_save_IFS
7783
7784
7785fi
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL=$ac_cv_path_install
7788 else
7789 # As a last resort, use the slow shell script. Don't cache a
7790 # value for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the value is a relative name.
7793 INSTALL=$ac_install_sh
7794 fi
7795fi
7796{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7797echo "${ECHO_T}$INSTALL" >&6; }
7798
7799# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800# It thinks the first close brace ends the variable substitution.
7801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7802
7803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7804
7805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806
7807
7808# Extract the first word of "bzip2", so it can be a program name with args.
7809set dummy bzip2; ac_word=$2
7810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812if test "${ac_cv_path_BZIP2+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 case $BZIP2 in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7818 ;;
7819 *)
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007826 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 +00007827 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833IFS=$as_save_IFS
7834
Reid Spencera773bd52006-08-04 18:18:08 +00007835 ;;
7836esac
7837fi
7838BZIP2=$ac_cv_path_BZIP2
7839if test -n "$BZIP2"; then
7840 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7841echo "${ECHO_T}$BZIP2" >&6; }
7842else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847
7848# Extract the first word of "doxygen", so it can be a program name with args.
7849set dummy doxygen; ac_word=$2
7850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_DOXYGEN+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 case $DOXYGEN in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007866 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 +00007867 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872done
7873IFS=$as_save_IFS
7874
Reid Spencera773bd52006-08-04 18:18:08 +00007875 ;;
7876esac
7877fi
7878DOXYGEN=$ac_cv_path_DOXYGEN
7879if test -n "$DOXYGEN"; then
7880 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7881echo "${ECHO_T}$DOXYGEN" >&6; }
7882else
7883 { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
7885fi
7886
7887
Reid Spencera773bd52006-08-04 18:18:08 +00007888# Extract the first word of "groff", so it can be a program name with args.
7889set dummy groff; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_GROFF+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 case $GROFF in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007906 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 +00007907 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913IFS=$as_save_IFS
7914
Reid Spencera773bd52006-08-04 18:18:08 +00007915 ;;
7916esac
7917fi
7918GROFF=$ac_cv_path_GROFF
7919if test -n "$GROFF"; then
7920 { echo "$as_me:$LINENO: result: $GROFF" >&5
7921echo "${ECHO_T}$GROFF" >&6; }
7922else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928# Extract the first word of "gzip", so it can be a program name with args.
7929set dummy gzip; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_GZIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 case $GZIP in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007946 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 +00007947 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952done
7953IFS=$as_save_IFS
7954
Reid Spencera773bd52006-08-04 18:18:08 +00007955 ;;
7956esac
7957fi
7958GZIP=$ac_cv_path_GZIP
7959if test -n "$GZIP"; then
7960 { echo "$as_me:$LINENO: result: $GZIP" >&5
7961echo "${ECHO_T}$GZIP" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "pod2html", so it can be a program name with args.
7969set dummy pod2html; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_POD2HTML+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $POD2HTML in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007986 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 +00007987 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Reid Spencera773bd52006-08-04 18:18:08 +00007995 ;;
7996esac
7997fi
7998POD2HTML=$ac_cv_path_POD2HTML
7999if test -n "$POD2HTML"; then
8000 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8001echo "${ECHO_T}$POD2HTML" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
8008# Extract the first word of "pod2man", so it can be a program name with args.
8009set dummy pod2man; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_POD2MAN+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 case $POD2MAN in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008026 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 +00008027 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033IFS=$as_save_IFS
8034
Reid Spencera773bd52006-08-04 18:18:08 +00008035 ;;
8036esac
8037fi
8038POD2MAN=$ac_cv_path_POD2MAN
8039if test -n "$POD2MAN"; then
8040 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8041echo "${ECHO_T}$POD2MAN" >&6; }
8042else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048# Extract the first word of "runtest", so it can be a program name with args.
8049set dummy runtest; ac_word=$2
8050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_RUNTEST+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 case $RUNTEST in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008066 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 +00008067 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073IFS=$as_save_IFS
8074
Reid Spencera773bd52006-08-04 18:18:08 +00008075 ;;
8076esac
8077fi
8078RUNTEST=$ac_cv_path_RUNTEST
8079if test -n "$RUNTEST"; then
8080 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8081echo "${ECHO_T}$RUNTEST" >&6; }
8082else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088
8089no_itcl=true
8090{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8091echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8092
8093# Check whether --with-tclinclude was given.
8094if test "${with_tclinclude+set}" = set; then
8095 withval=$with_tclinclude; with_tclinclude=${withval}
8096else
8097 with_tclinclude=''
8098fi
8099
8100if test "${ac_cv_path_tclsh+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103
8104if test x"${with_tclinclude}" != x ; then
8105 if test -f ${with_tclinclude}/tclsh ; then
8106 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8107 elif test -f ${with_tclinclude}/src/tclsh ; then
8108 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8109 else
8110 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8111echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8112 { (exit 1); exit 1; }; }
8113 fi
8114fi
8115
8116if test x"${ac_cv_path_tclsh}" = x ; then
8117 { echo "$as_me:$LINENO: result: none" >&5
8118echo "${ECHO_T}none" >&6; }
8119 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
8120do
8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
8122set dummy $ac_prog; ac_word=$2
8123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125if test "${ac_cv_path_TCLSH+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 case $TCLSH in
8129 [\\/]* | ?:[\\/]*)
8130 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8131 ;;
8132 *)
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008139 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 +00008140 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144done
8145done
8146IFS=$as_save_IFS
8147
8148 ;;
8149esac
8150fi
8151TCLSH=$ac_cv_path_TCLSH
8152if test -n "$TCLSH"; then
8153 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8154echo "${ECHO_T}$TCLSH" >&6; }
8155else
8156 { echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6; }
8158fi
8159
8160
8161 test -n "$TCLSH" && break
8162done
8163
8164 if test x"${TCLSH}" = x ; then
8165 ac_cv_path_tclsh='';
8166 else
8167 ac_cv_path_tclsh="${TCLSH}";
8168 fi
8169else
8170 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8171echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8172 TCLSH="${ac_cv_path_tclsh}"
8173
8174fi
8175
8176fi
8177
8178# Extract the first word of "zip", so it can be a program name with args.
8179set dummy zip; ac_word=$2
8180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_ZIP+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 case $ZIP in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8188 ;;
8189 *)
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008196 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 +00008197 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203IFS=$as_save_IFS
8204
Reid Spencera773bd52006-08-04 18:18:08 +00008205 ;;
8206esac
8207fi
8208ZIP=$ac_cv_path_ZIP
8209if test -n "$ZIP"; then
8210 { echo "$as_me:$LINENO: result: $ZIP" >&5
8211echo "${ECHO_T}$ZIP" >&6; }
8212else
8213 { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
8215fi
8216
8217
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008218for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008219do
8220 # Extract the first word of "$ac_prog", so it can be a program name with args.
8221set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224if test "${ac_cv_path_OCAMLC+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 case $OCAMLC in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8230 ;;
8231 *)
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008238 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 +00008239 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245IFS=$as_save_IFS
8246
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008247 ;;
8248esac
8249fi
8250OCAMLC=$ac_cv_path_OCAMLC
8251if test -n "$OCAMLC"; then
8252 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8253echo "${ECHO_T}$OCAMLC" >&6; }
8254else
8255 { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259
Gordon Henriksene7072162008-03-07 18:20:01 +00008260 test -n "$OCAMLC" && break
8261done
8262
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008263for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008264do
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 case $OCAMLOPT in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008283 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 +00008284 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289done
8290IFS=$as_save_IFS
8291
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008292 ;;
8293esac
8294fi
8295OCAMLOPT=$ac_cv_path_OCAMLOPT
8296if test -n "$OCAMLOPT"; then
8297 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8298echo "${ECHO_T}$OCAMLOPT" >&6; }
8299else
8300 { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
8302fi
8303
8304
Gordon Henriksene7072162008-03-07 18:20:01 +00008305 test -n "$OCAMLOPT" && break
8306done
8307
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008308for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008309do
8310 # Extract the first word of "$ac_prog", so it can be a program name with args.
8311set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 case $OCAMLDEP in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8320 ;;
8321 *)
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008328 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 +00008329 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335IFS=$as_save_IFS
8336
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008337 ;;
8338esac
8339fi
8340OCAMLDEP=$ac_cv_path_OCAMLDEP
8341if test -n "$OCAMLDEP"; then
8342 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8343echo "${ECHO_T}$OCAMLDEP" >&6; }
8344else
8345 { echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6; }
8347fi
8348
8349
Gordon Henriksene7072162008-03-07 18:20:01 +00008350 test -n "$OCAMLDEP" && break
8351done
8352
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008353for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008354do
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356set dummy $ac_prog; ac_word=$2
8357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 case $OCAMLDOC in
8363 [\\/]* | ?:[\\/]*)
8364 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8365 ;;
8366 *)
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008373 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 +00008374 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380IFS=$as_save_IFS
8381
8382 ;;
8383esac
8384fi
8385OCAMLDOC=$ac_cv_path_OCAMLDOC
8386if test -n "$OCAMLDOC"; then
8387 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8388echo "${ECHO_T}$OCAMLDOC" >&6; }
8389else
8390 { echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6; }
8392fi
8393
8394
8395 test -n "$OCAMLDOC" && break
8396done
8397
Torok Edwincc499a42008-10-22 09:56:27 +00008398for ac_prog in gas as
8399do
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401set dummy $ac_prog; ac_word=$2
8402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404if test "${ac_cv_path_GAS+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407 case $GAS in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8410 ;;
8411 *)
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008418 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 +00008419 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425IFS=$as_save_IFS
8426
8427 ;;
8428esac
8429fi
8430GAS=$ac_cv_path_GAS
8431if test -n "$GAS"; then
8432 { echo "$as_me:$LINENO: result: $GAS" >&5
8433echo "${ECHO_T}$GAS" >&6; }
8434else
8435 { echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6; }
8437fi
8438
8439
8440 test -n "$GAS" && break
8441done
8442
Reid Spencera773bd52006-08-04 18:18:08 +00008443
8444{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8445echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8446if test "${llvm_cv_link_use_r+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455 oldcflags="$CFLAGS"
8456 CFLAGS="$CFLAGS -Wl,-R."
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463
8464int
8465main ()
8466{
8467int main() { return 0; }
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008506 llvm_cv_link_use_r=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 llvm_cv_link_use_r=no
8512fi
8513
Bill Wendlingebcceee2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008515 conftest$ac_exeext conftest.$ac_ext
8516 CFLAGS="$oldcflags"
8517 ac_ext=c
8518ac_cpp='$CPP $CPPFLAGS'
8519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524fi
8525{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8526echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8527if test "$llvm_cv_link_use_r" = yes ; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_LINK_R 1
8531_ACEOF
8532
8533 fi
8534
8535
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008536{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8537echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8538if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 oldcflags="$CFLAGS"
8548 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8549 cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555
8556int
8557main ()
8558{
8559int main() { return 0; }
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest.$ac_objext conftest$ac_exeext
8565if { (ac_try="$ac_link"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008598 llvm_cv_link_use_export_dynamic=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 llvm_cv_link_use_export_dynamic=no
8604fi
8605
Bill Wendlingebcceee2009-04-18 11:20:33 +00008606rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008607 conftest$ac_exeext conftest.$ac_ext
8608 CFLAGS="$oldcflags"
8609 ac_ext=c
8610ac_cpp='$CPP $CPPFLAGS'
8611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616fi
8617{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8618echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8619if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8620
8621cat >>confdefs.h <<\_ACEOF
8622#define HAVE_LINK_EXPORT_DYNAMIC 1
8623_ACEOF
8624
8625 fi
8626
8627
Reid Spencera773bd52006-08-04 18:18:08 +00008628
8629
8630{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8631echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8632if test "${ac_cv_c_const+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641
8642int
8643main ()
8644{
8645/* FIXME: Include the comments suggested by Paul. */
8646#ifndef __cplusplus
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008649 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008650 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008651 char const *const *ccp;
8652 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8659 expression */
8660 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008661 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008662 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008663 ++ccp;
8664 p = (char**) ccp;
8665 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008666 { /* SCO 3.2v4 cc rejects this. */
8667 char *t;
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670 *t++ = 0;
8671 if (s) return 0;
8672 }
8673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8674 int x[] = {25, 17};
8675 const int *foo = &x[0];
8676 ++foo;
8677 }
8678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8679 typedef const int *iptr;
8680 iptr p = 0;
8681 ++p;
8682 }
8683 { /* AIX XL C 1.02.0.0 rejects this saying
8684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8685 struct s { int j; const int *ap[3]; };
8686 struct s *b; b->j = 5;
8687 }
8688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 const int foo = 10;
8690 if (!foo) return 0;
8691 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008692 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008693#endif
8694
8695 ;
8696 return 0;
8697}
8698_ACEOF
8699rm -f conftest.$ac_objext
8700if { (ac_try="$ac_compile"
8701case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704esac
8705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008733 ac_cv_c_const=yes
8734else
8735 echo "$as_me: failed program was:" >&5
8736sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_c_const=no
8739fi
8740
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8744echo "${ECHO_T}$ac_cv_c_const" >&6; }
8745if test $ac_cv_c_const = no; then
8746
8747cat >>confdefs.h <<\_ACEOF
8748#define const
8749_ACEOF
8750
8751fi
8752
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753
8754
8755
8756
8757
8758ac_header_dirent=no
8759for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008761{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8762echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772#include <sys/types.h>
8773#include <$ac_hdr>
8774
8775int
8776main ()
8777{
8778if ((DIR *) 0)
8779return 0;
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008785if { (ac_try="$ac_compile"
8786case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812esac
8813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818 eval "$as_ac_Header=yes"
8819else
8820 echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
Reid Spencera773bd52006-08-04 18:18:08 +00008823 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824fi
Reid Spencera773bd52006-08-04 18:18:08 +00008825
8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008827fi
Reid Spencera773bd52006-08-04 18:18:08 +00008828ac_res=`eval echo '${'$as_ac_Header'}'`
8829 { echo "$as_me:$LINENO: result: $ac_res" >&5
8830echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8834_ACEOF
8835
8836ac_header_dirent=$ac_hdr; break
8837fi
8838
8839done
8840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8841if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8843echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844if test "${ac_cv_search_opendir+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854
Reid Spencera773bd52006-08-04 18:18:08 +00008855/* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858#ifdef __cplusplus
8859extern "C"
8860#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008861char opendir ();
8862int
8863main ()
8864{
Reid Spencera773bd52006-08-04 18:18:08 +00008865return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866 ;
8867 return 0;
8868}
8869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008870for ac_lib in '' dir; do
8871 if test -z "$ac_lib"; then
8872 ac_res="none required"
8873 else
8874 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008876 fi
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008911 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008912else
8913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916
8917fi
8918
Bill Wendlingebcceee2009-04-18 11:20:33 +00008919rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008920 conftest$ac_exeext
8921 if test "${ac_cv_search_opendir+set}" = set; then
8922 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008923fi
John Criswell7a73b802003-06-30 21:59:07 +00008924done
Reid Spencera773bd52006-08-04 18:18:08 +00008925if test "${ac_cv_search_opendir+set}" = set; then
8926 :
8927else
8928 ac_cv_search_opendir=no
8929fi
8930rm conftest.$ac_ext
8931LIBS=$ac_func_search_save_LIBS
8932fi
8933{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8934echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8935ac_res=$ac_cv_search_opendir
8936if test "$ac_res" != no; then
8937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008938
Reid Spencera773bd52006-08-04 18:18:08 +00008939fi
8940
8941else
8942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8944if test "${ac_cv_search_opendir+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947 ac_func_search_save_LIBS=$LIBS
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954
8955/* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8958#ifdef __cplusplus
8959extern "C"
8960#endif
8961char opendir ();
8962int
8963main ()
8964{
8965return opendir ();
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970for ac_lib in '' x; do
8971 if test -z "$ac_lib"; then
8972 ac_res="none required"
8973 else
8974 ac_res=-l$ac_lib
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8976 fi
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978if { (ac_try="$ac_link"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009011 ac_cv_search_opendir=$ac_res
9012else
9013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016
9017fi
9018
Bill Wendlingebcceee2009-04-18 11:20:33 +00009019rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009020 conftest$ac_exeext
9021 if test "${ac_cv_search_opendir+set}" = set; then
9022 break
9023fi
9024done
9025if test "${ac_cv_search_opendir+set}" = set; then
9026 :
9027else
9028 ac_cv_search_opendir=no
9029fi
9030rm conftest.$ac_ext
9031LIBS=$ac_func_search_save_LIBS
9032fi
9033{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9034echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9035ac_res=$ac_cv_search_opendir
9036if test "$ac_res" != no; then
9037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038
9039fi
9040
9041fi
John Criswell7a73b802003-06-30 21:59:07 +00009042
9043
9044for ac_header in dlfcn.h
9045do
9046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009051 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009052fi
Reid Spencera773bd52006-08-04 18:18:08 +00009053ac_res=`eval echo '${'$as_ac_Header'}'`
9054 { echo "$as_me:$LINENO: result: $ac_res" >&5
9055echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009056else
Brian Gaeke0a621332004-09-08 20:38:05 +00009057 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009060cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009066$ac_includes_default
9067#include <$ac_header>
9068_ACEOF
9069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009070if { (ac_try="$ac_compile"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009103 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009104else
9105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009106sed 's/^/| /' conftest.$ac_ext >&5
9107
Reid Spencera773bd52006-08-04 18:18:08 +00009108 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009109fi
Reid Spencera773bd52006-08-04 18:18:08 +00009110
9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009114
9115# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009118cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124#include <$ac_header>
9125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009126if { (ac_try="$ac_cpp conftest.$ac_ext"
9127case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130esac
9131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9142 else
9143 ac_cpp_err=
9144 fi
9145else
9146 ac_cpp_err=yes
9147fi
9148if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009149 ac_header_preproc=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155fi
Reid Spencera773bd52006-08-04 18:18:08 +00009156
Brian Gaeke0a621332004-09-08 20:38:05 +00009157rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009160
9161# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009169 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009170 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009183 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009184## ----------------------------------- ##
9185## Report this to llvmbugs@cs.uiuc.edu ##
9186## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009187_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009188 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009189 ;;
9190esac
Reid Spencera773bd52006-08-04 18:18:08 +00009191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009196 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009197fi
Reid Spencera773bd52006-08-04 18:18:08 +00009198ac_res=`eval echo '${'$as_ac_Header'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009201
9202fi
John Criswell7a73b802003-06-30 21:59:07 +00009203if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206_ACEOF
9207
9208fi
9209
9210done
9211
Reid Spencera773bd52006-08-04 18:18:08 +00009212# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009214 enableval=$enable_ltdl_install;
9215fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217
Bill Wendlingebcceee2009-04-18 11:20:33 +00009218
9219
9220if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221 INSTALL_LTDL_TRUE=
9222 INSTALL_LTDL_FALSE='#'
9223else
9224 INSTALL_LTDL_TRUE='#'
9225 INSTALL_LTDL_FALSE=
9226fi
9227
Bill Wendlingebcceee2009-04-18 11:20:33 +00009228
9229
9230if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231 CONVENIENCE_LTDL_TRUE=
9232 CONVENIENCE_LTDL_FALSE='#'
9233else
9234 CONVENIENCE_LTDL_TRUE='#'
9235 CONVENIENCE_LTDL_FALSE=
9236fi
9237
9238
Reid Spencera773bd52006-08-04 18:18:08 +00009239{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241library_names_spec=
9242libname_spec='lib$name'
9243soname_spec=
9244shrext_cmds=".so"
9245postinstall_cmds=
9246postuninstall_cmds=
9247finish_cmds=
9248finish_eval=
9249shlibpath_var=
9250shlibpath_overrides_runpath=unknown
9251version_type=none
9252dynamic_linker="$host_os ld.so"
9253sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254if test "$GCC" = yes; then
9255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257 # if the path contains ";" then we assume it to be the separator
9258 # otherwise default to the standard path separator (i.e. ":") - it is
9259 # assumed that no part of a normal pathname contains ";" but that should
9260 # okay in the real world where ";" in dirpaths is itself problematic.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262 else
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9264 fi
9265else
9266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267fi
9268need_lib_prefix=unknown
9269hardcode_into_libs=no
9270
9271# when you set need_version to no, make sure it does not cause -set_version
9272# flags to be left without arguments
9273need_version=unknown
9274
9275case $host_os in
9276aix3*)
9277 version_type=linux
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279 shlibpath_var=LIBPATH
9280
9281 # AIX 3 has no versioning support, so we append a major version to the name.
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 ;;
9284
9285aix4* | aix5*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 hardcode_into_libs=yes
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 supports IA64
9292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 else
9295 # With GCC up to 2.95.x, collect2 would create an import file
9296 # for dependence libraries. The import file would start with
9297 # the line `#! .'. This would cause the generated library to
9298 # depend on `.', always an invalid library. This was fixed in
9299 # development snapshots of GCC prior to 3.0.
9300 case $host_os in
9301 aix4 | aix4.[01] | aix4.[01].*)
9302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303 echo ' yes '
9304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305 :
9306 else
9307 can_build_shared=no
9308 fi
9309 ;;
9310 esac
9311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312 # soname into executable. Probably we can add versioning support to
9313 # collect2, so additional links can be useful in future.
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316 # instead of lib<name>.a to let people know that these are not
9317 # typical AIX shared libraries.
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 else
9320 # We preserve .a as extension for shared libraries through AIX4.2
9321 # and later when we are not doing run time linking.
9322 library_names_spec='${libname}${release}.a $libname.a'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 fi
9325 shlibpath_var=LIBPATH
9326 fi
9327 ;;
9328
9329amigaos*)
9330 library_names_spec='$libname.ixlibrary $libname.a'
9331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332 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'
9333 ;;
9334
9335beos*)
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9339 ;;
9340
9341bsdi[45]*)
9342 version_type=linux
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9353 ;;
9354
9355cygwin* | mingw* | pw32*)
9356 version_type=windows
9357 shrext_cmds=".dll"
9358 need_version=no
9359 need_lib_prefix=no
9360
9361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32*)
9363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
9366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009369 $install_prog $dir/$dlname \$dldir/$dlname~
9370 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372 dlpath=$dir/\$dldll~
9373 $rm \$dlpath'
9374 shlibpath_overrides_runpath=yes
9375
9376 case $host_os in
9377 cygwin*)
9378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381 ;;
9382 mingw*)
9383 # MinGW DLLs use traditional 'lib' prefix
9384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387 # It is most probably a Windows format PATH printed by
9388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389 # path with ; separators, and with drive letters. We can handle the
9390 # drive letters (cygwin fileutils understands them), so leave them,
9391 # especially as we might pass files found there to a mingw objdump,
9392 # which wouldn't understand a cygwinified path. Ahh.
9393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394 else
9395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9396 fi
9397 ;;
9398 pw32*)
9399 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009400 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 +00009401 ;;
9402 esac
9403 ;;
9404
9405 *)
9406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407 ;;
9408 esac
9409 dynamic_linker='Win32 ld.exe'
9410 # FIXME: first we should search . and the directory the executable is in
9411 shlibpath_var=PATH
9412 ;;
9413
9414darwin* | rhapsody*)
9415 dynamic_linker="$host_os dyld"
9416 version_type=darwin
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420 soname_spec='${libname}${release}${major}$shared_ext'
9421 shlibpath_overrides_runpath=yes
9422 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009423 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425 if test "$GCC" = yes; then
9426 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"`
9427 else
9428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429 fi
9430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431 ;;
9432
9433dgux*)
9434 version_type=linux
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 ;;
9441
9442freebsd1*)
9443 dynamic_linker=no
9444 ;;
9445
9446kfreebsd*-gnu)
9447 version_type=linux
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=no
9454 hardcode_into_libs=yes
9455 dynamic_linker='GNU ld.so'
9456 ;;
9457
Reid Spencera773bd52006-08-04 18:18:08 +00009458freebsd* | dragonfly*)
9459 # DragonFly does not have aout. When/if they implement a new
9460 # versioning mechanism, adjust this.
9461 if test -x /usr/bin/objformat; then
9462 objformat=`/usr/bin/objformat`
9463 else
9464 case $host_os in
9465 freebsd[123]*) objformat=aout ;;
9466 *) objformat=elf ;;
9467 esac
9468 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469 version_type=freebsd-$objformat
9470 case $version_type in
9471 freebsd-elf*)
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473 need_version=no
9474 need_lib_prefix=no
9475 ;;
9476 freebsd-*)
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478 need_version=yes
9479 ;;
9480 esac
9481 shlibpath_var=LD_LIBRARY_PATH
9482 case $host_os in
9483 freebsd2*)
9484 shlibpath_overrides_runpath=yes
9485 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009486 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009495 freebsd*) # from 4.6 on
9496 shlibpath_overrides_runpath=yes
9497 hardcode_into_libs=yes
9498 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 esac
9500 ;;
9501
9502gnu*)
9503 version_type=linux
9504 need_lib_prefix=no
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 hardcode_into_libs=yes
9510 ;;
9511
9512hpux9* | hpux10* | hpux11*)
9513 # Give a soname corresponding to the major version so that dld.sl refuses to
9514 # link against other versions.
9515 version_type=sunos
9516 need_lib_prefix=no
9517 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009518 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519 ia64*)
9520 shrext_cmds='.so'
9521 hardcode_into_libs=yes
9522 dynamic_linker="$host_os dld.so"
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 if test "X$HPUX_IA64_MODE" = X32; then
9528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529 else
9530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531 fi
9532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533 ;;
9534 hppa*64*)
9535 shrext_cmds='.sl'
9536 hardcode_into_libs=yes
9537 dynamic_linker="$host_os dld.sl"
9538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544 ;;
9545 *)
9546 shrext_cmds='.sl'
9547 dynamic_linker="$host_os dld.sl"
9548 shlibpath_var=SHLIB_PATH
9549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 ;;
9553 esac
9554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555 postinstall_cmds='chmod 555 $lib'
9556 ;;
9557
Reid Spencera773bd52006-08-04 18:18:08 +00009558interix3*)
9559 version_type=linux
9560 need_lib_prefix=no
9561 need_version=no
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9568 ;;
9569
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570irix5* | irix6* | nonstopux*)
9571 case $host_os in
9572 nonstopux*) version_type=nonstopux ;;
9573 *)
9574 if test "$lt_cv_prog_gnu_ld" = yes; then
9575 version_type=linux
9576 else
9577 version_type=irix
9578 fi ;;
9579 esac
9580 need_lib_prefix=no
9581 need_version=no
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584 case $host_os in
9585 irix5* | nonstopux*)
9586 libsuff= shlibsuff=
9587 ;;
9588 *)
9589 case $LD in # libtool.m4 will add one of these switches to LD
9590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591 libsuff= shlibsuff= libmagic=32-bit;;
9592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593 libsuff=32 shlibsuff=N32 libmagic=N32;;
9594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596 *) libsuff= shlibsuff= libmagic=never-match;;
9597 esac
9598 ;;
9599 esac
9600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601 shlibpath_overrides_runpath=no
9602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604 hardcode_into_libs=yes
9605 ;;
9606
9607# No shared lib support for Linux oldld, aout, or coff.
9608linux*oldld* | linux*aout* | linux*coff*)
9609 dynamic_linker=no
9610 ;;
9611
9612# This must be Linux ELF.
9613linux*)
9614 version_type=linux
9615 need_lib_prefix=no
9616 need_version=no
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=no
9622 # This implies no fast_install, which is unacceptable.
9623 # Some rework will be needed to allow for fast_install
9624 # before this can be enabled.
9625 hardcode_into_libs=yes
9626
9627 # Append ld.so.conf contents to the search path
9628 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009629 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 +00009630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631 fi
9632
9633 # We used to test for /lib/ld.so.1 and disable shared libraries on
9634 # powerpc, because MkLinux only supported shared libraries with the
9635 # GNU dynamic linker. Since this was broken with cross compilers,
9636 # most powerpc-linux boxes support dynamic linking these days and
9637 # people can always --disable-shared, the test was removed, and we
9638 # assume the GNU/Linux dynamic linker is in use.
9639 dynamic_linker='GNU/Linux ld.so'
9640 ;;
9641
9642knetbsd*-gnu)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9651 dynamic_linker='GNU ld.so'
9652 ;;
9653
9654netbsd*)
9655 version_type=sunos
9656 need_lib_prefix=no
9657 need_version=no
9658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 dynamic_linker='NetBSD (a.out) ld.so'
9662 else
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 dynamic_linker='NetBSD ld.elf_so'
9666 fi
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9670 ;;
9671
9672newsos6)
9673 version_type=linux
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes
9677 ;;
9678
9679nto-qnx*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 ;;
9688
9689openbsd*)
9690 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009691 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694 case $host_os in
9695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696 *) need_version=no ;;
9697 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702 case $host_os in
9703 openbsd2.[89] | openbsd2.[89].*)
9704 shlibpath_overrides_runpath=no
9705 ;;
9706 *)
9707 shlibpath_overrides_runpath=yes
9708 ;;
9709 esac
9710 else
9711 shlibpath_overrides_runpath=yes
9712 fi
9713 ;;
9714
9715os2*)
9716 libname_spec='$name'
9717 shrext_cmds=".dll"
9718 need_lib_prefix=no
9719 library_names_spec='$libname${shared_ext} $libname.a'
9720 dynamic_linker='OS/2 ld.exe'
9721 shlibpath_var=LIBPATH
9722 ;;
9723
9724osf3* | osf4* | osf5*)
9725 version_type=osf
9726 need_lib_prefix=no
9727 need_version=no
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733 ;;
9734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735solaris*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 # ldd complains unless libraries are executable
9745 postinstall_cmds='chmod +x $lib'
9746 ;;
9747
9748sunos4*)
9749 version_type=sunos
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes
9754 if test "$with_gnu_ld" = yes; then
9755 need_lib_prefix=no
9756 fi
9757 need_version=yes
9758 ;;
9759
Reid Spencera773bd52006-08-04 18:18:08 +00009760sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 case $host_vendor in
9766 sni)
9767 shlibpath_overrides_runpath=no
9768 need_lib_prefix=no
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
9770 runpath_var=LD_RUN_PATH
9771 ;;
9772 siemens)
9773 need_lib_prefix=no
9774 ;;
9775 motorola)
9776 need_lib_prefix=no
9777 need_version=no
9778 shlibpath_overrides_runpath=no
9779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780 ;;
9781 esac
9782 ;;
9783
9784sysv4*MP*)
9785 if test -d /usr/nec ;then
9786 version_type=linux
9787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788 soname_spec='$libname${shared_ext}.$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 fi
9791 ;;
9792
Reid Spencera773bd52006-08-04 18:18:08 +00009793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794 version_type=freebsd-elf
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 hardcode_into_libs=yes
9801 if test "$with_gnu_ld" = yes; then
9802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803 shlibpath_overrides_runpath=no
9804 else
9805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806 shlibpath_overrides_runpath=yes
9807 case $host_os in
9808 sco3.2v5*)
9809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810 ;;
9811 esac
9812 fi
9813 sys_lib_dlsearch_path_spec='/usr/lib'
9814 ;;
9815
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816uts4*)
9817 version_type=linux
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 ;;
9822
9823*)
9824 dynamic_linker=no
9825 ;;
9826esac
Reid Spencera773bd52006-08-04 18:18:08 +00009827{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829test "$dynamic_linker" = no && can_build_shared=no
9830
Reid Spencera773bd52006-08-04 18:18:08 +00009831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832if test "$GCC" = yes; then
9833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
Reid Spencera773bd52006-08-04 18:18:08 +00009836
9837{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9838echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839if test "${libltdl_cv_shlibext+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842
9843module=yes
9844eval libltdl_cv_shlibext=$shrext_cmds
9845
9846fi
Reid Spencera773bd52006-08-04 18:18:08 +00009847{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9848echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849if test -n "$libltdl_cv_shlibext"; then
9850
9851cat >>confdefs.h <<_ACEOF
9852#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9853_ACEOF
9854
9855fi
9856
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9859echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860if test "${libltdl_cv_shlibpath_var+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 libltdl_cv_shlibpath_var="$shlibpath_var"
9864fi
Reid Spencera773bd52006-08-04 18:18:08 +00009865{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9866echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867if test -n "$libltdl_cv_shlibpath_var"; then
9868
9869cat >>confdefs.h <<_ACEOF
9870#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9871_ACEOF
9872
9873fi
9874
9875
Reid Spencera773bd52006-08-04 18:18:08 +00009876{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9877echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878if test "${libltdl_cv_sys_search_path+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9882fi
Reid Spencera773bd52006-08-04 18:18:08 +00009883{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9884echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885if test -n "$libltdl_cv_sys_search_path"; then
9886 sys_search_path=
9887 for dir in $libltdl_cv_sys_search_path; do
9888 if test -z "$sys_search_path"; then
9889 sys_search_path="$dir"
9890 else
9891 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9892 fi
9893 done
9894
9895cat >>confdefs.h <<_ACEOF
9896#define LTDL_SYSSEARCHPATH "$sys_search_path"
9897_ACEOF
9898
9899fi
9900
Reid Spencera773bd52006-08-04 18:18:08 +00009901{ echo "$as_me:$LINENO: checking for objdir" >&5
9902echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903if test "${libltdl_cv_objdir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 libltdl_cv_objdir="$objdir"
9907 if test -n "$objdir"; then
9908 :
9909 else
9910 rm -f .libs 2>/dev/null
9911 mkdir .libs 2>/dev/null
9912 if test -d .libs; then
9913 libltdl_cv_objdir=.libs
9914 else
9915 # MS-DOS does not allow filenames that begin with a dot.
9916 libltdl_cv_objdir=_libs
9917 fi
9918 rmdir .libs 2>/dev/null
9919 fi
9920
9921fi
Reid Spencera773bd52006-08-04 18:18:08 +00009922{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9923echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924
9925cat >>confdefs.h <<_ACEOF
9926#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9927_ACEOF
9928
9929
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930
9931
9932
9933
9934# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009935{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9936echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940
9941# These are sane defaults that work on at least a few old systems.
9942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9943
9944# Character class describing NM global symbol codes.
9945symcode='[BCDEGRST]'
9946
9947# Regexp to match symbols that can be accessed directly from C.
9948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9949
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950# Transform an extracted symbol line into a proper C declaration
9951lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9952
9953# Transform an extracted symbol line into symbol name and symbol address
9954lt_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'"
9955
9956# Define system-specific variables.
9957case $host_os in
9958aix*)
9959 symcode='[BCDT]'
9960 ;;
9961cygwin* | mingw* | pw32*)
9962 symcode='[ABCDGISTW]'
9963 ;;
9964hpux*) # Its linker distinguishes data from code symbols
9965 if test "$host_cpu" = ia64; then
9966 symcode='[ABCDEGRST]'
9967 fi
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9970 ;;
9971linux*)
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDGIRSTW]'
9974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9975 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'"
9976 fi
9977 ;;
9978irix* | nonstopux*)
9979 symcode='[BCDEGRST]'
9980 ;;
9981osf*)
9982 symcode='[BCDEGQRST]'
9983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009984solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 symcode='[BDRT]'
9986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009987sco3.2v5*)
9988 symcode='[DT]'
9989 ;;
9990sysv4.2uw2*)
9991 symcode='[DT]'
9992 ;;
9993sysv5* | sco5v6* | unixware* | OpenUNIX*)
9994 symcode='[ABDT]'
9995 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996sysv4)
9997 symcode='[DFNSTU]'
9998 ;;
9999esac
10000
10001# Handle CRLF in mingw tool chain
10002opt_cr=
10003case $build_os in
10004mingw*)
10005 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10006 ;;
10007esac
10008
10009# If we're using GNU nm, then use its standard symbol codes.
10010case `$NM -V 2>&1` in
10011*GNU* | *'with BFD'*)
10012 symcode='[ABCDGIRSTW]' ;;
10013esac
10014
10015# Try without a prefix undercore, then with it.
10016for ac_symprfx in "" "_"; do
10017
Reid Spencera773bd52006-08-04 18:18:08 +000010018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10019 symxfrm="\\1 $ac_symprfx\\2 \\2"
10020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010022 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 +000010023
10024 # Check to see that the pipe works correctly.
10025 pipe_works=no
10026
10027 rm -f conftest*
10028 cat > conftest.$ac_ext <<EOF
10029#ifdef __cplusplus
10030extern "C" {
10031#endif
10032char nm_test_var;
10033void nm_test_func(){}
10034#ifdef __cplusplus
10035}
10036#endif
10037int main(){nm_test_var='a';nm_test_func();return(0);}
10038EOF
10039
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; then
10045 # Now try to grab the symbols.
10046 nlist=conftest.nm
10047 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10048 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s "$nlist"; then
10052 # Try sorting and uniquifying the output.
10053 if sort "$nlist" | uniq > "$nlist"T; then
10054 mv -f "$nlist"T "$nlist"
10055 else
10056 rm -f "$nlist"T
10057 fi
10058
10059 # Make sure that we snagged all the symbols we need.
10060 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10061 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10062 cat <<EOF > conftest.$ac_ext
10063#ifdef __cplusplus
10064extern "C" {
10065#endif
10066
10067EOF
10068 # Now generate the symbol file.
10069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10070
10071 cat <<EOF >> conftest.$ac_ext
10072#if defined (__STDC__) && __STDC__
10073# define lt_ptr_t void *
10074#else
10075# define lt_ptr_t char *
10076# define const
10077#endif
10078
10079/* The mapping between symbol names and symbols. */
10080const struct {
10081 const char *name;
10082 lt_ptr_t address;
10083}
10084lt_preloaded_symbols[] =
10085{
10086EOF
10087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10088 cat <<\EOF >> conftest.$ac_ext
10089 {0, (lt_ptr_t) 0}
10090};
10091
10092#ifdef __cplusplus
10093}
10094#endif
10095EOF
10096 # Now try linking the two files.
10097 mv conftest.$ac_objext conftstm.$ac_objext
10098 lt_save_LIBS="$LIBS"
10099 lt_save_CFLAGS="$CFLAGS"
10100 LIBS="conftstm.$ac_objext"
10101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10107 pipe_works=yes
10108 fi
10109 LIBS="$lt_save_LIBS"
10110 CFLAGS="$lt_save_CFLAGS"
10111 else
10112 echo "cannot find nm_test_func in $nlist" >&5
10113 fi
10114 else
10115 echo "cannot find nm_test_var in $nlist" >&5
10116 fi
10117 else
10118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10119 fi
10120 else
10121 echo "$progname: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 fi
10124 rm -f conftest* conftst*
10125
10126 # Do not use the global_symbol_pipe unless it works.
10127 if test "$pipe_works" = yes; then
10128 break
10129 else
10130 lt_cv_sys_global_symbol_pipe=
10131 fi
10132done
10133
10134fi
10135
10136if test -z "$lt_cv_sys_global_symbol_pipe"; then
10137 lt_cv_sys_global_symbol_to_cdecl=
10138fi
10139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010140 { echo "$as_me:$LINENO: result: failed" >&5
10141echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142else
Reid Spencera773bd52006-08-04 18:18:08 +000010143 { echo "$as_me:$LINENO: result: ok" >&5
10144echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145fi
10146
10147
Reid Spencera773bd52006-08-04 18:18:08 +000010148{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10149echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10154 libltdl_cv_preloaded_symbols=yes
10155 else
10156 libltdl_cv_preloaded_symbols=no
10157 fi
10158
10159fi
Reid Spencera773bd52006-08-04 18:18:08 +000010160{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10161echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10163
10164cat >>confdefs.h <<\_ACEOF
10165#define HAVE_PRELOADED_SYMBOLS 1
10166_ACEOF
10167
10168fi
10169
10170LIBADD_DL=
10171
10172ac_ext=c
10173ac_cpp='$CPP $CPPFLAGS'
10174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
Reid Spencera773bd52006-08-04 18:18:08 +000010179{ echo "$as_me:$LINENO: checking for shl_load" >&5
10180echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181if test "${ac_cv_func_shl_load+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192#define shl_load innocuous_shl_load
10193
10194/* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char shl_load (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10198
10199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204
10205#undef shl_load
10206
Reid Spencera773bd52006-08-04 18:18:08 +000010207/* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210#ifdef __cplusplus
10211extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213char shl_load ();
10214/* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010217#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219#endif
10220
10221int
10222main ()
10223{
Reid Spencera773bd52006-08-04 18:18:08 +000010224return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 ac_cv_func_shl_load=yes
10264else
10265 echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
Reid Spencera773bd52006-08-04 18:18:08 +000010268 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269fi
Reid Spencera773bd52006-08-04 18:18:08 +000010270
Bill Wendlingebcceee2009-04-18 11:20:33 +000010271rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 conftest$ac_exeext conftest.$ac_ext
10273fi
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10275echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test $ac_cv_func_shl_load = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_SHL_LOAD 1
10280_ACEOF
10281
10282else
Reid Spencera773bd52006-08-04 18:18:08 +000010283 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10284echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld $LIBS"
10290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296
Reid Spencera773bd52006-08-04 18:18:08 +000010297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300#ifdef __cplusplus
10301extern "C"
10302#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303char shl_load ();
10304int
10305main ()
10306{
Reid Spencera773bd52006-08-04 18:18:08 +000010307return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 ac_cv_lib_dld_shl_load=yes
10347else
10348 echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
Reid Spencera773bd52006-08-04 18:18:08 +000010351 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352fi
Reid Spencera773bd52006-08-04 18:18:08 +000010353
Bill Wendlingebcceee2009-04-18 11:20:33 +000010354rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355 conftest$ac_exeext conftest.$ac_ext
10356LIBS=$ac_check_lib_save_LIBS
10357fi
Reid Spencera773bd52006-08-04 18:18:08 +000010358{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10359echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360if test $ac_cv_lib_dld_shl_load = yes; then
10361
10362cat >>confdefs.h <<\_ACEOF
10363#define HAVE_SHL_LOAD 1
10364_ACEOF
10365
10366 LIBADD_DL="$LIBADD_DL -ldld"
10367else
Reid Spencera773bd52006-08-04 18:18:08 +000010368 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10369echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 ac_check_lib_save_LIBS=$LIBS
10374LIBS="-ldl $LIBS"
10375cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381
Reid Spencera773bd52006-08-04 18:18:08 +000010382/* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385#ifdef __cplusplus
10386extern "C"
10387#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388char dlopen ();
10389int
10390main ()
10391{
Reid Spencera773bd52006-08-04 18:18:08 +000010392return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393 ;
10394 return 0;
10395}
10396_ACEOF
10397rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010398if { (ac_try="$ac_link"
10399case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try='test -s conftest$ac_exeext'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431 ac_cv_lib_dl_dlopen=yes
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437fi
Reid Spencera773bd52006-08-04 18:18:08 +000010438
Bill Wendlingebcceee2009-04-18 11:20:33 +000010439rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
Reid Spencera773bd52006-08-04 18:18:08 +000010443{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445if test $ac_cv_lib_dl_dlopen = yes; then
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define HAVE_LIBDL 1
10449_ACEOF
10450
10451 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10452else
10453 cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459#if HAVE_DLFCN_H
10460# include <dlfcn.h>
10461#endif
10462
10463int
10464main ()
10465{
10466dlopen(0, 0);
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505
10506cat >>confdefs.h <<\_ACEOF
10507#define HAVE_LIBDL 1
10508_ACEOF
10509 libltdl_cv_func_dlopen="yes"
10510else
10511 echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
Reid Spencera773bd52006-08-04 18:18:08 +000010514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10515echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519 ac_check_lib_save_LIBS=$LIBS
10520LIBS="-lsvld $LIBS"
10521cat >conftest.$ac_ext <<_ACEOF
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527
Reid Spencera773bd52006-08-04 18:18:08 +000010528/* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531#ifdef __cplusplus
10532extern "C"
10533#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534char dlopen ();
10535int
10536main ()
10537{
Reid Spencera773bd52006-08-04 18:18:08 +000010538return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539 ;
10540 return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010544if { (ac_try="$ac_link"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 ac_cv_lib_svld_dlopen=yes
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
Reid Spencera773bd52006-08-04 18:18:08 +000010582 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583fi
Reid Spencera773bd52006-08-04 18:18:08 +000010584
Bill Wendlingebcceee2009-04-18 11:20:33 +000010585rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 conftest$ac_exeext conftest.$ac_ext
10587LIBS=$ac_check_lib_save_LIBS
10588fi
Reid Spencera773bd52006-08-04 18:18:08 +000010589{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10590echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591if test $ac_cv_lib_svld_dlopen = yes; then
10592
10593cat >>confdefs.h <<\_ACEOF
10594#define HAVE_LIBDL 1
10595_ACEOF
10596
10597 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10598else
Reid Spencera773bd52006-08-04 18:18:08 +000010599 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10600echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604 ac_check_lib_save_LIBS=$LIBS
10605LIBS="-ldld $LIBS"
10606cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612
Reid Spencera773bd52006-08-04 18:18:08 +000010613/* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616#ifdef __cplusplus
10617extern "C"
10618#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619char dld_link ();
10620int
10621main ()
10622{
Reid Spencera773bd52006-08-04 18:18:08 +000010623return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010629if { (ac_try="$ac_link"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 ac_cv_lib_dld_dld_link=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
Reid Spencera773bd52006-08-04 18:18:08 +000010667 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668fi
Reid Spencera773bd52006-08-04 18:18:08 +000010669
Bill Wendlingebcceee2009-04-18 11:20:33 +000010670rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 conftest$ac_exeext conftest.$ac_ext
10672LIBS=$ac_check_lib_save_LIBS
10673fi
Reid Spencera773bd52006-08-04 18:18:08 +000010674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10675echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676if test $ac_cv_lib_dld_dld_link = yes; then
10677
10678cat >>confdefs.h <<\_ACEOF
10679#define HAVE_DLD 1
10680_ACEOF
10681
10682 LIBADD_DL="$LIBADD_DL -ldld"
10683else
Reid Spencera773bd52006-08-04 18:18:08 +000010684 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10685echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 cat >conftest.$ac_ext <<_ACEOF
10690/* confdefs.h. */
10691_ACEOF
10692cat confdefs.h >>conftest.$ac_ext
10693cat >>conftest.$ac_ext <<_ACEOF
10694/* end confdefs.h. */
10695/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10697#define _dyld_func_lookup innocuous__dyld_func_lookup
10698
10699/* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char _dyld_func_lookup (); below.
10701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 <limits.h> exists even on freestanding compilers. */
10703
10704#ifdef __STDC__
10705# include <limits.h>
10706#else
10707# include <assert.h>
10708#endif
10709
10710#undef _dyld_func_lookup
10711
Reid Spencera773bd52006-08-04 18:18:08 +000010712/* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715#ifdef __cplusplus
10716extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718char _dyld_func_lookup ();
10719/* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010722#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724#endif
10725
10726int
10727main ()
10728{
Reid Spencera773bd52006-08-04 18:18:08 +000010729return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730 ;
10731 return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010735if { (ac_try="$ac_link"
10736case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest$ac_exeext'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768 ac_cv_func__dyld_func_lookup=yes
10769else
10770 echo "$as_me: failed program was:" >&5
10771sed 's/^/| /' conftest.$ac_ext >&5
10772
Reid Spencera773bd52006-08-04 18:18:08 +000010773 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774fi
Reid Spencera773bd52006-08-04 18:18:08 +000010775
Bill Wendlingebcceee2009-04-18 11:20:33 +000010776rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 conftest$ac_exeext conftest.$ac_ext
10778fi
Reid Spencera773bd52006-08-04 18:18:08 +000010779{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10780echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781if test $ac_cv_func__dyld_func_lookup = yes; then
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define HAVE_DYLD 1
10785_ACEOF
10786
10787fi
10788
10789
10790fi
10791
10792
10793fi
10794
10795
10796fi
Reid Spencera773bd52006-08-04 18:18:08 +000010797
Bill Wendlingebcceee2009-04-18 11:20:33 +000010798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 conftest$ac_exeext conftest.$ac_ext
10800
10801fi
10802
10803
10804fi
10805
10806
10807fi
10808
10809
10810if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10811then
10812 lt_save_LIBS="$LIBS"
10813 LIBS="$LIBS $LIBADD_DL"
10814
10815for ac_func in dlerror
10816do
10817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10831#define $ac_func innocuous_$ac_func
10832
10833/* System header to define __stub macros and hopefully few prototypes,
10834 which can conflict with char $ac_func (); below.
10835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 <limits.h> exists even on freestanding compilers. */
10837
10838#ifdef __STDC__
10839# include <limits.h>
10840#else
10841# include <assert.h>
10842#endif
10843
10844#undef $ac_func
10845
Reid Spencera773bd52006-08-04 18:18:08 +000010846/* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849#ifdef __cplusplus
10850extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852char $ac_func ();
10853/* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010856#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858#endif
10859
10860int
10861main ()
10862{
Reid Spencera773bd52006-08-04 18:18:08 +000010863return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010869if { (ac_try="$ac_link"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 eval "$as_ac_var=yes"
10903else
10904 echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
Reid Spencera773bd52006-08-04 18:18:08 +000010907 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908fi
Reid Spencera773bd52006-08-04 18:18:08 +000010909
Bill Wendlingebcceee2009-04-18 11:20:33 +000010910rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 conftest$ac_exeext conftest.$ac_ext
10912fi
Reid Spencera773bd52006-08-04 18:18:08 +000010913ac_res=`eval echo '${'$as_ac_var'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916if test `eval echo '${'$as_ac_var'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919_ACEOF
10920
10921fi
10922done
10923
10924 LIBS="$lt_save_LIBS"
10925fi
10926ac_ext=c
10927ac_cpp='$CPP $CPPFLAGS'
10928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931
10932
10933
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10935echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 ac_cv_sys_symbol_underscore=no
10940 cat > conftest.$ac_ext <<EOF
10941void nm_test_func(){}
10942int main(){nm_test_func;return 0;}
10943EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 # Now try to grab the symbols.
10950 ac_nlist=conftest.nm
10951 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && test -s "$ac_nlist"; then
10956 # See whether the symbols have a leading underscore.
10957 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10958 ac_cv_sys_symbol_underscore=yes
10959 else
10960 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10961 :
10962 else
10963 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10964 fi
10965 fi
10966 else
10967 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10968 fi
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.c >&5
10972 fi
10973 rm -rf conftest*
10974
10975fi
Reid Spencera773bd52006-08-04 18:18:08 +000010976{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10977echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
10979
10980if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10981 if test x"$libltdl_cv_func_dlopen" = xyes ||
10982 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010983 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10984echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985if test "${libltdl_cv_need_uscore+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 libltdl_cv_need_uscore=unknown
10989 save_LIBS="$LIBS"
10990 LIBS="$LIBS $LIBADD_DL"
10991 if test "$cross_compiling" = yes; then :
10992 libltdl_cv_need_uscore=cross
10993else
10994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995 lt_status=$lt_dlunknown
10996 cat > conftest.$ac_ext <<EOF
Nick Lewycky83fc4472009-09-29 05:48:51 +000010997#line 10997 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998#include "confdefs.h"
10999
11000#if HAVE_DLFCN_H
11001#include <dlfcn.h>
11002#endif
11003
11004#include <stdio.h>
11005
11006#ifdef RTLD_GLOBAL
11007# define LT_DLGLOBAL RTLD_GLOBAL
11008#else
11009# ifdef DL_GLOBAL
11010# define LT_DLGLOBAL DL_GLOBAL
11011# else
11012# define LT_DLGLOBAL 0
11013# endif
11014#endif
11015
11016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017 find out it does not work in some platform. */
11018#ifndef LT_DLLAZY_OR_NOW
11019# ifdef RTLD_LAZY
11020# define LT_DLLAZY_OR_NOW RTLD_LAZY
11021# else
11022# ifdef DL_LAZY
11023# define LT_DLLAZY_OR_NOW DL_LAZY
11024# else
11025# ifdef RTLD_NOW
11026# define LT_DLLAZY_OR_NOW RTLD_NOW
11027# else
11028# ifdef DL_NOW
11029# define LT_DLLAZY_OR_NOW DL_NOW
11030# else
11031# define LT_DLLAZY_OR_NOW 0
11032# endif
11033# endif
11034# endif
11035# endif
11036#endif
11037
11038#ifdef __cplusplus
11039extern "C" void exit (int);
11040#endif
11041
11042void fnord() { int i=42;}
11043int main ()
11044{
11045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046 int status = $lt_dlunknown;
11047
11048 if (self)
11049 {
11050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11051 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 /* dlclose (self); */
11053 }
Reid Spencera773bd52006-08-04 18:18:08 +000011054 else
11055 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056
11057 exit (status);
11058}
11059EOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011065 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 lt_status=$?
11067 case x$lt_status in
11068 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11069 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011070 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 esac
11072 else :
11073 # compilation failed
11074
11075 fi
11076fi
11077rm -fr conftest*
11078
11079 LIBS="$save_LIBS"
11080
11081fi
Reid Spencera773bd52006-08-04 18:18:08 +000011082{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11083echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 fi
11085fi
11086
11087if test x"$libltdl_cv_need_uscore" = xyes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define NEED_USCORE 1
11091_ACEOF
11092
11093fi
11094
11095
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11097echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 # PORTME does your system automatically load deplibs for dlopen?
11102 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11103 # For now, we just catch OSes we know something about -- in the
11104 # future, we'll try test this programmatically.
11105 libltdl_cv_sys_dlopen_deplibs=unknown
11106 case "$host_os" in
11107 aix3*|aix4.1.*|aix4.2.*)
11108 # Unknown whether this is true for these versions of AIX, but
11109 # we want this `case' here to explicitly catch those versions.
11110 libltdl_cv_sys_dlopen_deplibs=unknown
11111 ;;
11112 aix[45]*)
11113 libltdl_cv_sys_dlopen_deplibs=yes
11114 ;;
11115 darwin*)
11116 # Assuming the user has installed a libdl from somewhere, this is true
11117 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11118 libltdl_cv_sys_dlopen_deplibs=yes
11119 ;;
11120 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11121 # GNU and its variants, using gnu ld.so (Glibc)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11123 ;;
11124 hpux10*|hpux11*)
11125 libltdl_cv_sys_dlopen_deplibs=yes
11126 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011127 interix*)
11128 libltdl_cv_sys_dlopen_deplibs=yes
11129 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130 irix[12345]*|irix6.[01]*)
11131 # Catch all versions of IRIX before 6.2, and indicate that we don't
11132 # know how it worked for any of those versions.
11133 libltdl_cv_sys_dlopen_deplibs=unknown
11134 ;;
11135 irix*)
11136 # The case above catches anything before 6.2, and it's known that
11137 # at 6.2 and later dlopen does load deplibs.
11138 libltdl_cv_sys_dlopen_deplibs=yes
11139 ;;
11140 netbsd*)
11141 libltdl_cv_sys_dlopen_deplibs=yes
11142 ;;
11143 openbsd*)
11144 libltdl_cv_sys_dlopen_deplibs=yes
11145 ;;
11146 osf[1234]*)
11147 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11148 # it did *not* use an RPATH in a shared library to find objects the
11149 # library depends on, so we explictly say `no'.
11150 libltdl_cv_sys_dlopen_deplibs=no
11151 ;;
11152 osf5.0|osf5.0a|osf5.1)
11153 # dlopen *does* load deplibs and with the right loader patch applied
11154 # it even uses RPATH in a shared library to search for shared objects
11155 # that the library depends on, but there's no easy way to know if that
11156 # patch is installed. Since this is the case, all we can really
11157 # say is unknown -- it depends on the patch being installed. If
11158 # it is, this changes to `yes'. Without it, it would be `no'.
11159 libltdl_cv_sys_dlopen_deplibs=unknown
11160 ;;
11161 osf*)
11162 # the two cases above should catch all versions of osf <= 5.1. Read
11163 # the comments above for what we know about them.
11164 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11165 # is used to find them so we can finally say `yes'.
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
11168 solaris*)
11169 libltdl_cv_sys_dlopen_deplibs=yes
11170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 libltdl_cv_sys_dlopen_deplibs=yes
11173 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174 esac
11175
11176fi
Reid Spencera773bd52006-08-04 18:18:08 +000011177{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11178echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11180
11181cat >>confdefs.h <<\_ACEOF
11182#define LTDL_DLOPEN_DEPLIBS 1
11183_ACEOF
11184
11185fi
11186
11187
11188for ac_header in argz.h
11189do
11190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196fi
Reid Spencera773bd52006-08-04 18:18:08 +000011197ac_res=`eval echo '${'$as_ac_Header'}'`
11198 { echo "$as_me:$LINENO: result: $ac_res" >&5
11199echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200else
11201 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011202{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210$ac_includes_default
11211#include <$ac_header>
11212_ACEOF
11213rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
11232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_try") 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247 ac_header_compiler=yes
11248else
11249 echo "$as_me: failed program was:" >&5
11250sed 's/^/| /' conftest.$ac_ext >&5
11251
Reid Spencera773bd52006-08-04 18:18:08 +000011252 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253fi
Reid Spencera773bd52006-08-04 18:18:08 +000011254
11255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258
11259# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011260{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268#include <$ac_header>
11269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011270if { (ac_try="$ac_cpp conftest.$ac_ext"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 else
11287 ac_cpp_err=
11288 fi
11289else
11290 ac_cpp_err=yes
11291fi
11292if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293 ac_header_preproc=yes
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_preproc=no
11299fi
Reid Spencera773bd52006-08-04 18:18:08 +000011300
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304
11305# So? What about this header?
11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011327 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328## ----------------------------------- ##
11329## Report this to llvmbugs@cs.uiuc.edu ##
11330## ----------------------------------- ##
11331_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011332 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 ;;
11334esac
Reid Spencera773bd52006-08-04 18:18:08 +000011335{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 eval "$as_ac_Header=\$ac_header_preproc"
11341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342ac_res=`eval echo '${'$as_ac_Header'}'`
11343 { echo "$as_me:$LINENO: result: $ac_res" >&5
11344echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345
11346fi
11347if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350_ACEOF
11351
11352fi
11353
11354done
11355
11356
Reid Spencera773bd52006-08-04 18:18:08 +000011357{ echo "$as_me:$LINENO: checking for error_t" >&5
11358echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359if test "${ac_cv_type_error_t+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#if HAVE_ARGZ_H
11369# include <argz.h>
11370#endif
11371
Reid Spencera773bd52006-08-04 18:18:08 +000011372typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373int
11374main ()
11375{
Reid Spencera773bd52006-08-04 18:18:08 +000011376if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011378if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 return 0;
11380 ;
11381 return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011385if { (ac_try="$ac_compile"
11386case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402esac
11403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 ac_cv_type_error_t=yes
11419else
11420 echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
Reid Spencera773bd52006-08-04 18:18:08 +000011423 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424fi
Reid Spencera773bd52006-08-04 18:18:08 +000011425
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427fi
Reid Spencera773bd52006-08-04 18:18:08 +000011428{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11429echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430if test $ac_cv_type_error_t = yes; then
11431
11432cat >>confdefs.h <<_ACEOF
11433#define HAVE_ERROR_T 1
11434_ACEOF
11435
11436
11437else
11438
11439cat >>confdefs.h <<\_ACEOF
11440#define error_t int
11441_ACEOF
11442
11443fi
11444
11445
11446
11447
11448
11449
11450
11451for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11452do
11453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458else
11459 cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11467#define $ac_func innocuous_$ac_func
11468
11469/* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11473
11474#ifdef __STDC__
11475# include <limits.h>
11476#else
11477# include <assert.h>
11478#endif
11479
11480#undef $ac_func
11481
Reid Spencera773bd52006-08-04 18:18:08 +000011482/* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485#ifdef __cplusplus
11486extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488char $ac_func ();
11489/* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011492#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494#endif
11495
11496int
11497main ()
11498{
Reid Spencera773bd52006-08-04 18:18:08 +000011499return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011505if { (ac_try="$ac_link"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538 eval "$as_ac_var=yes"
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
Reid Spencera773bd52006-08-04 18:18:08 +000011543 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544fi
Reid Spencera773bd52006-08-04 18:18:08 +000011545
Bill Wendlingebcceee2009-04-18 11:20:33 +000011546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 conftest$ac_exeext conftest.$ac_ext
11548fi
Reid Spencera773bd52006-08-04 18:18:08 +000011549ac_res=`eval echo '${'$as_ac_var'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552if test `eval echo '${'$as_ac_var'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555_ACEOF
11556
11557fi
11558done
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11588 stdio.h unistd.h
11589do
11590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596fi
Reid Spencera773bd52006-08-04 18:18:08 +000011597ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600else
11601 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611#include <$ac_header>
11612_ACEOF
11613rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011614if { (ac_try="$ac_compile"
11615case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 ac_header_compiler=yes
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
Reid Spencera773bd52006-08-04 18:18:08 +000011652 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653fi
Reid Spencera773bd52006-08-04 18:18:08 +000011654
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658
11659# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#include <$ac_header>
11669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011670if { (ac_try="$ac_cpp conftest.$ac_ext"
11671case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 else
11687 ac_cpp_err=
11688 fi
11689else
11690 ac_cpp_err=yes
11691fi
11692if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693 ac_header_preproc=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_preproc=no
11699fi
Reid Spencera773bd52006-08-04 18:18:08 +000011700
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704
11705# So? What about this header?
11706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707 yes:no: )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11713 ;;
11714 no:yes:* )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011727 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728## ----------------------------------- ##
11729## Report this to llvmbugs@cs.uiuc.edu ##
11730## ----------------------------------- ##
11731_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011732 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ;;
11734esac
Reid Spencera773bd52006-08-04 18:18:08 +000011735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 eval "$as_ac_Header=\$ac_header_preproc"
11741fi
Reid Spencera773bd52006-08-04 18:18:08 +000011742ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745
11746fi
11747if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750_ACEOF
11751
11752fi
11753
11754done
11755
11756
11757
11758
11759
11760for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11761do
11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768fi
Reid Spencera773bd52006-08-04 18:18:08 +000011769ac_res=`eval echo '${'$as_ac_Header'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772else
11773 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782$ac_includes_default
11783#include <$ac_header>
11784_ACEOF
11785rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819 ac_header_compiler=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
Reid Spencera773bd52006-08-04 18:18:08 +000011824 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825fi
Reid Spencera773bd52006-08-04 18:18:08 +000011826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11829echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830
11831# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840#include <$ac_header>
11841_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011842if { (ac_try="$ac_cpp conftest.$ac_ext"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011854 (exit $ac_status); } >/dev/null; then
11855 if test -s conftest.err; then
11856 ac_cpp_err=$ac_c_preproc_warn_flag
11857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11858 else
11859 ac_cpp_err=
11860 fi
11861else
11862 ac_cpp_err=yes
11863fi
11864if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 ac_header_preproc=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_header_preproc=no
11871fi
Reid Spencera773bd52006-08-04 18:18:08 +000011872
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11875echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876
11877# So? What about this header?
11878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11879 yes:no: )
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11884 ac_header_preproc=yes
11885 ;;
11886 no:yes:* )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011899 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900## ----------------------------------- ##
11901## Report this to llvmbugs@cs.uiuc.edu ##
11902## ----------------------------------- ##
11903_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011904 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 ;;
11906esac
Reid Spencera773bd52006-08-04 18:18:08 +000011907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 eval "$as_ac_Header=\$ac_header_preproc"
11913fi
Reid Spencera773bd52006-08-04 18:18:08 +000011914ac_res=`eval echo '${'$as_ac_Header'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917
11918fi
11919if test `eval echo '${'$as_ac_Header'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11922_ACEOF
11923
11924fi
11925
11926done
11927
11928
11929
11930for ac_header in string.h strings.h
11931do
11932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938fi
Reid Spencera773bd52006-08-04 18:18:08 +000011939ac_res=`eval echo '${'$as_ac_Header'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942else
11943 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952$ac_includes_default
11953#include <$ac_header>
11954_ACEOF
11955rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011956if { (ac_try="$ac_compile"
11957case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989 ac_header_compiler=yes
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
Reid Spencera773bd52006-08-04 18:18:08 +000011994 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995fi
Reid Spencera773bd52006-08-04 18:18:08 +000011996
11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000
12001# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012002{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010#include <$ac_header>
12011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012012if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 else
12029 ac_cpp_err=
12030 fi
12031else
12032 ac_cpp_err=yes
12033fi
12034if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035 ac_header_preproc=yes
12036else
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_header_preproc=no
12041fi
Reid Spencera773bd52006-08-04 18:18:08 +000012042
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046
12047# So? What about this header?
12048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049 yes:no: )
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054 ac_header_preproc=yes
12055 ;;
12056 no:yes:* )
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012069 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070## ----------------------------------- ##
12071## Report this to llvmbugs@cs.uiuc.edu ##
12072## ----------------------------------- ##
12073_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012074 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075 ;;
12076esac
Reid Spencera773bd52006-08-04 18:18:08 +000012077{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 eval "$as_ac_Header=\$ac_header_preproc"
12083fi
Reid Spencera773bd52006-08-04 18:18:08 +000012084ac_res=`eval echo '${'$as_ac_Header'}'`
12085 { echo "$as_me:$LINENO: result: $ac_res" >&5
12086echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087
12088fi
12089if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092_ACEOF
12093 break
12094fi
12095
12096done
12097
12098
12099
12100
12101for ac_func in strchr index
12102do
12103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117#define $ac_func innocuous_$ac_func
12118
12119/* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12123
12124#ifdef __STDC__
12125# include <limits.h>
12126#else
12127# include <assert.h>
12128#endif
12129
12130#undef $ac_func
12131
Reid Spencera773bd52006-08-04 18:18:08 +000012132/* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135#ifdef __cplusplus
12136extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138char $ac_func ();
12139/* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012142#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144#endif
12145
12146int
12147main ()
12148{
Reid Spencera773bd52006-08-04 18:18:08 +000012149return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150 ;
12151 return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012155if { (ac_try="$ac_link"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188 eval "$as_ac_var=yes"
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
Reid Spencera773bd52006-08-04 18:18:08 +000012193 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012194fi
Reid Spencera773bd52006-08-04 18:18:08 +000012195
Bill Wendlingebcceee2009-04-18 11:20:33 +000012196rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 conftest$ac_exeext conftest.$ac_ext
12198fi
Reid Spencera773bd52006-08-04 18:18:08 +000012199ac_res=`eval echo '${'$as_ac_var'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205_ACEOF
12206 break
12207fi
12208done
12209
12210
12211
12212for ac_func in strrchr rindex
12213do
12214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228#define $ac_func innocuous_$ac_func
12229
12230/* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12234
12235#ifdef __STDC__
12236# include <limits.h>
12237#else
12238# include <assert.h>
12239#endif
12240
12241#undef $ac_func
12242
Reid Spencera773bd52006-08-04 18:18:08 +000012243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246#ifdef __cplusplus
12247extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249char $ac_func ();
12250/* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012253#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255#endif
12256
12257int
12258main ()
12259{
Reid Spencera773bd52006-08-04 18:18:08 +000012260return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299 eval "$as_ac_var=yes"
12300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
Reid Spencera773bd52006-08-04 18:18:08 +000012304 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305fi
Reid Spencera773bd52006-08-04 18:18:08 +000012306
Bill Wendlingebcceee2009-04-18 11:20:33 +000012307rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308 conftest$ac_exeext conftest.$ac_ext
12309fi
Reid Spencera773bd52006-08-04 18:18:08 +000012310ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316_ACEOF
12317 break
12318fi
12319done
12320
12321
12322
12323for ac_func in memcpy bcopy
12324do
12325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339#define $ac_func innocuous_$ac_func
12340
12341/* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12345
12346#ifdef __STDC__
12347# include <limits.h>
12348#else
12349# include <assert.h>
12350#endif
12351
12352#undef $ac_func
12353
Reid Spencera773bd52006-08-04 18:18:08 +000012354/* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357#ifdef __cplusplus
12358extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360char $ac_func ();
12361/* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012364#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366#endif
12367
12368int
12369main ()
12370{
Reid Spencera773bd52006-08-04 18:18:08 +000012371return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012377if { (ac_try="$ac_link"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
12395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012410 eval "$as_ac_var=yes"
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416fi
Reid Spencera773bd52006-08-04 18:18:08 +000012417
Bill Wendlingebcceee2009-04-18 11:20:33 +000012418rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 conftest$ac_exeext conftest.$ac_ext
12420fi
Reid Spencera773bd52006-08-04 18:18:08 +000012421ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424if test `eval echo '${'$as_ac_var'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427_ACEOF
12428 break
12429fi
12430done
12431
12432
12433
12434for ac_func in memmove strcmp
12435do
12436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450#define $ac_func innocuous_$ac_func
12451
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12456
12457#ifdef __STDC__
12458# include <limits.h>
12459#else
12460# include <assert.h>
12461#endif
12462
12463#undef $ac_func
12464
Reid Spencera773bd52006-08-04 18:18:08 +000012465/* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468#ifdef __cplusplus
12469extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012471char $ac_func ();
12472/* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012475#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477#endif
12478
12479int
12480main ()
12481{
Reid Spencera773bd52006-08-04 18:18:08 +000012482return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 ;
12484 return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
12493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515esac
12516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521 eval "$as_ac_var=yes"
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
Reid Spencera773bd52006-08-04 18:18:08 +000012526 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012527fi
Reid Spencera773bd52006-08-04 18:18:08 +000012528
Bill Wendlingebcceee2009-04-18 11:20:33 +000012529rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 conftest$ac_exeext conftest.$ac_ext
12531fi
Reid Spencera773bd52006-08-04 18:18:08 +000012532ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12538_ACEOF
12539
12540fi
12541done
12542
12543
12544
12545
12546for ac_func in closedir opendir readdir
12547do
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012549{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
Reid Spencera773bd52006-08-04 18:18:08 +000012577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012580#ifdef __cplusplus
12581extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012582#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012587#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589#endif
12590
12591int
12592main ()
12593{
Reid Spencera773bd52006-08-04 18:18:08 +000012594return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest$ac_exeext'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012633 eval "$as_ac_var=yes"
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
Reid Spencera773bd52006-08-04 18:18:08 +000012638 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639fi
Reid Spencera773bd52006-08-04 18:18:08 +000012640
Bill Wendlingebcceee2009-04-18 11:20:33 +000012641rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012642 conftest$ac_exeext conftest.$ac_ext
12643fi
Reid Spencera773bd52006-08-04 18:18:08 +000012644ac_res=`eval echo '${'$as_ac_var'}'`
12645 { echo "$as_me:$LINENO: result: $ac_res" >&5
12646echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647if test `eval echo '${'$as_ac_var'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12650_ACEOF
12651
12652fi
12653done
12654
12655
Reid Spencera773bd52006-08-04 18:18:08 +000012656# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012658 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659 case $enableval in
12660 yes) enable_shared=yes ;;
12661 no) enable_shared=no ;;
12662 *)
12663 enable_shared=no
12664 # Look at the argument we got. We use all the common list separators.
12665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12666 for pkg in $enableval; do
12667 IFS="$lt_save_ifs"
12668 if test "X$pkg" = "X$p"; then
12669 enable_shared=yes
12670 fi
12671 done
12672 IFS="$lt_save_ifs"
12673 ;;
12674 esac
12675else
12676 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012677fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678
Reid Spencera773bd52006-08-04 18:18:08 +000012679
12680# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012681if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012682 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012683 case $enableval in
12684 yes) enable_static=yes ;;
12685 no) enable_static=no ;;
12686 *)
12687 enable_static=no
12688 # Look at the argument we got. We use all the common list separators.
12689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12690 for pkg in $enableval; do
12691 IFS="$lt_save_ifs"
12692 if test "X$pkg" = "X$p"; then
12693 enable_static=yes
12694 fi
12695 done
12696 IFS="$lt_save_ifs"
12697 ;;
12698 esac
12699else
12700 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012701fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702
Reid Spencera773bd52006-08-04 18:18:08 +000012703
12704# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012706 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707 case $enableval in
12708 yes) enable_fast_install=yes ;;
12709 no) enable_fast_install=no ;;
12710 *)
12711 enable_fast_install=no
12712 # Look at the argument we got. We use all the common list separators.
12713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12714 for pkg in $enableval; do
12715 IFS="$lt_save_ifs"
12716 if test "X$pkg" = "X$p"; then
12717 enable_fast_install=yes
12718 fi
12719 done
12720 IFS="$lt_save_ifs"
12721 ;;
12722 esac
12723else
12724 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012725fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012726
Reid Spencera773bd52006-08-04 18:18:08 +000012727
12728{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12729echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012730if test "${lt_cv_path_SED+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 # Loop through the user's path and test for sed and gsed.
12734# Then use that list of sed's as ones to test for truncation.
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for lt_ac_prog in sed gsed; do
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12744 fi
12745 done
12746 done
12747done
12748lt_ac_max=0
12749lt_ac_count=0
12750# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12751# along with /bin/sed that truncates output.
12752for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012753 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012754 cat /dev/null > conftest.in
12755 lt_ac_count=0
12756 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12757 # Check for GNU sed and select it if it is found.
12758 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12759 lt_cv_path_SED=$lt_ac_sed
12760 break
12761 fi
12762 while true; do
12763 cat conftest.in conftest.in >conftest.tmp
12764 mv conftest.tmp conftest.in
12765 cp conftest.in conftest.nl
12766 echo >>conftest.nl
12767 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12768 cmp -s conftest.out conftest.nl || break
12769 # 10000 chars as input seems more than enough
12770 test $lt_ac_count -gt 10 && break
12771 lt_ac_count=`expr $lt_ac_count + 1`
12772 if test $lt_ac_count -gt $lt_ac_max; then
12773 lt_ac_max=$lt_ac_count
12774 lt_cv_path_SED=$lt_ac_sed
12775 fi
12776 done
12777done
12778
12779fi
12780
12781SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012782{ echo "$as_me:$LINENO: result: $SED" >&5
12783echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784
12785
Reid Spencera773bd52006-08-04 18:18:08 +000012786# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789else
12790 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012791fi
12792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012793ac_prog=ld
12794if test "$GCC" = yes; then
12795 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12797echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798 case $host in
12799 *-*-mingw*)
12800 # gcc leaves a trailing carriage return which upsets mingw
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12802 *)
12803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12804 esac
12805 case $ac_prog in
12806 # Accept absolute paths.
12807 [\\/]* | ?:[\\/]*)
12808 re_direlt='/[^/][^/]*/\.\./'
12809 # Canonicalize the pathname of ld
12810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12813 done
12814 test -z "$LD" && LD="$ac_prog"
12815 ;;
12816 "")
12817 # If it fails, then pretend we aren't using GCC.
12818 ac_prog=ld
12819 ;;
12820 *)
12821 # If it is relative, then search for the first ld in PATH.
12822 with_gnu_ld=unknown
12823 ;;
12824 esac
12825elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12827echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012828else
Reid Spencera773bd52006-08-04 18:18:08 +000012829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12830echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012831fi
12832if test "${lt_cv_path_LD+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 if test -z "$LD"; then
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 for ac_dir in $PATH; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841 lt_cv_path_LD="$ac_dir/$ac_prog"
12842 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012843 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844 # Break only if it was the GNU/non-GNU ld that we prefer.
12845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846 *GNU* | *'with BFD'*)
12847 test "$with_gnu_ld" != no && break
12848 ;;
12849 *)
12850 test "$with_gnu_ld" != yes && break
12851 ;;
12852 esac
12853 fi
12854 done
12855 IFS="$lt_save_ifs"
12856else
12857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12858fi
12859fi
12860
12861LD="$lt_cv_path_LD"
12862if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012863 { echo "$as_me:$LINENO: result: $LD" >&5
12864echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012865else
Reid Spencera773bd52006-08-04 18:18:08 +000012866 { echo "$as_me:$LINENO: result: no" >&5
12867echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012868fi
12869test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12870echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12871 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012872{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12873echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012874if test "${lt_cv_prog_gnu_ld+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
Reid Spencera773bd52006-08-04 18:18:08 +000012877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012878case `$LD -v 2>&1 </dev/null` in
12879*GNU* | *'with BFD'*)
12880 lt_cv_prog_gnu_ld=yes
12881 ;;
12882*)
12883 lt_cv_prog_gnu_ld=no
12884 ;;
12885esac
12886fi
Reid Spencera773bd52006-08-04 18:18:08 +000012887{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12888echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889with_gnu_ld=$lt_cv_prog_gnu_ld
12890
12891
Reid Spencera773bd52006-08-04 18:18:08 +000012892{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12893echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894if test "${lt_cv_ld_reload_flag+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 lt_cv_ld_reload_flag='-r'
12898fi
Reid Spencera773bd52006-08-04 18:18:08 +000012899{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12900echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901reload_flag=$lt_cv_ld_reload_flag
12902case $reload_flag in
12903"" | " "*) ;;
12904*) reload_flag=" $reload_flag" ;;
12905esac
12906reload_cmds='$LD$reload_flag -o $output$reload_objs'
12907case $host_os in
12908 darwin*)
12909 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012911 else
12912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12913 fi
12914 ;;
12915esac
12916
Reid Spencera773bd52006-08-04 18:18:08 +000012917{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12918echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919if test "${lt_cv_deplibs_check_method+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921else
12922 lt_cv_file_magic_cmd='$MAGIC_CMD'
12923lt_cv_file_magic_test_file=
12924lt_cv_deplibs_check_method='unknown'
12925# Need to set the preceding variable on all platforms that support
12926# interlibrary dependencies.
12927# 'none' -- dependencies not supported.
12928# `unknown' -- same as none, but documents that we really don't know.
12929# 'pass_all' -- all dependencies passed with no checks.
12930# 'test_compile' -- check by making test program.
12931# 'file_magic [[regex]]' -- check by looking for files in library path
12932# which responds to the $file_magic_cmd with a given extended regex.
12933# If you have `file' or equivalent on your system and you're not sure
12934# whether `pass_all' will *always* work, you probably want this one.
12935
12936case $host_os in
12937aix4* | aix5*)
12938 lt_cv_deplibs_check_method=pass_all
12939 ;;
12940
12941beos*)
12942 lt_cv_deplibs_check_method=pass_all
12943 ;;
12944
12945bsdi[45]*)
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12947 lt_cv_file_magic_cmd='/usr/bin/file -L'
12948 lt_cv_file_magic_test_file=/shlib/libc.so
12949 ;;
12950
12951cygwin*)
12952 # func_win32_libid is a shell function defined in ltmain.sh
12953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12954 lt_cv_file_magic_cmd='func_win32_libid'
12955 ;;
12956
12957mingw* | pw32*)
12958 # Base MSYS/MinGW do not provide the 'file' command needed by
12959 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961 lt_cv_file_magic_cmd='$OBJDUMP -f'
12962 ;;
12963
12964darwin* | rhapsody*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
Reid Spencera773bd52006-08-04 18:18:08 +000012968freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12970 case $host_cpu in
12971 i*86 )
12972 # Not sure whether the presence of OpenBSD here was a mistake.
12973 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012974 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 +000012975 lt_cv_file_magic_cmd=/usr/bin/file
12976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12977 ;;
12978 esac
12979 else
12980 lt_cv_deplibs_check_method=pass_all
12981 fi
12982 ;;
12983
12984gnu*)
12985 lt_cv_deplibs_check_method=pass_all
12986 ;;
12987
12988hpux10.20* | hpux11*)
12989 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012990 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012991 ia64*)
12992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12994 ;;
12995 hppa*64*)
12996 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]'
12997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12998 ;;
12999 *)
13000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13002 ;;
13003 esac
13004 ;;
13005
Reid Spencera773bd52006-08-04 18:18:08 +000013006interix3*)
13007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13009 ;;
13010
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011irix5* | irix6* | nonstopux*)
13012 case $LD in
13013 *-32|*"-32 ") libmagic=32-bit;;
13014 *-n32|*"-n32 ") libmagic=N32;;
13015 *-64|*"-64 ") libmagic=64-bit;;
13016 *) libmagic=never-match;;
13017 esac
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020
13021# This must be Linux ELF.
13022linux*)
13023 lt_cv_deplibs_check_method=pass_all
13024 ;;
13025
13026netbsd*)
13027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029 else
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13031 fi
13032 ;;
13033
13034newos6*)
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13038 ;;
13039
13040nto-qnx*)
13041 lt_cv_deplibs_check_method=unknown
13042 ;;
13043
13044openbsd*)
13045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13047 else
13048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13049 fi
13050 ;;
13051
13052osf3* | osf4* | osf5*)
13053 lt_cv_deplibs_check_method=pass_all
13054 ;;
13055
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013056solaris*)
13057 lt_cv_deplibs_check_method=pass_all
13058 ;;
13059
Reid Spencera773bd52006-08-04 18:18:08 +000013060sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013061 case $host_vendor in
13062 motorola)
13063 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]'
13064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13065 ;;
13066 ncr)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069 sequent)
13070 lt_cv_file_magic_cmd='/bin/file'
13071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13072 ;;
13073 sni)
13074 lt_cv_file_magic_cmd='/bin/file'
13075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13076 lt_cv_file_magic_test_file=/lib/libc.so
13077 ;;
13078 siemens)
13079 lt_cv_deplibs_check_method=pass_all
13080 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013081 pc)
13082 lt_cv_deplibs_check_method=pass_all
13083 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013084 esac
13085 ;;
13086
Reid Spencera773bd52006-08-04 18:18:08 +000013087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013088 lt_cv_deplibs_check_method=pass_all
13089 ;;
13090esac
13091
13092fi
Reid Spencera773bd52006-08-04 18:18:08 +000013093{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13094echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013095file_magic_cmd=$lt_cv_file_magic_cmd
13096deplibs_check_method=$lt_cv_deplibs_check_method
13097test -z "$deplibs_check_method" && deplibs_check_method=unknown
13098
13099
13100
13101# If no C compiler was specified, use CC.
13102LTCC=${LTCC-"$CC"}
13103
Reid Spencera773bd52006-08-04 18:18:08 +000013104# If no C compiler flags were specified, use CFLAGS.
13105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13106
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013107# Allow CC to be a program name with arguments.
13108compiler=$CC
13109
Reid Spencera773bd52006-08-04 18:18:08 +000013110# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013111if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013112 enableval=$enable_libtool_lock;
13113fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013115test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13116
13117# Some flags need to be propagated to the compiler or linker for good
13118# libtool support.
13119case $host in
13120ia64-*-hpux*)
13121 # Find out which ABI we are using.
13122 echo 'int i;' > conftest.$ac_ext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; then
13128 case `/usr/bin/file conftest.$ac_objext` in
13129 *ELF-32*)
13130 HPUX_IA64_MODE="32"
13131 ;;
13132 *ELF-64*)
13133 HPUX_IA64_MODE="64"
13134 ;;
13135 esac
13136 fi
13137 rm -rf conftest*
13138 ;;
13139*-*-irix6*)
13140 # Find out which ABI we are using.
Nick Lewycky83fc4472009-09-29 05:48:51 +000013141 echo '#line 13141 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; then
13147 if test "$lt_cv_prog_gnu_ld" = yes; then
13148 case `/usr/bin/file conftest.$ac_objext` in
13149 *32-bit*)
13150 LD="${LD-ld} -melf32bsmip"
13151 ;;
13152 *N32*)
13153 LD="${LD-ld} -melf32bmipn32"
13154 ;;
13155 *64-bit*)
13156 LD="${LD-ld} -melf64bmip"
13157 ;;
13158 esac
13159 else
13160 case `/usr/bin/file conftest.$ac_objext` in
13161 *32-bit*)
13162 LD="${LD-ld} -32"
13163 ;;
13164 *N32*)
13165 LD="${LD-ld} -n32"
13166 ;;
13167 *64-bit*)
13168 LD="${LD-ld} -64"
13169 ;;
13170 esac
13171 fi
13172 fi
13173 rm -rf conftest*
13174 ;;
13175
13176x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13177 # Find out which ABI we are using.
13178 echo 'int i;' > conftest.$ac_ext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013184 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013185 *32-bit*)
13186 case $host in
13187 x86_64-*linux*)
13188 LD="${LD-ld} -m elf_i386"
13189 ;;
13190 ppc64-*linux*|powerpc64-*linux*)
13191 LD="${LD-ld} -m elf32ppclinux"
13192 ;;
13193 s390x-*linux*)
13194 LD="${LD-ld} -m elf_s390"
13195 ;;
13196 sparc64-*linux*)
13197 LD="${LD-ld} -m elf32_sparc"
13198 ;;
13199 esac
13200 ;;
13201 *64-bit*)
13202 case $host in
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_x86_64"
13205 ;;
13206 ppc*-*linux*|powerpc*-*linux*)
13207 LD="${LD-ld} -m elf64ppc"
13208 ;;
13209 s390*-*linux*)
13210 LD="${LD-ld} -m elf64_s390"
13211 ;;
13212 sparc*-*linux*)
13213 LD="${LD-ld} -m elf64_sparc"
13214 ;;
13215 esac
13216 ;;
13217 esac
13218 fi
13219 rm -rf conftest*
13220 ;;
13221
13222*-*-sco3.2v5*)
13223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13224 SAVE_CFLAGS="$CFLAGS"
13225 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013226 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13227echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013228if test "${lt_cv_cc_needs_belf+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 ac_ext=c
13232ac_cpp='$CPP $CPPFLAGS'
13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243
Reid Spencera773bd52006-08-04 18:18:08 +000013244int
13245main ()
13246{
13247
13248 ;
13249 return 0;
13250}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013251_ACEOF
13252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013253if { (ac_try="$ac_link"
13254case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257esac
13258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013286 lt_cv_cc_needs_belf=yes
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
Reid Spencera773bd52006-08-04 18:18:08 +000013291 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013292fi
Reid Spencera773bd52006-08-04 18:18:08 +000013293
Bill Wendlingebcceee2009-04-18 11:20:33 +000013294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013295 conftest$ac_exeext conftest.$ac_ext
13296 ac_ext=c
13297ac_cpp='$CPP $CPPFLAGS'
13298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300ac_compiler_gnu=$ac_cv_c_compiler_gnu
13301
13302fi
Reid Spencera773bd52006-08-04 18:18:08 +000013303{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13304echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13307 CFLAGS="$SAVE_CFLAGS"
13308 fi
13309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013310sparc*-*solaris*)
13311 # Find out which ABI we are using.
13312 echo 'int i;' > conftest.$ac_ext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314 (eval $ac_compile) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; then
13318 case `/usr/bin/file conftest.o` in
13319 *64-bit*)
13320 case $lt_cv_prog_gnu_ld in
13321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322 *) LD="${LD-ld} -64" ;;
13323 esac
13324 ;;
13325 esac
13326 fi
13327 rm -rf conftest*
13328 ;;
13329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013330
13331esac
13332
13333need_locks="$enable_libtool_lock"
13334
13335
Reid Spencer2706f8c2004-09-19 23:53:36 +000013336
13337
13338if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13340 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013341 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013342ac_cpp='$CXXCPP $CPPFLAGS'
13343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013346{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013348if test -z "$CXXCPP"; then
13349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351else
John Criswell47fdd832003-07-14 16:52:07 +000013352 # Double quotes because CXXCPP needs to be expanded
13353 for CXXCPP in "$CXX -E" "/lib/cpp"
13354 do
13355 ac_preproc_ok=false
13356for ac_cxx_preproc_warn_flag in '' yes
13357do
13358 # Use a header file that comes with gcc, so configuring glibc
13359 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013362 # On the NeXT, cc -E runs the code through the compiler's parser,
13363 # not just through cpp. "Syntax error" is here to catch this case.
13364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370#ifdef __STDC__
13371# include <limits.h>
13372#else
13373# include <assert.h>
13374#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013376_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013377if { (ac_try="$ac_cpp conftest.$ac_ext"
13378case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013384 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013385 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_cxx_preproc_warn_flag
13392 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13393 else
13394 ac_cpp_err=
13395 fi
13396else
13397 ac_cpp_err=yes
13398fi
13399if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013400 :
13401else
13402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013403sed 's/^/| /' conftest.$ac_ext >&5
13404
John Criswell47fdd832003-07-14 16:52:07 +000013405 # Broken: fails on valid input.
13406continue
13407fi
Reid Spencera773bd52006-08-04 18:18:08 +000013408
John Criswell47fdd832003-07-14 16:52:07 +000013409rm -f conftest.err conftest.$ac_ext
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013412 # can be detected and how.
13413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013419#include <ac_nonexistent.h>
13420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013421if { (ac_try="$ac_cpp conftest.$ac_ext"
13422case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013428 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013429 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_cxx_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013444 # Broken: success on invalid input.
13445continue
13446else
13447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013448sed 's/^/| /' conftest.$ac_ext >&5
13449
John Criswell47fdd832003-07-14 16:52:07 +000013450 # Passes both tests.
13451ac_preproc_ok=:
13452break
13453fi
Reid Spencera773bd52006-08-04 18:18:08 +000013454
John Criswell47fdd832003-07-14 16:52:07 +000013455rm -f conftest.err conftest.$ac_ext
13456
13457done
13458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459rm -f conftest.err conftest.$ac_ext
13460if $ac_preproc_ok; then
13461 break
John Criswell7a73b802003-06-30 21:59:07 +000013462fi
13463
John Criswell47fdd832003-07-14 16:52:07 +000013464 done
13465 ac_cv_prog_CXXCPP=$CXXCPP
13466
13467fi
13468 CXXCPP=$ac_cv_prog_CXXCPP
13469else
13470 ac_cv_prog_CXXCPP=$CXXCPP
13471fi
Reid Spencera773bd52006-08-04 18:18:08 +000013472{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13473echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013474ac_preproc_ok=false
13475for ac_cxx_preproc_warn_flag in '' yes
13476do
13477 # Use a header file that comes with gcc, so configuring glibc
13478 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013481 # On the NeXT, cc -E runs the code through the compiler's parser,
13482 # not just through cpp. "Syntax error" is here to catch this case.
13483 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489#ifdef __STDC__
13490# include <limits.h>
13491#else
13492# include <assert.h>
13493#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013494 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013495_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013496if { (ac_try="$ac_cpp conftest.$ac_ext"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013503 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013504 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_cxx_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13512 else
13513 ac_cpp_err=
13514 fi
13515else
13516 ac_cpp_err=yes
13517fi
13518if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013519 :
13520else
13521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013522sed 's/^/| /' conftest.$ac_ext >&5
13523
John Criswell47fdd832003-07-14 16:52:07 +000013524 # Broken: fails on valid input.
13525continue
13526fi
Reid Spencera773bd52006-08-04 18:18:08 +000013527
John Criswell47fdd832003-07-14 16:52:07 +000013528rm -f conftest.err conftest.$ac_ext
13529
Reid Spencera773bd52006-08-04 18:18:08 +000013530 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013531 # can be detected and how.
13532 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013538#include <ac_nonexistent.h>
13539_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013540if { (ac_try="$ac_cpp conftest.$ac_ext"
13541case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013547 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013548 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_cxx_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13556 else
13557 ac_cpp_err=
13558 fi
13559else
13560 ac_cpp_err=yes
13561fi
13562if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013563 # Broken: success on invalid input.
13564continue
13565else
13566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013567sed 's/^/| /' conftest.$ac_ext >&5
13568
John Criswell47fdd832003-07-14 16:52:07 +000013569 # Passes both tests.
13570ac_preproc_ok=:
13571break
13572fi
Reid Spencera773bd52006-08-04 18:18:08 +000013573
John Criswell47fdd832003-07-14 16:52:07 +000013574rm -f conftest.err conftest.$ac_ext
13575
13576done
13577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13578rm -f conftest.err conftest.$ac_ext
13579if $ac_preproc_ok; then
13580 :
13581else
John Criswell0c38eaf2003-09-10 15:17:25 +000013582 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13583See \`config.log' for more details." >&5
13584echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13585See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013586 { (exit 1); exit 1; }; }
13587fi
13588
Reid Spencera773bd52006-08-04 18:18:08 +000013589ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013590ac_cpp='$CXXCPP $CPPFLAGS'
13591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594
Reid Spencer2706f8c2004-09-19 23:53:36 +000013595fi
13596
John Criswell47fdd832003-07-14 16:52:07 +000013597
13598ac_ext=f
13599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13602if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013603 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 +000013604 do
13605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013609if test "${ac_cv_prog_F77+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612 if test -n "$F77"; then
13613 ac_cv_prog_F77="$F77" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013621 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 +000013622 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627done
Reid Spencera773bd52006-08-04 18:18:08 +000013628IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013629
13630fi
13631fi
13632F77=$ac_cv_prog_F77
13633if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013634 { echo "$as_me:$LINENO: result: $F77" >&5
13635echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013636else
Reid Spencera773bd52006-08-04 18:18:08 +000013637 { echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013639fi
13640
Reid Spencera773bd52006-08-04 18:18:08 +000013641
John Criswell47fdd832003-07-14 16:52:07 +000013642 test -n "$F77" && break
13643 done
13644fi
13645if test -z "$F77"; then
13646 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013647 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 +000013648do
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 if test -n "$ac_ct_F77"; then
13657 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013665 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 +000013666 ac_cv_prog_ac_ct_F77="$ac_prog"
13667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670done
13671done
Reid Spencera773bd52006-08-04 18:18:08 +000013672IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013673
13674fi
13675fi
13676ac_ct_F77=$ac_cv_prog_ac_ct_F77
13677if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013678 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13679echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013680else
Reid Spencera773bd52006-08-04 18:18:08 +000013681 { echo "$as_me:$LINENO: result: no" >&5
13682echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013683fi
13684
Reid Spencera773bd52006-08-04 18:18:08 +000013685
John Criswell47fdd832003-07-14 16:52:07 +000013686 test -n "$ac_ct_F77" && break
13687done
13688
Reid Spencera773bd52006-08-04 18:18:08 +000013689 if test "x$ac_ct_F77" = x; then
13690 F77=""
13691 else
13692 case $cross_compiling:$ac_tool_warned in
13693yes:)
13694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13695whose name does not start with the host triplet. If you think this
13696configuration is useful to you, please write to autoconf@gnu.org." >&5
13697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13698whose name does not start with the host triplet. If you think this
13699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13700ac_tool_warned=yes ;;
13701esac
13702 F77=$ac_ct_F77
13703 fi
John Criswell47fdd832003-07-14 16:52:07 +000013704fi
13705
13706
13707# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013708echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013709ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013710{ (ac_try="$ac_compiler --version >&5"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013720{ (ac_try="$ac_compiler -v >&5"
13721case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013730{ (ac_try="$ac_compiler -V >&5"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013740rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013741
13742# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013743# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013744ac_save_ext=$ac_ext
13745ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013746{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13747echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013748if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 program main
13753#ifndef __GNUC__
13754 choke me
13755#endif
13756
13757 end
13758_ACEOF
13759rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013760if { (ac_try="$ac_compile"
13761case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_try") 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013793 ac_compiler_gnu=yes
13794else
13795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013796sed 's/^/| /' conftest.$ac_ext >&5
13797
Reid Spencera773bd52006-08-04 18:18:08 +000013798 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013799fi
Reid Spencera773bd52006-08-04 18:18:08 +000013800
13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013802ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13803
13804fi
Reid Spencera773bd52006-08-04 18:18:08 +000013805{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13806echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013807ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013808ac_test_FFLAGS=${FFLAGS+set}
13809ac_save_FFLAGS=$FFLAGS
13810FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013811{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13812echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013813if test "${ac_cv_prog_f77_g+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815else
13816 FFLAGS=-g
13817cat >conftest.$ac_ext <<_ACEOF
13818 program main
13819
13820 end
13821_ACEOF
13822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013823if { (ac_try="$ac_compile"
13824case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013856 ac_cv_prog_f77_g=yes
13857else
13858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013859sed 's/^/| /' conftest.$ac_ext >&5
13860
Reid Spencera773bd52006-08-04 18:18:08 +000013861 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013862fi
Reid Spencera773bd52006-08-04 18:18:08 +000013863
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013865
13866fi
Reid Spencera773bd52006-08-04 18:18:08 +000013867{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13868echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013869if test "$ac_test_FFLAGS" = set; then
13870 FFLAGS=$ac_save_FFLAGS
13871elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013873 FFLAGS="-g -O2"
13874 else
13875 FFLAGS="-g"
13876 fi
13877else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013878 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013879 FFLAGS="-O2"
13880 else
13881 FFLAGS=
13882 fi
13883fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884
13885G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013886ac_ext=c
13887ac_cpp='$CPP $CPPFLAGS'
13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892
13893
13894# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13895
13896# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013897{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13898echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013899if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013904
13905 case $build_os in
13906 msdosdjgpp*)
13907 # On DJGPP, this test can blow up pretty badly due to problems in libc
13908 # (any single argument exceeding 2000 bytes causes a buffer overrun
13909 # during glob expansion). Even if it were fixed, the result of this
13910 # check would be larger than it should be.
13911 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13912 ;;
13913
13914 gnu*)
13915 # Under GNU Hurd, this test is not required because there is
13916 # no limit to the length of command line arguments.
13917 # Libtool will interpret -1 as no limit whatsoever
13918 lt_cv_sys_max_cmd_len=-1;
13919 ;;
13920
13921 cygwin* | mingw*)
13922 # On Win9x/ME, this test blows up -- it succeeds, but takes
13923 # about 5 minutes as the teststring grows exponentially.
13924 # Worse, since 9x/ME are not pre-emptively multitasking,
13925 # you end up with a "frozen" computer, even though with patience
13926 # the test eventually succeeds (with a max line length of 256k).
13927 # Instead, let's just punt: use the minimum linelength reported by
13928 # all of the supported platforms: 8192 (on NT/2K/XP).
13929 lt_cv_sys_max_cmd_len=8192;
13930 ;;
13931
Reid Spencer2706f8c2004-09-19 23:53:36 +000013932 amigaos*)
13933 # On AmigaOS with pdksh, this test takes hours, literally.
13934 # So we just punt and use a minimum line length of 8192.
13935 lt_cv_sys_max_cmd_len=8192;
13936 ;;
13937
Reid Spencera773bd52006-08-04 18:18:08 +000013938 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939 # This has been around since 386BSD, at least. Likely further.
13940 if test -x /sbin/sysctl; then
13941 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13942 elif test -x /usr/sbin/sysctl; then
13943 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13944 else
Reid Spencera773bd52006-08-04 18:18:08 +000013945 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 fi
13947 # And add a safety zone
13948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013950 ;;
13951
Reid Spencera773bd52006-08-04 18:18:08 +000013952 interix*)
13953 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13954 lt_cv_sys_max_cmd_len=196608
13955 ;;
13956
13957 osf*)
13958 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13959 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13960 # nice to cause kernel panics so lets avoid the loop below.
13961 # First set a reasonable default.
13962 lt_cv_sys_max_cmd_len=16384
13963 #
13964 if test -x /sbin/sysconfig; then
13965 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13966 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13967 esac
13968 fi
13969 ;;
13970 sco3.2v5*)
13971 lt_cv_sys_max_cmd_len=102400
13972 ;;
13973 sysv5* | sco5v6* | sysv4.2uw2*)
13974 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13975 if test -n "$kargmax"; then
13976 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13977 else
13978 lt_cv_sys_max_cmd_len=32768
13979 fi
13980 ;;
13981 *)
John Criswell47fdd832003-07-14 16:52:07 +000013982 # If test is not a shell built-in, we'll probably end up computing a
13983 # maximum length that is only half of the actual maximum length, but
13984 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13986 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13987 = "XX$teststring") >/dev/null 2>&1 &&
13988 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013989 lt_cv_sys_max_cmd_len=$new_result &&
13990 test $i != 17 # 1/2 MB should be enough
13991 do
13992 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013993 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013994 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013995 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013996 # Add a significant safety factor because C++ compilers can tack on massive
13997 # amounts of additional arguments before passing them to the linker.
13998 # It appears as though 1/2 is a usable value.
13999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14000 ;;
14001 esac
14002
14003fi
14004
14005if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014006 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14007echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014008else
Reid Spencera773bd52006-08-04 18:18:08 +000014009 { echo "$as_me:$LINENO: result: none" >&5
14010echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014011fi
14012
14013
14014
14015
14016# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014017{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14018echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014019if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022
14023# These are sane defaults that work on at least a few old systems.
14024# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14025
14026# Character class describing NM global symbol codes.
14027symcode='[BCDEGRST]'
14028
14029# Regexp to match symbols that can be accessed directly from C.
14030sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14031
John Criswell47fdd832003-07-14 16:52:07 +000014032# Transform an extracted symbol line into a proper C declaration
14033lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14034
14035# Transform an extracted symbol line into symbol name and symbol address
14036lt_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'"
14037
14038# Define system-specific variables.
14039case $host_os in
14040aix*)
14041 symcode='[BCDT]'
14042 ;;
14043cygwin* | mingw* | pw32*)
14044 symcode='[ABCDGISTW]'
14045 ;;
14046hpux*) # Its linker distinguishes data from code symbols
14047 if test "$host_cpu" = ia64; then
14048 symcode='[ABCDEGRST]'
14049 fi
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14052 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014053linux*)
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDGIRSTW]'
14056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14057 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'"
14058 fi
14059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014060irix* | nonstopux*)
14061 symcode='[BCDEGRST]'
14062 ;;
14063osf*)
14064 symcode='[BCDEGQRST]'
14065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014066solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014067 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014069sco3.2v5*)
14070 symcode='[DT]'
14071 ;;
14072sysv4.2uw2*)
14073 symcode='[DT]'
14074 ;;
14075sysv5* | sco5v6* | unixware* | OpenUNIX*)
14076 symcode='[ABDT]'
14077 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014078sysv4)
14079 symcode='[DFNSTU]'
14080 ;;
14081esac
14082
14083# Handle CRLF in mingw tool chain
14084opt_cr=
14085case $build_os in
14086mingw*)
14087 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14088 ;;
14089esac
14090
14091# If we're using GNU nm, then use its standard symbol codes.
14092case `$NM -V 2>&1` in
14093*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014094 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014095esac
14096
14097# Try without a prefix undercore, then with it.
14098for ac_symprfx in "" "_"; do
14099
Reid Spencera773bd52006-08-04 18:18:08 +000014100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14101 symxfrm="\\1 $ac_symprfx\\2 \\2"
14102
John Criswell47fdd832003-07-14 16:52:07 +000014103 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014104 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 +000014105
14106 # Check to see that the pipe works correctly.
14107 pipe_works=no
14108
14109 rm -f conftest*
14110 cat > conftest.$ac_ext <<EOF
14111#ifdef __cplusplus
14112extern "C" {
14113#endif
14114char nm_test_var;
14115void nm_test_func(){}
14116#ifdef __cplusplus
14117}
14118#endif
14119int main(){nm_test_var='a';nm_test_func();return(0);}
14120EOF
14121
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; then
14127 # Now try to grab the symbols.
14128 nlist=conftest.nm
14129 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && test -s "$nlist"; then
14134 # Try sorting and uniquifying the output.
14135 if sort "$nlist" | uniq > "$nlist"T; then
14136 mv -f "$nlist"T "$nlist"
14137 else
14138 rm -f "$nlist"T
14139 fi
14140
14141 # Make sure that we snagged all the symbols we need.
14142 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14143 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14144 cat <<EOF > conftest.$ac_ext
14145#ifdef __cplusplus
14146extern "C" {
14147#endif
14148
14149EOF
14150 # Now generate the symbol file.
14151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14152
14153 cat <<EOF >> conftest.$ac_ext
14154#if defined (__STDC__) && __STDC__
14155# define lt_ptr_t void *
14156#else
14157# define lt_ptr_t char *
14158# define const
14159#endif
14160
14161/* The mapping between symbol names and symbols. */
14162const struct {
14163 const char *name;
14164 lt_ptr_t address;
14165}
14166lt_preloaded_symbols[] =
14167{
14168EOF
14169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14170 cat <<\EOF >> conftest.$ac_ext
14171 {0, (lt_ptr_t) 0}
14172};
14173
14174#ifdef __cplusplus
14175}
14176#endif
14177EOF
14178 # Now try linking the two files.
14179 mv conftest.$ac_objext conftstm.$ac_objext
14180 lt_save_LIBS="$LIBS"
14181 lt_save_CFLAGS="$CFLAGS"
14182 LIBS="conftstm.$ac_objext"
14183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185 (eval $ac_link) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14189 pipe_works=yes
14190 fi
14191 LIBS="$lt_save_LIBS"
14192 CFLAGS="$lt_save_CFLAGS"
14193 else
14194 echo "cannot find nm_test_func in $nlist" >&5
14195 fi
14196 else
14197 echo "cannot find nm_test_var in $nlist" >&5
14198 fi
14199 else
14200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14201 fi
14202 else
14203 echo "$progname: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 fi
14206 rm -f conftest* conftst*
14207
14208 # Do not use the global_symbol_pipe unless it works.
14209 if test "$pipe_works" = yes; then
14210 break
14211 else
14212 lt_cv_sys_global_symbol_pipe=
14213 fi
14214done
14215
14216fi
14217
14218if test -z "$lt_cv_sys_global_symbol_pipe"; then
14219 lt_cv_sys_global_symbol_to_cdecl=
14220fi
14221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014222 { echo "$as_me:$LINENO: result: failed" >&5
14223echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014224else
Reid Spencera773bd52006-08-04 18:18:08 +000014225 { echo "$as_me:$LINENO: result: ok" >&5
14226echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014227fi
14228
Reid Spencera773bd52006-08-04 18:18:08 +000014229{ echo "$as_me:$LINENO: checking for objdir" >&5
14230echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014231if test "${lt_cv_objdir+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233else
14234 rm -f .libs 2>/dev/null
14235mkdir .libs 2>/dev/null
14236if test -d .libs; then
14237 lt_cv_objdir=.libs
14238else
14239 # MS-DOS does not allow filenames that begin with a dot.
14240 lt_cv_objdir=_libs
14241fi
14242rmdir .libs 2>/dev/null
14243fi
Reid Spencera773bd52006-08-04 18:18:08 +000014244{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14245echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014246objdir=$lt_cv_objdir
14247
14248
14249
14250
14251
14252case $host_os in
14253aix3*)
14254 # AIX sometimes has problems with the GCC collect2 program. For some
14255 # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 # vanish in a puff of smoke.
14257 if test "X${COLLECT_NAMES+set}" != Xset; then
14258 COLLECT_NAMES=
14259 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014260 fi
14261 ;;
14262esac
14263
John Criswell47fdd832003-07-14 16:52:07 +000014264# Sed substitution that helps us do robust quoting. It backslashifies
14265# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014266Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014267sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14268
14269# Same as above, but do not quote variable references.
14270double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14271
14272# Sed substitution to delay expansion of an escaped shell variable in a
14273# double_quote_subst'ed string.
14274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14275
14276# Sed substitution to avoid accidental globbing in evaled expressions
14277no_glob_subst='s/\*/\\\*/g'
14278
14279# Constants:
14280rm="rm -f"
14281
14282# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014283default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014284can_build_shared=yes
14285
Reid Spencera773bd52006-08-04 18:18:08 +000014286# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014287# which needs '.lib').
14288libext=a
14289ltmain="$ac_aux_dir/ltmain.sh"
14290ofile="$default_ofile"
14291with_gnu_ld="$lt_cv_prog_gnu_ld"
14292
14293if test -n "$ac_tool_prefix"; then
14294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14295set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014298if test "${ac_cv_prog_AR+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 if test -n "$AR"; then
14302 ac_cv_prog_AR="$AR" # Let the user override the test.
14303else
14304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305for as_dir in $PATH
14306do
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014310 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 +000014311 ac_cv_prog_AR="${ac_tool_prefix}ar"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315done
14316done
Reid Spencera773bd52006-08-04 18:18:08 +000014317IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014318
14319fi
14320fi
14321AR=$ac_cv_prog_AR
14322if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014323 { echo "$as_me:$LINENO: result: $AR" >&5
14324echo "${ECHO_T}$AR" >&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
14329
Reid Spencera773bd52006-08-04 18:18:08 +000014330
John Criswell47fdd832003-07-14 16:52:07 +000014331fi
14332if test -z "$ac_cv_prog_AR"; then
14333 ac_ct_AR=$AR
14334 # Extract the first word of "ar", so it can be a program name with args.
14335set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014338if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 if test -n "$ac_ct_AR"; then
14342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14343else
14344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345for as_dir in $PATH
14346do
14347 IFS=$as_save_IFS
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014350 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 +000014351 ac_cv_prog_ac_ct_AR="ar"
14352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 break 2
14354 fi
14355done
14356done
Reid Spencera773bd52006-08-04 18:18:08 +000014357IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014358
John Criswell47fdd832003-07-14 16:52:07 +000014359fi
14360fi
14361ac_ct_AR=$ac_cv_prog_ac_ct_AR
14362if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014363 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14364echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014365else
Reid Spencera773bd52006-08-04 18:18:08 +000014366 { echo "$as_me:$LINENO: result: no" >&5
14367echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014368fi
14369
Reid Spencera773bd52006-08-04 18:18:08 +000014370 if test "x$ac_ct_AR" = x; then
14371 AR="false"
14372 else
14373 case $cross_compiling:$ac_tool_warned in
14374yes:)
14375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14376whose name does not start with the host triplet. If you think this
14377configuration is useful to you, please write to autoconf@gnu.org." >&5
14378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14379whose name does not start with the host triplet. If you think this
14380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14381ac_tool_warned=yes ;;
14382esac
14383 AR=$ac_ct_AR
14384 fi
John Criswell47fdd832003-07-14 16:52:07 +000014385else
14386 AR="$ac_cv_prog_AR"
14387fi
14388
John Criswell7a73b802003-06-30 21:59:07 +000014389if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14391set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014394if test "${ac_cv_prog_RANLIB+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 if test -n "$RANLIB"; then
14398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14399else
14400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401for as_dir in $PATH
14402do
14403 IFS=$as_save_IFS
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014406 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 +000014407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14409 break 2
14410 fi
14411done
14412done
Reid Spencera773bd52006-08-04 18:18:08 +000014413IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014414
14415fi
14416fi
14417RANLIB=$ac_cv_prog_RANLIB
14418if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14420echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014421else
Reid Spencera773bd52006-08-04 18:18:08 +000014422 { echo "$as_me:$LINENO: result: no" >&5
14423echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014424fi
14425
Reid Spencera773bd52006-08-04 18:18:08 +000014426
John Criswell7a73b802003-06-30 21:59:07 +000014427fi
14428if test -z "$ac_cv_prog_RANLIB"; then
14429 ac_ct_RANLIB=$RANLIB
14430 # Extract the first word of "ranlib", so it can be a program name with args.
14431set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test -n "$ac_ct_RANLIB"; then
14438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014446 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 +000014447 ac_cv_prog_ac_ct_RANLIB="ranlib"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451done
14452done
Reid Spencera773bd52006-08-04 18:18:08 +000014453IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014454
John Criswell7a73b802003-06-30 21:59:07 +000014455fi
14456fi
14457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014461else
Reid Spencera773bd52006-08-04 18:18:08 +000014462 { echo "$as_me:$LINENO: result: no" >&5
14463echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014464fi
14465
Reid Spencera773bd52006-08-04 18:18:08 +000014466 if test "x$ac_ct_RANLIB" = x; then
14467 RANLIB=":"
14468 else
14469 case $cross_compiling:$ac_tool_warned in
14470yes:)
14471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14472whose name does not start with the host triplet. If you think this
14473configuration is useful to you, please write to autoconf@gnu.org." >&5
14474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14475whose name does not start with the host triplet. If you think this
14476configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14477ac_tool_warned=yes ;;
14478esac
14479 RANLIB=$ac_ct_RANLIB
14480 fi
John Criswell7a73b802003-06-30 21:59:07 +000014481else
14482 RANLIB="$ac_cv_prog_RANLIB"
14483fi
14484
14485if test -n "$ac_tool_prefix"; then
14486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14487set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014490if test "${ac_cv_prog_STRIP+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 if test -n "$STRIP"; then
14494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14495else
14496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497for as_dir in $PATH
14498do
14499 IFS=$as_save_IFS
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014502 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 +000014503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14505 break 2
14506 fi
14507done
14508done
Reid Spencera773bd52006-08-04 18:18:08 +000014509IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014510
14511fi
14512fi
14513STRIP=$ac_cv_prog_STRIP
14514if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014515 { echo "$as_me:$LINENO: result: $STRIP" >&5
14516echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014517else
Reid Spencera773bd52006-08-04 18:18:08 +000014518 { echo "$as_me:$LINENO: result: no" >&5
14519echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014520fi
14521
Reid Spencera773bd52006-08-04 18:18:08 +000014522
John Criswell7a73b802003-06-30 21:59:07 +000014523fi
14524if test -z "$ac_cv_prog_STRIP"; then
14525 ac_ct_STRIP=$STRIP
14526 # Extract the first word of "strip", so it can be a program name with args.
14527set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014530if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 if test -n "$ac_ct_STRIP"; then
14534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14535else
14536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537for as_dir in $PATH
14538do
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014542 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 +000014543 ac_cv_prog_ac_ct_STRIP="strip"
14544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14545 break 2
14546 fi
14547done
14548done
Reid Spencera773bd52006-08-04 18:18:08 +000014549IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014550
John Criswell7a73b802003-06-30 21:59:07 +000014551fi
14552fi
14553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14554if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014555 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14556echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014557else
Reid Spencera773bd52006-08-04 18:18:08 +000014558 { echo "$as_me:$LINENO: result: no" >&5
14559echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014560fi
14561
Reid Spencera773bd52006-08-04 18:18:08 +000014562 if test "x$ac_ct_STRIP" = x; then
14563 STRIP=":"
14564 else
14565 case $cross_compiling:$ac_tool_warned in
14566yes:)
14567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14568whose name does not start with the host triplet. If you think this
14569configuration is useful to you, please write to autoconf@gnu.org." >&5
14570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14571whose name does not start with the host triplet. If you think this
14572configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14573ac_tool_warned=yes ;;
14574esac
14575 STRIP=$ac_ct_STRIP
14576 fi
John Criswell7a73b802003-06-30 21:59:07 +000014577else
14578 STRIP="$ac_cv_prog_STRIP"
14579fi
14580
14581
John Criswell7a73b802003-06-30 21:59:07 +000014582old_CC="$CC"
14583old_CFLAGS="$CFLAGS"
14584
14585# Set sane defaults for various variables
14586test -z "$AR" && AR=ar
14587test -z "$AR_FLAGS" && AR_FLAGS=cru
14588test -z "$AS" && AS=as
14589test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014590test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014591test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014592test -z "$DLLTOOL" && DLLTOOL=dlltool
14593test -z "$LD" && LD=ld
14594test -z "$LN_S" && LN_S="ln -s"
14595test -z "$MAGIC_CMD" && MAGIC_CMD=file
14596test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014597test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014598test -z "$OBJDUMP" && OBJDUMP=objdump
14599test -z "$RANLIB" && RANLIB=:
14600test -z "$STRIP" && STRIP=:
14601test -z "$ac_objext" && ac_objext=o
14602
John Criswell7a73b802003-06-30 21:59:07 +000014603# Determine commands to create old-style static archives.
14604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14605old_postinstall_cmds='chmod 644 $oldlib'
14606old_postuninstall_cmds=
14607
14608if test -n "$RANLIB"; then
14609 case $host_os in
14610 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014612 ;;
14613 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014615 ;;
14616 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014618fi
14619
Reid Spencera773bd52006-08-04 18:18:08 +000014620for cc_temp in $compiler""; do
14621 case $cc_temp in
14622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14624 \-*) ;;
14625 *) break;;
14626 esac
14627done
14628cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14629
Reid Spencer2706f8c2004-09-19 23:53:36 +000014630
John Criswell47fdd832003-07-14 16:52:07 +000014631# Only perform the check for file, if the check method requires it
14632case $deplibs_check_method in
14633file_magic*)
14634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014635 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14636echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014639else
John Criswell47fdd832003-07-14 16:52:07 +000014640 case $MAGIC_CMD in
14641[\\/*] | ?:[\\/]*)
14642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14643 ;;
14644*)
14645 lt_save_MAGIC_CMD="$MAGIC_CMD"
14646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14648 for ac_dir in $ac_dummy; do
14649 IFS="$lt_save_ifs"
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f $ac_dir/${ac_tool_prefix}file; then
14652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14653 if test -n "$file_magic_test_file"; then
14654 case $deplibs_check_method in
14655 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14659 $EGREP "$file_magic_regex" > /dev/null; then
14660 :
14661 else
14662 cat <<EOF 1>&2
14663
14664*** Warning: the command libtool uses to detect shared libraries,
14665*** $file_magic_cmd, produces output that libtool cannot recognize.
14666*** The result is that libtool may fail to recognize shared libraries
14667*** as such. This will affect the creation of libtool libraries that
14668*** depend on shared libraries, but programs linked with such libtool
14669*** libraries will work regardless of this problem. Nevertheless, you
14670*** may want to report the problem to your system manager and/or to
14671*** bug-libtool@gnu.org
14672
14673EOF
14674 fi ;;
14675 esac
14676 fi
14677 break
14678 fi
14679 done
14680 IFS="$lt_save_ifs"
14681 MAGIC_CMD="$lt_save_MAGIC_CMD"
14682 ;;
14683esac
John Criswell7a73b802003-06-30 21:59:07 +000014684fi
John Criswell7a73b802003-06-30 21:59:07 +000014685
John Criswell47fdd832003-07-14 16:52:07 +000014686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014688 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14689echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014690else
Reid Spencera773bd52006-08-04 18:18:08 +000014691 { echo "$as_me:$LINENO: result: no" >&5
14692echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014693fi
John Criswell7a73b802003-06-30 21:59:07 +000014694
John Criswell47fdd832003-07-14 16:52:07 +000014695if test -z "$lt_cv_path_MAGIC_CMD"; then
14696 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014697 { echo "$as_me:$LINENO: checking for file" >&5
14698echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 case $MAGIC_CMD in
14703[\\/*] | ?:[\\/]*)
14704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 ;;
14706*)
14707 lt_save_MAGIC_CMD="$MAGIC_CMD"
14708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14710 for ac_dir in $ac_dummy; do
14711 IFS="$lt_save_ifs"
14712 test -z "$ac_dir" && ac_dir=.
14713 if test -f $ac_dir/file; then
14714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14715 if test -n "$file_magic_test_file"; then
14716 case $deplibs_check_method in
14717 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14721 $EGREP "$file_magic_regex" > /dev/null; then
14722 :
14723 else
14724 cat <<EOF 1>&2
14725
14726*** Warning: the command libtool uses to detect shared libraries,
14727*** $file_magic_cmd, produces output that libtool cannot recognize.
14728*** The result is that libtool may fail to recognize shared libraries
14729*** as such. This will affect the creation of libtool libraries that
14730*** depend on shared libraries, but programs linked with such libtool
14731*** libraries will work regardless of this problem. Nevertheless, you
14732*** may want to report the problem to your system manager and/or to
14733*** bug-libtool@gnu.org
14734
14735EOF
14736 fi ;;
14737 esac
14738 fi
14739 break
14740 fi
14741 done
14742 IFS="$lt_save_ifs"
14743 MAGIC_CMD="$lt_save_MAGIC_CMD"
14744 ;;
14745esac
14746fi
14747
14748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14749if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014750 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14751echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014752else
Reid Spencera773bd52006-08-04 18:18:08 +000014753 { echo "$as_me:$LINENO: result: no" >&5
14754echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014755fi
14756
14757 else
14758 MAGIC_CMD=:
14759 fi
14760fi
14761
14762 fi
14763 ;;
14764esac
14765
Reid Spencer17795972004-11-18 09:47:37 +000014766enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014767enable_win32_dll=no
14768
Reid Spencera773bd52006-08-04 18:18:08 +000014769# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014770if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014771 enableval=$enable_libtool_lock;
14772fi
John Criswell47fdd832003-07-14 16:52:07 +000014773
John Criswell47fdd832003-07-14 16:52:07 +000014774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14775
John Criswell7a73b802003-06-30 21:59:07 +000014776
Reid Spencera773bd52006-08-04 18:18:08 +000014777# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014778if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014779 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014780else
14781 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014782fi
14783
John Criswell7a73b802003-06-30 21:59:07 +000014784test -z "$pic_mode" && pic_mode=default
14785
John Criswell47fdd832003-07-14 16:52:07 +000014786# Use C for the default configuration in the libtool script
14787tagname=
14788lt_save_CC="$CC"
14789ac_ext=c
14790ac_cpp='$CPP $CPPFLAGS'
14791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793ac_compiler_gnu=$ac_cv_c_compiler_gnu
14794
14795
14796# Source file extension for C test sources.
14797ac_ext=c
14798
14799# Object file extension for compiled C test sources.
14800objext=o
14801objext=$objext
14802
14803# Code to be used in simple compile tests
14804lt_simple_compile_test_code="int some_variable = 0;\n"
14805
14806# Code to be used in simple link tests
14807lt_simple_link_test_code='int main(){return(0);}\n'
14808
14809
14810# If no C compiler was specified, use CC.
14811LTCC=${LTCC-"$CC"}
14812
Reid Spencera773bd52006-08-04 18:18:08 +000014813# If no C compiler flags were specified, use CFLAGS.
14814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14815
John Criswell47fdd832003-07-14 16:52:07 +000014816# Allow CC to be a program name with arguments.
14817compiler=$CC
14818
14819
Reid Spencera773bd52006-08-04 18:18:08 +000014820# save warnings/boilerplate of simple test code
14821ac_outfile=conftest.$ac_objext
14822printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824_lt_compiler_boilerplate=`cat conftest.err`
14825$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014826
Reid Spencera773bd52006-08-04 18:18:08 +000014827ac_outfile=conftest.$ac_objext
14828printf "$lt_simple_link_test_code" >conftest.$ac_ext
14829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830_lt_linker_boilerplate=`cat conftest.err`
14831$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014832
14833
John Criswell47fdd832003-07-14 16:52:07 +000014834
14835lt_prog_compiler_no_builtin_flag=
14836
14837if test "$GCC" = yes; then
14838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14839
Reid Spencer2706f8c2004-09-19 23:53:36 +000014840
Reid Spencera773bd52006-08-04 18:18:08 +000014841{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14842echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014843if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845else
14846 lt_cv_prog_compiler_rtti_exceptions=no
14847 ac_outfile=conftest.$ac_objext
14848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="-fno-rtti -fno-exceptions"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 # The option is referenced via a variable to avoid confusing sed.
14855 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000014859 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014860 (eval "$lt_compile" 2>conftest.err)
14861 ac_status=$?
14862 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000014863 echo "$as_me:14863: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014864 if (exit $ac_status) && test -s "$ac_outfile"; then
14865 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014866 # So say no if there are warnings other than the usual output.
14867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014870 lt_cv_prog_compiler_rtti_exceptions=yes
14871 fi
14872 fi
14873 $rm conftest*
14874
14875fi
Reid Spencera773bd52006-08-04 18:18:08 +000014876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14877echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014878
14879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14881else
14882 :
14883fi
14884
14885fi
14886
14887lt_prog_compiler_wl=
14888lt_prog_compiler_pic=
14889lt_prog_compiler_static=
14890
Reid Spencera773bd52006-08-04 18:18:08 +000014891{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014893
14894 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014895 lt_prog_compiler_wl='-Wl,'
14896 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014899 aix*)
14900 # All AIX code is PIC.
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 now supports IA64 processor
14903 lt_prog_compiler_static='-Bstatic'
14904 fi
John Criswell7a73b802003-06-30 21:59:07 +000014905 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014906
John Criswell7a73b802003-06-30 21:59:07 +000014907 amigaos*)
14908 # FIXME: we need at least 68020 code to build shared libraries, but
14909 # adding the `-m68020' flag to GCC prevents building anything better,
14910 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014913
14914 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014915 # PIC is the default for these OSes.
14916 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014917
14918 mingw* | pw32* | os2*)
14919 # This hack is so that the source file can tell whether it is being
14920 # built for inclusion in a dll (and should export symbols for example).
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14922 ;;
14923
John Criswell7a73b802003-06-30 21:59:07 +000014924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014927 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929
Reid Spencera773bd52006-08-04 18:18:08 +000014930 interix3*)
14931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14932 # Instead, we relocate shared libraries at runtime.
14933 ;;
14934
John Criswell47fdd832003-07-14 16:52:07 +000014935 msdosdjgpp*)
14936 # Just because we use GCC doesn't mean we suddenly get shared libraries
14937 # on systems that don't support them.
14938 lt_prog_compiler_can_build_shared=no
14939 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014940 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014941
John Criswell7a73b802003-06-30 21:59:07 +000014942 sysv4*MP*)
14943 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014944 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014945 fi
14946 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014947
14948 hpux*)
14949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14950 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014951 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014952 hppa*64*|ia64*)
14953 # +Z the default
14954 ;;
14955 *)
14956 lt_prog_compiler_pic='-fPIC'
14957 ;;
14958 esac
14959 ;;
14960
John Criswell7a73b802003-06-30 21:59:07 +000014961 *)
John Criswell47fdd832003-07-14 16:52:07 +000014962 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014963 ;;
14964 esac
14965 else
John Criswell47fdd832003-07-14 16:52:07 +000014966 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014967 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014968 aix*)
14969 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014970 if test "$host_cpu" = ia64; then
14971 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014972 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014973 else
John Criswell47fdd832003-07-14 16:52:07 +000014974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014975 fi
14976 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014977 darwin*)
14978 # PIC is the default on this platform
14979 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014980 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014981 xlc*)
14982 lt_prog_compiler_pic='-qnocommon'
14983 lt_prog_compiler_wl='-Wl,'
14984 ;;
14985 esac
14986 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014987
John Criswell47fdd832003-07-14 16:52:07 +000014988 mingw* | pw32* | os2*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic='-DDLL_EXPORT'
14992 ;;
14993
John Criswell7a73b802003-06-30 21:59:07 +000014994 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014995 lt_prog_compiler_wl='-Wl,'
14996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014998 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014999 hppa*64*|ia64*)
15000 # +Z the default
15001 ;;
15002 *)
15003 lt_prog_compiler_pic='+Z'
15004 ;;
15005 esac
15006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015008 ;;
15009
John Criswell47fdd832003-07-14 16:52:07 +000015010 irix5* | irix6* | nonstopux*)
15011 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015012 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015013 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015014 ;;
15015
15016 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015017 lt_prog_compiler_pic='-KPIC'
15018 lt_prog_compiler_static='-Bstatic'
15019 ;;
15020
15021 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015022 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='-KPIC'
15026 lt_prog_compiler_static='-static'
15027 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015028 pgcc* | pgf77* | pgf90* | pgf95*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015035 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15039 ;;
15040 esac
John Criswell7a73b802003-06-30 21:59:07 +000015041 ;;
15042
15043 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015044 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015045 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015046 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015047 ;;
15048
John Criswell7a73b802003-06-30 21:59:07 +000015049 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015052 case $cc_basename in
15053 f77* | f90* | f95*)
15054 lt_prog_compiler_wl='-Qoption ld ';;
15055 *)
15056 lt_prog_compiler_wl='-Wl,';;
15057 esac
John Criswell7a73b802003-06-30 21:59:07 +000015058 ;;
15059
15060 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015064 ;;
15065
Reid Spencera773bd52006-08-04 18:18:08 +000015066 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015070 ;;
15071
15072 sysv4*MP*)
15073 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015076 fi
15077 ;;
15078
Reid Spencera773bd52006-08-04 18:18:08 +000015079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15083 ;;
15084
15085 unicos*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15088 ;;
15089
John Criswell47fdd832003-07-14 16:52:07 +000015090 uts4*)
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 ;;
15094
John Criswell7a73b802003-06-30 21:59:07 +000015095 *)
John Criswell47fdd832003-07-14 16:52:07 +000015096 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015097 ;;
15098 esac
15099 fi
15100
Reid Spencera773bd52006-08-04 18:18:08 +000015101{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15102echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015103
John Criswell47fdd832003-07-14 16:52:07 +000015104#
15105# Check to make sure the PIC flag actually works.
15106#
15107if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015108
Reid Spencera773bd52006-08-04 18:18:08 +000015109{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15110echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015111if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
John Criswell47fdd832003-07-14 16:52:07 +000015114 lt_prog_compiler_pic_works=no
15115 ac_outfile=conftest.$ac_objext
15116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15118 # Insert the option either (1) after the last *FLAGS variable, or
15119 # (2) before a word containing "conftest.", or (3) at the end.
15120 # Note that $ac_compile itself does not contain backslashes and begins
15121 # with a dollar sign (not a hyphen), so the echo should work correctly.
15122 # The option is referenced via a variable to avoid confusing sed.
15123 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15126 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000015127 (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015128 (eval "$lt_compile" 2>conftest.err)
15129 ac_status=$?
15130 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000015131 echo "$as_me:15131: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015132 if (exit $ac_status) && test -s "$ac_outfile"; then
15133 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015134 # So say no if there are warnings other than the usual output.
15135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015138 lt_prog_compiler_pic_works=yes
15139 fi
15140 fi
15141 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015142
John Criswell47fdd832003-07-14 16:52:07 +000015143fi
Reid Spencera773bd52006-08-04 18:18:08 +000015144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15145echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015146
John Criswell47fdd832003-07-14 16:52:07 +000015147if test x"$lt_prog_compiler_pic_works" = xyes; then
15148 case $lt_prog_compiler_pic in
15149 "" | " "*) ;;
15150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15151 esac
John Criswell7a73b802003-06-30 21:59:07 +000015152else
John Criswell47fdd832003-07-14 16:52:07 +000015153 lt_prog_compiler_pic=
15154 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015155fi
15156
John Criswell7a73b802003-06-30 21:59:07 +000015157fi
Reid Spencera773bd52006-08-04 18:18:08 +000015158case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015159 # For platforms which do not support PIC, -DPIC is meaningless:
15160 *djgpp*)
15161 lt_prog_compiler_pic=
15162 ;;
15163 *)
15164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15165 ;;
15166esac
John Criswell7a73b802003-06-30 21:59:07 +000015167
Reid Spencera773bd52006-08-04 18:18:08 +000015168#
15169# Check to make sure the static flag actually works.
15170#
15171wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15172{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15173echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15174if test "${lt_prog_compiler_static_works+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 lt_prog_compiler_static_works=no
15178 save_LDFLAGS="$LDFLAGS"
15179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15180 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15182 # The linker can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test -s conftest.err; then
15185 # Append any errors to the config.log.
15186 cat conftest.err 1>&5
15187 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189 if diff conftest.exp conftest.er2 >/dev/null; then
15190 lt_prog_compiler_static_works=yes
15191 fi
15192 else
15193 lt_prog_compiler_static_works=yes
15194 fi
15195 fi
15196 $rm conftest*
15197 LDFLAGS="$save_LDFLAGS"
15198
15199fi
15200{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15201echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15202
15203if test x"$lt_prog_compiler_static_works" = xyes; then
15204 :
15205else
15206 lt_prog_compiler_static=
15207fi
15208
15209
15210{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15211echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015212if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
John Criswell47fdd832003-07-14 16:52:07 +000015215 lt_cv_prog_compiler_c_o=no
15216 $rm -r conftest 2>/dev/null
15217 mkdir conftest
15218 cd conftest
15219 mkdir out
15220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015221
John Criswell47fdd832003-07-14 16:52:07 +000015222 lt_compiler_flag="-o out/conftest2.$ac_objext"
15223 # Insert the option either (1) after the last *FLAGS variable, or
15224 # (2) before a word containing "conftest.", or (3) at the end.
15225 # Note that $ac_compile itself does not contain backslashes and begins
15226 # with a dollar sign (not a hyphen), so the echo should work correctly.
15227 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000015231 (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015232 (eval "$lt_compile" 2>out/conftest.err)
15233 ac_status=$?
15234 cat out/conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000015235 echo "$as_me:15235: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15237 then
15238 # The compiler can only warn and ignore the option if not recognized
15239 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015243 lt_cv_prog_compiler_c_o=yes
15244 fi
15245 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015246 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015247 $rm conftest*
15248 # SGI C++ compiler will create directory out/ii_files/ for
15249 # template instantiation
15250 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15251 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015252 cd ..
15253 rmdir conftest
15254 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015255
15256fi
Reid Spencera773bd52006-08-04 18:18:08 +000015257{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15258echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015259
John Criswell7a73b802003-06-30 21:59:07 +000015260
John Criswell7a73b802003-06-30 21:59:07 +000015261hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015262if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015263 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015264 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15265echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015266 hard_links=yes
15267 $rm conftest*
15268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15269 touch conftest.a
15270 ln conftest.a conftest.b 2>&5 || hard_links=no
15271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015272 { echo "$as_me:$LINENO: result: $hard_links" >&5
15273echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015274 if test "$hard_links" = no; then
15275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15276echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15277 need_locks=warn
15278 fi
15279else
15280 need_locks=no
15281fi
John Criswell7a73b802003-06-30 21:59:07 +000015282
Reid Spencera773bd52006-08-04 18:18:08 +000015283{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15284echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015285
15286 runpath_var=
15287 allow_undefined_flag=
15288 enable_shared_with_static_runtimes=no
15289 archive_cmds=
15290 archive_expsym_cmds=
15291 old_archive_From_new_cmds=
15292 old_archive_from_expsyms_cmds=
15293 export_dynamic_flag_spec=
15294 whole_archive_flag_spec=
15295 thread_safe_flag_spec=
15296 hardcode_libdir_flag_spec=
15297 hardcode_libdir_flag_spec_ld=
15298 hardcode_libdir_separator=
15299 hardcode_direct=no
15300 hardcode_minus_L=no
15301 hardcode_shlibpath_var=unsupported
15302 link_all_deplibs=unknown
15303 hardcode_automatic=no
15304 module_cmds=
15305 module_expsym_cmds=
15306 always_export_symbols=no
15307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15308 # include_expsyms should be a list of space-separated symbols to be *always*
15309 # included in the symbol list
15310 include_expsyms=
15311 # exclude_expsyms can be an extended regexp of symbols to exclude
15312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15314 # as well as any symbol that contains `d'.
15315 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15317 # platforms (ab)use it in PIC code, but their linkers get confused if
15318 # the symbol is explicitly referenced. Since portable code cannot
15319 # rely on this symbol name, it's probably fine to never include it in
15320 # preloaded symbol tables.
15321 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015322 # Just being paranoid about ensuring that cc_basename is set.
15323 for cc_temp in $compiler""; do
15324 case $cc_temp in
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327 \-*) ;;
15328 *) break;;
15329 esac
15330done
15331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015332
15333 case $host_os in
15334 cygwin* | mingw* | pw32*)
15335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15336 # When not using gcc, we currently assume that we are using
15337 # Microsoft Visual C++.
15338 if test "$GCC" != yes; then
15339 with_gnu_ld=no
15340 fi
15341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015342 interix*)
15343 # we just hope/assume this is gcc and not c89 (= MSVC++)
15344 with_gnu_ld=yes
15345 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015346 openbsd*)
15347 with_gnu_ld=no
15348 ;;
15349 esac
15350
15351 ld_shlibs=yes
15352 if test "$with_gnu_ld" = yes; then
15353 # If archive_cmds runs LD, not CC, wlarc should be empty
15354 wlarc='${wl}'
15355
Reid Spencera773bd52006-08-04 18:18:08 +000015356 # Set some defaults for GNU ld with shared library support. These
15357 # are reset later if shared libraries are not supported. Putting them
15358 # here allows them to be overridden if necessary.
15359 runpath_var=LD_RUN_PATH
15360 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15361 export_dynamic_flag_spec='${wl}--export-dynamic'
15362 # ancient GNU ld didn't support --whole-archive et. al.
15363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15365 else
15366 whole_archive_flag_spec=
15367 fi
15368 supports_anon_versioning=no
15369 case `$LD -v 2>/dev/null` in
15370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15373 *\ 2.11.*) ;; # other 2.11 versions
15374 *) supports_anon_versioning=yes ;;
15375 esac
15376
John Criswell47fdd832003-07-14 16:52:07 +000015377 # See if GNU ld supports shared libraries.
15378 case $host_os in
15379 aix3* | aix4* | aix5*)
15380 # On AIX/PPC, the GNU linker is very broken
15381 if test "$host_cpu" != ia64; then
15382 ld_shlibs=no
15383 cat <<EOF 1>&2
15384
15385*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15386*** to be unable to reliably create shared libraries on AIX.
15387*** Therefore, libtool is disabling shared libraries support. If you
15388*** really care for shared libraries, you may want to modify your PATH
15389*** so that a non-GNU linker is found, and then restart.
15390
15391EOF
15392 fi
15393 ;;
15394
15395 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015396 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 +000015397 hardcode_libdir_flag_spec='-L$libdir'
15398 hardcode_minus_L=yes
15399
15400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15401 # that the semantics of dynamic libraries on AmigaOS, at least up
15402 # to version 4, is to share data among multiple programs linked
15403 # with the same dynamic library. Since this doesn't match the
15404 # behavior of shared libraries on other platforms, we can't use
15405 # them.
15406 ld_shlibs=no
15407 ;;
15408
15409 beos*)
15410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15411 allow_undefined_flag=unsupported
15412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15413 # support --undefined. This deserves some investigation. FIXME
15414 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 else
15416 ld_shlibs=no
15417 fi
15418 ;;
15419
15420 cygwin* | mingw* | pw32*)
15421 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15422 # as there is no search path for DLLs.
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=no
15426 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015427 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 +000015428
15429 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015430 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 +000015431 # If the export-symbols file already is a .def file (1st line
15432 # is EXPORTS), use it as is; otherwise, prepend...
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 cp $export_symbols $output_objdir/$soname.def;
15435 else
15436 echo EXPORTS > $output_objdir/$soname.def;
15437 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15440 else
15441 ld_shlibs=no
15442 fi
15443 ;;
15444
15445 interix3*)
15446 hardcode_direct=no
15447 hardcode_shlibpath_var=no
15448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15449 export_dynamic_flag_spec='${wl}-E'
15450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15451 # Instead, shared libraries are loaded at an image base (0x10000000 by
15452 # default) and relocated if they conflict, which is a slow very memory
15453 # consuming and fragmenting process. To avoid this, we pick a random,
15454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15457 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'
15458 ;;
15459
15460 linux*)
15461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15462 tmp_addflag=
15463 case $cc_basename,$host_cpu in
15464 pgcc*) # Portland Group C compiler
15465 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'
15466 tmp_addflag=' $pic_flag'
15467 ;;
15468 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15469 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'
15470 tmp_addflag=' $pic_flag -Mnomain' ;;
15471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15472 tmp_addflag=' -i_dynamic' ;;
15473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15474 tmp_addflag=' -i_dynamic -nofor_main' ;;
15475 ifc* | ifort*) # Intel Fortran compiler
15476 tmp_addflag=' -nofor_main' ;;
15477 esac
15478 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479
15480 if test $supports_anon_versioning = yes; then
15481 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15483 $echo "local: *; };" >> $output_objdir/$libname.ver~
15484 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15485 fi
John Criswell47fdd832003-07-14 16:52:07 +000015486 else
15487 ld_shlibs=no
15488 fi
15489 ;;
15490
15491 netbsd*)
15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15494 wlarc=
15495 else
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498 fi
15499 ;;
15500
Reid Spencera773bd52006-08-04 18:18:08 +000015501 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15503 ld_shlibs=no
15504 cat <<EOF 1>&2
15505
15506*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15507*** create shared libraries on Solaris systems. Therefore, libtool
15508*** is disabling shared libraries support. We urge you to upgrade GNU
15509*** binutils to release 2.9.1 or newer. Another option is to modify
15510*** your PATH or compiler configuration so that the native linker is
15511*** used, and then restart.
15512
15513EOF
15514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517 else
15518 ld_shlibs=no
15519 fi
15520 ;;
15521
Reid Spencera773bd52006-08-04 18:18:08 +000015522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15523 case `$LD -v 2>&1` in
15524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15525 ld_shlibs=no
15526 cat <<_LT_EOF 1>&2
15527
15528*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15529*** reliably create shared libraries on SCO systems. Therefore, libtool
15530*** is disabling shared libraries support. We urge you to upgrade GNU
15531*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15532*** your PATH or compiler configuration so that the native linker is
15533*** used, and then restart.
15534
15535_LT_EOF
15536 ;;
15537 *)
15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15542 else
15543 ld_shlibs=no
15544 fi
15545 ;;
15546 esac
15547 ;;
15548
John Criswell47fdd832003-07-14 16:52:07 +000015549 sunos4*)
15550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15551 wlarc=
15552 hardcode_direct=yes
15553 hardcode_shlibpath_var=no
15554 ;;
15555
15556 *)
15557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 else
15561 ld_shlibs=no
15562 fi
15563 ;;
15564 esac
15565
Reid Spencera773bd52006-08-04 18:18:08 +000015566 if test "$ld_shlibs" = no; then
15567 runpath_var=
15568 hardcode_libdir_flag_spec=
15569 export_dynamic_flag_spec=
15570 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015571 fi
15572 else
15573 # PORTME fill in a description of your system's linker (not GNU ld)
15574 case $host_os in
15575 aix3*)
15576 allow_undefined_flag=unsupported
15577 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015578 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 +000015579 # Note: this linker hardcodes the directories in LIBPATH if there
15580 # are no directories specified by -L.
15581 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015583 # Neither direct hardcoding nor static linking is supported with a
15584 # broken collect2.
15585 hardcode_direct=unsupported
15586 fi
15587 ;;
15588
15589 aix4* | aix5*)
15590 if test "$host_cpu" = ia64; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15595 no_entry_flag=""
15596 else
15597 # If we're using GNU nm, then we don't want the "-C" option.
15598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600 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'
15601 else
15602 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'
15603 fi
15604 aix_use_runtimelinking=no
15605
15606 # Test if we are trying to use run time linking or normal
15607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608 # need to do runtime linking.
15609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610 for ld_flag in $LDFLAGS; do
15611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612 aix_use_runtimelinking=yes
15613 break
15614 fi
15615 done
Reid Spencera773bd52006-08-04 18:18:08 +000015616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015617 esac
15618
15619 exp_sym_flag='-bexport'
15620 no_entry_flag='-bnoentry'
15621 fi
15622
15623 # When large executables or shared objects are built, AIX ld can
15624 # have problems creating the table of contents. If linking a library
15625 # or program results in "error TOC overflow" add -mminimal-toc to
15626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15628
15629 archive_cmds=''
15630 hardcode_direct=yes
15631 hardcode_libdir_separator=':'
15632 link_all_deplibs=yes
15633
15634 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015635 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015636 # We only want to do this on AIX 4.2 and lower, the check
15637 # below for broken collect2 doesn't work under 4.3+
15638 collect2name=`${CC} -print-prog-name=collect2`
15639 if test -f "$collect2name" && \
15640 strings "$collect2name" | grep resolve_lib_name >/dev/null
15641 then
15642 # We have reworked collect2
15643 hardcode_direct=yes
15644 else
15645 # We have old collect2
15646 hardcode_direct=unsupported
15647 # It fails to find uninstalled libraries when the uninstalled
15648 # path is not listed in the libpath. Setting hardcode_minus_L
15649 # to unsupported forces relinking
15650 hardcode_minus_L=yes
15651 hardcode_libdir_flag_spec='-L$libdir'
15652 hardcode_libdir_separator=
15653 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015654 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015655 esac
15656 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015657 if test "$aix_use_runtimelinking" = yes; then
15658 shared_flag="$shared_flag "'${wl}-G'
15659 fi
John Criswell47fdd832003-07-14 16:52:07 +000015660 else
15661 # not using gcc
15662 if test "$host_cpu" = ia64; then
15663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15664 # chokes on -Wl,-G. The following line is correct:
15665 shared_flag='-G'
15666 else
Reid Spencera773bd52006-08-04 18:18:08 +000015667 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015668 shared_flag='${wl}-G'
15669 else
15670 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015671 fi
John Criswell47fdd832003-07-14 16:52:07 +000015672 fi
15673 fi
15674
15675 # It seems that -bexpall does not export symbols beginning with
15676 # underscore (_), so it is better to generate a list of symbols to export.
15677 always_export_symbols=yes
15678 if test "$aix_use_runtimelinking" = yes; then
15679 # Warning - without using the other runtime loading flags (-brtl),
15680 # -berok will link without error, but may produce a broken library.
15681 allow_undefined_flag='-berok'
15682 # Determine the default libpath from the value encoded in an empty executable.
15683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015689
John Criswell7a73b802003-06-30 21:59:07 +000015690int
15691main ()
15692{
John Criswell47fdd832003-07-14 16:52:07 +000015693
John Criswell7a73b802003-06-30 21:59:07 +000015694 ;
15695 return 0;
15696}
15697_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015698rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015699if { (ac_try="$ac_link"
15700case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015732
John Criswell47fdd832003-07-14 16:52:07 +000015733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15734}'`
15735# Check for a 64-bit object if we didn't find anything.
15736if 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; }
15737}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015738else
15739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015740sed 's/^/| /' conftest.$ac_ext >&5
15741
Reid Spencera773bd52006-08-04 18:18:08 +000015742
John Criswell7a73b802003-06-30 21:59:07 +000015743fi
Reid Spencera773bd52006-08-04 18:18:08 +000015744
Bill Wendlingebcceee2009-04-18 11:20:33 +000015745rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015746 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015748
John Criswell47fdd832003-07-14 16:52:07 +000015749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015750 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 +000015751 else
15752 if test "$host_cpu" = ia64; then
15753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15754 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015755 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 +000015756 else
15757 # Determine the default libpath from the value encoded in an empty executable.
15758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015764
John Criswell47fdd832003-07-14 16:52:07 +000015765int
15766main ()
15767{
John Criswell7a73b802003-06-30 21:59:07 +000015768
John Criswell47fdd832003-07-14 16:52:07 +000015769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015774if { (ac_try="$ac_link"
15775case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015807
John Criswell47fdd832003-07-14 16:52:07 +000015808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15809}'`
15810# Check for a 64-bit object if we didn't find anything.
15811if 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; }
15812}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015813else
John Criswell47fdd832003-07-14 16:52:07 +000015814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015815sed 's/^/| /' conftest.$ac_ext >&5
15816
Reid Spencera773bd52006-08-04 18:18:08 +000015817
John Criswell47fdd832003-07-14 16:52:07 +000015818fi
Reid Spencera773bd52006-08-04 18:18:08 +000015819
Bill Wendlingebcceee2009-04-18 11:20:33 +000015820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015821 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015822if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015823
John Criswell47fdd832003-07-14 16:52:07 +000015824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15825 # Warning - without using the other run time loading flags,
15826 # -berok will link without error, but may produce a broken library.
15827 no_undefined_flag=' ${wl}-bernotok'
15828 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015829 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015830 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015831 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015832 # This is similar to how AIX traditionally builds its shared libraries.
15833 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 +000015834 fi
15835 fi
John Criswell7a73b802003-06-30 21:59:07 +000015836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015837
15838 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015839 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 +000015840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_minus_L=yes
15842 # see comment about different semantics on the GNU ld section
15843 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015845
Reid Spencer2706f8c2004-09-19 23:53:36 +000015846 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015847 export_dynamic_flag_spec=-rdynamic
15848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015849
John Criswell47fdd832003-07-14 16:52:07 +000015850 cygwin* | mingw* | pw32*)
15851 # When not using gcc, we currently assume that we are using
15852 # Microsoft Visual C++.
15853 # hardcode_libdir_flag_spec is actually meaningless, as there is
15854 # no search path for DLLs.
15855 hardcode_libdir_flag_spec=' '
15856 allow_undefined_flag=unsupported
15857 # Tell ltmain to make .lib files, not .a files.
15858 libext=lib
15859 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015860 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015861 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015863 # The linker will automatically build a .lib file if we build a DLL.
15864 old_archive_From_new_cmds='true'
15865 # FIXME: Should let the user specify the lib program.
15866 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867 fix_srcfile_path='`cygpath -w "$srcfile"`'
15868 enable_shared_with_static_runtimes=yes
15869 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015870
John Criswell47fdd832003-07-14 16:52:07 +000015871 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015872 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873 rhapsody* | darwin1.[012])
15874 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15875 ;;
15876 *) # Darwin 1.3 on
15877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879 else
15880 case ${MACOSX_DEPLOYMENT_TARGET} in
15881 10.[012])
15882 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15883 ;;
15884 10.*)
15885 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15886 ;;
15887 esac
15888 fi
15889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015890 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015892 hardcode_direct=no
15893 hardcode_automatic=yes
15894 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015895 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015896 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015897 if test "$GCC" = yes ; then
15898 output_verbose_link_cmd='echo'
15899 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15900 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015901 # 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 +000015902 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}'
15903 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 +000015904 else
Reid Spencera773bd52006-08-04 18:18:08 +000015905 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015906 xlc*)
15907 output_verbose_link_cmd='echo'
15908 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15909 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015910 # 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 +000015911 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}'
15912 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 +000015913 ;;
15914 *)
15915 ld_shlibs=no
15916 ;;
15917 esac
John Criswell7a73b802003-06-30 21:59:07 +000015918 fi
John Criswell47fdd832003-07-14 16:52:07 +000015919 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015920
John Criswell47fdd832003-07-14 16:52:07 +000015921 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_shlibpath_var=no
15925 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015926
John Criswell47fdd832003-07-14 16:52:07 +000015927 freebsd1*)
15928 ld_shlibs=no
15929 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015930
John Criswell47fdd832003-07-14 16:52:07 +000015931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15932 # support. Future versions do this automatically, but an explicit c++rt0.o
15933 # does not break anything, and helps significantly (at the cost of a little
15934 # extra space).
15935 freebsd2.2*)
15936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15937 hardcode_libdir_flag_spec='-R$libdir'
15938 hardcode_direct=yes
15939 hardcode_shlibpath_var=no
15940 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015941
John Criswell47fdd832003-07-14 16:52:07 +000015942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15943 freebsd2*)
15944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15945 hardcode_direct=yes
15946 hardcode_minus_L=yes
15947 hardcode_shlibpath_var=no
15948 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015949
John Criswell47fdd832003-07-14 16:52:07 +000015950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015951 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015952 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15956 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015957
John Criswell47fdd832003-07-14 16:52:07 +000015958 hpux9*)
15959 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015960 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 +000015961 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015962 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 +000015963 fi
15964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15965 hardcode_libdir_separator=:
15966 hardcode_direct=yes
15967
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L=yes
15971 export_dynamic_flag_spec='${wl}-E'
15972 ;;
15973
Reid Spencera773bd52006-08-04 18:18:08 +000015974 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15977 else
15978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15979 fi
15980 if test "$with_gnu_ld" = no; then
15981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_separator=:
15983
15984 hardcode_direct=yes
15985 export_dynamic_flag_spec='${wl}-E'
15986
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L=yes
15990 fi
15991 ;;
15992
15993 hpux11*)
15994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15995 case $host_cpu in
15996 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015999 ia64*)
16000 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16001 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016002 *)
16003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 esac
16006 else
Reid Spencera773bd52006-08-04 18:18:08 +000016007 case $host_cpu in
16008 hppa*64*)
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 ia64*)
16012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016013 ;;
16014 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016015 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 +000016016 ;;
16017 esac
16018 fi
16019 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16021 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016022
Reid Spencera773bd52006-08-04 18:18:08 +000016023 case $host_cpu in
16024 hppa*64*|ia64*)
16025 hardcode_libdir_flag_spec_ld='+b $libdir'
16026 hardcode_direct=no
16027 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016028 ;;
16029 *)
John Criswell47fdd832003-07-14 16:52:07 +000016030 hardcode_direct=yes
16031 export_dynamic_flag_spec='${wl}-E'
16032
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L=yes
16036 ;;
16037 esac
16038 fi
16039 ;;
16040
16041 irix5* | irix6* | nonstopux*)
16042 if test "$GCC" = yes; then
16043 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'
16044 else
16045 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'
16046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16047 fi
16048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16049 hardcode_libdir_separator=:
16050 link_all_deplibs=yes
16051 ;;
16052
16053 netbsd*)
16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16056 else
16057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16058 fi
16059 hardcode_libdir_flag_spec='-R$libdir'
16060 hardcode_direct=yes
16061 hardcode_shlibpath_var=no
16062 ;;
16063
16064 newsos6)
16065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct=yes
16067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator=:
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 openbsd*)
16073 hardcode_direct=yes
16074 hardcode_shlibpath_var=no
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016077 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 +000016078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 export_dynamic_flag_spec='${wl}-E'
16080 else
16081 case $host_os in
16082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_libdir_flag_spec='-R$libdir'
16085 ;;
16086 *)
16087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16089 ;;
16090 esac
16091 fi
16092 ;;
16093
16094 os2*)
16095 hardcode_libdir_flag_spec='-L$libdir'
16096 hardcode_minus_L=yes
16097 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016098 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 +000016099 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16100 ;;
16101
16102 osf3*)
16103 if test "$GCC" = yes; then
16104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105 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'
16106 else
16107 allow_undefined_flag=' -expect_unresolved \*'
16108 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'
16109 fi
16110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16111 hardcode_libdir_separator=:
16112 ;;
16113
16114 osf4* | osf5*) # as osf3* with the addition of -msym flag
16115 if test "$GCC" = yes; then
16116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16117 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'
16118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16119 else
16120 allow_undefined_flag=' -expect_unresolved \*'
16121 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 +000016122 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 +000016123 $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 +000016124
John Criswell47fdd832003-07-14 16:52:07 +000016125 # Both c and cxx compiler support -rpath directly
16126 hardcode_libdir_flag_spec='-rpath $libdir'
16127 fi
16128 hardcode_libdir_separator=:
16129 ;;
16130
John Criswell47fdd832003-07-14 16:52:07 +000016131 solaris*)
16132 no_undefined_flag=' -z text'
16133 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016134 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016135 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016136 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $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 +000016138 else
Reid Spencera773bd52006-08-04 18:18:08 +000016139 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $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 +000016143 fi
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_shlibpath_var=no
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016148 *)
16149 # The compiler driver will combine linker options so we
16150 # cannot just pass the convience library names through
16151 # without $wl, iff we do not link with $LD.
16152 # Luckily, gcc supports the same syntax we need for Sun Studio.
16153 # Supported since Solaris 2.6 (maybe 2.5.1?)
16154 case $wlarc in
16155 '')
16156 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16157 *)
16158 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' ;;
16159 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016160 esac
16161 link_all_deplibs=yes
16162 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016163
John Criswell47fdd832003-07-14 16:52:07 +000016164 sunos4*)
16165 if test "x$host_vendor" = xsequent; then
16166 # Use $CC to link under sequent, because it throws in some extra .o
16167 # files that make .init and .fini sections work.
16168 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16169 else
16170 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16171 fi
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_direct=yes
16174 hardcode_minus_L=yes
16175 hardcode_shlibpath_var=no
16176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016177
John Criswell47fdd832003-07-14 16:52:07 +000016178 sysv4)
16179 case $host_vendor in
16180 sni)
16181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 hardcode_direct=yes # is this really true???
16183 ;;
16184 siemens)
16185 ## LD is ld it makes a PLAMLIB
16186 ## CC just makes a GrossModule.
16187 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16188 reload_cmds='$CC -r -o $output$reload_objs'
16189 hardcode_direct=no
16190 ;;
16191 motorola)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16194 ;;
16195 esac
16196 runpath_var='LD_RUN_PATH'
16197 hardcode_shlibpath_var=no
16198 ;;
16199
16200 sysv4.3*)
16201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var=no
16203 export_dynamic_flag_spec='-Bexport'
16204 ;;
16205
16206 sysv4*MP*)
16207 if test -d /usr/nec; then
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 runpath_var=LD_RUN_PATH
16211 hardcode_runpath_var=yes
16212 ld_shlibs=yes
16213 fi
16214 ;;
16215
Reid Spencera773bd52006-08-04 18:18:08 +000016216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16217 no_undefined_flag='${wl}-z,text'
16218 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016219 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016220 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016221
John Criswell47fdd832003-07-14 16:52:07 +000016222 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016223 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 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 +000016225 else
Reid Spencera773bd52006-08-04 18:18:08 +000016226 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 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 +000016228 fi
John Criswell47fdd832003-07-14 16:52:07 +000016229 ;;
16230
Reid Spencera773bd52006-08-04 18:18:08 +000016231 sysv5* | sco3.2v5* | sco5v6*)
16232 # Note: We can NOT use -z defs as we might desire, because we do not
16233 # link with -lc, and that would cause any symbols used from libc to
16234 # always be unresolved, which means just about no library would
16235 # ever link correctly. If we're not using GNU ld we use -z text
16236 # though, which does catch some bad symbols but isn't as heavy-handed
16237 # as -z defs.
16238 no_undefined_flag='${wl}-z,text'
16239 allow_undefined_flag='${wl}-z,nodefs'
16240 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016241 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16243 hardcode_libdir_separator=':'
16244 link_all_deplibs=yes
16245 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016246 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016247
16248 if test "$GCC" = yes; then
16249 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 else
16252 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 fi
John Criswell47fdd832003-07-14 16:52:07 +000016255 ;;
16256
16257 uts4*)
16258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_libdir_flag_spec='-L$libdir'
16260 hardcode_shlibpath_var=no
16261 ;;
16262
16263 *)
16264 ld_shlibs=no
16265 ;;
16266 esac
16267 fi
16268
Reid Spencera773bd52006-08-04 18:18:08 +000016269{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16270echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016271test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016272
John Criswell47fdd832003-07-14 16:52:07 +000016273#
16274# Do we need to explicitly link libc?
16275#
16276case "x$archive_cmds_need_lc" in
16277x|xyes)
16278 # Assume -lc should be added
16279 archive_cmds_need_lc=yes
16280
16281 if test "$enable_shared" = yes && test "$GCC" = yes; then
16282 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016283 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016284 # FIXME: we may have to deal with multi-command sequences.
16285 ;;
16286 '$CC '*)
16287 # Test whether the compiler implicitly links with -lc since on some
16288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016290 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016292 $rm conftest*
16293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } 2>conftest.err; then
16300 soname=conftest
16301 lib=conftest
16302 libobjs=conftest.$ac_objext
16303 deplibs=
16304 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016305 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016306 compiler_flags=-v
16307 linker_flags=-v
16308 verstring=
16309 output_objdir=.
16310 libname=conftest
16311 lt_save_allow_undefined_flag=$allow_undefined_flag
16312 allow_undefined_flag=
16313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16314 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }
16318 then
16319 archive_cmds_need_lc=no
16320 else
16321 archive_cmds_need_lc=yes
16322 fi
16323 allow_undefined_flag=$lt_save_allow_undefined_flag
16324 else
16325 cat conftest.err 1>&5
16326 fi
16327 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016328 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16329echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016330 ;;
16331 esac
16332 fi
16333 ;;
16334esac
16335
Reid Spencera773bd52006-08-04 18:18:08 +000016336{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016341shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016351if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362else
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016371
16372case $host_os in
16373aix3*)
16374 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016376 shlibpath_var=LIBPATH
16377
John Criswell47fdd832003-07-14 16:52:07 +000016378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016380 ;;
16381
16382aix4* | aix5*)
16383 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016384 need_lib_prefix=no
16385 need_version=no
16386 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016390 shlibpath_var=LD_LIBRARY_PATH
16391 else
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16397 case $host_os in
16398 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo ' yes '
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402 :
16403 else
16404 can_build_shared=no
16405 fi
16406 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016407 esac
John Criswell47fdd832003-07-14 16:52:07 +000016408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016416 else
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016421 fi
16422 shlibpath_var=LIBPATH
16423 fi
16424 ;;
16425
16426amigaos*)
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016429 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 +000016430 ;;
16431
16432beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016433 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16436 ;;
16437
Reid Spencer2706f8c2004-09-19 23:53:36 +000016438bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016439 version_type=linux
16440 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16450 ;;
16451
16452cygwin* | mingw* | pw32*)
16453 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016454 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016455 need_version=no
16456 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016457
John Criswell7a73b802003-06-30 21:59:07 +000016458 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016459 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016460 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016466 $install_prog $dir/$dlname \$dldir/$dlname~
16467 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016470 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016471 shlibpath_overrides_runpath=yes
16472
16473 case $host_os in
16474 cygwin*)
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 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 +000016477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016478 ;;
16479 mingw*)
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH printed by
16485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486 # path with ; separators, and with drive letters. We can handle the
16487 # drive letters (cygwin fileutils understands them), so leave them,
16488 # especially as we might pass files found there to a mingw objdump,
16489 # which wouldn't understand a cygwinified path. Ahh.
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16491 else
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16493 fi
16494 ;;
16495 pw32*)
16496 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016497 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 +000016498 ;;
16499 esac
John Criswell7a73b802003-06-30 21:59:07 +000016500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016501
John Criswell7a73b802003-06-30 21:59:07 +000016502 *)
John Criswell47fdd832003-07-14 16:52:07 +000016503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016504 ;;
16505 esac
16506 dynamic_linker='Win32 ld.exe'
16507 # FIXME: first we should search . and the directory the executable is in
16508 shlibpath_var=PATH
16509 ;;
16510
16511darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16514 need_lib_prefix=no
16515 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016517 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016520 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016521 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522 if test "$GCC" = yes; then
16523 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"`
16524 else
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016526 fi
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528 ;;
16529
16530dgux*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016537 ;;
16538
16539freebsd1*)
16540 dynamic_linker=no
16541 ;;
16542
Reid Spencer2706f8c2004-09-19 23:53:36 +000016543kfreebsd*-gnu)
16544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 dynamic_linker='GNU ld.so'
16553 ;;
16554
Reid Spencera773bd52006-08-04 18:18:08 +000016555freebsd* | dragonfly*)
16556 # DragonFly does not have aout. When/if they implement a new
16557 # versioning mechanism, adjust this.
16558 if test -x /usr/bin/objformat; then
16559 objformat=`/usr/bin/objformat`
16560 else
16561 case $host_os in
16562 freebsd[123]*) objformat=aout ;;
16563 *) objformat=elf ;;
16564 esac
16565 fi
John Criswell7a73b802003-06-30 21:59:07 +000016566 version_type=freebsd-$objformat
16567 case $version_type in
16568 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016570 need_version=no
16571 need_lib_prefix=no
16572 ;;
16573 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016575 need_version=yes
16576 ;;
16577 esac
16578 shlibpath_var=LD_LIBRARY_PATH
16579 case $host_os in
16580 freebsd2*)
16581 shlibpath_overrides_runpath=yes
16582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016583 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016584 shlibpath_overrides_runpath=yes
16585 hardcode_into_libs=yes
16586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016589 shlibpath_overrides_runpath=no
16590 hardcode_into_libs=yes
16591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016592 freebsd*) # from 4.6 on
16593 shlibpath_overrides_runpath=yes
16594 hardcode_into_libs=yes
16595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016596 esac
16597 ;;
16598
16599gnu*)
16600 version_type=linux
16601 need_lib_prefix=no
16602 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016605 shlibpath_var=LD_LIBRARY_PATH
16606 hardcode_into_libs=yes
16607 ;;
16608
16609hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016612 version_type=sunos
16613 need_lib_prefix=no
16614 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016615 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016616 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016617 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626 else
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628 fi
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630 ;;
16631 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641 ;;
16642 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016643 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 ;;
16650 esac
John Criswell7a73b802003-06-30 21:59:07 +000016651 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16652 postinstall_cmds='chmod 555 $lib'
16653 ;;
16654
Reid Spencera773bd52006-08-04 18:18:08 +000016655interix3*)
16656 version_type=linux
16657 need_lib_prefix=no
16658 need_version=no
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=no
16664 hardcode_into_libs=yes
16665 ;;
16666
John Criswell47fdd832003-07-14 16:52:07 +000016667irix5* | irix6* | nonstopux*)
16668 case $host_os in
16669 nonstopux*) version_type=nonstopux ;;
16670 *)
16671 if test "$lt_cv_prog_gnu_ld" = yes; then
16672 version_type=linux
16673 else
16674 version_type=irix
16675 fi ;;
16676 esac
John Criswell7a73b802003-06-30 21:59:07 +000016677 need_lib_prefix=no
16678 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016679 soname_spec='${libname}${release}${shared_ext}$major'
16680 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 +000016681 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016682 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016683 libsuff= shlibsuff=
16684 ;;
16685 *)
16686 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688 libsuff= shlibsuff= libmagic=32-bit;;
16689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690 libsuff=32 shlibsuff=N32 libmagic=N32;;
16691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016693 *) libsuff= shlibsuff= libmagic=never-match;;
16694 esac
16695 ;;
16696 esac
16697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698 shlibpath_overrides_runpath=no
16699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016701 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016702 ;;
16703
16704# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016705linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016706 dynamic_linker=no
16707 ;;
16708
16709# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016710linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=no
16719 # This implies no fast_install, which is unacceptable.
16720 # Some rework will be needed to allow for fast_install
16721 # before this can be enabled.
16722 hardcode_into_libs=yes
16723
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 # Append ld.so.conf contents to the search path
16725 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016726 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 +000016727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16728 fi
16729
John Criswell7a73b802003-06-30 21:59:07 +000016730 # We used to test for /lib/ld.so.1 and disable shared libraries on
16731 # powerpc, because MkLinux only supported shared libraries with the
16732 # GNU dynamic linker. Since this was broken with cross compilers,
16733 # most powerpc-linux boxes support dynamic linking these days and
16734 # people can always --disable-shared, the test was removed, and we
16735 # assume the GNU/Linux dynamic linker is in use.
16736 dynamic_linker='GNU/Linux ld.so'
16737 ;;
16738
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739knetbsd*-gnu)
16740 version_type=linux
16741 need_lib_prefix=no
16742 need_version=no
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=no
16747 hardcode_into_libs=yes
16748 dynamic_linker='GNU ld.so'
16749 ;;
16750
John Criswell7a73b802003-06-30 21:59:07 +000016751netbsd*)
16752 version_type=sunos
16753 need_lib_prefix=no
16754 need_version=no
16755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 dynamic_linker='NetBSD (a.out) ld.so'
16759 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016761 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016762 dynamic_linker='NetBSD ld.elf_so'
16763 fi
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 hardcode_into_libs=yes
16767 ;;
16768
16769newsos6)
16770 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=yes
16774 ;;
16775
Reid Spencer2706f8c2004-09-19 23:53:36 +000016776nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016777 version_type=linux
16778 need_lib_prefix=no
16779 need_version=no
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=yes
16784 ;;
16785
16786openbsd*)
16787 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016788 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016789 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16791 case $host_os in
16792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16793 *) need_version=no ;;
16794 esac
John Criswell47fdd832003-07-14 16:52:07 +000016795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016798 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 +000016799 case $host_os in
16800 openbsd2.[89] | openbsd2.[89].*)
16801 shlibpath_overrides_runpath=no
16802 ;;
16803 *)
16804 shlibpath_overrides_runpath=yes
16805 ;;
16806 esac
John Criswell7a73b802003-06-30 21:59:07 +000016807 else
16808 shlibpath_overrides_runpath=yes
16809 fi
John Criswell7a73b802003-06-30 21:59:07 +000016810 ;;
16811
16812os2*)
16813 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016815 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016816 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016817 dynamic_linker='OS/2 ld.exe'
16818 shlibpath_var=LIBPATH
16819 ;;
16820
16821osf3* | osf4* | osf5*)
16822 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016823 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016824 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016825 soname_spec='${libname}${release}${shared_ext}$major'
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16830 ;;
16831
John Criswell7a73b802003-06-30 21:59:07 +000016832solaris*)
16833 version_type=linux
16834 need_lib_prefix=no
16835 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=yes
16840 hardcode_into_libs=yes
16841 # ldd complains unless libraries are executable
16842 postinstall_cmds='chmod +x $lib'
16843 ;;
16844
16845sunos4*)
16846 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=yes
16851 if test "$with_gnu_ld" = yes; then
16852 need_lib_prefix=no
16853 fi
16854 need_version=yes
16855 ;;
16856
Reid Spencera773bd52006-08-04 18:18:08 +000016857sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016858 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016861 shlibpath_var=LD_LIBRARY_PATH
16862 case $host_vendor in
16863 sni)
16864 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016865 need_lib_prefix=no
16866 export_dynamic_flag_spec='${wl}-Blargedynsym'
16867 runpath_var=LD_RUN_PATH
16868 ;;
16869 siemens)
16870 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016871 ;;
16872 motorola)
16873 need_lib_prefix=no
16874 need_version=no
16875 shlibpath_overrides_runpath=no
16876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16877 ;;
16878 esac
16879 ;;
16880
John Criswell7a73b802003-06-30 21:59:07 +000016881sysv4*MP*)
16882 if test -d /usr/nec ;then
16883 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16885 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016886 shlibpath_var=LD_LIBRARY_PATH
16887 fi
16888 ;;
16889
Reid Spencera773bd52006-08-04 18:18:08 +000016890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891 version_type=freebsd-elf
16892 need_lib_prefix=no
16893 need_version=no
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 hardcode_into_libs=yes
16898 if test "$with_gnu_ld" = yes; then
16899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16900 shlibpath_overrides_runpath=no
16901 else
16902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903 shlibpath_overrides_runpath=yes
16904 case $host_os in
16905 sco3.2v5*)
16906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16907 ;;
16908 esac
16909 fi
16910 sys_lib_dlsearch_path_spec='/usr/lib'
16911 ;;
16912
John Criswell47fdd832003-07-14 16:52:07 +000016913uts4*)
16914 version_type=linux
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 ;;
16919
John Criswell7a73b802003-06-30 21:59:07 +000016920*)
16921 dynamic_linker=no
16922 ;;
16923esac
Reid Spencera773bd52006-08-04 18:18:08 +000016924{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016926test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016927
Reid Spencera773bd52006-08-04 18:18:08 +000016928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929if test "$GCC" = yes; then
16930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931fi
16932
16933{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16934echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016935hardcode_action=
16936if test -n "$hardcode_libdir_flag_spec" || \
16937 test -n "$runpath_var" || \
16938 test "X$hardcode_automatic" = "Xyes" ; then
16939
16940 # We can hardcode non-existant directories.
16941 if test "$hardcode_direct" != no &&
16942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16943 # have to relink, otherwise we might link with an installed library
16944 # when we should be linking with a yet-to-be-installed one
16945 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16946 test "$hardcode_minus_L" != no; then
16947 # Linking always hardcodes the temporary library directory.
16948 hardcode_action=relink
16949 else
16950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16951 hardcode_action=immediate
16952 fi
16953else
16954 # We cannot hardcode anything, or else we can only hardcode existing
16955 # directories.
16956 hardcode_action=unsupported
16957fi
Reid Spencera773bd52006-08-04 18:18:08 +000016958{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16959echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960
16961if test "$hardcode_action" = relink; then
16962 # Fast installation is not supported
16963 enable_fast_install=no
16964elif test "$shlibpath_overrides_runpath" = yes ||
16965 test "$enable_shared" = no; then
16966 # Fast installation is not necessary
16967 enable_fast_install=needless
16968fi
16969
16970striplib=
16971old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016972{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16973echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016977 { echo "$as_me:$LINENO: result: yes" >&5
16978echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016979else
16980# FIXME - insert some real tests, host_os isn't really good enough
16981 case $host_os in
16982 darwin*)
16983 if test -n "$STRIP" ; then
16984 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016985 { echo "$as_me:$LINENO: result: yes" >&5
16986echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016987 else
Reid Spencera773bd52006-08-04 18:18:08 +000016988 { echo "$as_me:$LINENO: result: no" >&5
16989echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990fi
16991 ;;
16992 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016993 { echo "$as_me:$LINENO: result: no" >&5
16994echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016995 ;;
16996 esac
16997fi
16998
John Criswell7a73b802003-06-30 21:59:07 +000016999if test "x$enable_dlopen" != xyes; then
17000 enable_dlopen=unknown
17001 enable_dlopen_self=unknown
17002 enable_dlopen_self_static=unknown
17003else
17004 lt_cv_dlopen=no
17005 lt_cv_dlopen_libs=
17006
17007 case $host_os in
17008 beos*)
17009 lt_cv_dlopen="load_add_on"
17010 lt_cv_dlopen_libs=
17011 lt_cv_dlopen_self=yes
17012 ;;
17013
John Criswell47fdd832003-07-14 16:52:07 +000017014 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017015 lt_cv_dlopen="LoadLibrary"
17016 lt_cv_dlopen_libs=
17017 ;;
17018
John Criswell47fdd832003-07-14 16:52:07 +000017019 cygwin*)
17020 lt_cv_dlopen="dlopen"
17021 lt_cv_dlopen_libs=
17022 ;;
17023
17024 darwin*)
17025 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017026 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17027echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017028if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-ldl $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017039
Reid Spencera773bd52006-08-04 18:18:08 +000017040/* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017043#ifdef __cplusplus
17044extern "C"
17045#endif
John Criswell47fdd832003-07-14 16:52:07 +000017046char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017047int
17048main ()
17049{
Reid Spencera773bd52006-08-04 18:18:08 +000017050return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017056if { (ac_try="$ac_link"
17057case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017089 ac_cv_lib_dl_dlopen=yes
17090else
17091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017092sed 's/^/| /' conftest.$ac_ext >&5
17093
Reid Spencera773bd52006-08-04 18:18:08 +000017094 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017095fi
Reid Spencera773bd52006-08-04 18:18:08 +000017096
Bill Wendlingebcceee2009-04-18 11:20:33 +000017097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017098 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017099LIBS=$ac_check_lib_save_LIBS
17100fi
Reid Spencera773bd52006-08-04 18:18:08 +000017101{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017103if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105else
17106
17107 lt_cv_dlopen="dyld"
17108 lt_cv_dlopen_libs=
17109 lt_cv_dlopen_self=yes
17110
17111fi
17112
17113 ;;
17114
John Criswell7a73b802003-06-30 21:59:07 +000017115 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017116 { echo "$as_me:$LINENO: checking for shl_load" >&5
17117echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017118if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017127/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129#define shl_load innocuous_shl_load
17130
John Criswell7a73b802003-06-30 21:59:07 +000017131/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017135
John Criswell0c38eaf2003-09-10 15:17:25 +000017136#ifdef __STDC__
17137# include <limits.h>
17138#else
17139# include <assert.h>
17140#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017141
17142#undef shl_load
17143
Reid Spencera773bd52006-08-04 18:18:08 +000017144/* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017147#ifdef __cplusplus
17148extern "C"
17149#endif
John Criswell7a73b802003-06-30 21:59:07 +000017150char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017151/* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017154#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017155choke me
John Criswell7a73b802003-06-30 21:59:07 +000017156#endif
17157
John Criswell0c38eaf2003-09-10 15:17:25 +000017158int
17159main ()
17160{
Reid Spencera773bd52006-08-04 18:18:08 +000017161return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017167if { (ac_try="$ac_link"
17168case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017200 ac_cv_func_shl_load=yes
17201else
17202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017203sed 's/^/| /' conftest.$ac_ext >&5
17204
Reid Spencera773bd52006-08-04 18:18:08 +000017205 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017206fi
Reid Spencera773bd52006-08-04 18:18:08 +000017207
Bill Wendlingebcceee2009-04-18 11:20:33 +000017208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017209 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017210fi
Reid Spencera773bd52006-08-04 18:18:08 +000017211{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17212echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017213if test $ac_cv_func_shl_load = yes; then
17214 lt_cv_dlopen="shl_load"
17215else
Reid Spencera773bd52006-08-04 18:18:08 +000017216 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17217echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017218if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 ac_check_lib_save_LIBS=$LIBS
17222LIBS="-ldld $LIBS"
17223cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017229
Reid Spencera773bd52006-08-04 18:18:08 +000017230/* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017233#ifdef __cplusplus
17234extern "C"
17235#endif
John Criswell7a73b802003-06-30 21:59:07 +000017236char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017237int
17238main ()
17239{
Reid Spencera773bd52006-08-04 18:18:08 +000017240return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017246if { (ac_try="$ac_link"
17247case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017253 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017279 ac_cv_lib_dld_shl_load=yes
17280else
17281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017282sed 's/^/| /' conftest.$ac_ext >&5
17283
Reid Spencera773bd52006-08-04 18:18:08 +000017284 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017285fi
Reid Spencera773bd52006-08-04 18:18:08 +000017286
Bill Wendlingebcceee2009-04-18 11:20:33 +000017287rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017288 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017289LIBS=$ac_check_lib_save_LIBS
17290fi
Reid Spencera773bd52006-08-04 18:18:08 +000017291{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17292echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017293if test $ac_cv_lib_dld_shl_load = yes; then
17294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17295else
Reid Spencera773bd52006-08-04 18:18:08 +000017296 { echo "$as_me:$LINENO: checking for dlopen" >&5
17297echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017298if test "${ac_cv_func_dlopen+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017307/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309#define dlopen innocuous_dlopen
17310
John Criswell7a73b802003-06-30 21:59:07 +000017311/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017312 which can conflict with char dlopen (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017315
John Criswell0c38eaf2003-09-10 15:17:25 +000017316#ifdef __STDC__
17317# include <limits.h>
17318#else
17319# include <assert.h>
17320#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017321
17322#undef dlopen
17323
Reid Spencera773bd52006-08-04 18:18:08 +000017324/* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017327#ifdef __cplusplus
17328extern "C"
17329#endif
John Criswell7a73b802003-06-30 21:59:07 +000017330char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017331/* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017334#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017335choke me
John Criswell7a73b802003-06-30 21:59:07 +000017336#endif
17337
John Criswell0c38eaf2003-09-10 15:17:25 +000017338int
17339main ()
17340{
Reid Spencera773bd52006-08-04 18:18:08 +000017341return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017347if { (ac_try="$ac_link"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017380 ac_cv_func_dlopen=yes
17381else
17382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017383sed 's/^/| /' conftest.$ac_ext >&5
17384
Reid Spencera773bd52006-08-04 18:18:08 +000017385 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017386fi
Reid Spencera773bd52006-08-04 18:18:08 +000017387
Bill Wendlingebcceee2009-04-18 11:20:33 +000017388rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017389 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017390fi
Reid Spencera773bd52006-08-04 18:18:08 +000017391{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17392echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017393if test $ac_cv_func_dlopen = yes; then
17394 lt_cv_dlopen="dlopen"
17395else
Reid Spencera773bd52006-08-04 18:18:08 +000017396 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17397echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017398if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 ac_check_lib_save_LIBS=$LIBS
17402LIBS="-ldl $LIBS"
17403cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017409
Reid Spencera773bd52006-08-04 18:18:08 +000017410/* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017413#ifdef __cplusplus
17414extern "C"
17415#endif
John Criswell7a73b802003-06-30 21:59:07 +000017416char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017417int
17418main ()
17419{
Reid Spencera773bd52006-08-04 18:18:08 +000017420return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017426if { (ac_try="$ac_link"
17427case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443esac
17444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017459 ac_cv_lib_dl_dlopen=yes
17460else
17461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017462sed 's/^/| /' conftest.$ac_ext >&5
17463
Reid Spencera773bd52006-08-04 18:18:08 +000017464 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017465fi
Reid Spencera773bd52006-08-04 18:18:08 +000017466
Bill Wendlingebcceee2009-04-18 11:20:33 +000017467rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017468 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017469LIBS=$ac_check_lib_save_LIBS
17470fi
Reid Spencera773bd52006-08-04 18:18:08 +000017471{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017473if test $ac_cv_lib_dl_dlopen = yes; then
17474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17475else
Reid Spencera773bd52006-08-04 18:18:08 +000017476 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17477echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017478if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 ac_check_lib_save_LIBS=$LIBS
17482LIBS="-lsvld $LIBS"
17483cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017484/* confdefs.h. */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017489
Reid Spencera773bd52006-08-04 18:18:08 +000017490/* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017493#ifdef __cplusplus
17494extern "C"
17495#endif
John Criswell7a73b802003-06-30 21:59:07 +000017496char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017497int
17498main ()
17499{
Reid Spencera773bd52006-08-04 18:18:08 +000017500return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017506if { (ac_try="$ac_link"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017539 ac_cv_lib_svld_dlopen=yes
17540else
17541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017542sed 's/^/| /' conftest.$ac_ext >&5
17543
Reid Spencera773bd52006-08-04 18:18:08 +000017544 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017545fi
Reid Spencera773bd52006-08-04 18:18:08 +000017546
Bill Wendlingebcceee2009-04-18 11:20:33 +000017547rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017549LIBS=$ac_check_lib_save_LIBS
17550fi
Reid Spencera773bd52006-08-04 18:18:08 +000017551{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17552echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017553if test $ac_cv_lib_svld_dlopen = yes; then
17554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17555else
Reid Spencera773bd52006-08-04 18:18:08 +000017556 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17557echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017558if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldld $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017569
Reid Spencera773bd52006-08-04 18:18:08 +000017570/* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017573#ifdef __cplusplus
17574extern "C"
17575#endif
John Criswell7a73b802003-06-30 21:59:07 +000017576char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017577int
17578main ()
17579{
Reid Spencera773bd52006-08-04 18:18:08 +000017580return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017586if { (ac_try="$ac_link"
17587case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017619 ac_cv_lib_dld_dld_link=yes
17620else
17621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017622sed 's/^/| /' conftest.$ac_ext >&5
17623
Reid Spencera773bd52006-08-04 18:18:08 +000017624 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017625fi
Reid Spencera773bd52006-08-04 18:18:08 +000017626
Bill Wendlingebcceee2009-04-18 11:20:33 +000017627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017629LIBS=$ac_check_lib_save_LIBS
17630fi
Reid Spencera773bd52006-08-04 18:18:08 +000017631{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17632echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017633if test $ac_cv_lib_dld_dld_link = yes; then
17634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17635fi
17636
17637
17638fi
17639
17640
17641fi
17642
17643
17644fi
17645
17646
17647fi
17648
17649
17650fi
17651
17652 ;;
17653 esac
17654
17655 if test "x$lt_cv_dlopen" != xno; then
17656 enable_dlopen=yes
17657 else
17658 enable_dlopen=no
17659 fi
17660
17661 case $lt_cv_dlopen in
17662 dlopen)
17663 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017665
17666 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017668
17669 save_LIBS="$LIBS"
17670 LIBS="$lt_cv_dlopen_libs $LIBS"
17671
Reid Spencera773bd52006-08-04 18:18:08 +000017672 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17673echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017674if test "${lt_cv_dlopen_self+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676else
17677 if test "$cross_compiling" = yes; then :
17678 lt_cv_dlopen_self=cross
17679else
John Criswell47fdd832003-07-14 16:52:07 +000017680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017681 lt_status=$lt_dlunknown
17682 cat > conftest.$ac_ext <<EOF
Nick Lewycky83fc4472009-09-29 05:48:51 +000017683#line 17683 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017684#include "confdefs.h"
17685
17686#if HAVE_DLFCN_H
17687#include <dlfcn.h>
17688#endif
17689
17690#include <stdio.h>
17691
17692#ifdef RTLD_GLOBAL
17693# define LT_DLGLOBAL RTLD_GLOBAL
17694#else
17695# ifdef DL_GLOBAL
17696# define LT_DLGLOBAL DL_GLOBAL
17697# else
17698# define LT_DLGLOBAL 0
17699# endif
17700#endif
17701
17702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17703 find out it does not work in some platform. */
17704#ifndef LT_DLLAZY_OR_NOW
17705# ifdef RTLD_LAZY
17706# define LT_DLLAZY_OR_NOW RTLD_LAZY
17707# else
17708# ifdef DL_LAZY
17709# define LT_DLLAZY_OR_NOW DL_LAZY
17710# else
17711# ifdef RTLD_NOW
17712# define LT_DLLAZY_OR_NOW RTLD_NOW
17713# else
17714# ifdef DL_NOW
17715# define LT_DLLAZY_OR_NOW DL_NOW
17716# else
17717# define LT_DLLAZY_OR_NOW 0
17718# endif
17719# endif
17720# endif
17721# endif
17722#endif
17723
17724#ifdef __cplusplus
17725extern "C" void exit (int);
17726#endif
17727
17728void fnord() { int i=42;}
17729int main ()
17730{
17731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17732 int status = $lt_dlunknown;
17733
17734 if (self)
17735 {
17736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17738 /* dlclose (self); */
17739 }
Reid Spencera773bd52006-08-04 18:18:08 +000017740 else
17741 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017742
17743 exit (status);
17744}
17745EOF
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017751 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017752 lt_status=$?
17753 case x$lt_status in
17754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017757 esac
17758 else :
17759 # compilation failed
17760 lt_cv_dlopen_self=no
17761 fi
17762fi
17763rm -fr conftest*
17764
17765
17766fi
Reid Spencera773bd52006-08-04 18:18:08 +000017767{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17768echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017769
17770 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17772 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17773echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017774if test "${lt_cv_dlopen_self_static+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 if test "$cross_compiling" = yes; then :
17778 lt_cv_dlopen_self_static=cross
17779else
John Criswell47fdd832003-07-14 16:52:07 +000017780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017781 lt_status=$lt_dlunknown
17782 cat > conftest.$ac_ext <<EOF
Nick Lewycky83fc4472009-09-29 05:48:51 +000017783#line 17783 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017784#include "confdefs.h"
17785
17786#if HAVE_DLFCN_H
17787#include <dlfcn.h>
17788#endif
17789
17790#include <stdio.h>
17791
17792#ifdef RTLD_GLOBAL
17793# define LT_DLGLOBAL RTLD_GLOBAL
17794#else
17795# ifdef DL_GLOBAL
17796# define LT_DLGLOBAL DL_GLOBAL
17797# else
17798# define LT_DLGLOBAL 0
17799# endif
17800#endif
17801
17802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17803 find out it does not work in some platform. */
17804#ifndef LT_DLLAZY_OR_NOW
17805# ifdef RTLD_LAZY
17806# define LT_DLLAZY_OR_NOW RTLD_LAZY
17807# else
17808# ifdef DL_LAZY
17809# define LT_DLLAZY_OR_NOW DL_LAZY
17810# else
17811# ifdef RTLD_NOW
17812# define LT_DLLAZY_OR_NOW RTLD_NOW
17813# else
17814# ifdef DL_NOW
17815# define LT_DLLAZY_OR_NOW DL_NOW
17816# else
17817# define LT_DLLAZY_OR_NOW 0
17818# endif
17819# endif
17820# endif
17821# endif
17822#endif
17823
17824#ifdef __cplusplus
17825extern "C" void exit (int);
17826#endif
17827
17828void fnord() { int i=42;}
17829int main ()
17830{
17831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17832 int status = $lt_dlunknown;
17833
17834 if (self)
17835 {
17836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17838 /* dlclose (self); */
17839 }
Reid Spencera773bd52006-08-04 18:18:08 +000017840 else
17841 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017842
17843 exit (status);
17844}
17845EOF
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017851 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017852 lt_status=$?
17853 case x$lt_status in
17854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017857 esac
17858 else :
17859 # compilation failed
17860 lt_cv_dlopen_self_static=no
17861 fi
17862fi
17863rm -fr conftest*
17864
17865
17866fi
Reid Spencera773bd52006-08-04 18:18:08 +000017867{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017869 fi
17870
17871 CPPFLAGS="$save_CPPFLAGS"
17872 LDFLAGS="$save_LDFLAGS"
17873 LIBS="$save_LIBS"
17874 ;;
17875 esac
17876
17877 case $lt_cv_dlopen_self in
17878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879 *) enable_dlopen_self=unknown ;;
17880 esac
17881
17882 case $lt_cv_dlopen_self_static in
17883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884 *) enable_dlopen_self_static=unknown ;;
17885 esac
17886fi
17887
17888
Reid Spencera773bd52006-08-04 18:18:08 +000017889# Report which library types will actually be built
17890{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17891echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17892{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17893echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017894
Reid Spencera773bd52006-08-04 18:18:08 +000017895{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17896echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017897test "$can_build_shared" = "no" && enable_shared=no
17898
17899# On AIX, shared libraries and static libraries use the same namespace, and
17900# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017901case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017902aix3*)
17903 test "$enable_shared" = yes && enable_static=no
17904 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017906 postinstall_cmds='$RANLIB $lib'
17907 fi
17908 ;;
17909
Reid Spencer2706f8c2004-09-19 23:53:36 +000017910aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17912 test "$enable_shared" = yes && enable_static=no
17913 fi
John Criswell7a73b802003-06-30 21:59:07 +000017914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017915esac
Reid Spencera773bd52006-08-04 18:18:08 +000017916{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17917echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017918
Reid Spencera773bd52006-08-04 18:18:08 +000017919{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17920echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017921# Make sure either enable_shared or enable_static is yes.
17922test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017923{ echo "$as_me:$LINENO: result: $enable_static" >&5
17924echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017925
17926# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017927# libtool distribution, otherwise you forgot to ship ltmain.sh
17928# with your package, and you will get complaints that there are
17929# no rules to generate ltmain.sh.
17930if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017931 # See if we are running on zsh, and set the options which allow our commands through
17932 # without removal of \ escapes.
17933 if test -n "${ZSH_VERSION+set}" ; then
17934 setopt NO_GLOB_SUBST
17935 fi
John Criswell7a73b802003-06-30 21:59:07 +000017936 # Now quote all the things that may contain metacharacters while being
17937 # careful not to overquote the AC_SUBSTed values. We take copies of the
17938 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017939 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 +000017940 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17943 deplibs_check_method reload_flag reload_cmds need_locks \
17944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17945 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017947 old_postinstall_cmds old_postuninstall_cmds \
17948 compiler \
17949 CC \
17950 LD \
17951 lt_prog_compiler_wl \
17952 lt_prog_compiler_pic \
17953 lt_prog_compiler_static \
17954 lt_prog_compiler_no_builtin_flag \
17955 export_dynamic_flag_spec \
17956 thread_safe_flag_spec \
17957 whole_archive_flag_spec \
17958 enable_shared_with_static_runtimes \
17959 old_archive_cmds \
17960 old_archive_from_new_cmds \
17961 predep_objects \
17962 postdep_objects \
17963 predeps \
17964 postdeps \
17965 compiler_lib_search_path \
17966 archive_cmds \
17967 archive_expsym_cmds \
17968 postinstall_cmds \
17969 postuninstall_cmds \
17970 old_archive_from_expsyms_cmds \
17971 allow_undefined_flag \
17972 no_undefined_flag \
17973 export_symbols_cmds \
17974 hardcode_libdir_flag_spec \
17975 hardcode_libdir_flag_spec_ld \
17976 hardcode_libdir_separator \
17977 hardcode_automatic \
17978 module_cmds \
17979 module_expsym_cmds \
17980 lt_cv_prog_compiler_c_o \
17981 exclude_expsyms \
17982 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017983
17984 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017985 old_archive_cmds | \
17986 old_archive_from_new_cmds | \
17987 archive_cmds | \
17988 archive_expsym_cmds | \
17989 module_cmds | \
17990 module_expsym_cmds | \
17991 old_archive_from_expsyms_cmds | \
17992 export_symbols_cmds | \
17993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017994 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017995 old_postinstall_cmds | old_postuninstall_cmds | \
17996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017997 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017998 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 +000017999 ;;
18000 *)
18001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002 ;;
18003 esac
18004 done
18005
John Criswell47fdd832003-07-14 16:52:07 +000018006 case $lt_echo in
18007 *'\$0 --fallback-echo"')
18008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009 ;;
18010 esac
18011
18012cfgfile="${ofile}T"
18013 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18014 $rm -f "$cfgfile"
18015 { echo "$as_me:$LINENO: creating $ofile" >&5
18016echo "$as_me: creating $ofile" >&6;}
18017
18018 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018019#! $SHELL
18020
John Criswell47fdd832003-07-14 16:52:07 +000018021# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018022# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18023# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18024#
John Criswell47fdd832003-07-14 16:52:07 +000018025# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18026# Free Software Foundation, Inc.
18027#
18028# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018029# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18030#
18031# This program is free software; you can redistribute it and/or modify
18032# it under the terms of the GNU General Public License as published by
18033# the Free Software Foundation; either version 2 of the License, or
18034# (at your option) any later version.
18035#
18036# This program is distributed in the hope that it will be useful, but
18037# WITHOUT ANY WARRANTY; without even the implied warranty of
18038# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18039# General Public License for more details.
18040#
18041# You should have received a copy of the GNU General Public License
18042# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018043# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018044#
18045# As a special exception to the GNU General Public License, if you
18046# distribute this file as part of a program that contains a
18047# configuration script generated by Autoconf, you may include it under
18048# the same distribution terms that you use for the rest of that program.
18049
John Criswell47fdd832003-07-14 16:52:07 +000018050# A sed program that does not truncate output.
18051SED=$lt_SED
18052
John Criswell7a73b802003-06-30 21:59:07 +000018053# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018054Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018055
18056# The HP-UX ksh and POSIX shell print the target directory to stdout
18057# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018058(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018059
John Criswell47fdd832003-07-14 16:52:07 +000018060# The names of the tagged configurations supported by this script.
18061available_tags=
18062
John Criswell7a73b802003-06-30 21:59:07 +000018063# ### BEGIN LIBTOOL CONFIG
18064
18065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
18067# Shell to use when invoking shell scripts.
18068SHELL=$lt_SHELL
18069
18070# Whether or not to build shared libraries.
18071build_libtool_libs=$enable_shared
18072
18073# Whether or not to build static libraries.
18074build_old_libs=$enable_static
18075
18076# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018077build_libtool_need_lc=$archive_cmds_need_lc
18078
18079# Whether or not to disallow shared libs when runtime libs are static
18080allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018081
18082# Whether or not to optimize for fast installation.
18083fast_install=$enable_fast_install
18084
18085# The host system.
18086host_alias=$host_alias
18087host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018088host_os=$host_os
18089
18090# The build system.
18091build_alias=$build_alias
18092build=$build
18093build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018094
18095# An echo program that does not interpret backslashes.
18096echo=$lt_echo
18097
18098# The archiver.
18099AR=$lt_AR
18100AR_FLAGS=$lt_AR_FLAGS
18101
John Criswell47fdd832003-07-14 16:52:07 +000018102# A C compiler.
18103LTCC=$lt_LTCC
18104
Reid Spencera773bd52006-08-04 18:18:08 +000018105# LTCC compiler flags.
18106LTCFLAGS=$lt_LTCFLAGS
18107
John Criswell47fdd832003-07-14 16:52:07 +000018108# A language-specific compiler.
18109CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018110
18111# Is the compiler the GNU C compiler?
18112with_gcc=$GCC
18113
John Criswell47fdd832003-07-14 16:52:07 +000018114# An ERE matcher.
18115EGREP=$lt_EGREP
18116
John Criswell7a73b802003-06-30 21:59:07 +000018117# The linker used to build libraries.
18118LD=$lt_LD
18119
18120# Whether we need hard or soft links.
18121LN_S=$lt_LN_S
18122
18123# A BSD-compatible nm program.
18124NM=$lt_NM
18125
18126# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018127STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018128
18129# Used to examine libraries when file_magic_cmd begins "file"
18130MAGIC_CMD=$MAGIC_CMD
18131
18132# Used on cygwin: DLL creation program.
18133DLLTOOL="$DLLTOOL"
18134
18135# Used on cygwin: object dumper.
18136OBJDUMP="$OBJDUMP"
18137
18138# Used on cygwin: assembler.
18139AS="$AS"
18140
18141# The name of the directory that contains temporary libtool files.
18142objdir=$objdir
18143
18144# How to create reloadable object files.
18145reload_flag=$lt_reload_flag
18146reload_cmds=$lt_reload_cmds
18147
18148# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018149wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018150
18151# Object file suffix (normally "o").
18152objext="$ac_objext"
18153
18154# Old archive suffix (normally "a").
18155libext="$libext"
18156
John Criswell47fdd832003-07-14 16:52:07 +000018157# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018158shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018159
John Criswell7a73b802003-06-30 21:59:07 +000018160# Executable file suffix (normally "").
18161exeext="$exeext"
18162
18163# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018164pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018165pic_mode=$pic_mode
18166
John Criswell47fdd832003-07-14 16:52:07 +000018167# What is the maximum length of a command?
18168max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018169
John Criswell47fdd832003-07-14 16:52:07 +000018170# Does compiler simultaneously support -c and -o options?
18171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018172
Reid Spencera773bd52006-08-04 18:18:08 +000018173# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018174need_locks=$lt_need_locks
18175
18176# Do we need the lib prefix for modules?
18177need_lib_prefix=$need_lib_prefix
18178
18179# Do we need a version for libraries?
18180need_version=$need_version
18181
18182# Whether dlopen is supported.
18183dlopen_support=$enable_dlopen
18184
18185# Whether dlopen of programs is supported.
18186dlopen_self=$enable_dlopen_self
18187
18188# Whether dlopen of statically linked programs is supported.
18189dlopen_self_static=$enable_dlopen_self_static
18190
18191# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018192link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018193
18194# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018196
18197# Compiler flag to allow reflexive dlopens.
18198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18199
18200# Compiler flag to generate shared objects directly from archives.
18201whole_archive_flag_spec=$lt_whole_archive_flag_spec
18202
18203# Compiler flag to generate thread-safe objects.
18204thread_safe_flag_spec=$lt_thread_safe_flag_spec
18205
18206# Library versioning type.
18207version_type=$version_type
18208
18209# Format of library name prefix.
18210libname_spec=$lt_libname_spec
18211
18212# List of archive names. First name is the real one, the rest are links.
18213# The last name is the one that the linker finds with -lNAME.
18214library_names_spec=$lt_library_names_spec
18215
18216# The coded name of the library, if different from the real name.
18217soname_spec=$lt_soname_spec
18218
18219# Commands used to build and install an old-style archive.
18220RANLIB=$lt_RANLIB
18221old_archive_cmds=$lt_old_archive_cmds
18222old_postinstall_cmds=$lt_old_postinstall_cmds
18223old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225# Create an old-style archive from a shared archive.
18226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18227
18228# Create a temporary old-style archive to link instead of a shared archive.
18229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18230
18231# Commands used to build and install a shared archive.
18232archive_cmds=$lt_archive_cmds
18233archive_expsym_cmds=$lt_archive_expsym_cmds
18234postinstall_cmds=$lt_postinstall_cmds
18235postuninstall_cmds=$lt_postuninstall_cmds
18236
John Criswell47fdd832003-07-14 16:52:07 +000018237# Commands used to build a loadable module (assumed same as above if empty)
18238module_cmds=$lt_module_cmds
18239module_expsym_cmds=$lt_module_expsym_cmds
18240
John Criswell7a73b802003-06-30 21:59:07 +000018241# Commands to strip libraries.
18242old_striplib=$lt_old_striplib
18243striplib=$lt_striplib
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245# Dependencies to place before the objects being linked to create a
18246# shared library.
18247predep_objects=$lt_predep_objects
18248
18249# Dependencies to place after the objects being linked to create a
18250# shared library.
18251postdep_objects=$lt_postdep_objects
18252
18253# Dependencies to place before the objects being linked to create a
18254# shared library.
18255predeps=$lt_predeps
18256
18257# Dependencies to place after the objects being linked to create a
18258# shared library.
18259postdeps=$lt_postdeps
18260
18261# The library search path used internally by the compiler when linking
18262# a shared library.
18263compiler_lib_search_path=$lt_compiler_lib_search_path
18264
John Criswell7a73b802003-06-30 21:59:07 +000018265# Method to check whether dependent libraries are shared objects.
18266deplibs_check_method=$lt_deplibs_check_method
18267
18268# Command to use when deplibs_check_method == file_magic.
18269file_magic_cmd=$lt_file_magic_cmd
18270
18271# Flag that allows shared libraries with undefined symbols to be built.
18272allow_undefined_flag=$lt_allow_undefined_flag
18273
18274# Flag that forces no undefined symbols.
18275no_undefined_flag=$lt_no_undefined_flag
18276
18277# Commands used to finish a libtool library installation in a directory.
18278finish_cmds=$lt_finish_cmds
18279
18280# Same as above, but a single script fragment to be evaled but not shown.
18281finish_eval=$lt_finish_eval
18282
18283# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018285
18286# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018288
18289# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018291
18292# This is the shared library runtime path variable.
18293runpath_var=$runpath_var
18294
18295# This is the shared library path variable.
18296shlibpath_var=$shlibpath_var
18297
18298# Is shlibpath searched before the hard-coded library search path?
18299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301# How to hardcode a shared library path into an executable.
18302hardcode_action=$hardcode_action
18303
18304# Whether we should hardcode library paths into libraries.
18305hardcode_into_libs=$hardcode_into_libs
18306
18307# Flag to hardcode \$libdir into a binary during linking.
18308# This must work even if \$libdir does not exist.
18309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18310
John Criswell47fdd832003-07-14 16:52:07 +000018311# If ld is used when linking, flag to hardcode \$libdir into
18312# a binary during linking. This must work even if \$libdir does
18313# not exist.
18314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18315
John Criswell7a73b802003-06-30 21:59:07 +000018316# Whether we need a single -rpath flag with a separated argument.
18317hardcode_libdir_separator=$lt_hardcode_libdir_separator
18318
John Criswell47fdd832003-07-14 16:52:07 +000018319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018320# resulting binary.
18321hardcode_direct=$hardcode_direct
18322
18323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324# resulting binary.
18325hardcode_minus_L=$hardcode_minus_L
18326
18327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328# the resulting binary.
18329hardcode_shlibpath_var=$hardcode_shlibpath_var
18330
John Criswell47fdd832003-07-14 16:52:07 +000018331# Set to yes if building a shared library automatically hardcodes DIR into the library
18332# and all subsequent libraries and executables linked against it.
18333hardcode_automatic=$hardcode_automatic
18334
John Criswell7a73b802003-06-30 21:59:07 +000018335# Variables whose values should be saved in libtool wrapper scripts and
18336# restored at relink time.
18337variables_saved_for_relink="$variables_saved_for_relink"
18338
18339# Whether libtool must link a program against all its dependency libraries.
18340link_all_deplibs=$link_all_deplibs
18341
18342# Compile-time system search path for libraries
18343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345# Run-time system search path for libraries
18346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348# Fix the shell variable \$srcfile for the compiler.
18349fix_srcfile_path="$fix_srcfile_path"
18350
18351# Set to yes if exported symbols are required.
18352always_export_symbols=$always_export_symbols
18353
18354# The commands to list exported symbols.
18355export_symbols_cmds=$lt_export_symbols_cmds
18356
18357# The commands to extract the exported symbol list from a shared archive.
18358extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360# Symbols that should not be listed in the preloaded symbols.
18361exclude_expsyms=$lt_exclude_expsyms
18362
18363# Symbols that must always be exported.
18364include_expsyms=$lt_include_expsyms
18365
18366# ### END LIBTOOL CONFIG
18367
18368__EOF__
18369
John Criswell47fdd832003-07-14 16:52:07 +000018370
John Criswell7a73b802003-06-30 21:59:07 +000018371 case $host_os in
18372 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018373 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018374
18375# AIX sometimes has problems with the GCC collect2 program. For some
18376# reason, if we set the COLLECT_NAMES environment variable, the problems
18377# vanish in a puff of smoke.
18378if test "X${COLLECT_NAMES+set}" != Xset; then
18379 COLLECT_NAMES=
18380 export COLLECT_NAMES
18381fi
18382EOF
18383 ;;
18384 esac
18385
John Criswell7a73b802003-06-30 21:59:07 +000018386 # We use sed instead of cat because bash on DJGPP gets confused if
18387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18388 # text mode, it properly converts lines to CR/LF. This bash problem
18389 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018390 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018391
John Criswell47fdd832003-07-14 16:52:07 +000018392 mv -f "$cfgfile" "$ofile" || \
18393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018394 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018395
18396else
18397 # If there is no Makefile yet, we rely on a make rule to execute
18398 # `config.status --recheck' to rerun these tests and create the
18399 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401 if test -f "$ltmain_in"; then
18402 test -f Makefile && make "$ltmain"
18403 fi
John Criswell7a73b802003-06-30 21:59:07 +000018404fi
John Criswell7a73b802003-06-30 21:59:07 +000018405
18406
John Criswell47fdd832003-07-14 16:52:07 +000018407ac_ext=c
18408ac_cpp='$CPP $CPPFLAGS'
18409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413CC="$lt_save_CC"
18414
18415
Reid Spencera773bd52006-08-04 18:18:08 +000018416# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018417if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018418 withval=$with_tags; tagnames="$withval"
18419fi
18420
John Criswell47fdd832003-07-14 16:52:07 +000018421
18422if test -f "$ltmain" && test -n "$tagnames"; then
18423 if test ! -f "${ofile}"; then
18424 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18425echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18426 fi
18427
18428 if test -z "$LTCC"; then
18429 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18430 if test -z "$LTCC"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18432echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18433 else
18434 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18435echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18436 fi
18437 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018438 if test -z "$LTCFLAGS"; then
18439 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18440 fi
John Criswell47fdd832003-07-14 16:52:07 +000018441
18442 # Extract list of available tagged configurations in $ofile.
18443 # Note that this assumes the entire list is on one line.
18444 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18445
18446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18447 for tagname in $tagnames; do
18448 IFS="$lt_save_ifs"
18449 # Check whether tagname contains only valid characters
18450 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18451 "") ;;
18452 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18453echo "$as_me: error: invalid tag name: $tagname" >&2;}
18454 { (exit 1); exit 1; }; }
18455 ;;
18456 esac
18457
18458 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18459 then
18460 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18461echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18462 { (exit 1); exit 1; }; }
18463 fi
18464
18465 # Update the list of available tags.
18466 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018467 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018468
18469 case $tagname in
18470 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18473 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018474 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018475ac_cpp='$CXXCPP $CPPFLAGS'
18476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483archive_cmds_need_lc_CXX=no
18484allow_undefined_flag_CXX=
18485always_export_symbols_CXX=no
18486archive_expsym_cmds_CXX=
18487export_dynamic_flag_spec_CXX=
18488hardcode_direct_CXX=no
18489hardcode_libdir_flag_spec_CXX=
18490hardcode_libdir_flag_spec_ld_CXX=
18491hardcode_libdir_separator_CXX=
18492hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018493hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018494hardcode_automatic_CXX=no
18495module_cmds_CXX=
18496module_expsym_cmds_CXX=
18497link_all_deplibs_CXX=unknown
18498old_archive_cmds_CXX=$old_archive_cmds
18499no_undefined_flag_CXX=
18500whole_archive_flag_spec_CXX=
18501enable_shared_with_static_runtimes_CXX=no
18502
18503# Dependencies to place before and after the object being linked:
18504predep_objects_CXX=
18505postdep_objects_CXX=
18506predeps_CXX=
18507postdeps_CXX=
18508compiler_lib_search_path_CXX=
18509
18510# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018511ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018512
18513# Object file extension for compiled C++ test sources.
18514objext=o
18515objext_CXX=$objext
18516
18517# Code to be used in simple compile tests
18518lt_simple_compile_test_code="int some_variable = 0;\n"
18519
18520# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018521lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018522
18523# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18524
18525# If no C compiler was specified, use CC.
18526LTCC=${LTCC-"$CC"}
18527
Reid Spencera773bd52006-08-04 18:18:08 +000018528# If no C compiler flags were specified, use CFLAGS.
18529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18530
John Criswell47fdd832003-07-14 16:52:07 +000018531# Allow CC to be a program name with arguments.
18532compiler=$CC
18533
18534
Reid Spencera773bd52006-08-04 18:18:08 +000018535# save warnings/boilerplate of simple test code
18536ac_outfile=conftest.$ac_objext
18537printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539_lt_compiler_boilerplate=`cat conftest.err`
18540$rm conftest*
18541
18542ac_outfile=conftest.$ac_objext
18543printf "$lt_simple_link_test_code" >conftest.$ac_ext
18544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18545_lt_linker_boilerplate=`cat conftest.err`
18546$rm conftest*
18547
18548
John Criswell47fdd832003-07-14 16:52:07 +000018549# Allow CC to be a program name with arguments.
18550lt_save_CC=$CC
18551lt_save_LD=$LD
18552lt_save_GCC=$GCC
18553GCC=$GXX
18554lt_save_with_gnu_ld=$with_gnu_ld
18555lt_save_path_LD=$lt_cv_path_LD
18556if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18557 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18558else
Reid Spencera773bd52006-08-04 18:18:08 +000018559 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018560fi
18561if test -n "${lt_cv_path_LDCXX+set}"; then
18562 lt_cv_path_LD=$lt_cv_path_LDCXX
18563else
Reid Spencera773bd52006-08-04 18:18:08 +000018564 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018565fi
18566test -z "${LDCXX+set}" || LD=$LDCXX
18567CC=${CXX-"c++"}
18568compiler=$CC
18569compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018570for cc_temp in $compiler""; do
18571 case $cc_temp in
18572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18574 \-*) ;;
18575 *) break;;
18576 esac
18577done
18578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579
John Criswell47fdd832003-07-14 16:52:07 +000018580
18581# We don't want -fno-exception wen compiling C++ code, so set the
18582# no_builtin_flag separately
18583if test "$GXX" = yes; then
18584 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18585else
18586 lt_prog_compiler_no_builtin_flag_CXX=
18587fi
18588
18589if test "$GXX" = yes; then
18590 # Set up default GNU C++ configuration
18591
18592
Reid Spencera773bd52006-08-04 18:18:08 +000018593# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018594if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018596else
18597 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018598fi
18599
John Criswell47fdd832003-07-14 16:52:07 +000018600ac_prog=ld
18601if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018603 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18604echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018605 case $host in
18606 *-*-mingw*)
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609 *)
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611 esac
18612 case $ac_prog in
18613 # Accept absolute paths.
18614 [\\/]* | ?:[\\/]*)
18615 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018616 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018617 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18618 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18620 done
18621 test -z "$LD" && LD="$ac_prog"
18622 ;;
18623 "")
18624 # If it fails, then pretend we aren't using GCC.
18625 ac_prog=ld
18626 ;;
18627 *)
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18630 ;;
18631 esac
18632elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018633 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18634echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018635else
Reid Spencera773bd52006-08-04 18:18:08 +000018636 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18637echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018638fi
18639if test "${lt_cv_path_LD+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18645 IFS="$lt_save_ifs"
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018650 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18655 ;;
18656 *)
18657 test "$with_gnu_ld" != yes && break
18658 ;;
18659 esac
18660 fi
18661 done
18662 IFS="$lt_save_ifs"
18663else
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665fi
18666fi
18667
18668LD="$lt_cv_path_LD"
18669if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018670 { echo "$as_me:$LINENO: result: $LD" >&5
18671echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018672else
Reid Spencera773bd52006-08-04 18:18:08 +000018673 { echo "$as_me:$LINENO: result: no" >&5
18674echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018675fi
18676test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18677echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18678 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018679{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18680echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018681if test "${lt_cv_prog_gnu_ld+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
Reid Spencera773bd52006-08-04 18:18:08 +000018684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018686*GNU* | *'with BFD'*)
18687 lt_cv_prog_gnu_ld=yes
18688 ;;
18689*)
18690 lt_cv_prog_gnu_ld=no
18691 ;;
18692esac
18693fi
Reid Spencera773bd52006-08-04 18:18:08 +000018694{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18695echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018696with_gnu_ld=$lt_cv_prog_gnu_ld
18697
18698
18699
18700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18701 # archiving commands below assume that GNU ld is being used.
18702 if test "$with_gnu_ld" = yes; then
18703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18704 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'
18705
18706 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18708
18709 # If archive_cmds runs LD, not CC, wlarc should be empty
18710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18711 # investigate it a little bit more. (MM)
18712 wlarc='${wl}'
18713
18714 # ancient GNU ld didn't support --whole-archive et. al.
18715 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18716 grep 'no-whole-archive' > /dev/null; then
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 else
18719 whole_archive_flag_spec_CXX=
18720 fi
18721 else
18722 with_gnu_ld=no
18723 wlarc=
18724
18725 # A generic and very simple default shared library creation
18726 # command for GNU C++ for the case where it uses the native
18727 # linker, instead of GNU ld. If possible, this setting should
18728 # overridden to take advantage of the native linker features on
18729 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018731 fi
18732
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18737
18738else
18739 GXX=no
18740 with_gnu_ld=no
18741 wlarc=
18742fi
18743
18744# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018745{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18746echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018747ld_shlibs_CXX=yes
18748case $host_os in
18749 aix3*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 aix4* | aix5*)
18754 if test "$host_cpu" = ia64; then
18755 # On IA64, the linker does run time linking by default, so we don't
18756 # have to do anything special.
18757 aix_use_runtimelinking=no
18758 exp_sym_flag='-Bexport'
18759 no_entry_flag=""
18760 else
18761 aix_use_runtimelinking=no
18762
18763 # Test if we are trying to use run time linking or normal
18764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18765 # need to do runtime linking.
18766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18767 for ld_flag in $LDFLAGS; do
18768 case $ld_flag in
18769 *-brtl*)
18770 aix_use_runtimelinking=yes
18771 break
18772 ;;
18773 esac
18774 done
Reid Spencera773bd52006-08-04 18:18:08 +000018775 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018776 esac
18777
18778 exp_sym_flag='-bexport'
18779 no_entry_flag='-bnoentry'
18780 fi
18781
18782 # When large executables or shared objects are built, AIX ld can
18783 # have problems creating the table of contents. If linking a library
18784 # or program results in "error TOC overflow" add -mminimal-toc to
18785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18787
18788 archive_cmds_CXX=''
18789 hardcode_direct_CXX=yes
18790 hardcode_libdir_separator_CXX=':'
18791 link_all_deplibs_CXX=yes
18792
18793 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018794 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018795 # We only want to do this on AIX 4.2 and lower, the check
18796 # below for broken collect2 doesn't work under 4.3+
18797 collect2name=`${CC} -print-prog-name=collect2`
18798 if test -f "$collect2name" && \
18799 strings "$collect2name" | grep resolve_lib_name >/dev/null
18800 then
18801 # We have reworked collect2
18802 hardcode_direct_CXX=yes
18803 else
18804 # We have old collect2
18805 hardcode_direct_CXX=unsupported
18806 # It fails to find uninstalled libraries when the uninstalled
18807 # path is not listed in the libpath. Setting hardcode_minus_L
18808 # to unsupported forces relinking
18809 hardcode_minus_L_CXX=yes
18810 hardcode_libdir_flag_spec_CXX='-L$libdir'
18811 hardcode_libdir_separator_CXX=
18812 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018814 esac
18815 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018816 if test "$aix_use_runtimelinking" = yes; then
18817 shared_flag="$shared_flag "'${wl}-G'
18818 fi
John Criswell47fdd832003-07-14 16:52:07 +000018819 else
18820 # not using gcc
18821 if test "$host_cpu" = ia64; then
18822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18823 # chokes on -Wl,-G. The following line is correct:
18824 shared_flag='-G'
18825 else
18826 if test "$aix_use_runtimelinking" = yes; then
18827 shared_flag='${wl}-G'
18828 else
18829 shared_flag='${wl}-bM:SRE'
18830 fi
18831 fi
18832 fi
18833
18834 # It seems that -bexpall does not export symbols beginning with
18835 # underscore (_), so it is better to generate a list of symbols to export.
18836 always_export_symbols_CXX=yes
18837 if test "$aix_use_runtimelinking" = yes; then
18838 # Warning - without using the other runtime loading flags (-brtl),
18839 # -berok will link without error, but may produce a broken library.
18840 allow_undefined_flag_CXX='-berok'
18841 # Determine the default libpath from the value encoded in an empty executable.
18842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018848
John Criswell47fdd832003-07-14 16:52:07 +000018849int
18850main ()
18851{
18852
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018858if { (ac_try="$ac_link"
18859case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018891
18892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18893}'`
18894# Check for a 64-bit object if we didn't find anything.
18895if 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; }
18896}'`; fi
18897else
18898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018899sed 's/^/| /' conftest.$ac_ext >&5
18900
Reid Spencera773bd52006-08-04 18:18:08 +000018901
John Criswell47fdd832003-07-14 16:52:07 +000018902fi
Reid Spencera773bd52006-08-04 18:18:08 +000018903
Bill Wendlingebcceee2009-04-18 11:20:33 +000018904rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018905 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18907
18908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18909
Reid Spencera773bd52006-08-04 18:18:08 +000018910 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 +000018911 else
18912 if test "$host_cpu" = ia64; then
18913 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18914 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018915 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 +000018916 else
18917 # Determine the default libpath from the value encoded in an empty executable.
18918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018924
John Criswell47fdd832003-07-14 16:52:07 +000018925int
18926main ()
18927{
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018934if { (ac_try="$ac_link"
18935case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018967
18968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18969}'`
18970# Check for a 64-bit object if we didn't find anything.
18971if 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; }
18972}'`; fi
18973else
18974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018975sed 's/^/| /' conftest.$ac_ext >&5
18976
Reid Spencera773bd52006-08-04 18:18:08 +000018977
John Criswell47fdd832003-07-14 16:52:07 +000018978fi
Reid Spencera773bd52006-08-04 18:18:08 +000018979
Bill Wendlingebcceee2009-04-18 11:20:33 +000018980rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018981 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18983
18984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985 # Warning - without using the other run time loading flags,
18986 # -berok will link without error, but may produce a broken library.
18987 no_undefined_flag_CXX=' ${wl}-bernotok'
18988 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018989 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018990 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018991 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018992 # This is similar to how AIX traditionally builds its shared libraries.
18993 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 +000018994 fi
18995 fi
18996 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018997
18998 beos*)
18999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000 allow_undefined_flag_CXX=unsupported
19001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19002 # support --undefined. This deserves some investigation. FIXME
19003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 else
19005 ld_shlibs_CXX=no
19006 fi
19007 ;;
19008
John Criswell47fdd832003-07-14 16:52:07 +000019009 chorus*)
19010 case $cc_basename in
19011 *)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 esac
19016 ;;
19017
19018 cygwin* | mingw* | pw32*)
19019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19020 # as there is no search path for DLLs.
19021 hardcode_libdir_flag_spec_CXX='-L$libdir'
19022 allow_undefined_flag_CXX=unsupported
19023 always_export_symbols_CXX=no
19024 enable_shared_with_static_runtimes_CXX=yes
19025
19026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019027 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 +000019028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19032 else
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019035 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019036 $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 +000019037 else
19038 ld_shlibs_CXX=no
19039 fi
19040 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019041 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019042 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019043 rhapsody* | darwin1.[012])
19044 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19045 ;;
19046 *) # Darwin 1.3 on
19047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19049 else
19050 case ${MACOSX_DEPLOYMENT_TARGET} in
19051 10.[012])
19052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19053 ;;
19054 10.*)
19055 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19056 ;;
19057 esac
19058 fi
19059 ;;
19060 esac
19061 archive_cmds_need_lc_CXX=no
19062 hardcode_direct_CXX=no
19063 hardcode_automatic_CXX=yes
19064 hardcode_shlibpath_var_CXX=unsupported
19065 whole_archive_flag_spec_CXX=''
19066 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019067
Reid Spencer2706f8c2004-09-19 23:53:36 +000019068 if test "$GXX" = yes ; then
19069 lt_int_apple_cc_single_mod=no
19070 output_verbose_link_cmd='echo'
19071 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19072 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019073 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019075 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 +000019076 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019077 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 +000019078 fi
19079 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019080 # 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 +000019081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019082 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 +000019083 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019084 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 +000019085 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019086 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 +000019087 else
Reid Spencera773bd52006-08-04 18:18:08 +000019088 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019089 xlc*)
19090 output_verbose_link_cmd='echo'
19091 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'
19092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019093 # 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 +000019094 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}'
19095 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 +000019096 ;;
19097 *)
19098 ld_shlibs_CXX=no
19099 ;;
19100 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019101 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019102 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019103
19104 dgux*)
19105 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019106 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019110 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115 *)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 esac
19120 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019121 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019122 # C++ shared libraries reported to be fairly broken before switch to ELF
19123 ld_shlibs_CXX=no
19124 ;;
19125 freebsd-elf*)
19126 archive_cmds_need_lc_CXX=no
19127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019128 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019129 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19130 # conventions
19131 ld_shlibs_CXX=yes
19132 ;;
19133 gnu*)
19134 ;;
19135 hpux9*)
19136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19137 hardcode_libdir_separator_CXX=:
19138 export_dynamic_flag_spec_CXX='${wl}-E'
19139 hardcode_direct_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143
19144 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019145 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19148 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019149 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019150 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 +000019151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 #
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19158 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019159 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 +000019160 ;;
19161 *)
19162 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019163 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 +000019164 else
19165 # FIXME: insert proper C++ library support
19166 ld_shlibs_CXX=no
19167 fi
19168 ;;
19169 esac
19170 ;;
19171 hpux10*|hpux11*)
19172 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19175
19176 case $host_cpu in
19177 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019179 ;;
19180 *)
John Criswell47fdd832003-07-14 16:52:07 +000019181 export_dynamic_flag_spec_CXX='${wl}-E'
19182 ;;
19183 esac
19184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019185 case $host_cpu in
19186 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 hardcode_direct_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19189 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019190 *)
19191 hardcode_direct_CXX=yes
19192 hardcode_minus_L_CXX=yes # Not in the search PATH,
19193 # but as the default
19194 # location of the library.
19195 ;;
19196 esac
19197
19198 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019199 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019203 aCC*)
19204 case $host_cpu in
19205 hppa*64*)
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 ;;
19208 ia64*)
19209 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 +000019210 ;;
19211 *)
19212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 ;;
19214 esac
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19218 #
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19222 # dependencies.
19223 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'
19224 ;;
19225 *)
19226 if test "$GXX" = yes; then
19227 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019228 case $host_cpu in
19229 hppa*64*)
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231 ;;
19232 ia64*)
19233 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 +000019234 ;;
19235 *)
19236 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'
19237 ;;
19238 esac
19239 fi
19240 else
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 fi
19244 ;;
19245 esac
19246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019247 interix3*)
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019261 irix5* | irix6*)
19262 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019263 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019264 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019265 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 +000019266
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 ;;
19273 *)
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019276 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 +000019277 else
19278 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'
19279 fi
19280 fi
19281 link_all_deplibs_CXX=yes
19282 ;;
19283 esac
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19286 ;;
19287 linux*)
19288 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019289 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019290 # Kuck and Associates, Inc. (KAI) C++ Compiler
19291
19292 # KCC will only create a shared library if the output file
19293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294 # to its proper name (with version) after linking.
19295 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'
19296 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'
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19300 #
19301 # There doesn't appear to be a way to prevent this compiler from
19302 # explicitly linking system object files so we need to strip them
19303 # from the output so that they don't get included in the library
19304 # dependencies.
19305 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'
19306
19307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309
19310 # Archives containing C++ object files must be created using
19311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019314 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019315 # Intel C++
19316 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019317 # version 8.0 and above of icpc choke on multiply defined symbols
19318 # if we add $predep_objects and $postdep_objects, however 7.1 and
19319 # earlier do not add the objects themselves.
19320 case `$CC -V 2>&1` in
19321 *"Version 7."*)
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323 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'
19324 ;;
19325 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019326 tmp_idyn=
19327 case $host_cpu in
19328 ia64*) tmp_idyn=' -i_dynamic';;
19329 esac
19330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331 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 +000019332 ;;
19333 esac
John Criswell47fdd832003-07-14 16:52:07 +000019334 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019339 pgCC*)
19340 # Portland Group C++ compiler
19341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 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'
19343
19344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346 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'
19347 ;;
19348 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019349 # Compaq C++
19350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19352
19353 runpath_var=LD_RUN_PATH
19354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355 hardcode_libdir_separator_CXX=:
19356
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19360 #
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19364 # dependencies.
19365 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'
19366 ;;
19367 esac
19368 ;;
19369 lynxos*)
19370 # FIXME: insert proper C++ library support
19371 ld_shlibs_CXX=no
19372 ;;
19373 m88k*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 mvs*)
19378 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019379 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
19383 *)
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 ;;
19387 esac
19388 ;;
19389 netbsd*)
19390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19392 wlarc=
19393 hardcode_libdir_flag_spec_CXX='-R$libdir'
19394 hardcode_direct_CXX=yes
19395 hardcode_shlibpath_var_CXX=no
19396 fi
19397 # Workaround some broken pre-1.5 toolchains
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19399 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019400 openbsd2*)
19401 # C++ shared libraries are fairly broken
19402 ld_shlibs_CXX=no
19403 ;;
19404 openbsd*)
19405 hardcode_direct_CXX=yes
19406 hardcode_shlibpath_var_CXX=no
19407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19411 export_dynamic_flag_spec_CXX='${wl}-E'
19412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19413 fi
19414 output_verbose_link_cmd='echo'
19415 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019416 osf3*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 # Kuck and Associates, Inc. (KAI) C++ Compiler
19420
19421 # KCC will only create a shared library if the output file
19422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19423 # to its proper name (with version) after linking.
19424 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'
19425
19426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19427 hardcode_libdir_separator_CXX=:
19428
19429 # Archives containing C++ object files must be created using
19430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19432
19433 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019434 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019435 # Rational C++ 2.4.1
19436 # FIXME: insert proper C++ library support
19437 ld_shlibs_CXX=no
19438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019439 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019441 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 +000019442
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 #
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19453 # dependencies.
19454 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'
19455 ;;
19456 *)
19457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019459 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 +000019460
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462 hardcode_libdir_separator_CXX=:
19463
19464 # Commands to make compiler produce verbose output that lists
19465 # what "hidden" libraries, object files and flags are used when
19466 # linking a shared library.
19467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19468
19469 else
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 fi
19473 ;;
19474 esac
19475 ;;
19476 osf4* | osf5*)
19477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019478 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019479 # Kuck and Associates, Inc. (KAI) C++ Compiler
19480
19481 # KCC will only create a shared library if the output file
19482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19483 # to its proper name (with version) after linking.
19484 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'
19485
19486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19487 hardcode_libdir_separator_CXX=:
19488
19489 # Archives containing C++ object files must be created using
19490 # the KAI C++ compiler.
19491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019493 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019494 # Rational C++ 2.4.1
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019498 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019499 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019500 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 +000019501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19502 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019503 $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 +000019504 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019505
19506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507 hardcode_libdir_separator_CXX=:
19508
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 #
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19516 # dependencies.
19517 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'
19518 ;;
19519 *)
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019522 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 +000019523
19524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525 hardcode_libdir_separator_CXX=:
19526
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19531
19532 else
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19535 fi
19536 ;;
19537 esac
19538 ;;
19539 psos*)
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019543 sunos4*)
19544 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019545 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019546 # Sun C++ 4.x
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019550 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019551 # Lucid
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19554 ;;
19555 *)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
19559 esac
19560 ;;
19561 solaris*)
19562 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019563 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019564 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019565 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019566 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019567 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 +000019568 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 +000019569 $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 +000019570
19571 hardcode_libdir_flag_spec_CXX='-R$libdir'
19572 hardcode_shlibpath_var_CXX=no
19573 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019574 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019575 *)
19576 # The C++ compiler is used as linker so we must use $wl
19577 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019578 # linker. We must also pass each convience library through
19579 # to the system linker between allextract/defaultextract.
19580 # The C++ compiler will combine linker options so we
19581 # cannot just pass the convience library names through
19582 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019583 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019584 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 +000019585 ;;
19586 esac
19587 link_all_deplibs_CXX=yes
19588
Reid Spencera773bd52006-08-04 18:18:08 +000019589 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019590
19591 # Archives containing C++ object files must be created using
19592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19593 # necessary to make sure instantiated templates are included
19594 # in the archive.
19595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019597 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019598 # Green Hills C++ Compiler
19599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19600
19601 # The C++ compiler must be used to create the archive.
19602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19603 ;;
19604 *)
19605 # GNU C++ compiler with Solaris linker
19606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19608 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019609 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 +000019610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19612
John Criswell47fdd832003-07-14 16:52:07 +000019613 # Commands to make compiler produce verbose output that lists
19614 # what "hidden" libraries, object files and flags are used when
19615 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019617 else
19618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19619 # platform.
19620 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 +000019621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19622 $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 +000019623
19624 # Commands to make compiler produce verbose output that lists
19625 # what "hidden" libraries, object files and flags are used when
19626 # linking a shared library.
19627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19628 fi
19629
19630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19631 fi
19632 ;;
19633 esac
19634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019637 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019638 hardcode_shlibpath_var_CXX=no
19639 runpath_var='LD_RUN_PATH'
19640
19641 case $cc_basename in
19642 CC*)
19643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19645 ;;
19646 *)
19647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19649 ;;
19650 esac
19651 ;;
19652 sysv5* | sco3.2v5* | sco5v6*)
19653 # Note: We can NOT use -z defs as we might desire, because we do not
19654 # link with -lc, and that would cause any symbols used from libc to
19655 # always be unresolved, which means just about no library would
19656 # ever link correctly. If we're not using GNU ld we use -z text
19657 # though, which does catch some bad symbols but isn't as heavy-handed
19658 # as -z defs.
19659 # For security reasons, it is highly recommended that you always
19660 # use absolute paths for naming shared libraries, and exclude the
19661 # DT_RUNPATH tag from executables and libraries. But doing so
19662 # requires that you compile everything twice, which is a pain.
19663 # So that behaviour is only enabled if SCOABSPATH is set to a
19664 # non-empty value in the environment. Most likely only useful for
19665 # creating official distributions of packages.
19666 # This is a hack until libtool officially supports absolute path
19667 # names for shared libraries.
19668 no_undefined_flag_CXX='${wl}-z,text'
19669 allow_undefined_flag_CXX='${wl}-z,nodefs'
19670 archive_cmds_need_lc_CXX=no
19671 hardcode_shlibpath_var_CXX=no
19672 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19673 hardcode_libdir_separator_CXX=':'
19674 link_all_deplibs_CXX=yes
19675 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19676 runpath_var='LD_RUN_PATH'
19677
19678 case $cc_basename in
19679 CC*)
19680 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19682 ;;
19683 *)
19684 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 ;;
19687 esac
John Criswell47fdd832003-07-14 16:52:07 +000019688 ;;
19689 tandem*)
19690 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019691 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019692 # NonStop-UX NCC 3.20
19693 # FIXME: insert proper C++ library support
19694 ld_shlibs_CXX=no
19695 ;;
19696 *)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19699 ;;
19700 esac
19701 ;;
19702 vxworks*)
19703 # FIXME: insert proper C++ library support
19704 ld_shlibs_CXX=no
19705 ;;
19706 *)
19707 # FIXME: insert proper C++ library support
19708 ld_shlibs_CXX=no
19709 ;;
19710esac
Reid Spencera773bd52006-08-04 18:18:08 +000019711{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19712echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019713test "$ld_shlibs_CXX" = no && can_build_shared=no
19714
19715GCC_CXX="$GXX"
19716LD_CXX="$LD"
19717
John Criswell47fdd832003-07-14 16:52:07 +000019718
19719cat > conftest.$ac_ext <<EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727EOF
19728
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; then
19734 # Parse the compiler output and extract the necessary
19735 # objects, libraries and library flags.
19736
19737 # Sentinel used to keep track of whether or not we are before
19738 # the conftest object file.
19739 pre_test_object_deps_done=no
19740
19741 # The `*' in the case matches for architectures that use `case' in
19742 # $output_verbose_cmd can trigger glob expansion during the loop
19743 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019744 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019745
19746 for p in `eval $output_verbose_link_cmd`; do
19747 case $p in
19748
19749 -L* | -R* | -l*)
19750 # Some compilers place space between "-{L,R}" and the path.
19751 # Remove the space.
19752 if test $p = "-L" \
19753 || test $p = "-R"; then
19754 prev=$p
19755 continue
19756 else
19757 prev=
19758 fi
19759
19760 if test "$pre_test_object_deps_done" = no; then
19761 case $p in
19762 -L* | -R*)
19763 # Internal compiler library paths should come after those
19764 # provided the user. The postdeps already come after the
19765 # user supplied libs so there is no need to process them.
19766 if test -z "$compiler_lib_search_path_CXX"; then
19767 compiler_lib_search_path_CXX="${prev}${p}"
19768 else
19769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19770 fi
19771 ;;
19772 # The "-l" case would never come before the object being
19773 # linked, so don't bother handling this case.
19774 esac
19775 else
19776 if test -z "$postdeps_CXX"; then
19777 postdeps_CXX="${prev}${p}"
19778 else
19779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19780 fi
19781 fi
19782 ;;
19783
19784 *.$objext)
19785 # This assumes that the test object file only shows up
19786 # once in the compiler output.
19787 if test "$p" = "conftest.$objext"; then
19788 pre_test_object_deps_done=yes
19789 continue
19790 fi
19791
19792 if test "$pre_test_object_deps_done" = no; then
19793 if test -z "$predep_objects_CXX"; then
19794 predep_objects_CXX="$p"
19795 else
19796 predep_objects_CXX="$predep_objects_CXX $p"
19797 fi
19798 else
19799 if test -z "$postdep_objects_CXX"; then
19800 postdep_objects_CXX="$p"
19801 else
19802 postdep_objects_CXX="$postdep_objects_CXX $p"
19803 fi
19804 fi
19805 ;;
19806
19807 *) ;; # Ignore the rest.
19808
19809 esac
19810 done
19811
19812 # Clean up.
19813 rm -f a.out a.exe
19814else
19815 echo "libtool.m4: error: problem compiling CXX test program"
19816fi
19817
19818$rm -f confest.$objext
19819
Reid Spencera773bd52006-08-04 18:18:08 +000019820# PORTME: override above test on systems where it is broken
19821case $host_os in
19822interix3*)
19823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19824 # hack all around it, let's just trust "g++" to DTRT.
19825 predep_objects_CXX=
19826 postdep_objects_CXX=
19827 postdeps_CXX=
19828 ;;
19829
19830solaris*)
19831 case $cc_basename in
19832 CC*)
19833 # Adding this requires a known-good setup of shared libraries for
19834 # Sun compiler versions before 5.6, else PIC objects from an old
19835 # archive will be linked into the output, leading to subtle bugs.
19836 postdeps_CXX='-lCstd -lCrun'
19837 ;;
19838 esac
19839 ;;
19840esac
19841
19842
John Criswell47fdd832003-07-14 16:52:07 +000019843case " $postdeps_CXX " in
19844*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19845esac
19846
19847lt_prog_compiler_wl_CXX=
19848lt_prog_compiler_pic_CXX=
19849lt_prog_compiler_static_CXX=
19850
Reid Spencera773bd52006-08-04 18:18:08 +000019851{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19852echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019853
19854 # C++ specific cases for pic, static, wl, etc.
19855 if test "$GXX" = yes; then
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_static_CXX='-static'
19858
19859 case $host_os in
19860 aix*)
19861 # All AIX code is PIC.
19862 if test "$host_cpu" = ia64; then
19863 # AIX 5 now supports IA64 processor
19864 lt_prog_compiler_static_CXX='-Bstatic'
19865 fi
19866 ;;
19867 amigaos*)
19868 # FIXME: we need at least 68020 code to build shared libraries, but
19869 # adding the `-m68020' flag to GCC prevents building anything better,
19870 # like `-m68040'.
19871 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19872 ;;
19873 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19874 # PIC is the default for these OSes.
19875 ;;
19876 mingw* | os2* | pw32*)
19877 # This hack is so that the source file can tell whether it is being
19878 # built for inclusion in a dll (and should export symbols for example).
19879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19880 ;;
19881 darwin* | rhapsody*)
19882 # PIC is the default on this platform
19883 # Common symbols not allowed in MH_DYLIB files
19884 lt_prog_compiler_pic_CXX='-fno-common'
19885 ;;
19886 *djgpp*)
19887 # DJGPP does not support shared libraries at all
19888 lt_prog_compiler_pic_CXX=
19889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019890 interix3*)
19891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19892 # Instead, we relocate shared libraries at runtime.
19893 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019894 sysv4*MP*)
19895 if test -d /usr/nec; then
19896 lt_prog_compiler_pic_CXX=-Kconform_pic
19897 fi
19898 ;;
19899 hpux*)
19900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19901 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019902 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019903 hppa*64*|ia64*)
19904 ;;
19905 *)
19906 lt_prog_compiler_pic_CXX='-fPIC'
19907 ;;
19908 esac
19909 ;;
19910 *)
19911 lt_prog_compiler_pic_CXX='-fPIC'
19912 ;;
19913 esac
19914 else
19915 case $host_os in
19916 aix4* | aix5*)
19917 # All AIX code is PIC.
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 now supports IA64 processor
19920 lt_prog_compiler_static_CXX='-Bstatic'
19921 else
19922 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19923 fi
19924 ;;
19925 chorus*)
19926 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019927 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019928 # Green Hills C++ Compiler
19929 # _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"
19930 ;;
19931 esac
19932 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019933 darwin*)
19934 # PIC is the default on this platform
19935 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019936 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019937 xlc*)
19938 lt_prog_compiler_pic_CXX='-qnocommon'
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 ;;
19941 esac
19942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019943 dgux*)
19944 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019945 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019946 lt_prog_compiler_pic_CXX='-KPIC'
19947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019948 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX='-pic'
19951 ;;
19952 *)
19953 ;;
19954 esac
19955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019956 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019957 # FreeBSD uses GNU C++
19958 ;;
19959 hpux9* | hpux10* | hpux11*)
19960 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019961 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019962 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019964 if test "$host_cpu" != ia64; then
19965 lt_prog_compiler_pic_CXX='+Z'
19966 fi
19967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019968 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019969 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019972 hppa*64*|ia64*)
19973 # +Z the default
19974 ;;
19975 *)
19976 lt_prog_compiler_pic_CXX='+Z'
19977 ;;
19978 esac
19979 ;;
19980 *)
19981 ;;
19982 esac
19983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019984 interix*)
19985 # This is c89, which is MS Visual C++ (no shared libs)
19986 # Anyone wants to do a port?
19987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019988 irix5* | irix6* | nonstopux*)
19989 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019990 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_static_CXX='-non_shared'
19993 # CC pic flag -KPIC is the default.
19994 ;;
19995 *)
19996 ;;
19997 esac
19998 ;;
19999 linux*)
20000 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020001 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020002 # KAI C++ Compiler
20003 lt_prog_compiler_wl_CXX='--backend -Wl,'
20004 lt_prog_compiler_pic_CXX='-fPIC'
20005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020006 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 # Intel C++
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-static'
20011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020012 pgCC*)
20013 # Portland Group C++ compiler.
20014 lt_prog_compiler_wl_CXX='-Wl,'
20015 lt_prog_compiler_pic_CXX='-fpic'
20016 lt_prog_compiler_static_CXX='-Bstatic'
20017 ;;
20018 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020019 # Compaq C++
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20024 ;;
20025 *)
20026 ;;
20027 esac
20028 ;;
20029 lynxos*)
20030 ;;
20031 m88k*)
20032 ;;
20033 mvs*)
20034 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020035 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020036 lt_prog_compiler_pic_CXX='-W c,exportall'
20037 ;;
20038 *)
20039 ;;
20040 esac
20041 ;;
20042 netbsd*)
20043 ;;
20044 osf3* | osf4* | osf5*)
20045 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020046 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020049 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX='-pic'
20052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020053 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX=
20059 lt_prog_compiler_static_CXX='-non_shared'
20060 ;;
20061 *)
20062 ;;
20063 esac
20064 ;;
20065 psos*)
20066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020067 solaris*)
20068 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020069 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX='-KPIC'
20072 lt_prog_compiler_static_CXX='-Bstatic'
20073 lt_prog_compiler_wl_CXX='-Qoption ld '
20074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020075 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX='-PIC'
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 sunos4*)
20084 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020085 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020086 # Sun C++ 4.x
20087 lt_prog_compiler_pic_CXX='-pic'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020090 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020091 # Lucid
20092 lt_prog_compiler_pic_CXX='-pic'
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
20098 tandem*)
20099 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020100 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020101 # NonStop-UX NCC 3.20
20102 lt_prog_compiler_pic_CXX='-KPIC'
20103 ;;
20104 *)
20105 ;;
20106 esac
20107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20109 case $cc_basename in
20110 CC*)
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_pic_CXX='-KPIC'
20113 lt_prog_compiler_static_CXX='-Bstatic'
20114 ;;
20115 esac
John Criswell47fdd832003-07-14 16:52:07 +000020116 ;;
20117 vxworks*)
20118 ;;
20119 *)
20120 lt_prog_compiler_can_build_shared_CXX=no
20121 ;;
20122 esac
20123 fi
20124
Reid Spencera773bd52006-08-04 18:18:08 +000020125{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20126echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020127
20128#
20129# Check to make sure the PIC flag actually works.
20130#
20131if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132
Reid Spencera773bd52006-08-04 18:18:08 +000020133{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20134echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020135if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 lt_prog_compiler_pic_works_CXX=no
20139 ac_outfile=conftest.$ac_objext
20140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20142 # Insert the option either (1) after the last *FLAGS variable, or
20143 # (2) before a word containing "conftest.", or (3) at the end.
20144 # Note that $ac_compile itself does not contain backslashes and begins
20145 # with a dollar sign (not a hyphen), so the echo should work correctly.
20146 # The option is referenced via a variable to avoid confusing sed.
20147 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20150 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000020151 (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020152 (eval "$lt_compile" 2>conftest.err)
20153 ac_status=$?
20154 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000020155 echo "$as_me:20155: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020156 if (exit $ac_status) && test -s "$ac_outfile"; then
20157 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020158 # So say no if there are warnings other than the usual output.
20159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020162 lt_prog_compiler_pic_works_CXX=yes
20163 fi
20164 fi
20165 $rm conftest*
20166
20167fi
Reid Spencera773bd52006-08-04 18:18:08 +000020168{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20169echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020170
20171if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20172 case $lt_prog_compiler_pic_CXX in
20173 "" | " "*) ;;
20174 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20175 esac
20176else
20177 lt_prog_compiler_pic_CXX=
20178 lt_prog_compiler_can_build_shared_CXX=no
20179fi
20180
20181fi
Reid Spencera773bd52006-08-04 18:18:08 +000020182case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020183 # For platforms which do not support PIC, -DPIC is meaningless:
20184 *djgpp*)
20185 lt_prog_compiler_pic_CXX=
20186 ;;
20187 *)
20188 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20189 ;;
20190esac
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192#
20193# Check to make sure the static flag actually works.
20194#
20195wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20196{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20197echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20198if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 lt_prog_compiler_static_works_CXX=no
20202 save_LDFLAGS="$LDFLAGS"
20203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20204 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20206 # The linker can only warn and ignore the option if not recognized
20207 # So say no if there are warnings
20208 if test -s conftest.err; then
20209 # Append any errors to the config.log.
20210 cat conftest.err 1>&5
20211 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20213 if diff conftest.exp conftest.er2 >/dev/null; then
20214 lt_prog_compiler_static_works_CXX=yes
20215 fi
20216 else
20217 lt_prog_compiler_static_works_CXX=yes
20218 fi
20219 fi
20220 $rm conftest*
20221 LDFLAGS="$save_LDFLAGS"
20222
20223fi
20224{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20225echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20226
20227if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20228 :
20229else
20230 lt_prog_compiler_static_CXX=
20231fi
20232
20233
20234{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20235echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020236if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238else
20239 lt_cv_prog_compiler_c_o_CXX=no
20240 $rm -r conftest 2>/dev/null
20241 mkdir conftest
20242 cd conftest
20243 mkdir out
20244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20245
John Criswell47fdd832003-07-14 16:52:07 +000020246 lt_compiler_flag="-o out/conftest2.$ac_objext"
20247 # Insert the option either (1) after the last *FLAGS variable, or
20248 # (2) before a word containing "conftest.", or (3) at the end.
20249 # Note that $ac_compile itself does not contain backslashes and begins
20250 # with a dollar sign (not a hyphen), so the echo should work correctly.
20251 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20254 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000020255 (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020256 (eval "$lt_compile" 2>out/conftest.err)
20257 ac_status=$?
20258 cat out/conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000020259 echo "$as_me:20259: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20261 then
20262 # The compiler can only warn and ignore the option if not recognized
20263 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020267 lt_cv_prog_compiler_c_o_CXX=yes
20268 fi
20269 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020270 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020271 $rm conftest*
20272 # SGI C++ compiler will create directory out/ii_files/ for
20273 # template instantiation
20274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20275 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020276 cd ..
20277 rmdir conftest
20278 $rm conftest*
20279
20280fi
Reid Spencera773bd52006-08-04 18:18:08 +000020281{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20282echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020283
20284
20285hard_links="nottested"
20286if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20287 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020288 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20289echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020290 hard_links=yes
20291 $rm conftest*
20292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20293 touch conftest.a
20294 ln conftest.a conftest.b 2>&5 || hard_links=no
20295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020296 { echo "$as_me:$LINENO: result: $hard_links" >&5
20297echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020298 if test "$hard_links" = no; then
20299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20300echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20301 need_locks=warn
20302 fi
20303else
20304 need_locks=no
20305fi
20306
Reid Spencera773bd52006-08-04 18:18:08 +000020307{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020309
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311 case $host_os in
20312 aix4* | aix5*)
20313 # If we're using GNU nm, then we don't want the "-C" option.
20314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20316 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'
20317 else
20318 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'
20319 fi
20320 ;;
20321 pw32*)
20322 export_symbols_cmds_CXX="$ltdll_cmds"
20323 ;;
20324 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020325 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 +000020326 ;;
20327 *)
20328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20329 ;;
20330 esac
20331
Reid Spencera773bd52006-08-04 18:18:08 +000020332{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20333echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020334test "$ld_shlibs_CXX" = no && can_build_shared=no
20335
John Criswell47fdd832003-07-14 16:52:07 +000020336#
20337# Do we need to explicitly link libc?
20338#
20339case "x$archive_cmds_need_lc_CXX" in
20340x|xyes)
20341 # Assume -lc should be added
20342 archive_cmds_need_lc_CXX=yes
20343
20344 if test "$enable_shared" = yes && test "$GCC" = yes; then
20345 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020346 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020347 # FIXME: we may have to deal with multi-command sequences.
20348 ;;
20349 '$CC '*)
20350 # Test whether the compiler implicitly links with -lc since on some
20351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20352 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20354echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020355 $rm conftest*
20356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20357
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } 2>conftest.err; then
20363 soname=conftest
20364 lib=conftest
20365 libobjs=conftest.$ac_objext
20366 deplibs=
20367 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020368 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020369 compiler_flags=-v
20370 linker_flags=-v
20371 verstring=
20372 output_objdir=.
20373 libname=conftest
20374 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20375 allow_undefined_flag_CXX=
20376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20377 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }
20381 then
20382 archive_cmds_need_lc_CXX=no
20383 else
20384 archive_cmds_need_lc_CXX=yes
20385 fi
20386 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20387 else
20388 cat conftest.err 1>&5
20389 fi
20390 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20392echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020393 ;;
20394 esac
20395 fi
20396 ;;
20397esac
20398
Reid Spencera773bd52006-08-04 18:18:08 +000020399{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020401library_names_spec=
20402libname_spec='lib$name'
20403soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020404shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020405postinstall_cmds=
20406postuninstall_cmds=
20407finish_cmds=
20408finish_eval=
20409shlibpath_var=
20410shlibpath_overrides_runpath=unknown
20411version_type=none
20412dynamic_linker="$host_os ld.so"
20413sys_lib_dlsearch_path_spec="/lib /usr/lib"
20414if test "$GCC" = yes; then
20415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20417 # if the path contains ";" then we assume it to be the separator
20418 # otherwise default to the standard path separator (i.e. ":") - it is
20419 # assumed that no part of a normal pathname contains ";" but that should
20420 # okay in the real world where ";" in dirpaths is itself problematic.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422 else
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20424 fi
20425else
20426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20427fi
20428need_lib_prefix=unknown
20429hardcode_into_libs=no
20430
20431# when you set need_version to no, make sure it does not cause -set_version
20432# flags to be left without arguments
20433need_version=unknown
20434
20435case $host_os in
20436aix3*)
20437 version_type=linux
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20439 shlibpath_var=LIBPATH
20440
20441 # AIX 3 has no versioning support, so we append a major version to the name.
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 ;;
20444
20445aix4* | aix5*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 hardcode_into_libs=yes
20450 if test "$host_cpu" = ia64; then
20451 # AIX 5 supports IA64
20452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 else
20455 # With GCC up to 2.95.x, collect2 would create an import file
20456 # for dependence libraries. The import file would start with
20457 # the line `#! .'. This would cause the generated library to
20458 # depend on `.', always an invalid library. This was fixed in
20459 # development snapshots of GCC prior to 3.0.
20460 case $host_os in
20461 aix4 | aix4.[01] | aix4.[01].*)
20462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20463 echo ' yes '
20464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20465 :
20466 else
20467 can_build_shared=no
20468 fi
20469 ;;
20470 esac
20471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20472 # soname into executable. Probably we can add versioning support to
20473 # collect2, so additional links can be useful in future.
20474 if test "$aix_use_runtimelinking" = yes; then
20475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20476 # instead of lib<name>.a to let people know that these are not
20477 # typical AIX shared libraries.
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479 else
20480 # We preserve .a as extension for shared libraries through AIX4.2
20481 # and later when we are not doing run time linking.
20482 library_names_spec='${libname}${release}.a $libname.a'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 fi
20485 shlibpath_var=LIBPATH
20486 fi
20487 ;;
20488
20489amigaos*)
20490 library_names_spec='$libname.ixlibrary $libname.a'
20491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492 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 +000020493 ;;
20494
20495beos*)
20496 library_names_spec='${libname}${shared_ext}'
20497 dynamic_linker="$host_os ld.so"
20498 shlibpath_var=LIBRARY_PATH
20499 ;;
20500
Reid Spencer2706f8c2004-09-19 23:53:36 +000020501bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020502 version_type=linux
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20510 # the default ld.so.conf also contains /usr/contrib/lib and
20511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20512 # libtool to hard-code these into programs
20513 ;;
20514
20515cygwin* | mingw* | pw32*)
20516 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020518 need_version=no
20519 need_lib_prefix=no
20520
20521 case $GCC,$host_os in
20522 yes,cygwin* | yes,mingw* | yes,pw32*)
20523 library_names_spec='$libname.dll.a'
20524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020525 postinstall_cmds='base_file=`basename \${file}`~
20526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20527 dldir=$destdir/`dirname \$dlpath`~
20528 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020529 $install_prog $dir/$dlname \$dldir/$dlname~
20530 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020533 $rm \$dlpath'
20534 shlibpath_overrides_runpath=yes
20535
20536 case $host_os in
20537 cygwin*)
20538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539 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 +000020540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020541 ;;
20542 mingw*)
20543 # MinGW DLLs use traditional 'lib' prefix
20544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20547 # It is most probably a Windows format PATH printed by
20548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20549 # path with ; separators, and with drive letters. We can handle the
20550 # drive letters (cygwin fileutils understands them), so leave them,
20551 # especially as we might pass files found there to a mingw objdump,
20552 # which wouldn't understand a cygwinified path. Ahh.
20553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20554 else
20555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20556 fi
20557 ;;
20558 pw32*)
20559 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020560 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 +000020561 ;;
20562 esac
20563 ;;
20564
20565 *)
20566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20567 ;;
20568 esac
20569 dynamic_linker='Win32 ld.exe'
20570 # FIXME: first we should search . and the directory the executable is in
20571 shlibpath_var=PATH
20572 ;;
20573
20574darwin* | rhapsody*)
20575 dynamic_linker="$host_os dyld"
20576 version_type=darwin
20577 need_lib_prefix=no
20578 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020579 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020580 soname_spec='${libname}${release}${major}$shared_ext'
20581 shlibpath_overrides_runpath=yes
20582 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020583 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020584 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585 if test "$GCC" = yes; then
20586 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"`
20587 else
20588 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020589 fi
20590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20591 ;;
20592
20593dgux*)
20594 version_type=linux
20595 need_lib_prefix=no
20596 need_version=no
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20598 soname_spec='${libname}${release}${shared_ext}$major'
20599 shlibpath_var=LD_LIBRARY_PATH
20600 ;;
20601
20602freebsd1*)
20603 dynamic_linker=no
20604 ;;
20605
Reid Spencer2706f8c2004-09-19 23:53:36 +000020606kfreebsd*-gnu)
20607 version_type=linux
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 shlibpath_overrides_runpath=no
20614 hardcode_into_libs=yes
20615 dynamic_linker='GNU ld.so'
20616 ;;
20617
Reid Spencera773bd52006-08-04 18:18:08 +000020618freebsd* | dragonfly*)
20619 # DragonFly does not have aout. When/if they implement a new
20620 # versioning mechanism, adjust this.
20621 if test -x /usr/bin/objformat; then
20622 objformat=`/usr/bin/objformat`
20623 else
20624 case $host_os in
20625 freebsd[123]*) objformat=aout ;;
20626 *) objformat=elf ;;
20627 esac
20628 fi
John Criswell47fdd832003-07-14 16:52:07 +000020629 version_type=freebsd-$objformat
20630 case $version_type in
20631 freebsd-elf*)
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20633 need_version=no
20634 need_lib_prefix=no
20635 ;;
20636 freebsd-*)
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20638 need_version=yes
20639 ;;
20640 esac
20641 shlibpath_var=LD_LIBRARY_PATH
20642 case $host_os in
20643 freebsd2*)
20644 shlibpath_overrides_runpath=yes
20645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020646 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020647 shlibpath_overrides_runpath=yes
20648 hardcode_into_libs=yes
20649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020652 shlibpath_overrides_runpath=no
20653 hardcode_into_libs=yes
20654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020655 freebsd*) # from 4.6 on
20656 shlibpath_overrides_runpath=yes
20657 hardcode_into_libs=yes
20658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020659 esac
20660 ;;
20661
20662gnu*)
20663 version_type=linux
20664 need_lib_prefix=no
20665 need_version=no
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 hardcode_into_libs=yes
20670 ;;
20671
20672hpux9* | hpux10* | hpux11*)
20673 # Give a soname corresponding to the major version so that dld.sl refuses to
20674 # link against other versions.
20675 version_type=sunos
20676 need_lib_prefix=no
20677 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020678 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020679 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020680 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020681 hardcode_into_libs=yes
20682 dynamic_linker="$host_os dld.so"
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 if test "X$HPUX_IA64_MODE" = X32; then
20688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20689 else
20690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20691 fi
20692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20693 ;;
20694 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020695 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020696 hardcode_into_libs=yes
20697 dynamic_linker="$host_os dld.sl"
20698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20704 ;;
20705 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020707 dynamic_linker="$host_os dld.sl"
20708 shlibpath_var=SHLIB_PATH
20709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 ;;
20713 esac
20714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20715 postinstall_cmds='chmod 555 $lib'
20716 ;;
20717
Reid Spencera773bd52006-08-04 18:18:08 +000020718interix3*)
20719 version_type=linux
20720 need_lib_prefix=no
20721 need_version=no
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath=no
20727 hardcode_into_libs=yes
20728 ;;
20729
John Criswell47fdd832003-07-14 16:52:07 +000020730irix5* | irix6* | nonstopux*)
20731 case $host_os in
20732 nonstopux*) version_type=nonstopux ;;
20733 *)
20734 if test "$lt_cv_prog_gnu_ld" = yes; then
20735 version_type=linux
20736 else
20737 version_type=irix
20738 fi ;;
20739 esac
20740 need_lib_prefix=no
20741 need_version=no
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20744 case $host_os in
20745 irix5* | nonstopux*)
20746 libsuff= shlibsuff=
20747 ;;
20748 *)
20749 case $LD in # libtool.m4 will add one of these switches to LD
20750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20751 libsuff= shlibsuff= libmagic=32-bit;;
20752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20753 libsuff=32 shlibsuff=N32 libmagic=N32;;
20754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20756 *) libsuff= shlibsuff= libmagic=never-match;;
20757 esac
20758 ;;
20759 esac
20760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20761 shlibpath_overrides_runpath=no
20762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20764 hardcode_into_libs=yes
20765 ;;
20766
20767# No shared lib support for Linux oldld, aout, or coff.
20768linux*oldld* | linux*aout* | linux*coff*)
20769 dynamic_linker=no
20770 ;;
20771
20772# This must be Linux ELF.
20773linux*)
20774 version_type=linux
20775 need_lib_prefix=no
20776 need_version=no
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=no
20782 # This implies no fast_install, which is unacceptable.
20783 # Some rework will be needed to allow for fast_install
20784 # before this can be enabled.
20785 hardcode_into_libs=yes
20786
Reid Spencer2706f8c2004-09-19 23:53:36 +000020787 # Append ld.so.conf contents to the search path
20788 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020789 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 +000020790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20791 fi
20792
John Criswell47fdd832003-07-14 16:52:07 +000020793 # We used to test for /lib/ld.so.1 and disable shared libraries on
20794 # powerpc, because MkLinux only supported shared libraries with the
20795 # GNU dynamic linker. Since this was broken with cross compilers,
20796 # most powerpc-linux boxes support dynamic linking these days and
20797 # people can always --disable-shared, the test was removed, and we
20798 # assume the GNU/Linux dynamic linker is in use.
20799 dynamic_linker='GNU/Linux ld.so'
20800 ;;
20801
Reid Spencer2706f8c2004-09-19 23:53:36 +000020802knetbsd*-gnu)
20803 version_type=linux
20804 need_lib_prefix=no
20805 need_version=no
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20811 dynamic_linker='GNU ld.so'
20812 ;;
20813
John Criswell47fdd832003-07-14 16:52:07 +000020814netbsd*)
20815 version_type=sunos
20816 need_lib_prefix=no
20817 need_version=no
20818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821 dynamic_linker='NetBSD (a.out) ld.so'
20822 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='NetBSD ld.elf_so'
20826 fi
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 hardcode_into_libs=yes
20830 ;;
20831
20832newsos6)
20833 version_type=linux
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20837 ;;
20838
Reid Spencer2706f8c2004-09-19 23:53:36 +000020839nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020840 version_type=linux
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=yes
20847 ;;
20848
20849openbsd*)
20850 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020851 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020852 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20854 case $host_os in
20855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856 *) need_version=no ;;
20857 esac
John Criswell47fdd832003-07-14 16:52:07 +000020858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862 case $host_os in
20863 openbsd2.[89] | openbsd2.[89].*)
20864 shlibpath_overrides_runpath=no
20865 ;;
20866 *)
20867 shlibpath_overrides_runpath=yes
20868 ;;
20869 esac
20870 else
20871 shlibpath_overrides_runpath=yes
20872 fi
20873 ;;
20874
20875os2*)
20876 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020877 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020878 need_lib_prefix=no
20879 library_names_spec='$libname${shared_ext} $libname.a'
20880 dynamic_linker='OS/2 ld.exe'
20881 shlibpath_var=LIBPATH
20882 ;;
20883
20884osf3* | osf4* | osf5*)
20885 version_type=osf
20886 need_lib_prefix=no
20887 need_version=no
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20893 ;;
20894
John Criswell47fdd832003-07-14 16:52:07 +000020895solaris*)
20896 version_type=linux
20897 need_lib_prefix=no
20898 need_version=no
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 soname_spec='${libname}${release}${shared_ext}$major'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath=yes
20903 hardcode_into_libs=yes
20904 # ldd complains unless libraries are executable
20905 postinstall_cmds='chmod +x $lib'
20906 ;;
20907
20908sunos4*)
20909 version_type=sunos
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 if test "$with_gnu_ld" = yes; then
20915 need_lib_prefix=no
20916 fi
20917 need_version=yes
20918 ;;
20919
Reid Spencera773bd52006-08-04 18:18:08 +000020920sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020921 version_type=linux
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923 soname_spec='${libname}${release}${shared_ext}$major'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 case $host_vendor in
20926 sni)
20927 shlibpath_overrides_runpath=no
20928 need_lib_prefix=no
20929 export_dynamic_flag_spec='${wl}-Blargedynsym'
20930 runpath_var=LD_RUN_PATH
20931 ;;
20932 siemens)
20933 need_lib_prefix=no
20934 ;;
20935 motorola)
20936 need_lib_prefix=no
20937 need_version=no
20938 shlibpath_overrides_runpath=no
20939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20940 ;;
20941 esac
20942 ;;
20943
20944sysv4*MP*)
20945 if test -d /usr/nec ;then
20946 version_type=linux
20947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948 soname_spec='$libname${shared_ext}.$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 fi
20951 ;;
20952
Reid Spencera773bd52006-08-04 18:18:08 +000020953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954 version_type=freebsd-elf
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 hardcode_into_libs=yes
20961 if test "$with_gnu_ld" = yes; then
20962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963 shlibpath_overrides_runpath=no
20964 else
20965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966 shlibpath_overrides_runpath=yes
20967 case $host_os in
20968 sco3.2v5*)
20969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20970 ;;
20971 esac
20972 fi
20973 sys_lib_dlsearch_path_spec='/usr/lib'
20974 ;;
20975
John Criswell47fdd832003-07-14 16:52:07 +000020976uts4*)
20977 version_type=linux
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 ;;
20982
20983*)
20984 dynamic_linker=no
20985 ;;
20986esac
Reid Spencera773bd52006-08-04 18:18:08 +000020987{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020989test "$dynamic_linker" = no && can_build_shared=no
20990
Reid Spencera773bd52006-08-04 18:18:08 +000020991variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20992if test "$GCC" = yes; then
20993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20994fi
20995
20996{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20997echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020998hardcode_action_CXX=
20999if test -n "$hardcode_libdir_flag_spec_CXX" || \
21000 test -n "$runpath_var_CXX" || \
21001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21002
21003 # We can hardcode non-existant directories.
21004 if test "$hardcode_direct_CXX" != no &&
21005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21006 # have to relink, otherwise we might link with an installed library
21007 # when we should be linking with a yet-to-be-installed one
21008 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21009 test "$hardcode_minus_L_CXX" != no; then
21010 # Linking always hardcodes the temporary library directory.
21011 hardcode_action_CXX=relink
21012 else
21013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21014 hardcode_action_CXX=immediate
21015 fi
21016else
21017 # We cannot hardcode anything, or else we can only hardcode existing
21018 # directories.
21019 hardcode_action_CXX=unsupported
21020fi
Reid Spencera773bd52006-08-04 18:18:08 +000021021{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21022echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021023
21024if test "$hardcode_action_CXX" = relink; then
21025 # Fast installation is not supported
21026 enable_fast_install=no
21027elif test "$shlibpath_overrides_runpath" = yes ||
21028 test "$enable_shared" = no; then
21029 # Fast installation is not necessary
21030 enable_fast_install=needless
21031fi
21032
John Criswell47fdd832003-07-14 16:52:07 +000021033
21034# The else clause should only fire when bootstrapping the
21035# libtool distribution, otherwise you forgot to ship ltmain.sh
21036# with your package, and you will get complaints that there are
21037# no rules to generate ltmain.sh.
21038if test -f "$ltmain"; then
21039 # See if we are running on zsh, and set the options which allow our commands through
21040 # without removal of \ escapes.
21041 if test -n "${ZSH_VERSION+set}" ; then
21042 setopt NO_GLOB_SUBST
21043 fi
21044 # Now quote all the things that may contain metacharacters while being
21045 # careful not to overquote the AC_SUBSTed values. We take copies of the
21046 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021047 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 +000021048 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051 deplibs_check_method reload_flag reload_cmds need_locks \
21052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053 lt_cv_sys_global_symbol_to_c_name_address \
21054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055 old_postinstall_cmds old_postuninstall_cmds \
21056 compiler_CXX \
21057 CC_CXX \
21058 LD_CXX \
21059 lt_prog_compiler_wl_CXX \
21060 lt_prog_compiler_pic_CXX \
21061 lt_prog_compiler_static_CXX \
21062 lt_prog_compiler_no_builtin_flag_CXX \
21063 export_dynamic_flag_spec_CXX \
21064 thread_safe_flag_spec_CXX \
21065 whole_archive_flag_spec_CXX \
21066 enable_shared_with_static_runtimes_CXX \
21067 old_archive_cmds_CXX \
21068 old_archive_from_new_cmds_CXX \
21069 predep_objects_CXX \
21070 postdep_objects_CXX \
21071 predeps_CXX \
21072 postdeps_CXX \
21073 compiler_lib_search_path_CXX \
21074 archive_cmds_CXX \
21075 archive_expsym_cmds_CXX \
21076 postinstall_cmds_CXX \
21077 postuninstall_cmds_CXX \
21078 old_archive_from_expsyms_cmds_CXX \
21079 allow_undefined_flag_CXX \
21080 no_undefined_flag_CXX \
21081 export_symbols_cmds_CXX \
21082 hardcode_libdir_flag_spec_CXX \
21083 hardcode_libdir_flag_spec_ld_CXX \
21084 hardcode_libdir_separator_CXX \
21085 hardcode_automatic_CXX \
21086 module_cmds_CXX \
21087 module_expsym_cmds_CXX \
21088 lt_cv_prog_compiler_c_o_CXX \
21089 exclude_expsyms_CXX \
21090 include_expsyms_CXX; do
21091
21092 case $var in
21093 old_archive_cmds_CXX | \
21094 old_archive_from_new_cmds_CXX | \
21095 archive_cmds_CXX | \
21096 archive_expsym_cmds_CXX | \
21097 module_cmds_CXX | \
21098 module_expsym_cmds_CXX | \
21099 old_archive_from_expsyms_cmds_CXX | \
21100 export_symbols_cmds_CXX | \
21101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102 postinstall_cmds | postuninstall_cmds | \
21103 old_postinstall_cmds | old_postuninstall_cmds | \
21104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021106 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 +000021107 ;;
21108 *)
21109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21110 ;;
21111 esac
21112 done
21113
21114 case $lt_echo in
21115 *'\$0 --fallback-echo"')
21116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21117 ;;
21118 esac
21119
21120cfgfile="$ofile"
21121
21122 cat <<__EOF__ >> "$cfgfile"
21123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21124
21125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21126
21127# Shell to use when invoking shell scripts.
21128SHELL=$lt_SHELL
21129
21130# Whether or not to build shared libraries.
21131build_libtool_libs=$enable_shared
21132
21133# Whether or not to build static libraries.
21134build_old_libs=$enable_static
21135
21136# Whether or not to add -lc for building shared libraries.
21137build_libtool_need_lc=$archive_cmds_need_lc_CXX
21138
21139# Whether or not to disallow shared libs when runtime libs are static
21140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21141
21142# Whether or not to optimize for fast installation.
21143fast_install=$enable_fast_install
21144
21145# The host system.
21146host_alias=$host_alias
21147host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021148host_os=$host_os
21149
21150# The build system.
21151build_alias=$build_alias
21152build=$build
21153build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021154
21155# An echo program that does not interpret backslashes.
21156echo=$lt_echo
21157
21158# The archiver.
21159AR=$lt_AR
21160AR_FLAGS=$lt_AR_FLAGS
21161
21162# A C compiler.
21163LTCC=$lt_LTCC
21164
Reid Spencera773bd52006-08-04 18:18:08 +000021165# LTCC compiler flags.
21166LTCFLAGS=$lt_LTCFLAGS
21167
John Criswell47fdd832003-07-14 16:52:07 +000021168# A language-specific compiler.
21169CC=$lt_compiler_CXX
21170
21171# Is the compiler the GNU C compiler?
21172with_gcc=$GCC_CXX
21173
21174# An ERE matcher.
21175EGREP=$lt_EGREP
21176
21177# The linker used to build libraries.
21178LD=$lt_LD_CXX
21179
21180# Whether we need hard or soft links.
21181LN_S=$lt_LN_S
21182
21183# A BSD-compatible nm program.
21184NM=$lt_NM
21185
21186# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021187STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021188
21189# Used to examine libraries when file_magic_cmd begins "file"
21190MAGIC_CMD=$MAGIC_CMD
21191
21192# Used on cygwin: DLL creation program.
21193DLLTOOL="$DLLTOOL"
21194
21195# Used on cygwin: object dumper.
21196OBJDUMP="$OBJDUMP"
21197
21198# Used on cygwin: assembler.
21199AS="$AS"
21200
21201# The name of the directory that contains temporary libtool files.
21202objdir=$objdir
21203
21204# How to create reloadable object files.
21205reload_flag=$lt_reload_flag
21206reload_cmds=$lt_reload_cmds
21207
21208# How to pass a linker flag through the compiler.
21209wl=$lt_lt_prog_compiler_wl_CXX
21210
21211# Object file suffix (normally "o").
21212objext="$ac_objext"
21213
21214# Old archive suffix (normally "a").
21215libext="$libext"
21216
21217# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021219
21220# Executable file suffix (normally "").
21221exeext="$exeext"
21222
21223# Additional compiler flags for building library objects.
21224pic_flag=$lt_lt_prog_compiler_pic_CXX
21225pic_mode=$pic_mode
21226
21227# What is the maximum length of a command?
21228max_cmd_len=$lt_cv_sys_max_cmd_len
21229
21230# Does compiler simultaneously support -c and -o options?
21231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21232
Reid Spencera773bd52006-08-04 18:18:08 +000021233# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021234need_locks=$lt_need_locks
21235
21236# Do we need the lib prefix for modules?
21237need_lib_prefix=$need_lib_prefix
21238
21239# Do we need a version for libraries?
21240need_version=$need_version
21241
21242# Whether dlopen is supported.
21243dlopen_support=$enable_dlopen
21244
21245# Whether dlopen of programs is supported.
21246dlopen_self=$enable_dlopen_self
21247
21248# Whether dlopen of statically linked programs is supported.
21249dlopen_self_static=$enable_dlopen_self_static
21250
21251# Compiler flag to prevent dynamic linking.
21252link_static_flag=$lt_lt_prog_compiler_static_CXX
21253
21254# Compiler flag to turn off builtin functions.
21255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21256
21257# Compiler flag to allow reflexive dlopens.
21258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21259
21260# Compiler flag to generate shared objects directly from archives.
21261whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21262
21263# Compiler flag to generate thread-safe objects.
21264thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21265
21266# Library versioning type.
21267version_type=$version_type
21268
21269# Format of library name prefix.
21270libname_spec=$lt_libname_spec
21271
21272# List of archive names. First name is the real one, the rest are links.
21273# The last name is the one that the linker finds with -lNAME.
21274library_names_spec=$lt_library_names_spec
21275
21276# The coded name of the library, if different from the real name.
21277soname_spec=$lt_soname_spec
21278
21279# Commands used to build and install an old-style archive.
21280RANLIB=$lt_RANLIB
21281old_archive_cmds=$lt_old_archive_cmds_CXX
21282old_postinstall_cmds=$lt_old_postinstall_cmds
21283old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284
21285# Create an old-style archive from a shared archive.
21286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21287
21288# Create a temporary old-style archive to link instead of a shared archive.
21289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21290
21291# Commands used to build and install a shared archive.
21292archive_cmds=$lt_archive_cmds_CXX
21293archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21294postinstall_cmds=$lt_postinstall_cmds
21295postuninstall_cmds=$lt_postuninstall_cmds
21296
21297# Commands used to build a loadable module (assumed same as above if empty)
21298module_cmds=$lt_module_cmds_CXX
21299module_expsym_cmds=$lt_module_expsym_cmds_CXX
21300
21301# Commands to strip libraries.
21302old_striplib=$lt_old_striplib
21303striplib=$lt_striplib
21304
21305# Dependencies to place before the objects being linked to create a
21306# shared library.
21307predep_objects=$lt_predep_objects_CXX
21308
21309# Dependencies to place after the objects being linked to create a
21310# shared library.
21311postdep_objects=$lt_postdep_objects_CXX
21312
21313# Dependencies to place before the objects being linked to create a
21314# shared library.
21315predeps=$lt_predeps_CXX
21316
21317# Dependencies to place after the objects being linked to create a
21318# shared library.
21319postdeps=$lt_postdeps_CXX
21320
21321# The library search path used internally by the compiler when linking
21322# a shared library.
21323compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21324
21325# Method to check whether dependent libraries are shared objects.
21326deplibs_check_method=$lt_deplibs_check_method
21327
21328# Command to use when deplibs_check_method == file_magic.
21329file_magic_cmd=$lt_file_magic_cmd
21330
21331# Flag that allows shared libraries with undefined symbols to be built.
21332allow_undefined_flag=$lt_allow_undefined_flag_CXX
21333
21334# Flag that forces no undefined symbols.
21335no_undefined_flag=$lt_no_undefined_flag_CXX
21336
21337# Commands used to finish a libtool library installation in a directory.
21338finish_cmds=$lt_finish_cmds
21339
21340# Same as above, but a single script fragment to be evaled but not shown.
21341finish_eval=$lt_finish_eval
21342
21343# Take the output of nm and produce a listing of raw symbols and C names.
21344global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21345
21346# Transform the output of nm in a proper C declaration
21347global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21348
21349# Transform the output of nm in a C name address pair
21350global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21351
21352# This is the shared library runtime path variable.
21353runpath_var=$runpath_var
21354
21355# This is the shared library path variable.
21356shlibpath_var=$shlibpath_var
21357
21358# Is shlibpath searched before the hard-coded library search path?
21359shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21360
21361# How to hardcode a shared library path into an executable.
21362hardcode_action=$hardcode_action_CXX
21363
21364# Whether we should hardcode library paths into libraries.
21365hardcode_into_libs=$hardcode_into_libs
21366
21367# Flag to hardcode \$libdir into a binary during linking.
21368# This must work even if \$libdir does not exist.
21369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21370
21371# If ld is used when linking, flag to hardcode \$libdir into
21372# a binary during linking. This must work even if \$libdir does
21373# not exist.
21374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21375
21376# Whether we need a single -rpath flag with a separated argument.
21377hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21378
21379# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21380# resulting binary.
21381hardcode_direct=$hardcode_direct_CXX
21382
21383# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21384# resulting binary.
21385hardcode_minus_L=$hardcode_minus_L_CXX
21386
21387# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21388# the resulting binary.
21389hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21390
21391# Set to yes if building a shared library automatically hardcodes DIR into the library
21392# and all subsequent libraries and executables linked against it.
21393hardcode_automatic=$hardcode_automatic_CXX
21394
21395# Variables whose values should be saved in libtool wrapper scripts and
21396# restored at relink time.
21397variables_saved_for_relink="$variables_saved_for_relink"
21398
21399# Whether libtool must link a program against all its dependency libraries.
21400link_all_deplibs=$link_all_deplibs_CXX
21401
21402# Compile-time system search path for libraries
21403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21404
21405# Run-time system search path for libraries
21406sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21407
21408# Fix the shell variable \$srcfile for the compiler.
21409fix_srcfile_path="$fix_srcfile_path_CXX"
21410
21411# Set to yes if exported symbols are required.
21412always_export_symbols=$always_export_symbols_CXX
21413
21414# The commands to list exported symbols.
21415export_symbols_cmds=$lt_export_symbols_cmds_CXX
21416
21417# The commands to extract the exported symbol list from a shared archive.
21418extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419
21420# Symbols that should not be listed in the preloaded symbols.
21421exclude_expsyms=$lt_exclude_expsyms_CXX
21422
21423# Symbols that must always be exported.
21424include_expsyms=$lt_include_expsyms_CXX
21425
21426# ### END LIBTOOL TAG CONFIG: $tagname
21427
21428__EOF__
21429
21430
21431else
21432 # If there is no Makefile yet, we rely on a make rule to execute
21433 # `config.status --recheck' to rerun these tests and create the
21434 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21436 if test -f "$ltmain_in"; then
21437 test -f Makefile && make "$ltmain"
21438 fi
John Criswell47fdd832003-07-14 16:52:07 +000021439fi
21440
21441
21442ac_ext=c
21443ac_cpp='$CPP $CPPFLAGS'
21444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447
21448CC=$lt_save_CC
21449LDCXX=$LD
21450LD=$lt_save_LD
21451GCC=$lt_save_GCC
21452with_gnu_ldcxx=$with_gnu_ld
21453with_gnu_ld=$lt_save_with_gnu_ld
21454lt_cv_path_LDCXX=$lt_cv_path_LD
21455lt_cv_path_LD=$lt_save_path_LD
21456lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21457lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21458
21459 else
21460 tagname=""
21461 fi
21462 ;;
21463
21464 F77)
21465 if test -n "$F77" && test "X$F77" != "Xno"; then
21466
21467ac_ext=f
21468ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21469ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21471
21472
21473archive_cmds_need_lc_F77=no
21474allow_undefined_flag_F77=
21475always_export_symbols_F77=no
21476archive_expsym_cmds_F77=
21477export_dynamic_flag_spec_F77=
21478hardcode_direct_F77=no
21479hardcode_libdir_flag_spec_F77=
21480hardcode_libdir_flag_spec_ld_F77=
21481hardcode_libdir_separator_F77=
21482hardcode_minus_L_F77=no
21483hardcode_automatic_F77=no
21484module_cmds_F77=
21485module_expsym_cmds_F77=
21486link_all_deplibs_F77=unknown
21487old_archive_cmds_F77=$old_archive_cmds
21488no_undefined_flag_F77=
21489whole_archive_flag_spec_F77=
21490enable_shared_with_static_runtimes_F77=no
21491
21492# Source file extension for f77 test sources.
21493ac_ext=f
21494
21495# Object file extension for compiled f77 test sources.
21496objext=o
21497objext_F77=$objext
21498
21499# Code to be used in simple compile tests
21500lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21501
21502# Code to be used in simple link tests
21503lt_simple_link_test_code=" program t\n end\n"
21504
21505# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21506
21507# If no C compiler was specified, use CC.
21508LTCC=${LTCC-"$CC"}
21509
Reid Spencera773bd52006-08-04 18:18:08 +000021510# If no C compiler flags were specified, use CFLAGS.
21511LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21512
John Criswell47fdd832003-07-14 16:52:07 +000021513# Allow CC to be a program name with arguments.
21514compiler=$CC
21515
21516
Reid Spencera773bd52006-08-04 18:18:08 +000021517# save warnings/boilerplate of simple test code
21518ac_outfile=conftest.$ac_objext
21519printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521_lt_compiler_boilerplate=`cat conftest.err`
21522$rm conftest*
21523
21524ac_outfile=conftest.$ac_objext
21525printf "$lt_simple_link_test_code" >conftest.$ac_ext
21526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21527_lt_linker_boilerplate=`cat conftest.err`
21528$rm conftest*
21529
21530
John Criswell47fdd832003-07-14 16:52:07 +000021531# Allow CC to be a program name with arguments.
21532lt_save_CC="$CC"
21533CC=${F77-"f77"}
21534compiler=$CC
21535compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021536for cc_temp in $compiler""; do
21537 case $cc_temp in
21538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21540 \-*) ;;
21541 *) break;;
21542 esac
21543done
21544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021545
John Criswell47fdd832003-07-14 16:52:07 +000021546
Reid Spencera773bd52006-08-04 18:18:08 +000021547{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21548echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21549{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21550echo "${ECHO_T}$can_build_shared" >&6; }
21551
21552{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21553echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021554test "$can_build_shared" = "no" && enable_shared=no
21555
21556# On AIX, shared libraries and static libraries use the same namespace, and
21557# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021558case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021559aix3*)
21560 test "$enable_shared" = yes && enable_static=no
21561 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021563 postinstall_cmds='$RANLIB $lib'
21564 fi
21565 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021566aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21568 test "$enable_shared" = yes && enable_static=no
21569 fi
John Criswell47fdd832003-07-14 16:52:07 +000021570 ;;
21571esac
Reid Spencera773bd52006-08-04 18:18:08 +000021572{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21573echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021574
Reid Spencera773bd52006-08-04 18:18:08 +000021575{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21576echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021577# Make sure either enable_shared or enable_static is yes.
21578test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021579{ echo "$as_me:$LINENO: result: $enable_static" >&5
21580echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021581
21582GCC_F77="$G77"
21583LD_F77="$LD"
21584
21585lt_prog_compiler_wl_F77=
21586lt_prog_compiler_pic_F77=
21587lt_prog_compiler_static_F77=
21588
Reid Spencera773bd52006-08-04 18:18:08 +000021589{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021591
21592 if test "$GCC" = yes; then
21593 lt_prog_compiler_wl_F77='-Wl,'
21594 lt_prog_compiler_static_F77='-static'
21595
21596 case $host_os in
21597 aix*)
21598 # All AIX code is PIC.
21599 if test "$host_cpu" = ia64; then
21600 # AIX 5 now supports IA64 processor
21601 lt_prog_compiler_static_F77='-Bstatic'
21602 fi
21603 ;;
21604
21605 amigaos*)
21606 # FIXME: we need at least 68020 code to build shared libraries, but
21607 # adding the `-m68020' flag to GCC prevents building anything better,
21608 # like `-m68040'.
21609 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21610 ;;
21611
21612 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21613 # PIC is the default for these OSes.
21614 ;;
21615
21616 mingw* | pw32* | os2*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21620 ;;
21621
21622 darwin* | rhapsody*)
21623 # PIC is the default on this platform
21624 # Common symbols not allowed in MH_DYLIB files
21625 lt_prog_compiler_pic_F77='-fno-common'
21626 ;;
21627
Reid Spencera773bd52006-08-04 18:18:08 +000021628 interix3*)
21629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21630 # Instead, we relocate shared libraries at runtime.
21631 ;;
21632
John Criswell47fdd832003-07-14 16:52:07 +000021633 msdosdjgpp*)
21634 # Just because we use GCC doesn't mean we suddenly get shared libraries
21635 # on systems that don't support them.
21636 lt_prog_compiler_can_build_shared_F77=no
21637 enable_shared=no
21638 ;;
21639
21640 sysv4*MP*)
21641 if test -d /usr/nec; then
21642 lt_prog_compiler_pic_F77=-Kconform_pic
21643 fi
21644 ;;
21645
21646 hpux*)
21647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21648 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021649 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021650 hppa*64*|ia64*)
21651 # +Z the default
21652 ;;
21653 *)
21654 lt_prog_compiler_pic_F77='-fPIC'
21655 ;;
21656 esac
21657 ;;
21658
21659 *)
21660 lt_prog_compiler_pic_F77='-fPIC'
21661 ;;
21662 esac
21663 else
21664 # PORTME Check for flag to pass linker flags through the system compiler.
21665 case $host_os in
21666 aix*)
21667 lt_prog_compiler_wl_F77='-Wl,'
21668 if test "$host_cpu" = ia64; then
21669 # AIX 5 now supports IA64 processor
21670 lt_prog_compiler_static_F77='-Bstatic'
21671 else
21672 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21673 fi
21674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021675 darwin*)
21676 # PIC is the default on this platform
21677 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021678 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021679 xlc*)
21680 lt_prog_compiler_pic_F77='-qnocommon'
21681 lt_prog_compiler_wl_F77='-Wl,'
21682 ;;
21683 esac
21684 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021685
21686 mingw* | pw32* | os2*)
21687 # This hack is so that the source file can tell whether it is being
21688 # built for inclusion in a dll (and should export symbols for example).
21689 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21690 ;;
21691
21692 hpux9* | hpux10* | hpux11*)
21693 lt_prog_compiler_wl_F77='-Wl,'
21694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21695 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021696 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021697 hppa*64*|ia64*)
21698 # +Z the default
21699 ;;
21700 *)
21701 lt_prog_compiler_pic_F77='+Z'
21702 ;;
21703 esac
21704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21705 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21706 ;;
21707
21708 irix5* | irix6* | nonstopux*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC (with -KPIC) is the default.
21711 lt_prog_compiler_static_F77='-non_shared'
21712 ;;
21713
21714 newsos6)
21715 lt_prog_compiler_pic_F77='-KPIC'
21716 lt_prog_compiler_static_F77='-Bstatic'
21717 ;;
21718
21719 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021720 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021721 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021722 lt_prog_compiler_wl_F77='-Wl,'
21723 lt_prog_compiler_pic_F77='-KPIC'
21724 lt_prog_compiler_static_F77='-static'
21725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021726 pgcc* | pgf77* | pgf90* | pgf95*)
21727 # Portland Group compilers (*not* the Pentium gcc compiler,
21728 # which looks to be a dead project)
21729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-fpic'
21731 lt_prog_compiler_static_F77='-Bstatic'
21732 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021734 lt_prog_compiler_wl_F77='-Wl,'
21735 # All Alpha code is PIC.
21736 lt_prog_compiler_static_F77='-non_shared'
21737 ;;
21738 esac
21739 ;;
21740
21741 osf3* | osf4* | osf5*)
21742 lt_prog_compiler_wl_F77='-Wl,'
21743 # All OSF/1 code is PIC.
21744 lt_prog_compiler_static_F77='-non_shared'
21745 ;;
21746
John Criswell47fdd832003-07-14 16:52:07 +000021747 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021750 case $cc_basename in
21751 f77* | f90* | f95*)
21752 lt_prog_compiler_wl_F77='-Qoption ld ';;
21753 *)
21754 lt_prog_compiler_wl_F77='-Wl,';;
21755 esac
John Criswell47fdd832003-07-14 16:52:07 +000021756 ;;
21757
21758 sunos4*)
21759 lt_prog_compiler_wl_F77='-Qoption ld '
21760 lt_prog_compiler_pic_F77='-PIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21762 ;;
21763
Reid Spencera773bd52006-08-04 18:18:08 +000021764 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021765 lt_prog_compiler_wl_F77='-Wl,'
21766 lt_prog_compiler_pic_F77='-KPIC'
21767 lt_prog_compiler_static_F77='-Bstatic'
21768 ;;
21769
21770 sysv4*MP*)
21771 if test -d /usr/nec ;then
21772 lt_prog_compiler_pic_F77='-Kconform_pic'
21773 lt_prog_compiler_static_F77='-Bstatic'
21774 fi
21775 ;;
21776
Reid Spencera773bd52006-08-04 18:18:08 +000021777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_pic_F77='-KPIC'
21780 lt_prog_compiler_static_F77='-Bstatic'
21781 ;;
21782
21783 unicos*)
21784 lt_prog_compiler_wl_F77='-Wl,'
21785 lt_prog_compiler_can_build_shared_F77=no
21786 ;;
21787
John Criswell47fdd832003-07-14 16:52:07 +000021788 uts4*)
21789 lt_prog_compiler_pic_F77='-pic'
21790 lt_prog_compiler_static_F77='-Bstatic'
21791 ;;
21792
21793 *)
21794 lt_prog_compiler_can_build_shared_F77=no
21795 ;;
21796 esac
21797 fi
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21800echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021801
21802#
21803# Check to make sure the PIC flag actually works.
21804#
21805if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806
Reid Spencera773bd52006-08-04 18:18:08 +000021807{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21808echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021809if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 lt_prog_compiler_pic_works_F77=no
21813 ac_outfile=conftest.$ac_objext
21814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 # The option is referenced via a variable to avoid confusing sed.
21821 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21824 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000021825 (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021826 (eval "$lt_compile" 2>conftest.err)
21827 ac_status=$?
21828 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000021829 echo "$as_me:21829: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021830 if (exit $ac_status) && test -s "$ac_outfile"; then
21831 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021832 # So say no if there are warnings other than the usual output.
21833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021836 lt_prog_compiler_pic_works_F77=yes
21837 fi
21838 fi
21839 $rm conftest*
21840
21841fi
Reid Spencera773bd52006-08-04 18:18:08 +000021842{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21843echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021844
21845if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21846 case $lt_prog_compiler_pic_F77 in
21847 "" | " "*) ;;
21848 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21849 esac
21850else
21851 lt_prog_compiler_pic_F77=
21852 lt_prog_compiler_can_build_shared_F77=no
21853fi
21854
21855fi
Reid Spencera773bd52006-08-04 18:18:08 +000021856case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021857 # For platforms which do not support PIC, -DPIC is meaningless:
21858 *djgpp*)
21859 lt_prog_compiler_pic_F77=
21860 ;;
21861 *)
21862 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21863 ;;
21864esac
21865
Reid Spencera773bd52006-08-04 18:18:08 +000021866#
21867# Check to make sure the static flag actually works.
21868#
21869wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21870{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21871echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21872if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874else
21875 lt_prog_compiler_static_works_F77=no
21876 save_LDFLAGS="$LDFLAGS"
21877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21878 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21880 # The linker can only warn and ignore the option if not recognized
21881 # So say no if there are warnings
21882 if test -s conftest.err; then
21883 # Append any errors to the config.log.
21884 cat conftest.err 1>&5
21885 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21887 if diff conftest.exp conftest.er2 >/dev/null; then
21888 lt_prog_compiler_static_works_F77=yes
21889 fi
21890 else
21891 lt_prog_compiler_static_works_F77=yes
21892 fi
21893 fi
21894 $rm conftest*
21895 LDFLAGS="$save_LDFLAGS"
21896
21897fi
21898{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21899echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21900
21901if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21902 :
21903else
21904 lt_prog_compiler_static_F77=
21905fi
21906
21907
21908{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021910if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912else
21913 lt_cv_prog_compiler_c_o_F77=no
21914 $rm -r conftest 2>/dev/null
21915 mkdir conftest
21916 cd conftest
21917 mkdir out
21918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21919
John Criswell47fdd832003-07-14 16:52:07 +000021920 lt_compiler_flag="-o out/conftest2.$ac_objext"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21928 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000021929 (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021930 (eval "$lt_compile" 2>out/conftest.err)
21931 ac_status=$?
21932 cat out/conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000021933 echo "$as_me:21933: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21935 then
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021941 lt_cv_prog_compiler_c_o_F77=yes
21942 fi
21943 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021944 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021945 $rm conftest*
21946 # SGI C++ compiler will create directory out/ii_files/ for
21947 # template instantiation
21948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21949 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021950 cd ..
21951 rmdir conftest
21952 $rm conftest*
21953
21954fi
Reid Spencera773bd52006-08-04 18:18:08 +000021955{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21956echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021957
21958
21959hard_links="nottested"
21960if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21961 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021962 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21963echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021964 hard_links=yes
21965 $rm conftest*
21966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21967 touch conftest.a
21968 ln conftest.a conftest.b 2>&5 || hard_links=no
21969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021970 { echo "$as_me:$LINENO: result: $hard_links" >&5
21971echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021972 if test "$hard_links" = no; then
21973 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21974echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21975 need_locks=warn
21976 fi
21977else
21978 need_locks=no
21979fi
21980
Reid Spencera773bd52006-08-04 18:18:08 +000021981{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21982echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021983
21984 runpath_var=
21985 allow_undefined_flag_F77=
21986 enable_shared_with_static_runtimes_F77=no
21987 archive_cmds_F77=
21988 archive_expsym_cmds_F77=
21989 old_archive_From_new_cmds_F77=
21990 old_archive_from_expsyms_cmds_F77=
21991 export_dynamic_flag_spec_F77=
21992 whole_archive_flag_spec_F77=
21993 thread_safe_flag_spec_F77=
21994 hardcode_libdir_flag_spec_F77=
21995 hardcode_libdir_flag_spec_ld_F77=
21996 hardcode_libdir_separator_F77=
21997 hardcode_direct_F77=no
21998 hardcode_minus_L_F77=no
21999 hardcode_shlibpath_var_F77=unsupported
22000 link_all_deplibs_F77=unknown
22001 hardcode_automatic_F77=no
22002 module_cmds_F77=
22003 module_expsym_cmds_F77=
22004 always_export_symbols_F77=no
22005 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22006 # include_expsyms should be a list of space-separated symbols to be *always*
22007 # included in the symbol list
22008 include_expsyms_F77=
22009 # exclude_expsyms can be an extended regexp of symbols to exclude
22010 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22011 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22012 # as well as any symbol that contains `d'.
22013 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22014 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22015 # platforms (ab)use it in PIC code, but their linkers get confused if
22016 # the symbol is explicitly referenced. Since portable code cannot
22017 # rely on this symbol name, it's probably fine to never include it in
22018 # preloaded symbol tables.
22019 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022020 # Just being paranoid about ensuring that cc_basename is set.
22021 for cc_temp in $compiler""; do
22022 case $cc_temp in
22023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22025 \-*) ;;
22026 *) break;;
22027 esac
22028done
22029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022030
22031 case $host_os in
22032 cygwin* | mingw* | pw32*)
22033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 if test "$GCC" != yes; then
22037 with_gnu_ld=no
22038 fi
22039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022040 interix*)
22041 # we just hope/assume this is gcc and not c89 (= MSVC++)
22042 with_gnu_ld=yes
22043 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022044 openbsd*)
22045 with_gnu_ld=no
22046 ;;
22047 esac
22048
22049 ld_shlibs_F77=yes
22050 if test "$with_gnu_ld" = yes; then
22051 # If archive_cmds runs LD, not CC, wlarc should be empty
22052 wlarc='${wl}'
22053
Reid Spencera773bd52006-08-04 18:18:08 +000022054 # Set some defaults for GNU ld with shared library support. These
22055 # are reset later if shared libraries are not supported. Putting them
22056 # here allows them to be overridden if necessary.
22057 runpath_var=LD_RUN_PATH
22058 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22059 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22060 # ancient GNU ld didn't support --whole-archive et. al.
22061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22062 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22063 else
22064 whole_archive_flag_spec_F77=
22065 fi
22066 supports_anon_versioning=no
22067 case `$LD -v 2>/dev/null` in
22068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22071 *\ 2.11.*) ;; # other 2.11 versions
22072 *) supports_anon_versioning=yes ;;
22073 esac
22074
John Criswell47fdd832003-07-14 16:52:07 +000022075 # See if GNU ld supports shared libraries.
22076 case $host_os in
22077 aix3* | aix4* | aix5*)
22078 # On AIX/PPC, the GNU linker is very broken
22079 if test "$host_cpu" != ia64; then
22080 ld_shlibs_F77=no
22081 cat <<EOF 1>&2
22082
22083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22084*** to be unable to reliably create shared libraries on AIX.
22085*** Therefore, libtool is disabling shared libraries support. If you
22086*** really care for shared libraries, you may want to modify your PATH
22087*** so that a non-GNU linker is found, and then restart.
22088
22089EOF
22090 fi
22091 ;;
22092
22093 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022094 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 +000022095 hardcode_libdir_flag_spec_F77='-L$libdir'
22096 hardcode_minus_L_F77=yes
22097
22098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22099 # that the semantics of dynamic libraries on AmigaOS, at least up
22100 # to version 4, is to share data among multiple programs linked
22101 # with the same dynamic library. Since this doesn't match the
22102 # behavior of shared libraries on other platforms, we can't use
22103 # them.
22104 ld_shlibs_F77=no
22105 ;;
22106
22107 beos*)
22108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109 allow_undefined_flag_F77=unsupported
22110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22111 # support --undefined. This deserves some investigation. FIXME
22112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22113 else
22114 ld_shlibs_F77=no
22115 fi
22116 ;;
22117
22118 cygwin* | mingw* | pw32*)
22119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22120 # as there is no search path for DLLs.
22121 hardcode_libdir_flag_spec_F77='-L$libdir'
22122 allow_undefined_flag_F77=unsupported
22123 always_export_symbols_F77=no
22124 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022125 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 +000022126
22127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022128 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 +000022129 # If the export-symbols file already is a .def file (1st line
22130 # is EXPORTS), use it as is; otherwise, prepend...
22131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22132 cp $export_symbols $output_objdir/$soname.def;
22133 else
22134 echo EXPORTS > $output_objdir/$soname.def;
22135 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022136 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022137 $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 +000022138 else
Reid Spencera773bd52006-08-04 18:18:08 +000022139 ld_shlibs_F77=no
22140 fi
22141 ;;
22142
22143 interix3*)
22144 hardcode_direct_F77=no
22145 hardcode_shlibpath_var_F77=no
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147 export_dynamic_flag_spec_F77='${wl}-E'
22148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22149 # Instead, shared libraries are loaded at an image base (0x10000000 by
22150 # default) and relocated if they conflict, which is a slow very memory
22151 # consuming and fragmenting process. To avoid this, we pick a random,
22152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22154 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'
22155 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'
22156 ;;
22157
22158 linux*)
22159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22160 tmp_addflag=
22161 case $cc_basename,$host_cpu in
22162 pgcc*) # Portland Group C compiler
22163 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'
22164 tmp_addflag=' $pic_flag'
22165 ;;
22166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22167 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'
22168 tmp_addflag=' $pic_flag -Mnomain' ;;
22169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22170 tmp_addflag=' -i_dynamic' ;;
22171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22172 tmp_addflag=' -i_dynamic -nofor_main' ;;
22173 ifc* | ifort*) # Intel Fortran compiler
22174 tmp_addflag=' -nofor_main' ;;
22175 esac
22176 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177
22178 if test $supports_anon_versioning = yes; then
22179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22181 $echo "local: *; };" >> $output_objdir/$libname.ver~
22182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22183 fi
22184 else
22185 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022186 fi
22187 ;;
22188
22189 netbsd*)
22190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22192 wlarc=
22193 else
22194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22196 fi
22197 ;;
22198
Reid Spencera773bd52006-08-04 18:18:08 +000022199 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22201 ld_shlibs_F77=no
22202 cat <<EOF 1>&2
22203
22204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22205*** create shared libraries on Solaris systems. Therefore, libtool
22206*** is disabling shared libraries support. We urge you to upgrade GNU
22207*** binutils to release 2.9.1 or newer. Another option is to modify
22208*** your PATH or compiler configuration so that the native linker is
22209*** used, and then restart.
22210
22211EOF
22212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22215 else
22216 ld_shlibs_F77=no
22217 fi
22218 ;;
22219
Reid Spencera773bd52006-08-04 18:18:08 +000022220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22221 case `$LD -v 2>&1` in
22222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22223 ld_shlibs_F77=no
22224 cat <<_LT_EOF 1>&2
22225
22226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22227*** reliably create shared libraries on SCO systems. Therefore, libtool
22228*** is disabling shared libraries support. We urge you to upgrade GNU
22229*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22230*** your PATH or compiler configuration so that the native linker is
22231*** used, and then restart.
22232
22233_LT_EOF
22234 ;;
22235 *)
22236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22237 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22240 else
22241 ld_shlibs_F77=no
22242 fi
22243 ;;
22244 esac
22245 ;;
22246
John Criswell47fdd832003-07-14 16:52:07 +000022247 sunos4*)
22248 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22249 wlarc=
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22252 ;;
22253
22254 *)
22255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22258 else
22259 ld_shlibs_F77=no
22260 fi
22261 ;;
22262 esac
22263
Reid Spencera773bd52006-08-04 18:18:08 +000022264 if test "$ld_shlibs_F77" = no; then
22265 runpath_var=
22266 hardcode_libdir_flag_spec_F77=
22267 export_dynamic_flag_spec_F77=
22268 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022269 fi
22270 else
22271 # PORTME fill in a description of your system's linker (not GNU ld)
22272 case $host_os in
22273 aix3*)
22274 allow_undefined_flag_F77=unsupported
22275 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022276 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 +000022277 # Note: this linker hardcodes the directories in LIBPATH if there
22278 # are no directories specified by -L.
22279 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022281 # Neither direct hardcoding nor static linking is supported with a
22282 # broken collect2.
22283 hardcode_direct_F77=unsupported
22284 fi
22285 ;;
22286
22287 aix4* | aix5*)
22288 if test "$host_cpu" = ia64; then
22289 # On IA64, the linker does run time linking by default, so we don't
22290 # have to do anything special.
22291 aix_use_runtimelinking=no
22292 exp_sym_flag='-Bexport'
22293 no_entry_flag=""
22294 else
22295 # If we're using GNU nm, then we don't want the "-C" option.
22296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22298 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'
22299 else
22300 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'
22301 fi
22302 aix_use_runtimelinking=no
22303
22304 # Test if we are trying to use run time linking or normal
22305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22306 # need to do runtime linking.
22307 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22308 for ld_flag in $LDFLAGS; do
22309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22310 aix_use_runtimelinking=yes
22311 break
22312 fi
22313 done
Reid Spencera773bd52006-08-04 18:18:08 +000022314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022315 esac
22316
22317 exp_sym_flag='-bexport'
22318 no_entry_flag='-bnoentry'
22319 fi
22320
22321 # When large executables or shared objects are built, AIX ld can
22322 # have problems creating the table of contents. If linking a library
22323 # or program results in "error TOC overflow" add -mminimal-toc to
22324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22326
22327 archive_cmds_F77=''
22328 hardcode_direct_F77=yes
22329 hardcode_libdir_separator_F77=':'
22330 link_all_deplibs_F77=yes
22331
22332 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022333 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022334 # We only want to do this on AIX 4.2 and lower, the check
22335 # below for broken collect2 doesn't work under 4.3+
22336 collect2name=`${CC} -print-prog-name=collect2`
22337 if test -f "$collect2name" && \
22338 strings "$collect2name" | grep resolve_lib_name >/dev/null
22339 then
22340 # We have reworked collect2
22341 hardcode_direct_F77=yes
22342 else
22343 # We have old collect2
22344 hardcode_direct_F77=unsupported
22345 # It fails to find uninstalled libraries when the uninstalled
22346 # path is not listed in the libpath. Setting hardcode_minus_L
22347 # to unsupported forces relinking
22348 hardcode_minus_L_F77=yes
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_libdir_separator_F77=
22351 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022352 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022353 esac
22354 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022355 if test "$aix_use_runtimelinking" = yes; then
22356 shared_flag="$shared_flag "'${wl}-G'
22357 fi
John Criswell47fdd832003-07-14 16:52:07 +000022358 else
22359 # not using gcc
22360 if test "$host_cpu" = ia64; then
22361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22362 # chokes on -Wl,-G. The following line is correct:
22363 shared_flag='-G'
22364 else
Reid Spencera773bd52006-08-04 18:18:08 +000022365 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022366 shared_flag='${wl}-G'
22367 else
22368 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022369 fi
John Criswell47fdd832003-07-14 16:52:07 +000022370 fi
22371 fi
22372
22373 # It seems that -bexpall does not export symbols beginning with
22374 # underscore (_), so it is better to generate a list of symbols to export.
22375 always_export_symbols_F77=yes
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # Warning - without using the other runtime loading flags (-brtl),
22378 # -berok will link without error, but may produce a broken library.
22379 allow_undefined_flag_F77='-berok'
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22382 program main
22383
22384 end
22385_ACEOF
22386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022387if { (ac_try="$ac_link"
22388case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022420
22421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22422}'`
22423# Check for a 64-bit object if we didn't find anything.
22424if 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; }
22425}'`; fi
22426else
22427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022428sed 's/^/| /' conftest.$ac_ext >&5
22429
Reid Spencera773bd52006-08-04 18:18:08 +000022430
John Criswell47fdd832003-07-14 16:52:07 +000022431fi
Reid Spencera773bd52006-08-04 18:18:08 +000022432
Bill Wendlingebcceee2009-04-18 11:20:33 +000022433rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022434 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022438 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 +000022439 else
22440 if test "$host_cpu" = ia64; then
22441 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22442 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022443 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 +000022444 else
22445 # Determine the default libpath from the value encoded in an empty executable.
22446 cat >conftest.$ac_ext <<_ACEOF
22447 program main
22448
22449 end
22450_ACEOF
22451rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022452if { (ac_try="$ac_link"
22453case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456esac
22457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469esac
22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22479esac
22480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_try") 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022485
22486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22487}'`
22488# Check for a 64-bit object if we didn't find anything.
22489if 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; }
22490}'`; fi
22491else
22492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022493sed 's/^/| /' conftest.$ac_ext >&5
22494
Reid Spencera773bd52006-08-04 18:18:08 +000022495
John Criswell47fdd832003-07-14 16:52:07 +000022496fi
Reid Spencera773bd52006-08-04 18:18:08 +000022497
Bill Wendlingebcceee2009-04-18 11:20:33 +000022498rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22501
22502 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22503 # Warning - without using the other run time loading flags,
22504 # -berok will link without error, but may produce a broken library.
22505 no_undefined_flag_F77=' ${wl}-bernotok'
22506 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022507 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022508 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022509 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022510 # This is similar to how AIX traditionally builds its shared libraries.
22511 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 +000022512 fi
22513 fi
22514 ;;
22515
22516 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022517 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 +000022518 hardcode_libdir_flag_spec_F77='-L$libdir'
22519 hardcode_minus_L_F77=yes
22520 # see comment about different semantics on the GNU ld section
22521 ld_shlibs_F77=no
22522 ;;
22523
Reid Spencer2706f8c2004-09-19 23:53:36 +000022524 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022525 export_dynamic_flag_spec_F77=-rdynamic
22526 ;;
22527
22528 cygwin* | mingw* | pw32*)
22529 # When not using gcc, we currently assume that we are using
22530 # Microsoft Visual C++.
22531 # hardcode_libdir_flag_spec is actually meaningless, as there is
22532 # no search path for DLLs.
22533 hardcode_libdir_flag_spec_F77=' '
22534 allow_undefined_flag_F77=unsupported
22535 # Tell ltmain to make .lib files, not .a files.
22536 libext=lib
22537 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022539 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022540 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 +000022541 # The linker will automatically build a .lib file if we build a DLL.
22542 old_archive_From_new_cmds_F77='true'
22543 # FIXME: Should let the user specify the lib program.
22544 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022545 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022546 enable_shared_with_static_runtimes_F77=yes
22547 ;;
22548
22549 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022550 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 rhapsody* | darwin1.[012])
22552 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22553 ;;
22554 *) # Darwin 1.3 on
22555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22556 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22557 else
22558 case ${MACOSX_DEPLOYMENT_TARGET} in
22559 10.[012])
22560 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22561 ;;
22562 10.*)
22563 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22564 ;;
22565 esac
22566 fi
22567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022568 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022570 hardcode_direct_F77=no
22571 hardcode_automatic_F77=yes
22572 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022573 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022574 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022575 if test "$GCC" = yes ; then
22576 output_verbose_link_cmd='echo'
22577 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22578 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022579 # 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 +000022580 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}'
22581 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 +000022582 else
Reid Spencera773bd52006-08-04 18:18:08 +000022583 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584 xlc*)
22585 output_verbose_link_cmd='echo'
22586 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022588 # 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 +000022589 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}'
22590 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 +000022591 ;;
22592 *)
22593 ld_shlibs_F77=no
22594 ;;
22595 esac
John Criswell47fdd832003-07-14 16:52:07 +000022596 fi
22597 ;;
22598
22599 dgux*)
22600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_libdir_flag_spec_F77='-L$libdir'
22602 hardcode_shlibpath_var_F77=no
22603 ;;
22604
22605 freebsd1*)
22606 ld_shlibs_F77=no
22607 ;;
22608
22609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22610 # support. Future versions do this automatically, but an explicit c++rt0.o
22611 # does not break anything, and helps significantly (at the cost of a little
22612 # extra space).
22613 freebsd2.2*)
22614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22615 hardcode_libdir_flag_spec_F77='-R$libdir'
22616 hardcode_direct_F77=yes
22617 hardcode_shlibpath_var_F77=no
22618 ;;
22619
22620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22621 freebsd2*)
22622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22623 hardcode_direct_F77=yes
22624 hardcode_minus_L_F77=yes
22625 hardcode_shlibpath_var_F77=no
22626 ;;
22627
22628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022629 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22634 ;;
22635
22636 hpux9*)
22637 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022638 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 +000022639 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022640 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 +000022641 fi
22642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22643 hardcode_libdir_separator_F77=:
22644 hardcode_direct_F77=yes
22645
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77=yes
22649 export_dynamic_flag_spec_F77='${wl}-E'
22650 ;;
22651
Reid Spencera773bd52006-08-04 18:18:08 +000022652 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22655 else
22656 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22657 fi
22658 if test "$with_gnu_ld" = no; then
22659 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22661
22662 hardcode_direct_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22664
22665 # hardcode_minus_L: Not really in the search PATH,
22666 # but as the default location of the library.
22667 hardcode_minus_L_F77=yes
22668 fi
22669 ;;
22670
22671 hpux11*)
22672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22673 case $host_cpu in
22674 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022677 ia64*)
22678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22679 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022680 *)
22681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22682 ;;
22683 esac
22684 else
Reid Spencera773bd52006-08-04 18:18:08 +000022685 case $host_cpu in
22686 hppa*64*)
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22688 ;;
22689 ia64*)
22690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022691 ;;
22692 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022693 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 +000022694 ;;
22695 esac
22696 fi
22697 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22699 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022700
Reid Spencera773bd52006-08-04 18:18:08 +000022701 case $host_cpu in
22702 hppa*64*|ia64*)
22703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22704 hardcode_direct_F77=no
22705 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022706 ;;
22707 *)
John Criswell47fdd832003-07-14 16:52:07 +000022708 hardcode_direct_F77=yes
22709 export_dynamic_flag_spec_F77='${wl}-E'
22710
22711 # hardcode_minus_L: Not really in the search PATH,
22712 # but as the default location of the library.
22713 hardcode_minus_L_F77=yes
22714 ;;
22715 esac
22716 fi
22717 ;;
22718
22719 irix5* | irix6* | nonstopux*)
22720 if test "$GCC" = yes; then
22721 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'
22722 else
22723 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'
22724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22725 fi
22726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22727 hardcode_libdir_separator_F77=:
22728 link_all_deplibs_F77=yes
22729 ;;
22730
22731 netbsd*)
22732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22734 else
22735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22736 fi
22737 hardcode_libdir_flag_spec_F77='-R$libdir'
22738 hardcode_direct_F77=yes
22739 hardcode_shlibpath_var_F77=no
22740 ;;
22741
22742 newsos6)
22743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_direct_F77=yes
22745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746 hardcode_libdir_separator_F77=:
22747 hardcode_shlibpath_var_F77=no
22748 ;;
22749
22750 openbsd*)
22751 hardcode_direct_F77=yes
22752 hardcode_shlibpath_var_F77=no
22753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22754 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022755 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 +000022756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22757 export_dynamic_flag_spec_F77='${wl}-E'
22758 else
22759 case $host_os in
22760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762 hardcode_libdir_flag_spec_F77='-R$libdir'
22763 ;;
22764 *)
22765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22767 ;;
22768 esac
22769 fi
22770 ;;
22771
22772 os2*)
22773 hardcode_libdir_flag_spec_F77='-L$libdir'
22774 hardcode_minus_L_F77=yes
22775 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022776 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 +000022777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22778 ;;
22779
22780 osf3*)
22781 if test "$GCC" = yes; then
22782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22783 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'
22784 else
22785 allow_undefined_flag_F77=' -expect_unresolved \*'
22786 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'
22787 fi
22788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22789 hardcode_libdir_separator_F77=:
22790 ;;
22791
22792 osf4* | osf5*) # as osf3* with the addition of -msym flag
22793 if test "$GCC" = yes; then
22794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22795 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'
22796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22797 else
22798 allow_undefined_flag_F77=' -expect_unresolved \*'
22799 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 +000022800 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 +000022801 $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 +000022802
John Criswell47fdd832003-07-14 16:52:07 +000022803 # Both c and cxx compiler support -rpath directly
22804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22805 fi
22806 hardcode_libdir_separator_F77=:
22807 ;;
22808
John Criswell47fdd832003-07-14 16:52:07 +000022809 solaris*)
22810 no_undefined_flag_F77=' -z text'
22811 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022812 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022814 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22815 $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 +000022816 else
Reid Spencera773bd52006-08-04 18:18:08 +000022817 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22820 $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 +000022821 fi
22822 hardcode_libdir_flag_spec_F77='-R$libdir'
22823 hardcode_shlibpath_var_F77=no
22824 case $host_os in
22825 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022826 *)
22827 # The compiler driver will combine linker options so we
22828 # cannot just pass the convience library names through
22829 # without $wl, iff we do not link with $LD.
22830 # Luckily, gcc supports the same syntax we need for Sun Studio.
22831 # Supported since Solaris 2.6 (maybe 2.5.1?)
22832 case $wlarc in
22833 '')
22834 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22835 *)
22836 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' ;;
22837 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022838 esac
22839 link_all_deplibs_F77=yes
22840 ;;
22841
22842 sunos4*)
22843 if test "x$host_vendor" = xsequent; then
22844 # Use $CC to link under sequent, because it throws in some extra .o
22845 # files that make .init and .fini sections work.
22846 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22847 else
22848 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22849 fi
22850 hardcode_libdir_flag_spec_F77='-L$libdir'
22851 hardcode_direct_F77=yes
22852 hardcode_minus_L_F77=yes
22853 hardcode_shlibpath_var_F77=no
22854 ;;
22855
22856 sysv4)
22857 case $host_vendor in
22858 sni)
22859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22860 hardcode_direct_F77=yes # is this really true???
22861 ;;
22862 siemens)
22863 ## LD is ld it makes a PLAMLIB
22864 ## CC just makes a GrossModule.
22865 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22866 reload_cmds_F77='$CC -r -o $output$reload_objs'
22867 hardcode_direct_F77=no
22868 ;;
22869 motorola)
22870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22871 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22872 ;;
22873 esac
22874 runpath_var='LD_RUN_PATH'
22875 hardcode_shlibpath_var_F77=no
22876 ;;
22877
22878 sysv4.3*)
22879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22880 hardcode_shlibpath_var_F77=no
22881 export_dynamic_flag_spec_F77='-Bexport'
22882 ;;
22883
22884 sysv4*MP*)
22885 if test -d /usr/nec; then
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 runpath_var=LD_RUN_PATH
22889 hardcode_runpath_var=yes
22890 ld_shlibs_F77=yes
22891 fi
22892 ;;
22893
Reid Spencera773bd52006-08-04 18:18:08 +000022894 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22895 no_undefined_flag_F77='${wl}-z,text'
22896 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022897 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022898 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022899
John Criswell47fdd832003-07-14 16:52:07 +000022900 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022901 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902 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 +000022903 else
Reid Spencera773bd52006-08-04 18:18:08 +000022904 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22905 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 +000022906 fi
John Criswell47fdd832003-07-14 16:52:07 +000022907 ;;
22908
Reid Spencera773bd52006-08-04 18:18:08 +000022909 sysv5* | sco3.2v5* | sco5v6*)
22910 # Note: We can NOT use -z defs as we might desire, because we do not
22911 # link with -lc, and that would cause any symbols used from libc to
22912 # always be unresolved, which means just about no library would
22913 # ever link correctly. If we're not using GNU ld we use -z text
22914 # though, which does catch some bad symbols but isn't as heavy-handed
22915 # as -z defs.
22916 no_undefined_flag_F77='${wl}-z,text'
22917 allow_undefined_flag_F77='${wl}-z,nodefs'
22918 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022919 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022920 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22921 hardcode_libdir_separator_F77=':'
22922 link_all_deplibs_F77=yes
22923 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022924 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022925
22926 if test "$GCC" = yes; then
22927 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22928 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22929 else
22930 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22931 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22932 fi
John Criswell47fdd832003-07-14 16:52:07 +000022933 ;;
22934
22935 uts4*)
22936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22937 hardcode_libdir_flag_spec_F77='-L$libdir'
22938 hardcode_shlibpath_var_F77=no
22939 ;;
22940
22941 *)
22942 ld_shlibs_F77=no
22943 ;;
22944 esac
22945 fi
22946
Reid Spencera773bd52006-08-04 18:18:08 +000022947{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22948echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022949test "$ld_shlibs_F77" = no && can_build_shared=no
22950
John Criswell47fdd832003-07-14 16:52:07 +000022951#
22952# Do we need to explicitly link libc?
22953#
22954case "x$archive_cmds_need_lc_F77" in
22955x|xyes)
22956 # Assume -lc should be added
22957 archive_cmds_need_lc_F77=yes
22958
22959 if test "$enable_shared" = yes && test "$GCC" = yes; then
22960 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022962 # FIXME: we may have to deal with multi-command sequences.
22963 ;;
22964 '$CC '*)
22965 # Test whether the compiler implicitly links with -lc since on some
22966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22967 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22969echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022970 $rm conftest*
22971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22972
22973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22974 (eval $ac_compile) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } 2>conftest.err; then
22978 soname=conftest
22979 lib=conftest
22980 libobjs=conftest.$ac_objext
22981 deplibs=
22982 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022983 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022984 compiler_flags=-v
22985 linker_flags=-v
22986 verstring=
22987 output_objdir=.
22988 libname=conftest
22989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22990 allow_undefined_flag_F77=
22991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }
22996 then
22997 archive_cmds_need_lc_F77=no
22998 else
22999 archive_cmds_need_lc_F77=yes
23000 fi
23001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23002 else
23003 cat conftest.err 1>&5
23004 fi
23005 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23007echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023008 ;;
23009 esac
23010 fi
23011 ;;
23012esac
23013
Reid Spencera773bd52006-08-04 18:18:08 +000023014{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23015echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023016library_names_spec=
23017libname_spec='lib$name'
23018soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023020postinstall_cmds=
23021postuninstall_cmds=
23022finish_cmds=
23023finish_eval=
23024shlibpath_var=
23025shlibpath_overrides_runpath=unknown
23026version_type=none
23027dynamic_linker="$host_os ld.so"
23028sys_lib_dlsearch_path_spec="/lib /usr/lib"
23029if test "$GCC" = yes; then
23030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23032 # if the path contains ";" then we assume it to be the separator
23033 # otherwise default to the standard path separator (i.e. ":") - it is
23034 # assumed that no part of a normal pathname contains ";" but that should
23035 # okay in the real world where ";" in dirpaths is itself problematic.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037 else
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23039 fi
23040else
23041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23042fi
23043need_lib_prefix=unknown
23044hardcode_into_libs=no
23045
23046# when you set need_version to no, make sure it does not cause -set_version
23047# flags to be left without arguments
23048need_version=unknown
23049
23050case $host_os in
23051aix3*)
23052 version_type=linux
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23054 shlibpath_var=LIBPATH
23055
23056 # AIX 3 has no versioning support, so we append a major version to the name.
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 ;;
23059
23060aix4* | aix5*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 hardcode_into_libs=yes
23065 if test "$host_cpu" = ia64; then
23066 # AIX 5 supports IA64
23067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23068 shlibpath_var=LD_LIBRARY_PATH
23069 else
23070 # With GCC up to 2.95.x, collect2 would create an import file
23071 # for dependence libraries. The import file would start with
23072 # the line `#! .'. This would cause the generated library to
23073 # depend on `.', always an invalid library. This was fixed in
23074 # development snapshots of GCC prior to 3.0.
23075 case $host_os in
23076 aix4 | aix4.[01] | aix4.[01].*)
23077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23078 echo ' yes '
23079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23080 :
23081 else
23082 can_build_shared=no
23083 fi
23084 ;;
23085 esac
23086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23087 # soname into executable. Probably we can add versioning support to
23088 # collect2, so additional links can be useful in future.
23089 if test "$aix_use_runtimelinking" = yes; then
23090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23091 # instead of lib<name>.a to let people know that these are not
23092 # typical AIX shared libraries.
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094 else
23095 # We preserve .a as extension for shared libraries through AIX4.2
23096 # and later when we are not doing run time linking.
23097 library_names_spec='${libname}${release}.a $libname.a'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 fi
23100 shlibpath_var=LIBPATH
23101 fi
23102 ;;
23103
23104amigaos*)
23105 library_names_spec='$libname.ixlibrary $libname.a'
23106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107 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 +000023108 ;;
23109
23110beos*)
23111 library_names_spec='${libname}${shared_ext}'
23112 dynamic_linker="$host_os ld.so"
23113 shlibpath_var=LIBRARY_PATH
23114 ;;
23115
Reid Spencer2706f8c2004-09-19 23:53:36 +000023116bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023117 version_type=linux
23118 need_version=no
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23125 # the default ld.so.conf also contains /usr/contrib/lib and
23126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23127 # libtool to hard-code these into programs
23128 ;;
23129
23130cygwin* | mingw* | pw32*)
23131 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023132 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023133 need_version=no
23134 need_lib_prefix=no
23135
23136 case $GCC,$host_os in
23137 yes,cygwin* | yes,mingw* | yes,pw32*)
23138 library_names_spec='$libname.dll.a'
23139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023140 postinstall_cmds='base_file=`basename \${file}`~
23141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23142 dldir=$destdir/`dirname \$dlpath`~
23143 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023144 $install_prog $dir/$dlname \$dldir/$dlname~
23145 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23147 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023148 $rm \$dlpath'
23149 shlibpath_overrides_runpath=yes
23150
23151 case $host_os in
23152 cygwin*)
23153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23154 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 +000023155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023156 ;;
23157 mingw*)
23158 # MinGW DLLs use traditional 'lib' prefix
23159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23162 # It is most probably a Windows format PATH printed by
23163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23164 # path with ; separators, and with drive letters. We can handle the
23165 # drive letters (cygwin fileutils understands them), so leave them,
23166 # especially as we might pass files found there to a mingw objdump,
23167 # which wouldn't understand a cygwinified path. Ahh.
23168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23169 else
23170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23171 fi
23172 ;;
23173 pw32*)
23174 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023175 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 +000023176 ;;
23177 esac
23178 ;;
23179
23180 *)
23181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23182 ;;
23183 esac
23184 dynamic_linker='Win32 ld.exe'
23185 # FIXME: first we should search . and the directory the executable is in
23186 shlibpath_var=PATH
23187 ;;
23188
23189darwin* | rhapsody*)
23190 dynamic_linker="$host_os dyld"
23191 version_type=darwin
23192 need_lib_prefix=no
23193 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023195 soname_spec='${libname}${release}${major}$shared_ext'
23196 shlibpath_overrides_runpath=yes
23197 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023198 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200 if test "$GCC" = yes; then
23201 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"`
23202 else
23203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023204 fi
23205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23206 ;;
23207
23208dgux*)
23209 version_type=linux
23210 need_lib_prefix=no
23211 need_version=no
23212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23213 soname_spec='${libname}${release}${shared_ext}$major'
23214 shlibpath_var=LD_LIBRARY_PATH
23215 ;;
23216
23217freebsd1*)
23218 dynamic_linker=no
23219 ;;
23220
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221kfreebsd*-gnu)
23222 version_type=linux
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath=no
23229 hardcode_into_libs=yes
23230 dynamic_linker='GNU ld.so'
23231 ;;
23232
Reid Spencera773bd52006-08-04 18:18:08 +000023233freebsd* | dragonfly*)
23234 # DragonFly does not have aout. When/if they implement a new
23235 # versioning mechanism, adjust this.
23236 if test -x /usr/bin/objformat; then
23237 objformat=`/usr/bin/objformat`
23238 else
23239 case $host_os in
23240 freebsd[123]*) objformat=aout ;;
23241 *) objformat=elf ;;
23242 esac
23243 fi
John Criswell47fdd832003-07-14 16:52:07 +000023244 version_type=freebsd-$objformat
23245 case $version_type in
23246 freebsd-elf*)
23247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23248 need_version=no
23249 need_lib_prefix=no
23250 ;;
23251 freebsd-*)
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23253 need_version=yes
23254 ;;
23255 esac
23256 shlibpath_var=LD_LIBRARY_PATH
23257 case $host_os in
23258 freebsd2*)
23259 shlibpath_overrides_runpath=yes
23260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023261 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023262 shlibpath_overrides_runpath=yes
23263 hardcode_into_libs=yes
23264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023267 shlibpath_overrides_runpath=no
23268 hardcode_into_libs=yes
23269 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023270 freebsd*) # from 4.6 on
23271 shlibpath_overrides_runpath=yes
23272 hardcode_into_libs=yes
23273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023274 esac
23275 ;;
23276
23277gnu*)
23278 version_type=linux
23279 need_lib_prefix=no
23280 need_version=no
23281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23282 soname_spec='${libname}${release}${shared_ext}$major'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 hardcode_into_libs=yes
23285 ;;
23286
23287hpux9* | hpux10* | hpux11*)
23288 # Give a soname corresponding to the major version so that dld.sl refuses to
23289 # link against other versions.
23290 version_type=sunos
23291 need_lib_prefix=no
23292 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023293 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023294 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023295 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023296 hardcode_into_libs=yes
23297 dynamic_linker="$host_os dld.so"
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 if test "X$HPUX_IA64_MODE" = X32; then
23303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23304 else
23305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23306 fi
23307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23308 ;;
23309 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023311 hardcode_into_libs=yes
23312 dynamic_linker="$host_os dld.sl"
23313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23319 ;;
23320 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023322 dynamic_linker="$host_os dld.sl"
23323 shlibpath_var=SHLIB_PATH
23324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 ;;
23328 esac
23329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23330 postinstall_cmds='chmod 555 $lib'
23331 ;;
23332
Reid Spencera773bd52006-08-04 18:18:08 +000023333interix3*)
23334 version_type=linux
23335 need_lib_prefix=no
23336 need_version=no
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23338 soname_spec='${libname}${release}${shared_ext}$major'
23339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23340 shlibpath_var=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath=no
23342 hardcode_into_libs=yes
23343 ;;
23344
John Criswell47fdd832003-07-14 16:52:07 +000023345irix5* | irix6* | nonstopux*)
23346 case $host_os in
23347 nonstopux*) version_type=nonstopux ;;
23348 *)
23349 if test "$lt_cv_prog_gnu_ld" = yes; then
23350 version_type=linux
23351 else
23352 version_type=irix
23353 fi ;;
23354 esac
23355 need_lib_prefix=no
23356 need_version=no
23357 soname_spec='${libname}${release}${shared_ext}$major'
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23359 case $host_os in
23360 irix5* | nonstopux*)
23361 libsuff= shlibsuff=
23362 ;;
23363 *)
23364 case $LD in # libtool.m4 will add one of these switches to LD
23365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23366 libsuff= shlibsuff= libmagic=32-bit;;
23367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23368 libsuff=32 shlibsuff=N32 libmagic=N32;;
23369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23371 *) libsuff= shlibsuff= libmagic=never-match;;
23372 esac
23373 ;;
23374 esac
23375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23376 shlibpath_overrides_runpath=no
23377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23379 hardcode_into_libs=yes
23380 ;;
23381
23382# No shared lib support for Linux oldld, aout, or coff.
23383linux*oldld* | linux*aout* | linux*coff*)
23384 dynamic_linker=no
23385 ;;
23386
23387# This must be Linux ELF.
23388linux*)
23389 version_type=linux
23390 need_lib_prefix=no
23391 need_version=no
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 soname_spec='${libname}${release}${shared_ext}$major'
23394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=no
23397 # This implies no fast_install, which is unacceptable.
23398 # Some rework will be needed to allow for fast_install
23399 # before this can be enabled.
23400 hardcode_into_libs=yes
23401
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 # Append ld.so.conf contents to the search path
23403 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023404 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 +000023405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23406 fi
23407
John Criswell47fdd832003-07-14 16:52:07 +000023408 # We used to test for /lib/ld.so.1 and disable shared libraries on
23409 # powerpc, because MkLinux only supported shared libraries with the
23410 # GNU dynamic linker. Since this was broken with cross compilers,
23411 # most powerpc-linux boxes support dynamic linking these days and
23412 # people can always --disable-shared, the test was removed, and we
23413 # assume the GNU/Linux dynamic linker is in use.
23414 dynamic_linker='GNU/Linux ld.so'
23415 ;;
23416
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417knetbsd*-gnu)
23418 version_type=linux
23419 need_lib_prefix=no
23420 need_version=no
23421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 shlibpath_var=LD_LIBRARY_PATH
23424 shlibpath_overrides_runpath=no
23425 hardcode_into_libs=yes
23426 dynamic_linker='GNU ld.so'
23427 ;;
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429netbsd*)
23430 version_type=sunos
23431 need_lib_prefix=no
23432 need_version=no
23433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23436 dynamic_linker='NetBSD (a.out) ld.so'
23437 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023439 soname_spec='${libname}${release}${shared_ext}$major'
23440 dynamic_linker='NetBSD ld.elf_so'
23441 fi
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23444 hardcode_into_libs=yes
23445 ;;
23446
23447newsos6)
23448 version_type=linux
23449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 shlibpath_var=LD_LIBRARY_PATH
23451 shlibpath_overrides_runpath=yes
23452 ;;
23453
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023455 version_type=linux
23456 need_lib_prefix=no
23457 need_version=no
23458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23459 soname_spec='${libname}${release}${shared_ext}$major'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=yes
23462 ;;
23463
23464openbsd*)
23465 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023466 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023467 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23469 case $host_os in
23470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23471 *) need_version=no ;;
23472 esac
John Criswell47fdd832003-07-14 16:52:07 +000023473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23475 shlibpath_var=LD_LIBRARY_PATH
23476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23477 case $host_os in
23478 openbsd2.[89] | openbsd2.[89].*)
23479 shlibpath_overrides_runpath=no
23480 ;;
23481 *)
23482 shlibpath_overrides_runpath=yes
23483 ;;
23484 esac
23485 else
23486 shlibpath_overrides_runpath=yes
23487 fi
23488 ;;
23489
23490os2*)
23491 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023492 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023493 need_lib_prefix=no
23494 library_names_spec='$libname${shared_ext} $libname.a'
23495 dynamic_linker='OS/2 ld.exe'
23496 shlibpath_var=LIBPATH
23497 ;;
23498
23499osf3* | osf4* | osf5*)
23500 version_type=osf
23501 need_lib_prefix=no
23502 need_version=no
23503 soname_spec='${libname}${release}${shared_ext}$major'
23504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23508 ;;
23509
John Criswell47fdd832003-07-14 16:52:07 +000023510solaris*)
23511 version_type=linux
23512 need_lib_prefix=no
23513 need_version=no
23514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515 soname_spec='${libname}${release}${shared_ext}$major'
23516 shlibpath_var=LD_LIBRARY_PATH
23517 shlibpath_overrides_runpath=yes
23518 hardcode_into_libs=yes
23519 # ldd complains unless libraries are executable
23520 postinstall_cmds='chmod +x $lib'
23521 ;;
23522
23523sunos4*)
23524 version_type=sunos
23525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23527 shlibpath_var=LD_LIBRARY_PATH
23528 shlibpath_overrides_runpath=yes
23529 if test "$with_gnu_ld" = yes; then
23530 need_lib_prefix=no
23531 fi
23532 need_version=yes
23533 ;;
23534
Reid Spencera773bd52006-08-04 18:18:08 +000023535sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023536 version_type=linux
23537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23538 soname_spec='${libname}${release}${shared_ext}$major'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 case $host_vendor in
23541 sni)
23542 shlibpath_overrides_runpath=no
23543 need_lib_prefix=no
23544 export_dynamic_flag_spec='${wl}-Blargedynsym'
23545 runpath_var=LD_RUN_PATH
23546 ;;
23547 siemens)
23548 need_lib_prefix=no
23549 ;;
23550 motorola)
23551 need_lib_prefix=no
23552 need_version=no
23553 shlibpath_overrides_runpath=no
23554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23555 ;;
23556 esac
23557 ;;
23558
23559sysv4*MP*)
23560 if test -d /usr/nec ;then
23561 version_type=linux
23562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23563 soname_spec='$libname${shared_ext}.$major'
23564 shlibpath_var=LD_LIBRARY_PATH
23565 fi
23566 ;;
23567
Reid Spencera773bd52006-08-04 18:18:08 +000023568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23569 version_type=freebsd-elf
23570 need_lib_prefix=no
23571 need_version=no
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 hardcode_into_libs=yes
23576 if test "$with_gnu_ld" = yes; then
23577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23578 shlibpath_overrides_runpath=no
23579 else
23580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23581 shlibpath_overrides_runpath=yes
23582 case $host_os in
23583 sco3.2v5*)
23584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23585 ;;
23586 esac
23587 fi
23588 sys_lib_dlsearch_path_spec='/usr/lib'
23589 ;;
23590
John Criswell47fdd832003-07-14 16:52:07 +000023591uts4*)
23592 version_type=linux
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 soname_spec='${libname}${release}${shared_ext}$major'
23595 shlibpath_var=LD_LIBRARY_PATH
23596 ;;
23597
23598*)
23599 dynamic_linker=no
23600 ;;
23601esac
Reid Spencera773bd52006-08-04 18:18:08 +000023602{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23603echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023604test "$dynamic_linker" = no && can_build_shared=no
23605
Reid Spencera773bd52006-08-04 18:18:08 +000023606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23607if test "$GCC" = yes; then
23608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23609fi
23610
23611{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23612echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023613hardcode_action_F77=
23614if test -n "$hardcode_libdir_flag_spec_F77" || \
23615 test -n "$runpath_var_F77" || \
23616 test "X$hardcode_automatic_F77" = "Xyes" ; then
23617
23618 # We can hardcode non-existant directories.
23619 if test "$hardcode_direct_F77" != no &&
23620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23621 # have to relink, otherwise we might link with an installed library
23622 # when we should be linking with a yet-to-be-installed one
23623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23624 test "$hardcode_minus_L_F77" != no; then
23625 # Linking always hardcodes the temporary library directory.
23626 hardcode_action_F77=relink
23627 else
23628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23629 hardcode_action_F77=immediate
23630 fi
23631else
23632 # We cannot hardcode anything, or else we can only hardcode existing
23633 # directories.
23634 hardcode_action_F77=unsupported
23635fi
Reid Spencera773bd52006-08-04 18:18:08 +000023636{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23637echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023638
23639if test "$hardcode_action_F77" = relink; then
23640 # Fast installation is not supported
23641 enable_fast_install=no
23642elif test "$shlibpath_overrides_runpath" = yes ||
23643 test "$enable_shared" = no; then
23644 # Fast installation is not necessary
23645 enable_fast_install=needless
23646fi
23647
John Criswell47fdd832003-07-14 16:52:07 +000023648
23649# The else clause should only fire when bootstrapping the
23650# libtool distribution, otherwise you forgot to ship ltmain.sh
23651# with your package, and you will get complaints that there are
23652# no rules to generate ltmain.sh.
23653if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23658 fi
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023662 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 +000023663 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23671 compiler_F77 \
23672 CC_F77 \
23673 LD_F77 \
23674 lt_prog_compiler_wl_F77 \
23675 lt_prog_compiler_pic_F77 \
23676 lt_prog_compiler_static_F77 \
23677 lt_prog_compiler_no_builtin_flag_F77 \
23678 export_dynamic_flag_spec_F77 \
23679 thread_safe_flag_spec_F77 \
23680 whole_archive_flag_spec_F77 \
23681 enable_shared_with_static_runtimes_F77 \
23682 old_archive_cmds_F77 \
23683 old_archive_from_new_cmds_F77 \
23684 predep_objects_F77 \
23685 postdep_objects_F77 \
23686 predeps_F77 \
23687 postdeps_F77 \
23688 compiler_lib_search_path_F77 \
23689 archive_cmds_F77 \
23690 archive_expsym_cmds_F77 \
23691 postinstall_cmds_F77 \
23692 postuninstall_cmds_F77 \
23693 old_archive_from_expsyms_cmds_F77 \
23694 allow_undefined_flag_F77 \
23695 no_undefined_flag_F77 \
23696 export_symbols_cmds_F77 \
23697 hardcode_libdir_flag_spec_F77 \
23698 hardcode_libdir_flag_spec_ld_F77 \
23699 hardcode_libdir_separator_F77 \
23700 hardcode_automatic_F77 \
23701 module_cmds_F77 \
23702 module_expsym_cmds_F77 \
23703 lt_cv_prog_compiler_c_o_F77 \
23704 exclude_expsyms_F77 \
23705 include_expsyms_F77; do
23706
23707 case $var in
23708 old_archive_cmds_F77 | \
23709 old_archive_from_new_cmds_F77 | \
23710 archive_cmds_F77 | \
23711 archive_expsym_cmds_F77 | \
23712 module_cmds_F77 | \
23713 module_expsym_cmds_F77 | \
23714 old_archive_from_expsyms_cmds_F77 | \
23715 export_symbols_cmds_F77 | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023721 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 +000023722 ;;
23723 *)
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725 ;;
23726 esac
23727 done
23728
23729 case $lt_echo in
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732 ;;
23733 esac
23734
23735cfgfile="$ofile"
23736
23737 cat <<__EOF__ >> "$cfgfile"
23738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742# Shell to use when invoking shell scripts.
23743SHELL=$lt_SHELL
23744
23745# Whether or not to build shared libraries.
23746build_libtool_libs=$enable_shared
23747
23748# Whether or not to build static libraries.
23749build_old_libs=$enable_static
23750
23751# Whether or not to add -lc for building shared libraries.
23752build_libtool_need_lc=$archive_cmds_need_lc_F77
23753
23754# Whether or not to disallow shared libs when runtime libs are static
23755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23756
23757# Whether or not to optimize for fast installation.
23758fast_install=$enable_fast_install
23759
23760# The host system.
23761host_alias=$host_alias
23762host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023763host_os=$host_os
23764
23765# The build system.
23766build_alias=$build_alias
23767build=$build
23768build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023769
23770# An echo program that does not interpret backslashes.
23771echo=$lt_echo
23772
23773# The archiver.
23774AR=$lt_AR
23775AR_FLAGS=$lt_AR_FLAGS
23776
23777# A C compiler.
23778LTCC=$lt_LTCC
23779
Reid Spencera773bd52006-08-04 18:18:08 +000023780# LTCC compiler flags.
23781LTCFLAGS=$lt_LTCFLAGS
23782
John Criswell47fdd832003-07-14 16:52:07 +000023783# A language-specific compiler.
23784CC=$lt_compiler_F77
23785
23786# Is the compiler the GNU C compiler?
23787with_gcc=$GCC_F77
23788
23789# An ERE matcher.
23790EGREP=$lt_EGREP
23791
23792# The linker used to build libraries.
23793LD=$lt_LD_F77
23794
23795# Whether we need hard or soft links.
23796LN_S=$lt_LN_S
23797
23798# A BSD-compatible nm program.
23799NM=$lt_NM
23800
23801# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023802STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023803
23804# Used to examine libraries when file_magic_cmd begins "file"
23805MAGIC_CMD=$MAGIC_CMD
23806
23807# Used on cygwin: DLL creation program.
23808DLLTOOL="$DLLTOOL"
23809
23810# Used on cygwin: object dumper.
23811OBJDUMP="$OBJDUMP"
23812
23813# Used on cygwin: assembler.
23814AS="$AS"
23815
23816# The name of the directory that contains temporary libtool files.
23817objdir=$objdir
23818
23819# How to create reloadable object files.
23820reload_flag=$lt_reload_flag
23821reload_cmds=$lt_reload_cmds
23822
23823# How to pass a linker flag through the compiler.
23824wl=$lt_lt_prog_compiler_wl_F77
23825
23826# Object file suffix (normally "o").
23827objext="$ac_objext"
23828
23829# Old archive suffix (normally "a").
23830libext="$libext"
23831
23832# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023834
23835# Executable file suffix (normally "").
23836exeext="$exeext"
23837
23838# Additional compiler flags for building library objects.
23839pic_flag=$lt_lt_prog_compiler_pic_F77
23840pic_mode=$pic_mode
23841
23842# What is the maximum length of a command?
23843max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845# Does compiler simultaneously support -c and -o options?
23846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23847
Reid Spencera773bd52006-08-04 18:18:08 +000023848# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023849need_locks=$lt_need_locks
23850
23851# Do we need the lib prefix for modules?
23852need_lib_prefix=$need_lib_prefix
23853
23854# Do we need a version for libraries?
23855need_version=$need_version
23856
23857# Whether dlopen is supported.
23858dlopen_support=$enable_dlopen
23859
23860# Whether dlopen of programs is supported.
23861dlopen_self=$enable_dlopen_self
23862
23863# Whether dlopen of statically linked programs is supported.
23864dlopen_self_static=$enable_dlopen_self_static
23865
23866# Compiler flag to prevent dynamic linking.
23867link_static_flag=$lt_lt_prog_compiler_static_F77
23868
23869# Compiler flag to turn off builtin functions.
23870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23871
23872# Compiler flag to allow reflexive dlopens.
23873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23874
23875# Compiler flag to generate shared objects directly from archives.
23876whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23877
23878# Compiler flag to generate thread-safe objects.
23879thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23880
23881# Library versioning type.
23882version_type=$version_type
23883
23884# Format of library name prefix.
23885libname_spec=$lt_libname_spec
23886
23887# List of archive names. First name is the real one, the rest are links.
23888# The last name is the one that the linker finds with -lNAME.
23889library_names_spec=$lt_library_names_spec
23890
23891# The coded name of the library, if different from the real name.
23892soname_spec=$lt_soname_spec
23893
23894# Commands used to build and install an old-style archive.
23895RANLIB=$lt_RANLIB
23896old_archive_cmds=$lt_old_archive_cmds_F77
23897old_postinstall_cmds=$lt_old_postinstall_cmds
23898old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900# Create an old-style archive from a shared archive.
23901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23902
23903# Create a temporary old-style archive to link instead of a shared archive.
23904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23905
23906# Commands used to build and install a shared archive.
23907archive_cmds=$lt_archive_cmds_F77
23908archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23909postinstall_cmds=$lt_postinstall_cmds
23910postuninstall_cmds=$lt_postuninstall_cmds
23911
23912# Commands used to build a loadable module (assumed same as above if empty)
23913module_cmds=$lt_module_cmds_F77
23914module_expsym_cmds=$lt_module_expsym_cmds_F77
23915
23916# Commands to strip libraries.
23917old_striplib=$lt_old_striplib
23918striplib=$lt_striplib
23919
23920# Dependencies to place before the objects being linked to create a
23921# shared library.
23922predep_objects=$lt_predep_objects_F77
23923
23924# Dependencies to place after the objects being linked to create a
23925# shared library.
23926postdep_objects=$lt_postdep_objects_F77
23927
23928# Dependencies to place before the objects being linked to create a
23929# shared library.
23930predeps=$lt_predeps_F77
23931
23932# Dependencies to place after the objects being linked to create a
23933# shared library.
23934postdeps=$lt_postdeps_F77
23935
23936# The library search path used internally by the compiler when linking
23937# a shared library.
23938compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23939
23940# Method to check whether dependent libraries are shared objects.
23941deplibs_check_method=$lt_deplibs_check_method
23942
23943# Command to use when deplibs_check_method == file_magic.
23944file_magic_cmd=$lt_file_magic_cmd
23945
23946# Flag that allows shared libraries with undefined symbols to be built.
23947allow_undefined_flag=$lt_allow_undefined_flag_F77
23948
23949# Flag that forces no undefined symbols.
23950no_undefined_flag=$lt_no_undefined_flag_F77
23951
23952# Commands used to finish a libtool library installation in a directory.
23953finish_cmds=$lt_finish_cmds
23954
23955# Same as above, but a single script fragment to be evaled but not shown.
23956finish_eval=$lt_finish_eval
23957
23958# Take the output of nm and produce a listing of raw symbols and C names.
23959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961# Transform the output of nm in a proper C declaration
23962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964# Transform the output of nm in a C name address pair
23965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967# This is the shared library runtime path variable.
23968runpath_var=$runpath_var
23969
23970# This is the shared library path variable.
23971shlibpath_var=$shlibpath_var
23972
23973# Is shlibpath searched before the hard-coded library search path?
23974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976# How to hardcode a shared library path into an executable.
23977hardcode_action=$hardcode_action_F77
23978
23979# Whether we should hardcode library paths into libraries.
23980hardcode_into_libs=$hardcode_into_libs
23981
23982# Flag to hardcode \$libdir into a binary during linking.
23983# This must work even if \$libdir does not exist.
23984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23985
23986# If ld is used when linking, flag to hardcode \$libdir into
23987# a binary during linking. This must work even if \$libdir does
23988# not exist.
23989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23990
23991# Whether we need a single -rpath flag with a separated argument.
23992hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23993
23994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995# resulting binary.
23996hardcode_direct=$hardcode_direct_F77
23997
23998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999# resulting binary.
24000hardcode_minus_L=$hardcode_minus_L_F77
24001
24002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003# the resulting binary.
24004hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24005
24006# Set to yes if building a shared library automatically hardcodes DIR into the library
24007# and all subsequent libraries and executables linked against it.
24008hardcode_automatic=$hardcode_automatic_F77
24009
24010# Variables whose values should be saved in libtool wrapper scripts and
24011# restored at relink time.
24012variables_saved_for_relink="$variables_saved_for_relink"
24013
24014# Whether libtool must link a program against all its dependency libraries.
24015link_all_deplibs=$link_all_deplibs_F77
24016
24017# Compile-time system search path for libraries
24018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020# Run-time system search path for libraries
24021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023# Fix the shell variable \$srcfile for the compiler.
24024fix_srcfile_path="$fix_srcfile_path_F77"
24025
24026# Set to yes if exported symbols are required.
24027always_export_symbols=$always_export_symbols_F77
24028
24029# The commands to list exported symbols.
24030export_symbols_cmds=$lt_export_symbols_cmds_F77
24031
24032# The commands to extract the exported symbol list from a shared archive.
24033extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035# Symbols that should not be listed in the preloaded symbols.
24036exclude_expsyms=$lt_exclude_expsyms_F77
24037
24038# Symbols that must always be exported.
24039include_expsyms=$lt_include_expsyms_F77
24040
24041# ### END LIBTOOL TAG CONFIG: $tagname
24042
24043__EOF__
24044
24045
24046else
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24053 fi
John Criswell47fdd832003-07-14 16:52:07 +000024054fi
24055
24056
24057ac_ext=c
24058ac_cpp='$CPP $CPPFLAGS'
24059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063CC="$lt_save_CC"
24064
24065 else
24066 tagname=""
24067 fi
24068 ;;
24069
24070 GCJ)
24071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024072 ac_ext=c
24073ac_cpp='$CPP $CPPFLAGS'
24074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024077
24078
24079# Source file extension for Java test sources.
24080ac_ext=java
24081
24082# Object file extension for compiled Java test sources.
24083objext=o
24084objext_GCJ=$objext
24085
24086# Code to be used in simple compile tests
24087lt_simple_compile_test_code="class foo {}\n"
24088
24089# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024090lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024091
24092# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24093
24094# If no C compiler was specified, use CC.
24095LTCC=${LTCC-"$CC"}
24096
Reid Spencera773bd52006-08-04 18:18:08 +000024097# If no C compiler flags were specified, use CFLAGS.
24098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24099
John Criswell47fdd832003-07-14 16:52:07 +000024100# Allow CC to be a program name with arguments.
24101compiler=$CC
24102
24103
Reid Spencera773bd52006-08-04 18:18:08 +000024104# save warnings/boilerplate of simple test code
24105ac_outfile=conftest.$ac_objext
24106printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108_lt_compiler_boilerplate=`cat conftest.err`
24109$rm conftest*
24110
24111ac_outfile=conftest.$ac_objext
24112printf "$lt_simple_link_test_code" >conftest.$ac_ext
24113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24114_lt_linker_boilerplate=`cat conftest.err`
24115$rm conftest*
24116
24117
John Criswell47fdd832003-07-14 16:52:07 +000024118# Allow CC to be a program name with arguments.
24119lt_save_CC="$CC"
24120CC=${GCJ-"gcj"}
24121compiler=$CC
24122compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024123for cc_temp in $compiler""; do
24124 case $cc_temp in
24125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24127 \-*) ;;
24128 *) break;;
24129 esac
24130done
24131cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24132
John Criswell47fdd832003-07-14 16:52:07 +000024133
24134# GCJ did not exist at the time GCC didn't implicitly link libc in.
24135archive_cmds_need_lc_GCJ=no
24136
Reid Spencera773bd52006-08-04 18:18:08 +000024137old_archive_cmds_GCJ=$old_archive_cmds
24138
John Criswell47fdd832003-07-14 16:52:07 +000024139
24140lt_prog_compiler_no_builtin_flag_GCJ=
24141
24142if test "$GCC" = yes; then
24143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24144
Reid Spencer2706f8c2004-09-19 23:53:36 +000024145
Reid Spencera773bd52006-08-04 18:18:08 +000024146{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24147echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024148if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151 lt_cv_prog_compiler_rtti_exceptions=no
24152 ac_outfile=conftest.$ac_objext
24153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24154 lt_compiler_flag="-fno-rtti -fno-exceptions"
24155 # Insert the option either (1) after the last *FLAGS variable, or
24156 # (2) before a word containing "conftest.", or (3) at the end.
24157 # Note that $ac_compile itself does not contain backslashes and begins
24158 # with a dollar sign (not a hyphen), so the echo should work correctly.
24159 # The option is referenced via a variable to avoid confusing sed.
24160 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24163 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000024164 (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024165 (eval "$lt_compile" 2>conftest.err)
24166 ac_status=$?
24167 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000024168 echo "$as_me:24168: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024169 if (exit $ac_status) && test -s "$ac_outfile"; then
24170 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024171 # So say no if there are warnings other than the usual output.
24172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024175 lt_cv_prog_compiler_rtti_exceptions=yes
24176 fi
24177 fi
24178 $rm conftest*
24179
24180fi
Reid Spencera773bd52006-08-04 18:18:08 +000024181{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024183
24184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24186else
24187 :
24188fi
24189
24190fi
24191
24192lt_prog_compiler_wl_GCJ=
24193lt_prog_compiler_pic_GCJ=
24194lt_prog_compiler_static_GCJ=
24195
Reid Spencera773bd52006-08-04 18:18:08 +000024196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024198
24199 if test "$GCC" = yes; then
24200 lt_prog_compiler_wl_GCJ='-Wl,'
24201 lt_prog_compiler_static_GCJ='-static'
24202
24203 case $host_os in
24204 aix*)
24205 # All AIX code is PIC.
24206 if test "$host_cpu" = ia64; then
24207 # AIX 5 now supports IA64 processor
24208 lt_prog_compiler_static_GCJ='-Bstatic'
24209 fi
24210 ;;
24211
24212 amigaos*)
24213 # FIXME: we need at least 68020 code to build shared libraries, but
24214 # adding the `-m68020' flag to GCC prevents building anything better,
24215 # like `-m68040'.
24216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24217 ;;
24218
24219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24220 # PIC is the default for these OSes.
24221 ;;
24222
24223 mingw* | pw32* | os2*)
24224 # This hack is so that the source file can tell whether it is being
24225 # built for inclusion in a dll (and should export symbols for example).
24226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24227 ;;
24228
24229 darwin* | rhapsody*)
24230 # PIC is the default on this platform
24231 # Common symbols not allowed in MH_DYLIB files
24232 lt_prog_compiler_pic_GCJ='-fno-common'
24233 ;;
24234
Reid Spencera773bd52006-08-04 18:18:08 +000024235 interix3*)
24236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24237 # Instead, we relocate shared libraries at runtime.
24238 ;;
24239
John Criswell47fdd832003-07-14 16:52:07 +000024240 msdosdjgpp*)
24241 # Just because we use GCC doesn't mean we suddenly get shared libraries
24242 # on systems that don't support them.
24243 lt_prog_compiler_can_build_shared_GCJ=no
24244 enable_shared=no
24245 ;;
24246
24247 sysv4*MP*)
24248 if test -d /usr/nec; then
24249 lt_prog_compiler_pic_GCJ=-Kconform_pic
24250 fi
24251 ;;
24252
24253 hpux*)
24254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24255 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024256 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024257 hppa*64*|ia64*)
24258 # +Z the default
24259 ;;
24260 *)
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24262 ;;
24263 esac
24264 ;;
24265
24266 *)
24267 lt_prog_compiler_pic_GCJ='-fPIC'
24268 ;;
24269 esac
24270 else
24271 # PORTME Check for flag to pass linker flags through the system compiler.
24272 case $host_os in
24273 aix*)
24274 lt_prog_compiler_wl_GCJ='-Wl,'
24275 if test "$host_cpu" = ia64; then
24276 # AIX 5 now supports IA64 processor
24277 lt_prog_compiler_static_GCJ='-Bstatic'
24278 else
24279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24280 fi
24281 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282 darwin*)
24283 # PIC is the default on this platform
24284 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024285 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024286 xlc*)
24287 lt_prog_compiler_pic_GCJ='-qnocommon'
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24289 ;;
24290 esac
24291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024292
24293 mingw* | pw32* | os2*)
24294 # This hack is so that the source file can tell whether it is being
24295 # built for inclusion in a dll (and should export symbols for example).
24296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24297 ;;
24298
24299 hpux9* | hpux10* | hpux11*)
24300 lt_prog_compiler_wl_GCJ='-Wl,'
24301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24302 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024303 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024304 hppa*64*|ia64*)
24305 # +Z the default
24306 ;;
24307 *)
24308 lt_prog_compiler_pic_GCJ='+Z'
24309 ;;
24310 esac
24311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24313 ;;
24314
24315 irix5* | irix6* | nonstopux*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC (with -KPIC) is the default.
24318 lt_prog_compiler_static_GCJ='-non_shared'
24319 ;;
24320
24321 newsos6)
24322 lt_prog_compiler_pic_GCJ='-KPIC'
24323 lt_prog_compiler_static_GCJ='-Bstatic'
24324 ;;
24325
24326 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024327 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024328 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024329 lt_prog_compiler_wl_GCJ='-Wl,'
24330 lt_prog_compiler_pic_GCJ='-KPIC'
24331 lt_prog_compiler_static_GCJ='-static'
24332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024333 pgcc* | pgf77* | pgf90* | pgf95*)
24334 # Portland Group compilers (*not* the Pentium gcc compiler,
24335 # which looks to be a dead project)
24336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-fpic'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
24339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024341 lt_prog_compiler_wl_GCJ='-Wl,'
24342 # All Alpha code is PIC.
24343 lt_prog_compiler_static_GCJ='-non_shared'
24344 ;;
24345 esac
24346 ;;
24347
24348 osf3* | osf4* | osf5*)
24349 lt_prog_compiler_wl_GCJ='-Wl,'
24350 # All OSF/1 code is PIC.
24351 lt_prog_compiler_static_GCJ='-non_shared'
24352 ;;
24353
John Criswell47fdd832003-07-14 16:52:07 +000024354 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024357 case $cc_basename in
24358 f77* | f90* | f95*)
24359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24360 *)
24361 lt_prog_compiler_wl_GCJ='-Wl,';;
24362 esac
John Criswell47fdd832003-07-14 16:52:07 +000024363 ;;
24364
24365 sunos4*)
24366 lt_prog_compiler_wl_GCJ='-Qoption ld '
24367 lt_prog_compiler_pic_GCJ='-PIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24369 ;;
24370
Reid Spencera773bd52006-08-04 18:18:08 +000024371 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024372 lt_prog_compiler_wl_GCJ='-Wl,'
24373 lt_prog_compiler_pic_GCJ='-KPIC'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24375 ;;
24376
24377 sysv4*MP*)
24378 if test -d /usr/nec ;then
24379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24380 lt_prog_compiler_static_GCJ='-Bstatic'
24381 fi
24382 ;;
24383
Reid Spencera773bd52006-08-04 18:18:08 +000024384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_pic_GCJ='-KPIC'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24388 ;;
24389
24390 unicos*)
24391 lt_prog_compiler_wl_GCJ='-Wl,'
24392 lt_prog_compiler_can_build_shared_GCJ=no
24393 ;;
24394
John Criswell47fdd832003-07-14 16:52:07 +000024395 uts4*)
24396 lt_prog_compiler_pic_GCJ='-pic'
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24398 ;;
24399
24400 *)
24401 lt_prog_compiler_can_build_shared_GCJ=no
24402 ;;
24403 esac
24404 fi
24405
Reid Spencera773bd52006-08-04 18:18:08 +000024406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24407echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024408
24409#
24410# Check to make sure the PIC flag actually works.
24411#
24412if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024413
Reid Spencera773bd52006-08-04 18:18:08 +000024414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024416if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418else
24419 lt_prog_compiler_pic_works_GCJ=no
24420 ac_outfile=conftest.$ac_objext
24421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24423 # Insert the option either (1) after the last *FLAGS variable, or
24424 # (2) before a word containing "conftest.", or (3) at the end.
24425 # Note that $ac_compile itself does not contain backslashes and begins
24426 # with a dollar sign (not a hyphen), so the echo should work correctly.
24427 # The option is referenced via a variable to avoid confusing sed.
24428 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24431 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000024432 (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024433 (eval "$lt_compile" 2>conftest.err)
24434 ac_status=$?
24435 cat conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000024436 echo "$as_me:24436: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024437 if (exit $ac_status) && test -s "$ac_outfile"; then
24438 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024439 # So say no if there are warnings other than the usual output.
24440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024443 lt_prog_compiler_pic_works_GCJ=yes
24444 fi
24445 fi
24446 $rm conftest*
24447
24448fi
Reid Spencera773bd52006-08-04 18:18:08 +000024449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24450echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024451
24452if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24453 case $lt_prog_compiler_pic_GCJ in
24454 "" | " "*) ;;
24455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24456 esac
24457else
24458 lt_prog_compiler_pic_GCJ=
24459 lt_prog_compiler_can_build_shared_GCJ=no
24460fi
24461
24462fi
Reid Spencera773bd52006-08-04 18:18:08 +000024463case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024464 # For platforms which do not support PIC, -DPIC is meaningless:
24465 *djgpp*)
24466 lt_prog_compiler_pic_GCJ=
24467 ;;
24468 *)
24469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24470 ;;
24471esac
24472
Reid Spencera773bd52006-08-04 18:18:08 +000024473#
24474# Check to make sure the static flag actually works.
24475#
24476wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24479if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482 lt_prog_compiler_static_works_GCJ=no
24483 save_LDFLAGS="$LDFLAGS"
24484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24487 # The linker can only warn and ignore the option if not recognized
24488 # So say no if there are warnings
24489 if test -s conftest.err; then
24490 # Append any errors to the config.log.
24491 cat conftest.err 1>&5
24492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24494 if diff conftest.exp conftest.er2 >/dev/null; then
24495 lt_prog_compiler_static_works_GCJ=yes
24496 fi
24497 else
24498 lt_prog_compiler_static_works_GCJ=yes
24499 fi
24500 fi
24501 $rm conftest*
24502 LDFLAGS="$save_LDFLAGS"
24503
24504fi
24505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24506echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24507
24508if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24509 :
24510else
24511 lt_prog_compiler_static_GCJ=
24512fi
24513
24514
24515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024517if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519else
24520 lt_cv_prog_compiler_c_o_GCJ=no
24521 $rm -r conftest 2>/dev/null
24522 mkdir conftest
24523 cd conftest
24524 mkdir out
24525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24526
John Criswell47fdd832003-07-14 16:52:07 +000024527 lt_compiler_flag="-o out/conftest2.$ac_objext"
24528 # Insert the option either (1) after the last *FLAGS variable, or
24529 # (2) before a word containing "conftest.", or (3) at the end.
24530 # Note that $ac_compile itself does not contain backslashes and begins
24531 # with a dollar sign (not a hyphen), so the echo should work correctly.
24532 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24535 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky83fc4472009-09-29 05:48:51 +000024536 (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024537 (eval "$lt_compile" 2>out/conftest.err)
24538 ac_status=$?
24539 cat out/conftest.err >&5
Nick Lewycky83fc4472009-09-29 05:48:51 +000024540 echo "$as_me:24540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24542 then
24543 # The compiler can only warn and ignore the option if not recognized
24544 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024548 lt_cv_prog_compiler_c_o_GCJ=yes
24549 fi
24550 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024551 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024552 $rm conftest*
24553 # SGI C++ compiler will create directory out/ii_files/ for
24554 # template instantiation
24555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24556 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024557 cd ..
24558 rmdir conftest
24559 $rm conftest*
24560
24561fi
Reid Spencera773bd52006-08-04 18:18:08 +000024562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024564
24565
24566hard_links="nottested"
24567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24568 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024571 hard_links=yes
24572 $rm conftest*
24573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24574 touch conftest.a
24575 ln conftest.a conftest.b 2>&5 || hard_links=no
24576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024577 { echo "$as_me:$LINENO: result: $hard_links" >&5
24578echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024579 if test "$hard_links" = no; then
24580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24582 need_locks=warn
24583 fi
24584else
24585 need_locks=no
24586fi
24587
Reid Spencera773bd52006-08-04 18:18:08 +000024588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024590
24591 runpath_var=
24592 allow_undefined_flag_GCJ=
24593 enable_shared_with_static_runtimes_GCJ=no
24594 archive_cmds_GCJ=
24595 archive_expsym_cmds_GCJ=
24596 old_archive_From_new_cmds_GCJ=
24597 old_archive_from_expsyms_cmds_GCJ=
24598 export_dynamic_flag_spec_GCJ=
24599 whole_archive_flag_spec_GCJ=
24600 thread_safe_flag_spec_GCJ=
24601 hardcode_libdir_flag_spec_GCJ=
24602 hardcode_libdir_flag_spec_ld_GCJ=
24603 hardcode_libdir_separator_GCJ=
24604 hardcode_direct_GCJ=no
24605 hardcode_minus_L_GCJ=no
24606 hardcode_shlibpath_var_GCJ=unsupported
24607 link_all_deplibs_GCJ=unknown
24608 hardcode_automatic_GCJ=no
24609 module_cmds_GCJ=
24610 module_expsym_cmds_GCJ=
24611 always_export_symbols_GCJ=no
24612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24613 # include_expsyms should be a list of space-separated symbols to be *always*
24614 # included in the symbol list
24615 include_expsyms_GCJ=
24616 # exclude_expsyms can be an extended regexp of symbols to exclude
24617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24619 # as well as any symbol that contains `d'.
24620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24622 # platforms (ab)use it in PIC code, but their linkers get confused if
24623 # the symbol is explicitly referenced. Since portable code cannot
24624 # rely on this symbol name, it's probably fine to never include it in
24625 # preloaded symbol tables.
24626 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024627 # Just being paranoid about ensuring that cc_basename is set.
24628 for cc_temp in $compiler""; do
24629 case $cc_temp in
24630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24632 \-*) ;;
24633 *) break;;
24634 esac
24635done
24636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024637
24638 case $host_os in
24639 cygwin* | mingw* | pw32*)
24640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24641 # When not using gcc, we currently assume that we are using
24642 # Microsoft Visual C++.
24643 if test "$GCC" != yes; then
24644 with_gnu_ld=no
24645 fi
24646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024647 interix*)
24648 # we just hope/assume this is gcc and not c89 (= MSVC++)
24649 with_gnu_ld=yes
24650 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024651 openbsd*)
24652 with_gnu_ld=no
24653 ;;
24654 esac
24655
24656 ld_shlibs_GCJ=yes
24657 if test "$with_gnu_ld" = yes; then
24658 # If archive_cmds runs LD, not CC, wlarc should be empty
24659 wlarc='${wl}'
24660
Reid Spencera773bd52006-08-04 18:18:08 +000024661 # Set some defaults for GNU ld with shared library support. These
24662 # are reset later if shared libraries are not supported. Putting them
24663 # here allows them to be overridden if necessary.
24664 runpath_var=LD_RUN_PATH
24665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24667 # ancient GNU ld didn't support --whole-archive et. al.
24668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24670 else
24671 whole_archive_flag_spec_GCJ=
24672 fi
24673 supports_anon_versioning=no
24674 case `$LD -v 2>/dev/null` in
24675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24678 *\ 2.11.*) ;; # other 2.11 versions
24679 *) supports_anon_versioning=yes ;;
24680 esac
24681
John Criswell47fdd832003-07-14 16:52:07 +000024682 # See if GNU ld supports shared libraries.
24683 case $host_os in
24684 aix3* | aix4* | aix5*)
24685 # On AIX/PPC, the GNU linker is very broken
24686 if test "$host_cpu" != ia64; then
24687 ld_shlibs_GCJ=no
24688 cat <<EOF 1>&2
24689
24690*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24691*** to be unable to reliably create shared libraries on AIX.
24692*** Therefore, libtool is disabling shared libraries support. If you
24693*** really care for shared libraries, you may want to modify your PATH
24694*** so that a non-GNU linker is found, and then restart.
24695
24696EOF
24697 fi
24698 ;;
24699
24700 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024701 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 +000024702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24703 hardcode_minus_L_GCJ=yes
24704
24705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24706 # that the semantics of dynamic libraries on AmigaOS, at least up
24707 # to version 4, is to share data among multiple programs linked
24708 # with the same dynamic library. Since this doesn't match the
24709 # behavior of shared libraries on other platforms, we can't use
24710 # them.
24711 ld_shlibs_GCJ=no
24712 ;;
24713
24714 beos*)
24715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24716 allow_undefined_flag_GCJ=unsupported
24717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24718 # support --undefined. This deserves some investigation. FIXME
24719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24720 else
24721 ld_shlibs_GCJ=no
24722 fi
24723 ;;
24724
24725 cygwin* | mingw* | pw32*)
24726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24727 # as there is no search path for DLLs.
24728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 allow_undefined_flag_GCJ=unsupported
24730 always_export_symbols_GCJ=no
24731 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024732 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 +000024733
24734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024735 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 +000024736 # If the export-symbols file already is a .def file (1st line
24737 # is EXPORTS), use it as is; otherwise, prepend...
24738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24739 cp $export_symbols $output_objdir/$soname.def;
24740 else
24741 echo EXPORTS > $output_objdir/$soname.def;
24742 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024743 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024744 $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 +000024745 else
Reid Spencera773bd52006-08-04 18:18:08 +000024746 ld_shlibs_GCJ=no
24747 fi
24748 ;;
24749
24750 interix3*)
24751 hardcode_direct_GCJ=no
24752 hardcode_shlibpath_var_GCJ=no
24753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24754 export_dynamic_flag_spec_GCJ='${wl}-E'
24755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24756 # Instead, shared libraries are loaded at an image base (0x10000000 by
24757 # default) and relocated if they conflict, which is a slow very memory
24758 # consuming and fragmenting process. To avoid this, we pick a random,
24759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24761 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'
24762 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'
24763 ;;
24764
24765 linux*)
24766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24767 tmp_addflag=
24768 case $cc_basename,$host_cpu in
24769 pgcc*) # Portland Group C compiler
24770 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'
24771 tmp_addflag=' $pic_flag'
24772 ;;
24773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24774 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'
24775 tmp_addflag=' $pic_flag -Mnomain' ;;
24776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24777 tmp_addflag=' -i_dynamic' ;;
24778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24779 tmp_addflag=' -i_dynamic -nofor_main' ;;
24780 ifc* | ifort*) # Intel Fortran compiler
24781 tmp_addflag=' -nofor_main' ;;
24782 esac
24783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784
24785 if test $supports_anon_versioning = yes; then
24786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24788 $echo "local: *; };" >> $output_objdir/$libname.ver~
24789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24790 fi
24791 else
24792 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024793 fi
24794 ;;
24795
24796 netbsd*)
24797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24799 wlarc=
24800 else
24801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24803 fi
24804 ;;
24805
Reid Spencera773bd52006-08-04 18:18:08 +000024806 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24808 ld_shlibs_GCJ=no
24809 cat <<EOF 1>&2
24810
24811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24812*** create shared libraries on Solaris systems. Therefore, libtool
24813*** is disabling shared libraries support. We urge you to upgrade GNU
24814*** binutils to release 2.9.1 or newer. Another option is to modify
24815*** your PATH or compiler configuration so that the native linker is
24816*** used, and then restart.
24817
24818EOF
24819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24822 else
24823 ld_shlibs_GCJ=no
24824 fi
24825 ;;
24826
Reid Spencera773bd52006-08-04 18:18:08 +000024827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24828 case `$LD -v 2>&1` in
24829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24830 ld_shlibs_GCJ=no
24831 cat <<_LT_EOF 1>&2
24832
24833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24834*** reliably create shared libraries on SCO systems. Therefore, libtool
24835*** is disabling shared libraries support. We urge you to upgrade GNU
24836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24837*** your PATH or compiler configuration so that the native linker is
24838*** used, and then restart.
24839
24840_LT_EOF
24841 ;;
24842 *)
24843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24847 else
24848 ld_shlibs_GCJ=no
24849 fi
24850 ;;
24851 esac
24852 ;;
24853
John Criswell47fdd832003-07-14 16:52:07 +000024854 sunos4*)
24855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24856 wlarc=
24857 hardcode_direct_GCJ=yes
24858 hardcode_shlibpath_var_GCJ=no
24859 ;;
24860
24861 *)
24862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24865 else
24866 ld_shlibs_GCJ=no
24867 fi
24868 ;;
24869 esac
24870
Reid Spencera773bd52006-08-04 18:18:08 +000024871 if test "$ld_shlibs_GCJ" = no; then
24872 runpath_var=
24873 hardcode_libdir_flag_spec_GCJ=
24874 export_dynamic_flag_spec_GCJ=
24875 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024876 fi
24877 else
24878 # PORTME fill in a description of your system's linker (not GNU ld)
24879 case $host_os in
24880 aix3*)
24881 allow_undefined_flag_GCJ=unsupported
24882 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024883 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 +000024884 # Note: this linker hardcodes the directories in LIBPATH if there
24885 # are no directories specified by -L.
24886 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024888 # Neither direct hardcoding nor static linking is supported with a
24889 # broken collect2.
24890 hardcode_direct_GCJ=unsupported
24891 fi
24892 ;;
24893
24894 aix4* | aix5*)
24895 if test "$host_cpu" = ia64; then
24896 # On IA64, the linker does run time linking by default, so we don't
24897 # have to do anything special.
24898 aix_use_runtimelinking=no
24899 exp_sym_flag='-Bexport'
24900 no_entry_flag=""
24901 else
24902 # If we're using GNU nm, then we don't want the "-C" option.
24903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24905 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'
24906 else
24907 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'
24908 fi
24909 aix_use_runtimelinking=no
24910
24911 # Test if we are trying to use run time linking or normal
24912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24913 # need to do runtime linking.
24914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24915 for ld_flag in $LDFLAGS; do
24916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24917 aix_use_runtimelinking=yes
24918 break
24919 fi
24920 done
Reid Spencera773bd52006-08-04 18:18:08 +000024921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024922 esac
24923
24924 exp_sym_flag='-bexport'
24925 no_entry_flag='-bnoentry'
24926 fi
24927
24928 # When large executables or shared objects are built, AIX ld can
24929 # have problems creating the table of contents. If linking a library
24930 # or program results in "error TOC overflow" add -mminimal-toc to
24931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24933
24934 archive_cmds_GCJ=''
24935 hardcode_direct_GCJ=yes
24936 hardcode_libdir_separator_GCJ=':'
24937 link_all_deplibs_GCJ=yes
24938
24939 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024940 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024941 # We only want to do this on AIX 4.2 and lower, the check
24942 # below for broken collect2 doesn't work under 4.3+
24943 collect2name=`${CC} -print-prog-name=collect2`
24944 if test -f "$collect2name" && \
24945 strings "$collect2name" | grep resolve_lib_name >/dev/null
24946 then
24947 # We have reworked collect2
24948 hardcode_direct_GCJ=yes
24949 else
24950 # We have old collect2
24951 hardcode_direct_GCJ=unsupported
24952 # It fails to find uninstalled libraries when the uninstalled
24953 # path is not listed in the libpath. Setting hardcode_minus_L
24954 # to unsupported forces relinking
24955 hardcode_minus_L_GCJ=yes
24956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24957 hardcode_libdir_separator_GCJ=
24958 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024960 esac
24961 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024962 if test "$aix_use_runtimelinking" = yes; then
24963 shared_flag="$shared_flag "'${wl}-G'
24964 fi
John Criswell47fdd832003-07-14 16:52:07 +000024965 else
24966 # not using gcc
24967 if test "$host_cpu" = ia64; then
24968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24969 # chokes on -Wl,-G. The following line is correct:
24970 shared_flag='-G'
24971 else
Reid Spencera773bd52006-08-04 18:18:08 +000024972 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024973 shared_flag='${wl}-G'
24974 else
24975 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024976 fi
John Criswell47fdd832003-07-14 16:52:07 +000024977 fi
24978 fi
24979
24980 # It seems that -bexpall does not export symbols beginning with
24981 # underscore (_), so it is better to generate a list of symbols to export.
24982 always_export_symbols_GCJ=yes
24983 if test "$aix_use_runtimelinking" = yes; then
24984 # Warning - without using the other runtime loading flags (-brtl),
24985 # -berok will link without error, but may produce a broken library.
24986 allow_undefined_flag_GCJ='-berok'
24987 # Determine the default libpath from the value encoded in an empty executable.
24988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024994
John Criswell47fdd832003-07-14 16:52:07 +000024995int
24996main ()
24997{
24998
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025004if { (ac_try="$ac_link"
25005case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25008esac
25009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25018 { (case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25021esac
25022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_try") 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025037
25038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25039}'`
25040# Check for a 64-bit object if we didn't find anything.
25041if 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; }
25042}'`; fi
25043else
25044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025045sed 's/^/| /' conftest.$ac_ext >&5
25046
Reid Spencera773bd52006-08-04 18:18:08 +000025047
John Criswell47fdd832003-07-14 16:52:07 +000025048fi
Reid Spencera773bd52006-08-04 18:18:08 +000025049
Bill Wendlingebcceee2009-04-18 11:20:33 +000025050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025051 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25053
25054 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025055 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 +000025056 else
25057 if test "$host_cpu" = ia64; then
25058 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25059 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025060 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 +000025061 else
25062 # Determine the default libpath from the value encoded in an empty executable.
25063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025069
John Criswell47fdd832003-07-14 16:52:07 +000025070int
25071main ()
25072{
25073
25074 ;
25075 return 0;
25076}
25077_ACEOF
25078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025079if { (ac_try="$ac_link"
25080case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25083esac
25084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25096esac
25097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_try") 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106esac
25107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108 (eval "$ac_try") 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025112
25113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25114}'`
25115# Check for a 64-bit object if we didn't find anything.
25116if 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; }
25117}'`; fi
25118else
25119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025120sed 's/^/| /' conftest.$ac_ext >&5
25121
Reid Spencera773bd52006-08-04 18:18:08 +000025122
John Criswell47fdd832003-07-14 16:52:07 +000025123fi
Reid Spencera773bd52006-08-04 18:18:08 +000025124
Bill Wendlingebcceee2009-04-18 11:20:33 +000025125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25128
25129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25130 # Warning - without using the other run time loading flags,
25131 # -berok will link without error, but may produce a broken library.
25132 no_undefined_flag_GCJ=' ${wl}-bernotok'
25133 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025134 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025135 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025136 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025137 # This is similar to how AIX traditionally builds its shared libraries.
25138 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 +000025139 fi
25140 fi
25141 ;;
25142
25143 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025144 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 +000025145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 hardcode_minus_L_GCJ=yes
25147 # see comment about different semantics on the GNU ld section
25148 ld_shlibs_GCJ=no
25149 ;;
25150
Reid Spencer2706f8c2004-09-19 23:53:36 +000025151 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025152 export_dynamic_flag_spec_GCJ=-rdynamic
25153 ;;
25154
25155 cygwin* | mingw* | pw32*)
25156 # When not using gcc, we currently assume that we are using
25157 # Microsoft Visual C++.
25158 # hardcode_libdir_flag_spec is actually meaningless, as there is
25159 # no search path for DLLs.
25160 hardcode_libdir_flag_spec_GCJ=' '
25161 allow_undefined_flag_GCJ=unsupported
25162 # Tell ltmain to make .lib files, not .a files.
25163 libext=lib
25164 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025165 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025166 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025167 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 +000025168 # The linker will automatically build a .lib file if we build a DLL.
25169 old_archive_From_new_cmds_GCJ='true'
25170 # FIXME: Should let the user specify the lib program.
25171 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025172 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025173 enable_shared_with_static_runtimes_GCJ=yes
25174 ;;
25175
25176 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025177 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 rhapsody* | darwin1.[012])
25179 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25180 ;;
25181 *) # Darwin 1.3 on
25182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25183 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25184 else
25185 case ${MACOSX_DEPLOYMENT_TARGET} in
25186 10.[012])
25187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25188 ;;
25189 10.*)
25190 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25191 ;;
25192 esac
25193 fi
25194 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025195 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025197 hardcode_direct_GCJ=no
25198 hardcode_automatic_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025201 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025202 if test "$GCC" = yes ; then
25203 output_verbose_link_cmd='echo'
25204 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25205 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025206 # 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 +000025207 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}'
25208 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 +000025209 else
Reid Spencera773bd52006-08-04 18:18:08 +000025210 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025211 xlc*)
25212 output_verbose_link_cmd='echo'
25213 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25214 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025215 # 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 +000025216 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}'
25217 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 +000025218 ;;
25219 *)
25220 ld_shlibs_GCJ=no
25221 ;;
25222 esac
John Criswell47fdd832003-07-14 16:52:07 +000025223 fi
25224 ;;
25225
25226 dgux*)
25227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25229 hardcode_shlibpath_var_GCJ=no
25230 ;;
25231
25232 freebsd1*)
25233 ld_shlibs_GCJ=no
25234 ;;
25235
25236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25237 # support. Future versions do this automatically, but an explicit c++rt0.o
25238 # does not break anything, and helps significantly (at the cost of a little
25239 # extra space).
25240 freebsd2.2*)
25241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25243 hardcode_direct_GCJ=yes
25244 hardcode_shlibpath_var_GCJ=no
25245 ;;
25246
25247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25248 freebsd2*)
25249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25250 hardcode_direct_GCJ=yes
25251 hardcode_minus_L_GCJ=yes
25252 hardcode_shlibpath_var_GCJ=no
25253 ;;
25254
25255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025256 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025257 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25261 ;;
25262
25263 hpux9*)
25264 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025265 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 +000025266 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025267 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 +000025268 fi
25269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25270 hardcode_libdir_separator_GCJ=:
25271 hardcode_direct_GCJ=yes
25272
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ=yes
25276 export_dynamic_flag_spec_GCJ='${wl}-E'
25277 ;;
25278
Reid Spencera773bd52006-08-04 18:18:08 +000025279 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025281 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25282 else
25283 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25284 fi
25285 if test "$with_gnu_ld" = no; then
25286 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25288
25289 hardcode_direct_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25291
25292 # hardcode_minus_L: Not really in the search PATH,
25293 # but as the default location of the library.
25294 hardcode_minus_L_GCJ=yes
25295 fi
25296 ;;
25297
25298 hpux11*)
25299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25300 case $host_cpu in
25301 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025302 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25303 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025304 ia64*)
25305 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25306 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025307 *)
25308 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25309 ;;
25310 esac
25311 else
Reid Spencera773bd52006-08-04 18:18:08 +000025312 case $host_cpu in
25313 hppa*64*)
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25315 ;;
25316 ia64*)
25317 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025318 ;;
25319 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025320 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 +000025321 ;;
25322 esac
25323 fi
25324 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25326 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025327
Reid Spencera773bd52006-08-04 18:18:08 +000025328 case $host_cpu in
25329 hppa*64*|ia64*)
25330 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25331 hardcode_direct_GCJ=no
25332 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025333 ;;
25334 *)
John Criswell47fdd832003-07-14 16:52:07 +000025335 hardcode_direct_GCJ=yes
25336 export_dynamic_flag_spec_GCJ='${wl}-E'
25337
25338 # hardcode_minus_L: Not really in the search PATH,
25339 # but as the default location of the library.
25340 hardcode_minus_L_GCJ=yes
25341 ;;
25342 esac
25343 fi
25344 ;;
25345
25346 irix5* | irix6* | nonstopux*)
25347 if test "$GCC" = yes; then
25348 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'
25349 else
25350 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'
25351 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25352 fi
25353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25354 hardcode_libdir_separator_GCJ=:
25355 link_all_deplibs_GCJ=yes
25356 ;;
25357
25358 netbsd*)
25359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25360 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25361 else
25362 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25363 fi
25364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25365 hardcode_direct_GCJ=yes
25366 hardcode_shlibpath_var_GCJ=no
25367 ;;
25368
25369 newsos6)
25370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_direct_GCJ=yes
25372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25373 hardcode_libdir_separator_GCJ=:
25374 hardcode_shlibpath_var_GCJ=no
25375 ;;
25376
25377 openbsd*)
25378 hardcode_direct_GCJ=yes
25379 hardcode_shlibpath_var_GCJ=no
25380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025382 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 +000025383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25384 export_dynamic_flag_spec_GCJ='${wl}-E'
25385 else
25386 case $host_os in
25387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25389 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25390 ;;
25391 *)
25392 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25394 ;;
25395 esac
25396 fi
25397 ;;
25398
25399 os2*)
25400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25401 hardcode_minus_L_GCJ=yes
25402 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025403 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 +000025404 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25405 ;;
25406
25407 osf3*)
25408 if test "$GCC" = yes; then
25409 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25410 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'
25411 else
25412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25413 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'
25414 fi
25415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25416 hardcode_libdir_separator_GCJ=:
25417 ;;
25418
25419 osf4* | osf5*) # as osf3* with the addition of -msym flag
25420 if test "$GCC" = yes; then
25421 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25422 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'
25423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25424 else
25425 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25426 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 +000025427 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 +000025428 $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 +000025429
John Criswell47fdd832003-07-14 16:52:07 +000025430 # Both c and cxx compiler support -rpath directly
25431 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25432 fi
25433 hardcode_libdir_separator_GCJ=:
25434 ;;
25435
John Criswell47fdd832003-07-14 16:52:07 +000025436 solaris*)
25437 no_undefined_flag_GCJ=' -z text'
25438 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025439 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025440 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25442 $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 +000025443 else
Reid Spencera773bd52006-08-04 18:18:08 +000025444 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025445 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025446 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25447 $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 +000025448 fi
25449 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450 hardcode_shlibpath_var_GCJ=no
25451 case $host_os in
25452 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025453 *)
25454 # The compiler driver will combine linker options so we
25455 # cannot just pass the convience library names through
25456 # without $wl, iff we do not link with $LD.
25457 # Luckily, gcc supports the same syntax we need for Sun Studio.
25458 # Supported since Solaris 2.6 (maybe 2.5.1?)
25459 case $wlarc in
25460 '')
25461 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25462 *)
25463 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' ;;
25464 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025465 esac
25466 link_all_deplibs_GCJ=yes
25467 ;;
25468
25469 sunos4*)
25470 if test "x$host_vendor" = xsequent; then
25471 # Use $CC to link under sequent, because it throws in some extra .o
25472 # files that make .init and .fini sections work.
25473 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25474 else
25475 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25476 fi
25477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478 hardcode_direct_GCJ=yes
25479 hardcode_minus_L_GCJ=yes
25480 hardcode_shlibpath_var_GCJ=no
25481 ;;
25482
25483 sysv4)
25484 case $host_vendor in
25485 sni)
25486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25487 hardcode_direct_GCJ=yes # is this really true???
25488 ;;
25489 siemens)
25490 ## LD is ld it makes a PLAMLIB
25491 ## CC just makes a GrossModule.
25492 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25493 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25494 hardcode_direct_GCJ=no
25495 ;;
25496 motorola)
25497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25499 ;;
25500 esac
25501 runpath_var='LD_RUN_PATH'
25502 hardcode_shlibpath_var_GCJ=no
25503 ;;
25504
25505 sysv4.3*)
25506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25507 hardcode_shlibpath_var_GCJ=no
25508 export_dynamic_flag_spec_GCJ='-Bexport'
25509 ;;
25510
25511 sysv4*MP*)
25512 if test -d /usr/nec; then
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 runpath_var=LD_RUN_PATH
25516 hardcode_runpath_var=yes
25517 ld_shlibs_GCJ=yes
25518 fi
25519 ;;
25520
Reid Spencera773bd52006-08-04 18:18:08 +000025521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25522 no_undefined_flag_GCJ='${wl}-z,text'
25523 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025524 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025525 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025526
John Criswell47fdd832003-07-14 16:52:07 +000025527 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025528 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25529 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 +000025530 else
Reid Spencera773bd52006-08-04 18:18:08 +000025531 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25532 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 +000025533 fi
John Criswell47fdd832003-07-14 16:52:07 +000025534 ;;
25535
Reid Spencera773bd52006-08-04 18:18:08 +000025536 sysv5* | sco3.2v5* | sco5v6*)
25537 # Note: We can NOT use -z defs as we might desire, because we do not
25538 # link with -lc, and that would cause any symbols used from libc to
25539 # always be unresolved, which means just about no library would
25540 # ever link correctly. If we're not using GNU ld we use -z text
25541 # though, which does catch some bad symbols but isn't as heavy-handed
25542 # as -z defs.
25543 no_undefined_flag_GCJ='${wl}-z,text'
25544 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25545 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025546 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025547 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25548 hardcode_libdir_separator_GCJ=':'
25549 link_all_deplibs_GCJ=yes
25550 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025551 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025552
25553 if test "$GCC" = yes; then
25554 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25556 else
25557 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25559 fi
John Criswell47fdd832003-07-14 16:52:07 +000025560 ;;
25561
25562 uts4*)
25563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25565 hardcode_shlibpath_var_GCJ=no
25566 ;;
25567
25568 *)
25569 ld_shlibs_GCJ=no
25570 ;;
25571 esac
25572 fi
25573
Reid Spencera773bd52006-08-04 18:18:08 +000025574{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25575echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025576test "$ld_shlibs_GCJ" = no && can_build_shared=no
25577
John Criswell47fdd832003-07-14 16:52:07 +000025578#
25579# Do we need to explicitly link libc?
25580#
25581case "x$archive_cmds_need_lc_GCJ" in
25582x|xyes)
25583 # Assume -lc should be added
25584 archive_cmds_need_lc_GCJ=yes
25585
25586 if test "$enable_shared" = yes && test "$GCC" = yes; then
25587 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025588 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025589 # FIXME: we may have to deal with multi-command sequences.
25590 ;;
25591 '$CC '*)
25592 # Test whether the compiler implicitly links with -lc since on some
25593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25594 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025597 $rm conftest*
25598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25599
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } 2>conftest.err; then
25605 soname=conftest
25606 lib=conftest
25607 libobjs=conftest.$ac_objext
25608 deplibs=
25609 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025610 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025611 compiler_flags=-v
25612 linker_flags=-v
25613 verstring=
25614 output_objdir=.
25615 libname=conftest
25616 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25617 allow_undefined_flag_GCJ=
25618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25619 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }
25623 then
25624 archive_cmds_need_lc_GCJ=no
25625 else
25626 archive_cmds_need_lc_GCJ=yes
25627 fi
25628 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25629 else
25630 cat conftest.err 1>&5
25631 fi
25632 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25634echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025635 ;;
25636 esac
25637 fi
25638 ;;
25639esac
25640
Reid Spencera773bd52006-08-04 18:18:08 +000025641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025643library_names_spec=
25644libname_spec='lib$name'
25645soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025646shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025647postinstall_cmds=
25648postuninstall_cmds=
25649finish_cmds=
25650finish_eval=
25651shlibpath_var=
25652shlibpath_overrides_runpath=unknown
25653version_type=none
25654dynamic_linker="$host_os ld.so"
25655sys_lib_dlsearch_path_spec="/lib /usr/lib"
25656if test "$GCC" = yes; then
25657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25659 # if the path contains ";" then we assume it to be the separator
25660 # otherwise default to the standard path separator (i.e. ":") - it is
25661 # assumed that no part of a normal pathname contains ";" but that should
25662 # okay in the real world where ";" in dirpaths is itself problematic.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664 else
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25666 fi
25667else
25668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25669fi
25670need_lib_prefix=unknown
25671hardcode_into_libs=no
25672
25673# when you set need_version to no, make sure it does not cause -set_version
25674# flags to be left without arguments
25675need_version=unknown
25676
25677case $host_os in
25678aix3*)
25679 version_type=linux
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25681 shlibpath_var=LIBPATH
25682
25683 # AIX 3 has no versioning support, so we append a major version to the name.
25684 soname_spec='${libname}${release}${shared_ext}$major'
25685 ;;
25686
25687aix4* | aix5*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 hardcode_into_libs=yes
25692 if test "$host_cpu" = ia64; then
25693 # AIX 5 supports IA64
25694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25695 shlibpath_var=LD_LIBRARY_PATH
25696 else
25697 # With GCC up to 2.95.x, collect2 would create an import file
25698 # for dependence libraries. The import file would start with
25699 # the line `#! .'. This would cause the generated library to
25700 # depend on `.', always an invalid library. This was fixed in
25701 # development snapshots of GCC prior to 3.0.
25702 case $host_os in
25703 aix4 | aix4.[01] | aix4.[01].*)
25704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25705 echo ' yes '
25706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25707 :
25708 else
25709 can_build_shared=no
25710 fi
25711 ;;
25712 esac
25713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25714 # soname into executable. Probably we can add versioning support to
25715 # collect2, so additional links can be useful in future.
25716 if test "$aix_use_runtimelinking" = yes; then
25717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25718 # instead of lib<name>.a to let people know that these are not
25719 # typical AIX shared libraries.
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721 else
25722 # We preserve .a as extension for shared libraries through AIX4.2
25723 # and later when we are not doing run time linking.
25724 library_names_spec='${libname}${release}.a $libname.a'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 fi
25727 shlibpath_var=LIBPATH
25728 fi
25729 ;;
25730
25731amigaos*)
25732 library_names_spec='$libname.ixlibrary $libname.a'
25733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734 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 +000025735 ;;
25736
25737beos*)
25738 library_names_spec='${libname}${shared_ext}'
25739 dynamic_linker="$host_os ld.so"
25740 shlibpath_var=LIBRARY_PATH
25741 ;;
25742
Reid Spencer2706f8c2004-09-19 23:53:36 +000025743bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025744 version_type=linux
25745 need_version=no
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25752 # the default ld.so.conf also contains /usr/contrib/lib and
25753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25754 # libtool to hard-code these into programs
25755 ;;
25756
25757cygwin* | mingw* | pw32*)
25758 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025759 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025760 need_version=no
25761 need_lib_prefix=no
25762
25763 case $GCC,$host_os in
25764 yes,cygwin* | yes,mingw* | yes,pw32*)
25765 library_names_spec='$libname.dll.a'
25766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025767 postinstall_cmds='base_file=`basename \${file}`~
25768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25769 dldir=$destdir/`dirname \$dlpath`~
25770 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025771 $install_prog $dir/$dlname \$dldir/$dlname~
25772 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25774 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025775 $rm \$dlpath'
25776 shlibpath_overrides_runpath=yes
25777
25778 case $host_os in
25779 cygwin*)
25780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25781 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 +000025782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025783 ;;
25784 mingw*)
25785 # MinGW DLLs use traditional 'lib' prefix
25786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25789 # It is most probably a Windows format PATH printed by
25790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25791 # path with ; separators, and with drive letters. We can handle the
25792 # drive letters (cygwin fileutils understands them), so leave them,
25793 # especially as we might pass files found there to a mingw objdump,
25794 # which wouldn't understand a cygwinified path. Ahh.
25795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25796 else
25797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25798 fi
25799 ;;
25800 pw32*)
25801 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025802 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 +000025803 ;;
25804 esac
25805 ;;
25806
25807 *)
25808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25809 ;;
25810 esac
25811 dynamic_linker='Win32 ld.exe'
25812 # FIXME: first we should search . and the directory the executable is in
25813 shlibpath_var=PATH
25814 ;;
25815
25816darwin* | rhapsody*)
25817 dynamic_linker="$host_os dyld"
25818 version_type=darwin
25819 need_lib_prefix=no
25820 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025822 soname_spec='${libname}${release}${major}$shared_ext'
25823 shlibpath_overrides_runpath=yes
25824 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025825 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025827 if test "$GCC" = yes; then
25828 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"`
25829 else
25830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025831 fi
25832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25833 ;;
25834
25835dgux*)
25836 version_type=linux
25837 need_lib_prefix=no
25838 need_version=no
25839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25840 soname_spec='${libname}${release}${shared_ext}$major'
25841 shlibpath_var=LD_LIBRARY_PATH
25842 ;;
25843
25844freebsd1*)
25845 dynamic_linker=no
25846 ;;
25847
Reid Spencer2706f8c2004-09-19 23:53:36 +000025848kfreebsd*-gnu)
25849 version_type=linux
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 shlibpath_overrides_runpath=no
25856 hardcode_into_libs=yes
25857 dynamic_linker='GNU ld.so'
25858 ;;
25859
Reid Spencera773bd52006-08-04 18:18:08 +000025860freebsd* | dragonfly*)
25861 # DragonFly does not have aout. When/if they implement a new
25862 # versioning mechanism, adjust this.
25863 if test -x /usr/bin/objformat; then
25864 objformat=`/usr/bin/objformat`
25865 else
25866 case $host_os in
25867 freebsd[123]*) objformat=aout ;;
25868 *) objformat=elf ;;
25869 esac
25870 fi
John Criswell47fdd832003-07-14 16:52:07 +000025871 version_type=freebsd-$objformat
25872 case $version_type in
25873 freebsd-elf*)
25874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25875 need_version=no
25876 need_lib_prefix=no
25877 ;;
25878 freebsd-*)
25879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25880 need_version=yes
25881 ;;
25882 esac
25883 shlibpath_var=LD_LIBRARY_PATH
25884 case $host_os in
25885 freebsd2*)
25886 shlibpath_overrides_runpath=yes
25887 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025888 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025889 shlibpath_overrides_runpath=yes
25890 hardcode_into_libs=yes
25891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025894 shlibpath_overrides_runpath=no
25895 hardcode_into_libs=yes
25896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025897 freebsd*) # from 4.6 on
25898 shlibpath_overrides_runpath=yes
25899 hardcode_into_libs=yes
25900 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025901 esac
25902 ;;
25903
25904gnu*)
25905 version_type=linux
25906 need_lib_prefix=no
25907 need_version=no
25908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25909 soname_spec='${libname}${release}${shared_ext}$major'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 hardcode_into_libs=yes
25912 ;;
25913
25914hpux9* | hpux10* | hpux11*)
25915 # Give a soname corresponding to the major version so that dld.sl refuses to
25916 # link against other versions.
25917 version_type=sunos
25918 need_lib_prefix=no
25919 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025920 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025921 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025922 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025923 hardcode_into_libs=yes
25924 dynamic_linker="$host_os dld.so"
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 if test "X$HPUX_IA64_MODE" = X32; then
25930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25931 else
25932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25933 fi
25934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25935 ;;
25936 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025937 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025938 hardcode_into_libs=yes
25939 dynamic_linker="$host_os dld.sl"
25940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25946 ;;
25947 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025949 dynamic_linker="$host_os dld.sl"
25950 shlibpath_var=SHLIB_PATH
25951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec='${libname}${release}${shared_ext}$major'
25954 ;;
25955 esac
25956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25957 postinstall_cmds='chmod 555 $lib'
25958 ;;
25959
Reid Spencera773bd52006-08-04 18:18:08 +000025960interix3*)
25961 version_type=linux
25962 need_lib_prefix=no
25963 need_version=no
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25965 soname_spec='${libname}${release}${shared_ext}$major'
25966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=no
25969 hardcode_into_libs=yes
25970 ;;
25971
John Criswell47fdd832003-07-14 16:52:07 +000025972irix5* | irix6* | nonstopux*)
25973 case $host_os in
25974 nonstopux*) version_type=nonstopux ;;
25975 *)
25976 if test "$lt_cv_prog_gnu_ld" = yes; then
25977 version_type=linux
25978 else
25979 version_type=irix
25980 fi ;;
25981 esac
25982 need_lib_prefix=no
25983 need_version=no
25984 soname_spec='${libname}${release}${shared_ext}$major'
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25986 case $host_os in
25987 irix5* | nonstopux*)
25988 libsuff= shlibsuff=
25989 ;;
25990 *)
25991 case $LD in # libtool.m4 will add one of these switches to LD
25992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25993 libsuff= shlibsuff= libmagic=32-bit;;
25994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25995 libsuff=32 shlibsuff=N32 libmagic=N32;;
25996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25998 *) libsuff= shlibsuff= libmagic=never-match;;
25999 esac
26000 ;;
26001 esac
26002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26003 shlibpath_overrides_runpath=no
26004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26006 hardcode_into_libs=yes
26007 ;;
26008
26009# No shared lib support for Linux oldld, aout, or coff.
26010linux*oldld* | linux*aout* | linux*coff*)
26011 dynamic_linker=no
26012 ;;
26013
26014# This must be Linux ELF.
26015linux*)
26016 version_type=linux
26017 need_lib_prefix=no
26018 need_version=no
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26020 soname_spec='${libname}${release}${shared_ext}$major'
26021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=no
26024 # This implies no fast_install, which is unacceptable.
26025 # Some rework will be needed to allow for fast_install
26026 # before this can be enabled.
26027 hardcode_into_libs=yes
26028
Reid Spencer2706f8c2004-09-19 23:53:36 +000026029 # Append ld.so.conf contents to the search path
26030 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026031 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 +000026032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26033 fi
26034
John Criswell47fdd832003-07-14 16:52:07 +000026035 # We used to test for /lib/ld.so.1 and disable shared libraries on
26036 # powerpc, because MkLinux only supported shared libraries with the
26037 # GNU dynamic linker. Since this was broken with cross compilers,
26038 # most powerpc-linux boxes support dynamic linking these days and
26039 # people can always --disable-shared, the test was removed, and we
26040 # assume the GNU/Linux dynamic linker is in use.
26041 dynamic_linker='GNU/Linux ld.so'
26042 ;;
26043
Reid Spencer2706f8c2004-09-19 23:53:36 +000026044knetbsd*-gnu)
26045 version_type=linux
26046 need_lib_prefix=no
26047 need_version=no
26048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 shlibpath_var=LD_LIBRARY_PATH
26051 shlibpath_overrides_runpath=no
26052 hardcode_into_libs=yes
26053 dynamic_linker='GNU ld.so'
26054 ;;
26055
John Criswell47fdd832003-07-14 16:52:07 +000026056netbsd*)
26057 version_type=sunos
26058 need_lib_prefix=no
26059 need_version=no
26060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26063 dynamic_linker='NetBSD (a.out) ld.so'
26064 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026066 soname_spec='${libname}${release}${shared_ext}$major'
26067 dynamic_linker='NetBSD ld.elf_so'
26068 fi
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26071 hardcode_into_libs=yes
26072 ;;
26073
26074newsos6)
26075 version_type=linux
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 shlibpath_var=LD_LIBRARY_PATH
26078 shlibpath_overrides_runpath=yes
26079 ;;
26080
Reid Spencer2706f8c2004-09-19 23:53:36 +000026081nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026082 version_type=linux
26083 need_lib_prefix=no
26084 need_version=no
26085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26086 soname_spec='${libname}${release}${shared_ext}$major'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=yes
26089 ;;
26090
26091openbsd*)
26092 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026093 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026094 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26096 case $host_os in
26097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26098 *) need_version=no ;;
26099 esac
John Criswell47fdd832003-07-14 16:52:07 +000026100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26102 shlibpath_var=LD_LIBRARY_PATH
26103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26104 case $host_os in
26105 openbsd2.[89] | openbsd2.[89].*)
26106 shlibpath_overrides_runpath=no
26107 ;;
26108 *)
26109 shlibpath_overrides_runpath=yes
26110 ;;
26111 esac
26112 else
26113 shlibpath_overrides_runpath=yes
26114 fi
26115 ;;
26116
26117os2*)
26118 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026119 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026120 need_lib_prefix=no
26121 library_names_spec='$libname${shared_ext} $libname.a'
26122 dynamic_linker='OS/2 ld.exe'
26123 shlibpath_var=LIBPATH
26124 ;;
26125
26126osf3* | osf4* | osf5*)
26127 version_type=osf
26128 need_lib_prefix=no
26129 need_version=no
26130 soname_spec='${libname}${release}${shared_ext}$major'
26131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26135 ;;
26136
John Criswell47fdd832003-07-14 16:52:07 +000026137solaris*)
26138 version_type=linux
26139 need_lib_prefix=no
26140 need_version=no
26141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142 soname_spec='${libname}${release}${shared_ext}$major'
26143 shlibpath_var=LD_LIBRARY_PATH
26144 shlibpath_overrides_runpath=yes
26145 hardcode_into_libs=yes
26146 # ldd complains unless libraries are executable
26147 postinstall_cmds='chmod +x $lib'
26148 ;;
26149
26150sunos4*)
26151 version_type=sunos
26152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26154 shlibpath_var=LD_LIBRARY_PATH
26155 shlibpath_overrides_runpath=yes
26156 if test "$with_gnu_ld" = yes; then
26157 need_lib_prefix=no
26158 fi
26159 need_version=yes
26160 ;;
26161
Reid Spencera773bd52006-08-04 18:18:08 +000026162sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026163 version_type=linux
26164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26165 soname_spec='${libname}${release}${shared_ext}$major'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 case $host_vendor in
26168 sni)
26169 shlibpath_overrides_runpath=no
26170 need_lib_prefix=no
26171 export_dynamic_flag_spec='${wl}-Blargedynsym'
26172 runpath_var=LD_RUN_PATH
26173 ;;
26174 siemens)
26175 need_lib_prefix=no
26176 ;;
26177 motorola)
26178 need_lib_prefix=no
26179 need_version=no
26180 shlibpath_overrides_runpath=no
26181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26182 ;;
26183 esac
26184 ;;
26185
26186sysv4*MP*)
26187 if test -d /usr/nec ;then
26188 version_type=linux
26189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26190 soname_spec='$libname${shared_ext}.$major'
26191 shlibpath_var=LD_LIBRARY_PATH
26192 fi
26193 ;;
26194
Reid Spencera773bd52006-08-04 18:18:08 +000026195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26196 version_type=freebsd-elf
26197 need_lib_prefix=no
26198 need_version=no
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 hardcode_into_libs=yes
26203 if test "$with_gnu_ld" = yes; then
26204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26205 shlibpath_overrides_runpath=no
26206 else
26207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26208 shlibpath_overrides_runpath=yes
26209 case $host_os in
26210 sco3.2v5*)
26211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26212 ;;
26213 esac
26214 fi
26215 sys_lib_dlsearch_path_spec='/usr/lib'
26216 ;;
26217
John Criswell47fdd832003-07-14 16:52:07 +000026218uts4*)
26219 version_type=linux
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 soname_spec='${libname}${release}${shared_ext}$major'
26222 shlibpath_var=LD_LIBRARY_PATH
26223 ;;
26224
26225*)
26226 dynamic_linker=no
26227 ;;
26228esac
Reid Spencera773bd52006-08-04 18:18:08 +000026229{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26230echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026231test "$dynamic_linker" = no && can_build_shared=no
26232
Reid Spencera773bd52006-08-04 18:18:08 +000026233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26234if test "$GCC" = yes; then
26235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26236fi
26237
26238{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26239echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026240hardcode_action_GCJ=
26241if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26242 test -n "$runpath_var_GCJ" || \
26243 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26244
26245 # We can hardcode non-existant directories.
26246 if test "$hardcode_direct_GCJ" != no &&
26247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26248 # have to relink, otherwise we might link with an installed library
26249 # when we should be linking with a yet-to-be-installed one
26250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26251 test "$hardcode_minus_L_GCJ" != no; then
26252 # Linking always hardcodes the temporary library directory.
26253 hardcode_action_GCJ=relink
26254 else
26255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26256 hardcode_action_GCJ=immediate
26257 fi
26258else
26259 # We cannot hardcode anything, or else we can only hardcode existing
26260 # directories.
26261 hardcode_action_GCJ=unsupported
26262fi
Reid Spencera773bd52006-08-04 18:18:08 +000026263{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26264echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026265
26266if test "$hardcode_action_GCJ" = relink; then
26267 # Fast installation is not supported
26268 enable_fast_install=no
26269elif test "$shlibpath_overrides_runpath" = yes ||
26270 test "$enable_shared" = no; then
26271 # Fast installation is not necessary
26272 enable_fast_install=needless
26273fi
26274
John Criswell47fdd832003-07-14 16:52:07 +000026275
26276# The else clause should only fire when bootstrapping the
26277# libtool distribution, otherwise you forgot to ship ltmain.sh
26278# with your package, and you will get complaints that there are
26279# no rules to generate ltmain.sh.
26280if test -f "$ltmain"; then
26281 # See if we are running on zsh, and set the options which allow our commands through
26282 # without removal of \ escapes.
26283 if test -n "${ZSH_VERSION+set}" ; then
26284 setopt NO_GLOB_SUBST
26285 fi
26286 # Now quote all the things that may contain metacharacters while being
26287 # careful not to overquote the AC_SUBSTed values. We take copies of the
26288 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026289 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 +000026290 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26293 deplibs_check_method reload_flag reload_cmds need_locks \
26294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26295 lt_cv_sys_global_symbol_to_c_name_address \
26296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26297 old_postinstall_cmds old_postuninstall_cmds \
26298 compiler_GCJ \
26299 CC_GCJ \
26300 LD_GCJ \
26301 lt_prog_compiler_wl_GCJ \
26302 lt_prog_compiler_pic_GCJ \
26303 lt_prog_compiler_static_GCJ \
26304 lt_prog_compiler_no_builtin_flag_GCJ \
26305 export_dynamic_flag_spec_GCJ \
26306 thread_safe_flag_spec_GCJ \
26307 whole_archive_flag_spec_GCJ \
26308 enable_shared_with_static_runtimes_GCJ \
26309 old_archive_cmds_GCJ \
26310 old_archive_from_new_cmds_GCJ \
26311 predep_objects_GCJ \
26312 postdep_objects_GCJ \
26313 predeps_GCJ \
26314 postdeps_GCJ \
26315 compiler_lib_search_path_GCJ \
26316 archive_cmds_GCJ \
26317 archive_expsym_cmds_GCJ \
26318 postinstall_cmds_GCJ \
26319 postuninstall_cmds_GCJ \
26320 old_archive_from_expsyms_cmds_GCJ \
26321 allow_undefined_flag_GCJ \
26322 no_undefined_flag_GCJ \
26323 export_symbols_cmds_GCJ \
26324 hardcode_libdir_flag_spec_GCJ \
26325 hardcode_libdir_flag_spec_ld_GCJ \
26326 hardcode_libdir_separator_GCJ \
26327 hardcode_automatic_GCJ \
26328 module_cmds_GCJ \
26329 module_expsym_cmds_GCJ \
26330 lt_cv_prog_compiler_c_o_GCJ \
26331 exclude_expsyms_GCJ \
26332 include_expsyms_GCJ; do
26333
26334 case $var in
26335 old_archive_cmds_GCJ | \
26336 old_archive_from_new_cmds_GCJ | \
26337 archive_cmds_GCJ | \
26338 archive_expsym_cmds_GCJ | \
26339 module_cmds_GCJ | \
26340 module_expsym_cmds_GCJ | \
26341 old_archive_from_expsyms_cmds_GCJ | \
26342 export_symbols_cmds_GCJ | \
26343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26344 postinstall_cmds | postuninstall_cmds | \
26345 old_postinstall_cmds | old_postuninstall_cmds | \
26346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26347 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026348 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 +000026349 ;;
26350 *)
26351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26352 ;;
26353 esac
26354 done
26355
26356 case $lt_echo in
26357 *'\$0 --fallback-echo"')
26358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26359 ;;
26360 esac
26361
26362cfgfile="$ofile"
26363
26364 cat <<__EOF__ >> "$cfgfile"
26365# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26366
26367# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26368
26369# Shell to use when invoking shell scripts.
26370SHELL=$lt_SHELL
26371
26372# Whether or not to build shared libraries.
26373build_libtool_libs=$enable_shared
26374
26375# Whether or not to build static libraries.
26376build_old_libs=$enable_static
26377
26378# Whether or not to add -lc for building shared libraries.
26379build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26380
26381# Whether or not to disallow shared libs when runtime libs are static
26382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26383
26384# Whether or not to optimize for fast installation.
26385fast_install=$enable_fast_install
26386
26387# The host system.
26388host_alias=$host_alias
26389host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026390host_os=$host_os
26391
26392# The build system.
26393build_alias=$build_alias
26394build=$build
26395build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026396
26397# An echo program that does not interpret backslashes.
26398echo=$lt_echo
26399
26400# The archiver.
26401AR=$lt_AR
26402AR_FLAGS=$lt_AR_FLAGS
26403
26404# A C compiler.
26405LTCC=$lt_LTCC
26406
Reid Spencera773bd52006-08-04 18:18:08 +000026407# LTCC compiler flags.
26408LTCFLAGS=$lt_LTCFLAGS
26409
John Criswell47fdd832003-07-14 16:52:07 +000026410# A language-specific compiler.
26411CC=$lt_compiler_GCJ
26412
26413# Is the compiler the GNU C compiler?
26414with_gcc=$GCC_GCJ
26415
26416# An ERE matcher.
26417EGREP=$lt_EGREP
26418
26419# The linker used to build libraries.
26420LD=$lt_LD_GCJ
26421
26422# Whether we need hard or soft links.
26423LN_S=$lt_LN_S
26424
26425# A BSD-compatible nm program.
26426NM=$lt_NM
26427
26428# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026429STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026430
26431# Used to examine libraries when file_magic_cmd begins "file"
26432MAGIC_CMD=$MAGIC_CMD
26433
26434# Used on cygwin: DLL creation program.
26435DLLTOOL="$DLLTOOL"
26436
26437# Used on cygwin: object dumper.
26438OBJDUMP="$OBJDUMP"
26439
26440# Used on cygwin: assembler.
26441AS="$AS"
26442
26443# The name of the directory that contains temporary libtool files.
26444objdir=$objdir
26445
26446# How to create reloadable object files.
26447reload_flag=$lt_reload_flag
26448reload_cmds=$lt_reload_cmds
26449
26450# How to pass a linker flag through the compiler.
26451wl=$lt_lt_prog_compiler_wl_GCJ
26452
26453# Object file suffix (normally "o").
26454objext="$ac_objext"
26455
26456# Old archive suffix (normally "a").
26457libext="$libext"
26458
26459# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026460shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026461
26462# Executable file suffix (normally "").
26463exeext="$exeext"
26464
26465# Additional compiler flags for building library objects.
26466pic_flag=$lt_lt_prog_compiler_pic_GCJ
26467pic_mode=$pic_mode
26468
26469# What is the maximum length of a command?
26470max_cmd_len=$lt_cv_sys_max_cmd_len
26471
26472# Does compiler simultaneously support -c and -o options?
26473compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26474
Reid Spencera773bd52006-08-04 18:18:08 +000026475# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026476need_locks=$lt_need_locks
26477
26478# Do we need the lib prefix for modules?
26479need_lib_prefix=$need_lib_prefix
26480
26481# Do we need a version for libraries?
26482need_version=$need_version
26483
26484# Whether dlopen is supported.
26485dlopen_support=$enable_dlopen
26486
26487# Whether dlopen of programs is supported.
26488dlopen_self=$enable_dlopen_self
26489
26490# Whether dlopen of statically linked programs is supported.
26491dlopen_self_static=$enable_dlopen_self_static
26492
26493# Compiler flag to prevent dynamic linking.
26494link_static_flag=$lt_lt_prog_compiler_static_GCJ
26495
26496# Compiler flag to turn off builtin functions.
26497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26498
26499# Compiler flag to allow reflexive dlopens.
26500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26501
26502# Compiler flag to generate shared objects directly from archives.
26503whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26504
26505# Compiler flag to generate thread-safe objects.
26506thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26507
26508# Library versioning type.
26509version_type=$version_type
26510
26511# Format of library name prefix.
26512libname_spec=$lt_libname_spec
26513
26514# List of archive names. First name is the real one, the rest are links.
26515# The last name is the one that the linker finds with -lNAME.
26516library_names_spec=$lt_library_names_spec
26517
26518# The coded name of the library, if different from the real name.
26519soname_spec=$lt_soname_spec
26520
26521# Commands used to build and install an old-style archive.
26522RANLIB=$lt_RANLIB
26523old_archive_cmds=$lt_old_archive_cmds_GCJ
26524old_postinstall_cmds=$lt_old_postinstall_cmds
26525old_postuninstall_cmds=$lt_old_postuninstall_cmds
26526
26527# Create an old-style archive from a shared archive.
26528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26529
26530# Create a temporary old-style archive to link instead of a shared archive.
26531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26532
26533# Commands used to build and install a shared archive.
26534archive_cmds=$lt_archive_cmds_GCJ
26535archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26536postinstall_cmds=$lt_postinstall_cmds
26537postuninstall_cmds=$lt_postuninstall_cmds
26538
26539# Commands used to build a loadable module (assumed same as above if empty)
26540module_cmds=$lt_module_cmds_GCJ
26541module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26542
26543# Commands to strip libraries.
26544old_striplib=$lt_old_striplib
26545striplib=$lt_striplib
26546
26547# Dependencies to place before the objects being linked to create a
26548# shared library.
26549predep_objects=$lt_predep_objects_GCJ
26550
26551# Dependencies to place after the objects being linked to create a
26552# shared library.
26553postdep_objects=$lt_postdep_objects_GCJ
26554
26555# Dependencies to place before the objects being linked to create a
26556# shared library.
26557predeps=$lt_predeps_GCJ
26558
26559# Dependencies to place after the objects being linked to create a
26560# shared library.
26561postdeps=$lt_postdeps_GCJ
26562
26563# The library search path used internally by the compiler when linking
26564# a shared library.
26565compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26566
26567# Method to check whether dependent libraries are shared objects.
26568deplibs_check_method=$lt_deplibs_check_method
26569
26570# Command to use when deplibs_check_method == file_magic.
26571file_magic_cmd=$lt_file_magic_cmd
26572
26573# Flag that allows shared libraries with undefined symbols to be built.
26574allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26575
26576# Flag that forces no undefined symbols.
26577no_undefined_flag=$lt_no_undefined_flag_GCJ
26578
26579# Commands used to finish a libtool library installation in a directory.
26580finish_cmds=$lt_finish_cmds
26581
26582# Same as above, but a single script fragment to be evaled but not shown.
26583finish_eval=$lt_finish_eval
26584
26585# Take the output of nm and produce a listing of raw symbols and C names.
26586global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26587
26588# Transform the output of nm in a proper C declaration
26589global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26590
26591# Transform the output of nm in a C name address pair
26592global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26593
26594# This is the shared library runtime path variable.
26595runpath_var=$runpath_var
26596
26597# This is the shared library path variable.
26598shlibpath_var=$shlibpath_var
26599
26600# Is shlibpath searched before the hard-coded library search path?
26601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26602
26603# How to hardcode a shared library path into an executable.
26604hardcode_action=$hardcode_action_GCJ
26605
26606# Whether we should hardcode library paths into libraries.
26607hardcode_into_libs=$hardcode_into_libs
26608
26609# Flag to hardcode \$libdir into a binary during linking.
26610# This must work even if \$libdir does not exist.
26611hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26612
26613# If ld is used when linking, flag to hardcode \$libdir into
26614# a binary during linking. This must work even if \$libdir does
26615# not exist.
26616hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26617
26618# Whether we need a single -rpath flag with a separated argument.
26619hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26620
26621# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26622# resulting binary.
26623hardcode_direct=$hardcode_direct_GCJ
26624
26625# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26626# resulting binary.
26627hardcode_minus_L=$hardcode_minus_L_GCJ
26628
26629# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26630# the resulting binary.
26631hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26632
26633# Set to yes if building a shared library automatically hardcodes DIR into the library
26634# and all subsequent libraries and executables linked against it.
26635hardcode_automatic=$hardcode_automatic_GCJ
26636
26637# Variables whose values should be saved in libtool wrapper scripts and
26638# restored at relink time.
26639variables_saved_for_relink="$variables_saved_for_relink"
26640
26641# Whether libtool must link a program against all its dependency libraries.
26642link_all_deplibs=$link_all_deplibs_GCJ
26643
26644# Compile-time system search path for libraries
26645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26646
26647# Run-time system search path for libraries
26648sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26649
26650# Fix the shell variable \$srcfile for the compiler.
26651fix_srcfile_path="$fix_srcfile_path_GCJ"
26652
26653# Set to yes if exported symbols are required.
26654always_export_symbols=$always_export_symbols_GCJ
26655
26656# The commands to list exported symbols.
26657export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26658
26659# The commands to extract the exported symbol list from a shared archive.
26660extract_expsyms_cmds=$lt_extract_expsyms_cmds
26661
26662# Symbols that should not be listed in the preloaded symbols.
26663exclude_expsyms=$lt_exclude_expsyms_GCJ
26664
26665# Symbols that must always be exported.
26666include_expsyms=$lt_include_expsyms_GCJ
26667
26668# ### END LIBTOOL TAG CONFIG: $tagname
26669
26670__EOF__
26671
26672
26673else
26674 # If there is no Makefile yet, we rely on a make rule to execute
26675 # `config.status --recheck' to rerun these tests and create the
26676 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26678 if test -f "$ltmain_in"; then
26679 test -f Makefile && make "$ltmain"
26680 fi
John Criswell47fdd832003-07-14 16:52:07 +000026681fi
26682
26683
26684ac_ext=c
26685ac_cpp='$CPP $CPPFLAGS'
26686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688ac_compiler_gnu=$ac_cv_c_compiler_gnu
26689
26690CC="$lt_save_CC"
26691
26692 else
26693 tagname=""
26694 fi
26695 ;;
26696
26697 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026698 ac_ext=c
26699ac_cpp='$CPP $CPPFLAGS'
26700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026703
26704
26705# Source file extension for RC test sources.
26706ac_ext=rc
26707
26708# Object file extension for compiled RC test sources.
26709objext=o
26710objext_RC=$objext
26711
26712# Code to be used in simple compile tests
26713lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26714
26715# Code to be used in simple link tests
26716lt_simple_link_test_code="$lt_simple_compile_test_code"
26717
26718# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26719
26720# If no C compiler was specified, use CC.
26721LTCC=${LTCC-"$CC"}
26722
Reid Spencera773bd52006-08-04 18:18:08 +000026723# If no C compiler flags were specified, use CFLAGS.
26724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26725
John Criswell47fdd832003-07-14 16:52:07 +000026726# Allow CC to be a program name with arguments.
26727compiler=$CC
26728
26729
Reid Spencera773bd52006-08-04 18:18:08 +000026730# save warnings/boilerplate of simple test code
26731ac_outfile=conftest.$ac_objext
26732printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734_lt_compiler_boilerplate=`cat conftest.err`
26735$rm conftest*
26736
26737ac_outfile=conftest.$ac_objext
26738printf "$lt_simple_link_test_code" >conftest.$ac_ext
26739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26740_lt_linker_boilerplate=`cat conftest.err`
26741$rm conftest*
26742
26743
John Criswell47fdd832003-07-14 16:52:07 +000026744# Allow CC to be a program name with arguments.
26745lt_save_CC="$CC"
26746CC=${RC-"windres"}
26747compiler=$CC
26748compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026749for cc_temp in $compiler""; do
26750 case $cc_temp in
26751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26753 \-*) ;;
26754 *) break;;
26755 esac
26756done
26757cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26758
John Criswell47fdd832003-07-14 16:52:07 +000026759lt_cv_prog_compiler_c_o_RC=yes
26760
26761# The else clause should only fire when bootstrapping the
26762# libtool distribution, otherwise you forgot to ship ltmain.sh
26763# with your package, and you will get complaints that there are
26764# no rules to generate ltmain.sh.
26765if test -f "$ltmain"; then
26766 # See if we are running on zsh, and set the options which allow our commands through
26767 # without removal of \ escapes.
26768 if test -n "${ZSH_VERSION+set}" ; then
26769 setopt NO_GLOB_SUBST
26770 fi
26771 # Now quote all the things that may contain metacharacters while being
26772 # careful not to overquote the AC_SUBSTed values. We take copies of the
26773 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026774 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 +000026775 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26778 deplibs_check_method reload_flag reload_cmds need_locks \
26779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26780 lt_cv_sys_global_symbol_to_c_name_address \
26781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26782 old_postinstall_cmds old_postuninstall_cmds \
26783 compiler_RC \
26784 CC_RC \
26785 LD_RC \
26786 lt_prog_compiler_wl_RC \
26787 lt_prog_compiler_pic_RC \
26788 lt_prog_compiler_static_RC \
26789 lt_prog_compiler_no_builtin_flag_RC \
26790 export_dynamic_flag_spec_RC \
26791 thread_safe_flag_spec_RC \
26792 whole_archive_flag_spec_RC \
26793 enable_shared_with_static_runtimes_RC \
26794 old_archive_cmds_RC \
26795 old_archive_from_new_cmds_RC \
26796 predep_objects_RC \
26797 postdep_objects_RC \
26798 predeps_RC \
26799 postdeps_RC \
26800 compiler_lib_search_path_RC \
26801 archive_cmds_RC \
26802 archive_expsym_cmds_RC \
26803 postinstall_cmds_RC \
26804 postuninstall_cmds_RC \
26805 old_archive_from_expsyms_cmds_RC \
26806 allow_undefined_flag_RC \
26807 no_undefined_flag_RC \
26808 export_symbols_cmds_RC \
26809 hardcode_libdir_flag_spec_RC \
26810 hardcode_libdir_flag_spec_ld_RC \
26811 hardcode_libdir_separator_RC \
26812 hardcode_automatic_RC \
26813 module_cmds_RC \
26814 module_expsym_cmds_RC \
26815 lt_cv_prog_compiler_c_o_RC \
26816 exclude_expsyms_RC \
26817 include_expsyms_RC; do
26818
26819 case $var in
26820 old_archive_cmds_RC | \
26821 old_archive_from_new_cmds_RC | \
26822 archive_cmds_RC | \
26823 archive_expsym_cmds_RC | \
26824 module_cmds_RC | \
26825 module_expsym_cmds_RC | \
26826 old_archive_from_expsyms_cmds_RC | \
26827 export_symbols_cmds_RC | \
26828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26829 postinstall_cmds | postuninstall_cmds | \
26830 old_postinstall_cmds | old_postuninstall_cmds | \
26831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26832 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026833 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 +000026834 ;;
26835 *)
26836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26837 ;;
26838 esac
26839 done
26840
26841 case $lt_echo in
26842 *'\$0 --fallback-echo"')
26843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26844 ;;
26845 esac
26846
26847cfgfile="$ofile"
26848
26849 cat <<__EOF__ >> "$cfgfile"
26850# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26851
26852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26853
26854# Shell to use when invoking shell scripts.
26855SHELL=$lt_SHELL
26856
26857# Whether or not to build shared libraries.
26858build_libtool_libs=$enable_shared
26859
26860# Whether or not to build static libraries.
26861build_old_libs=$enable_static
26862
26863# Whether or not to add -lc for building shared libraries.
26864build_libtool_need_lc=$archive_cmds_need_lc_RC
26865
26866# Whether or not to disallow shared libs when runtime libs are static
26867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26868
26869# Whether or not to optimize for fast installation.
26870fast_install=$enable_fast_install
26871
26872# The host system.
26873host_alias=$host_alias
26874host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026875host_os=$host_os
26876
26877# The build system.
26878build_alias=$build_alias
26879build=$build
26880build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026881
26882# An echo program that does not interpret backslashes.
26883echo=$lt_echo
26884
26885# The archiver.
26886AR=$lt_AR
26887AR_FLAGS=$lt_AR_FLAGS
26888
26889# A C compiler.
26890LTCC=$lt_LTCC
26891
Reid Spencera773bd52006-08-04 18:18:08 +000026892# LTCC compiler flags.
26893LTCFLAGS=$lt_LTCFLAGS
26894
John Criswell47fdd832003-07-14 16:52:07 +000026895# A language-specific compiler.
26896CC=$lt_compiler_RC
26897
26898# Is the compiler the GNU C compiler?
26899with_gcc=$GCC_RC
26900
26901# An ERE matcher.
26902EGREP=$lt_EGREP
26903
26904# The linker used to build libraries.
26905LD=$lt_LD_RC
26906
26907# Whether we need hard or soft links.
26908LN_S=$lt_LN_S
26909
26910# A BSD-compatible nm program.
26911NM=$lt_NM
26912
26913# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026914STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026915
26916# Used to examine libraries when file_magic_cmd begins "file"
26917MAGIC_CMD=$MAGIC_CMD
26918
26919# Used on cygwin: DLL creation program.
26920DLLTOOL="$DLLTOOL"
26921
26922# Used on cygwin: object dumper.
26923OBJDUMP="$OBJDUMP"
26924
26925# Used on cygwin: assembler.
26926AS="$AS"
26927
26928# The name of the directory that contains temporary libtool files.
26929objdir=$objdir
26930
26931# How to create reloadable object files.
26932reload_flag=$lt_reload_flag
26933reload_cmds=$lt_reload_cmds
26934
26935# How to pass a linker flag through the compiler.
26936wl=$lt_lt_prog_compiler_wl_RC
26937
26938# Object file suffix (normally "o").
26939objext="$ac_objext"
26940
26941# Old archive suffix (normally "a").
26942libext="$libext"
26943
26944# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026946
26947# Executable file suffix (normally "").
26948exeext="$exeext"
26949
26950# Additional compiler flags for building library objects.
26951pic_flag=$lt_lt_prog_compiler_pic_RC
26952pic_mode=$pic_mode
26953
26954# What is the maximum length of a command?
26955max_cmd_len=$lt_cv_sys_max_cmd_len
26956
26957# Does compiler simultaneously support -c and -o options?
26958compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26959
Reid Spencera773bd52006-08-04 18:18:08 +000026960# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026961need_locks=$lt_need_locks
26962
26963# Do we need the lib prefix for modules?
26964need_lib_prefix=$need_lib_prefix
26965
26966# Do we need a version for libraries?
26967need_version=$need_version
26968
26969# Whether dlopen is supported.
26970dlopen_support=$enable_dlopen
26971
26972# Whether dlopen of programs is supported.
26973dlopen_self=$enable_dlopen_self
26974
26975# Whether dlopen of statically linked programs is supported.
26976dlopen_self_static=$enable_dlopen_self_static
26977
26978# Compiler flag to prevent dynamic linking.
26979link_static_flag=$lt_lt_prog_compiler_static_RC
26980
26981# Compiler flag to turn off builtin functions.
26982no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26983
26984# Compiler flag to allow reflexive dlopens.
26985export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26986
26987# Compiler flag to generate shared objects directly from archives.
26988whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26989
26990# Compiler flag to generate thread-safe objects.
26991thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26992
26993# Library versioning type.
26994version_type=$version_type
26995
26996# Format of library name prefix.
26997libname_spec=$lt_libname_spec
26998
26999# List of archive names. First name is the real one, the rest are links.
27000# The last name is the one that the linker finds with -lNAME.
27001library_names_spec=$lt_library_names_spec
27002
27003# The coded name of the library, if different from the real name.
27004soname_spec=$lt_soname_spec
27005
27006# Commands used to build and install an old-style archive.
27007RANLIB=$lt_RANLIB
27008old_archive_cmds=$lt_old_archive_cmds_RC
27009old_postinstall_cmds=$lt_old_postinstall_cmds
27010old_postuninstall_cmds=$lt_old_postuninstall_cmds
27011
27012# Create an old-style archive from a shared archive.
27013old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27014
27015# Create a temporary old-style archive to link instead of a shared archive.
27016old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27017
27018# Commands used to build and install a shared archive.
27019archive_cmds=$lt_archive_cmds_RC
27020archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27021postinstall_cmds=$lt_postinstall_cmds
27022postuninstall_cmds=$lt_postuninstall_cmds
27023
27024# Commands used to build a loadable module (assumed same as above if empty)
27025module_cmds=$lt_module_cmds_RC
27026module_expsym_cmds=$lt_module_expsym_cmds_RC
27027
27028# Commands to strip libraries.
27029old_striplib=$lt_old_striplib
27030striplib=$lt_striplib
27031
27032# Dependencies to place before the objects being linked to create a
27033# shared library.
27034predep_objects=$lt_predep_objects_RC
27035
27036# Dependencies to place after the objects being linked to create a
27037# shared library.
27038postdep_objects=$lt_postdep_objects_RC
27039
27040# Dependencies to place before the objects being linked to create a
27041# shared library.
27042predeps=$lt_predeps_RC
27043
27044# Dependencies to place after the objects being linked to create a
27045# shared library.
27046postdeps=$lt_postdeps_RC
27047
27048# The library search path used internally by the compiler when linking
27049# a shared library.
27050compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27051
27052# Method to check whether dependent libraries are shared objects.
27053deplibs_check_method=$lt_deplibs_check_method
27054
27055# Command to use when deplibs_check_method == file_magic.
27056file_magic_cmd=$lt_file_magic_cmd
27057
27058# Flag that allows shared libraries with undefined symbols to be built.
27059allow_undefined_flag=$lt_allow_undefined_flag_RC
27060
27061# Flag that forces no undefined symbols.
27062no_undefined_flag=$lt_no_undefined_flag_RC
27063
27064# Commands used to finish a libtool library installation in a directory.
27065finish_cmds=$lt_finish_cmds
27066
27067# Same as above, but a single script fragment to be evaled but not shown.
27068finish_eval=$lt_finish_eval
27069
27070# Take the output of nm and produce a listing of raw symbols and C names.
27071global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27072
27073# Transform the output of nm in a proper C declaration
27074global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27075
27076# Transform the output of nm in a C name address pair
27077global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27078
27079# This is the shared library runtime path variable.
27080runpath_var=$runpath_var
27081
27082# This is the shared library path variable.
27083shlibpath_var=$shlibpath_var
27084
27085# Is shlibpath searched before the hard-coded library search path?
27086shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27087
27088# How to hardcode a shared library path into an executable.
27089hardcode_action=$hardcode_action_RC
27090
27091# Whether we should hardcode library paths into libraries.
27092hardcode_into_libs=$hardcode_into_libs
27093
27094# Flag to hardcode \$libdir into a binary during linking.
27095# This must work even if \$libdir does not exist.
27096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27097
27098# If ld is used when linking, flag to hardcode \$libdir into
27099# a binary during linking. This must work even if \$libdir does
27100# not exist.
27101hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27102
27103# Whether we need a single -rpath flag with a separated argument.
27104hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27105
27106# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27107# resulting binary.
27108hardcode_direct=$hardcode_direct_RC
27109
27110# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27111# resulting binary.
27112hardcode_minus_L=$hardcode_minus_L_RC
27113
27114# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27115# the resulting binary.
27116hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27117
27118# Set to yes if building a shared library automatically hardcodes DIR into the library
27119# and all subsequent libraries and executables linked against it.
27120hardcode_automatic=$hardcode_automatic_RC
27121
27122# Variables whose values should be saved in libtool wrapper scripts and
27123# restored at relink time.
27124variables_saved_for_relink="$variables_saved_for_relink"
27125
27126# Whether libtool must link a program against all its dependency libraries.
27127link_all_deplibs=$link_all_deplibs_RC
27128
27129# Compile-time system search path for libraries
27130sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27131
27132# Run-time system search path for libraries
27133sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27134
27135# Fix the shell variable \$srcfile for the compiler.
27136fix_srcfile_path="$fix_srcfile_path_RC"
27137
27138# Set to yes if exported symbols are required.
27139always_export_symbols=$always_export_symbols_RC
27140
27141# The commands to list exported symbols.
27142export_symbols_cmds=$lt_export_symbols_cmds_RC
27143
27144# The commands to extract the exported symbol list from a shared archive.
27145extract_expsyms_cmds=$lt_extract_expsyms_cmds
27146
27147# Symbols that should not be listed in the preloaded symbols.
27148exclude_expsyms=$lt_exclude_expsyms_RC
27149
27150# Symbols that must always be exported.
27151include_expsyms=$lt_include_expsyms_RC
27152
27153# ### END LIBTOOL TAG CONFIG: $tagname
27154
27155__EOF__
27156
27157
27158else
27159 # If there is no Makefile yet, we rely on a make rule to execute
27160 # `config.status --recheck' to rerun these tests and create the
27161 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27163 if test -f "$ltmain_in"; then
27164 test -f Makefile && make "$ltmain"
27165 fi
John Criswell47fdd832003-07-14 16:52:07 +000027166fi
27167
27168
27169ac_ext=c
27170ac_cpp='$CPP $CPPFLAGS'
27171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174
27175CC="$lt_save_CC"
27176
27177 ;;
27178
27179 *)
27180 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27181echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27182 { (exit 1); exit 1; }; }
27183 ;;
27184 esac
27185
27186 # Append the new tag name to the list of available tags.
27187 if test -n "$tagname" ; then
27188 available_tags="$available_tags $tagname"
27189 fi
27190 fi
27191 done
27192 IFS="$lt_save_ifs"
27193
27194 # Now substitute the updated list of available tags.
27195 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27196 mv "${ofile}T" "$ofile"
27197 chmod +x "$ofile"
27198 else
27199 rm -f "${ofile}T"
27200 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27201echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27202 { (exit 1); exit 1; }; }
27203 fi
27204fi
John Criswell7a73b802003-06-30 21:59:07 +000027205
27206
27207
27208# This can be used to rebuild libtool when needed
27209LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27210
27211# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027212LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027213
27214# Prevent multiple expansion
27215
27216
27217
John Criswell47fdd832003-07-14 16:52:07 +000027218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027235
Reid Spencer582a23c2004-12-29 07:07:57 +000027236if test "$lt_cv_dlopen_self" = "yes" ; then
27237
27238cat >>confdefs.h <<\_ACEOF
27239#define CAN_DLOPEN_SELF 1
27240_ACEOF
27241
27242fi
27243
Douglas Gregor01746742009-05-11 18:05:52 +000027244
Reid Spencer7931a782004-12-27 06:15:02 +000027245if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027246 LLVMGCC="llvm-gcc${EXEEXT}"
27247 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027248 LLVMGCCCOMMAND="$LLVMGCC"
27249 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027250 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27251
27252 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27253
Reid Spencerc84492c2005-06-02 22:34:49 +000027254 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27255set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027258if test "${ac_cv_path_LLVMGCC+set}" = set; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27260else
27261 case $LLVMGCC in
27262 [\\/]* | ?:[\\/]*)
27263 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27264 ;;
27265 *)
27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267for as_dir in $PATH
27268do
27269 IFS=$as_save_IFS
27270 test -z "$as_dir" && as_dir=.
27271 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027272 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 +000027273 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27275 break 2
27276 fi
27277done
27278done
Reid Spencera773bd52006-08-04 18:18:08 +000027279IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027280
Reid Spencer59473af2004-12-25 07:31:29 +000027281 ;;
27282esac
27283fi
27284LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027285if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027286 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27287echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027288else
Reid Spencera773bd52006-08-04 18:18:08 +000027289 { echo "$as_me:$LINENO: result: no" >&5
27290echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027291fi
27292
Reid Spencera773bd52006-08-04 18:18:08 +000027293
Reid Spencerc84492c2005-06-02 22:34:49 +000027294 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27295set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027298if test "${ac_cv_path_LLVMGXX+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301 case $LLVMGXX in
27302 [\\/]* | ?:[\\/]*)
27303 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27304 ;;
27305 *)
27306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27307for as_dir in $PATH
27308do
27309 IFS=$as_save_IFS
27310 test -z "$as_dir" && as_dir=.
27311 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027312 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 +000027313 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27315 break 2
27316 fi
27317done
27318done
Reid Spencera773bd52006-08-04 18:18:08 +000027319IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027320
Reid Spencer59473af2004-12-25 07:31:29 +000027321 ;;
27322esac
27323fi
27324LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027325if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027326 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27327echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027328else
Reid Spencera773bd52006-08-04 18:18:08 +000027329 { echo "$as_me:$LINENO: result: no" >&5
27330echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027331fi
27332
Reid Spencera773bd52006-08-04 18:18:08 +000027333
Reid Spencer59473af2004-12-25 07:31:29 +000027334else
Devang Patel5d28b882007-12-04 22:54:47 +000027335 if test -z "$LLVMGCC"; then
27336 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027337 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027338 fi
27339 if test -z "$LLVMGXX"; then
27340 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027341 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027342 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027343
Reid Spencer59473af2004-12-25 07:31:29 +000027344 LLVMGCC=$LLVMGCC
27345
27346 LLVMGXX=$LLVMGXX
27347
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027348 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27349
27350 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27351
Reid Spencer59473af2004-12-25 07:31:29 +000027352fi
27353
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027354
Reid Spencera773bd52006-08-04 18:18:08 +000027355{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27356echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027357
Reid Spencer86901802004-12-08 23:07:27 +000027358ICC=no
27359IXX=no
27360case $CC in
27361 icc*|icpc*)
27362 ICC=yes
27363 IXX=yes
27364 ;;
27365 *)
27366 ;;
27367esac
27368
Duraid Madina937c60a2006-02-15 07:57:42 +000027369if test "$GCC" != "yes" && test "$ICC" != "yes"
27370then
27371 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27372echo "$as_me: error: gcc|icc required but not found" >&2;}
27373 { (exit 1); exit 1; }; }
27374fi
27375
27376if test "$GXX" != "yes" && test "$IXX" != "yes"
27377then
27378 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27379echo "$as_me: error: g++|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27381fi
27382
Reid Spencer86901802004-12-08 23:07:27 +000027383if test "$GCC" = "yes"
27384then
Chris Lattner399c7c72008-02-05 19:43:53 +000027385 cat >conftest.$ac_ext <<_ACEOF
27386#if !defined(__GNUC__) || __GNUC__ < 3
27387#error Unsupported GCC version
27388#endif
27389
27390_ACEOF
27391rm -f conftest.$ac_objext
27392if { (ac_try="$ac_compile"
27393case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27396esac
27397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27406 { (case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27409esac
27410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_try") 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; } &&
27415 { ac_try='test -s conftest.$ac_objext'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419esac
27420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
27422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027425 :
27426else
27427 echo "$as_me: failed program was:" >&5
27428sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027431echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27432 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027433fi
27434
27435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027436fi
27437
27438if test -z "$llvm_cv_gnu_make_command"
27439then
27440 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27441echo "$as_me: error: GNU Make required but not found" >&2;}
27442 { (exit 1); exit 1; }; }
27443fi
27444
Reid Spencera773bd52006-08-04 18:18:08 +000027445{ echo "$as_me:$LINENO: result: ok" >&5
27446echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027447
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027448
27449
Reid Spencera773bd52006-08-04 18:18:08 +000027450{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27451echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027452if test "${ac_cv_lib_m_sin+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lm $LIBS"
27457cat >conftest.$ac_ext <<_ACEOF
27458/* confdefs.h. */
27459_ACEOF
27460cat confdefs.h >>conftest.$ac_ext
27461cat >>conftest.$ac_ext <<_ACEOF
27462/* end confdefs.h. */
27463
Reid Spencera773bd52006-08-04 18:18:08 +000027464/* Override any GCC internal prototype to avoid an error.
27465 Use char because int might match the return type of a GCC
27466 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027467#ifdef __cplusplus
27468extern "C"
27469#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027470char sin ();
27471int
27472main ()
27473{
Reid Spencera773bd52006-08-04 18:18:08 +000027474return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027475 ;
27476 return 0;
27477}
27478_ACEOF
27479rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027480if { (ac_try="$ac_link"
27481case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27497esac
27498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499 (eval "$ac_try") 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest$ac_exeext'
27504 { (case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27507esac
27508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_try") 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027513 ac_cv_lib_m_sin=yes
27514else
27515 echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
Reid Spencera773bd52006-08-04 18:18:08 +000027518 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027519fi
Reid Spencera773bd52006-08-04 18:18:08 +000027520
Bill Wendlingebcceee2009-04-18 11:20:33 +000027521rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027522 conftest$ac_exeext conftest.$ac_ext
27523LIBS=$ac_check_lib_save_LIBS
27524fi
Reid Spencera773bd52006-08-04 18:18:08 +000027525{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27526echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027527if test $ac_cv_lib_m_sin = yes; then
27528 cat >>confdefs.h <<_ACEOF
27529#define HAVE_LIBM 1
27530_ACEOF
27531
27532 LIBS="-lm $LIBS"
27533
27534fi
27535
Jeff Cohen28783c32007-01-12 18:22:38 +000027536if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027537
Reid Spencera773bd52006-08-04 18:18:08 +000027538{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27539echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027540if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 ac_check_lib_save_LIBS=$LIBS
27544LIBS="-limagehlp $LIBS"
27545cat >conftest.$ac_ext <<_ACEOF
27546/* confdefs.h. */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h. */
27551
Reid Spencer48fdf912006-06-01 19:03:21 +000027552
Reid Spencer484fc8e2006-06-01 16:55:59 +000027553int
27554main ()
27555{
Reid Spencera773bd52006-08-04 18:18:08 +000027556return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027557 ;
27558 return 0;
27559}
27560_ACEOF
27561rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027562if { (ac_try="$ac_link"
27563case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027569 ac_status=$?
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579esac
27580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027595 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
Reid Spencera773bd52006-08-04 18:18:08 +000027600 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602
Bill Wendlingebcceee2009-04-18 11:20:33 +000027603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604 conftest$ac_exeext conftest.$ac_ext
27605LIBS=$ac_check_lib_save_LIBS
27606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27608echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027609if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027610 cat >>confdefs.h <<_ACEOF
27611#define HAVE_LIBIMAGEHLP 1
27612_ACEOF
27613
27614 LIBS="-limagehlp $LIBS"
27615
27616fi
27617
27618
Reid Spencera773bd52006-08-04 18:18:08 +000027619{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27620echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027621if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-lpsapi $LIBS"
27626cat >conftest.$ac_ext <<_ACEOF
27627/* confdefs.h. */
27628_ACEOF
27629cat confdefs.h >>conftest.$ac_ext
27630cat >>conftest.$ac_ext <<_ACEOF
27631/* end confdefs.h. */
27632
Reid Spencer48fdf912006-06-01 19:03:21 +000027633
Reid Spencer484fc8e2006-06-01 16:55:59 +000027634int
27635main ()
27636{
Reid Spencera773bd52006-08-04 18:18:08 +000027637return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027638 ;
27639 return 0;
27640}
27641_ACEOF
27642rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027643if { (ac_try="$ac_link"
27644case "(($ac_try" in
27645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27647esac
27648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027650 ac_status=$?
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027676 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027677else
27678 echo "$as_me: failed program was:" >&5
27679sed 's/^/| /' conftest.$ac_ext >&5
27680
Reid Spencera773bd52006-08-04 18:18:08 +000027681 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027682fi
Reid Spencera773bd52006-08-04 18:18:08 +000027683
Bill Wendlingebcceee2009-04-18 11:20:33 +000027684rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027685 conftest$ac_exeext conftest.$ac_ext
27686LIBS=$ac_check_lib_save_LIBS
27687fi
Reid Spencera773bd52006-08-04 18:18:08 +000027688{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27689echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027690if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027691 cat >>confdefs.h <<_ACEOF
27692#define HAVE_LIBPSAPI 1
27693_ACEOF
27694
27695 LIBS="-lpsapi $LIBS"
27696
27697fi
27698
27699fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027700
Reid Spencera773bd52006-08-04 18:18:08 +000027701{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27702echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027703if test "${ac_cv_search_dlopen+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705else
27706 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027707cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027708/* confdefs.h. */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027713
Reid Spencera773bd52006-08-04 18:18:08 +000027714/* Override any GCC internal prototype to avoid an error.
27715 Use char because int might match the return type of a GCC
27716 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027717#ifdef __cplusplus
27718extern "C"
27719#endif
John Criswell7a73b802003-06-30 21:59:07 +000027720char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027721int
27722main ()
27723{
Reid Spencera773bd52006-08-04 18:18:08 +000027724return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027725 ;
27726 return 0;
27727}
27728_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027729for ac_lib in '' dl; do
27730 if test -z "$ac_lib"; then
27731 ac_res="none required"
27732 else
27733 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027735 fi
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737if { (ac_try="$ac_link"
27738case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741esac
27742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027745 grep -v '^ *+' conftest.er1 >conftest.err
27746 rm -f conftest.er1
27747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027749 (exit $ac_status); } &&
27750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27751 { (case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_try") 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
27767 ac_status=$?
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027770 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027771else
27772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027773sed 's/^/| /' conftest.$ac_ext >&5
27774
Reid Spencera773bd52006-08-04 18:18:08 +000027775
John Criswell7a73b802003-06-30 21:59:07 +000027776fi
Reid Spencera773bd52006-08-04 18:18:08 +000027777
Bill Wendlingebcceee2009-04-18 11:20:33 +000027778rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027779 conftest$ac_exeext
27780 if test "${ac_cv_search_dlopen+set}" = set; then
27781 break
John Criswell7a73b802003-06-30 21:59:07 +000027782fi
Reid Spencera773bd52006-08-04 18:18:08 +000027783done
27784if test "${ac_cv_search_dlopen+set}" = set; then
27785 :
27786else
27787 ac_cv_search_dlopen=no
27788fi
27789rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027790LIBS=$ac_func_search_save_LIBS
27791fi
Reid Spencera773bd52006-08-04 18:18:08 +000027792{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27793echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27794ac_res=$ac_cv_search_dlopen
27795if test "$ac_res" != no; then
27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027797
27798cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027799#define HAVE_DLOPEN 1
27800_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027801
27802else
Brian Gaekec45be042003-10-07 06:01:34 +000027803 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27804echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027805fi
27806
27807
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027808if test "$llvm_cv_enable_libffi" = "yes" ; then
27809 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027810echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27811if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027814 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027815cat >conftest.$ac_ext <<_ACEOF
27816/* confdefs.h. */
27817_ACEOF
27818cat confdefs.h >>conftest.$ac_ext
27819cat >>conftest.$ac_ext <<_ACEOF
27820/* end confdefs.h. */
27821
27822/* Override any GCC internal prototype to avoid an error.
27823 Use char because int might match the return type of a GCC
27824 builtin and then its argument prototype would still apply. */
27825#ifdef __cplusplus
27826extern "C"
27827#endif
27828char ffi_call ();
27829int
27830main ()
27831{
27832return ffi_call ();
27833 ;
27834 return 0;
27835}
27836_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027837for ac_lib in '' ffi; do
27838 if test -z "$ac_lib"; then
27839 ac_res="none required"
27840 else
27841 ac_res=-l$ac_lib
27842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27843 fi
27844 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027845if { (ac_try="$ac_link"
27846case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_link") 2>conftest.er1
27852 ac_status=$?
27853 grep -v '^ *+' conftest.er1 >conftest.err
27854 rm -f conftest.er1
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27859 { (case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27862esac
27863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_try") 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; } &&
27868 { ac_try='test -s conftest$ac_exeext'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27872esac
27873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027878 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027879else
27880 echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
Nick Lewycky267fddb2009-04-13 04:26:27 +000027883
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027884fi
27885
Bill Wendlingebcceee2009-04-18 11:20:33 +000027886rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027887 conftest$ac_exeext
27888 if test "${ac_cv_search_ffi_call+set}" = set; then
27889 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027890fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027891done
27892if test "${ac_cv_search_ffi_call+set}" = set; then
27893 :
27894else
27895 ac_cv_search_ffi_call=no
27896fi
27897rm conftest.$ac_ext
27898LIBS=$ac_func_search_save_LIBS
27899fi
27900{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27901echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27902ac_res=$ac_cv_search_ffi_call
27903if test "$ac_res" != no; then
27904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27905
27906cat >>confdefs.h <<\_ACEOF
27907#define HAVE_FFI_CALL 1
27908_ACEOF
27909
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027910else
27911 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27912echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27913fi
27914
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027915fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027916
Reid Spencera773bd52006-08-04 18:18:08 +000027917{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27918echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027919if test "${ac_cv_search_mallinfo+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27921else
27922 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027923cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027924/* confdefs.h. */
27925_ACEOF
27926cat confdefs.h >>conftest.$ac_ext
27927cat >>conftest.$ac_ext <<_ACEOF
27928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027929
Reid Spencera773bd52006-08-04 18:18:08 +000027930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027933#ifdef __cplusplus
27934extern "C"
27935#endif
John Criswell7a73b802003-06-30 21:59:07 +000027936char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027937int
27938main ()
27939{
Reid Spencera773bd52006-08-04 18:18:08 +000027940return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027941 ;
27942 return 0;
27943}
27944_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027945for ac_lib in '' malloc; do
27946 if test -z "$ac_lib"; then
27947 ac_res="none required"
27948 else
27949 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027951 fi
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953if { (ac_try="$ac_link"
27954case "(($ac_try" in
27955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956 *) ac_try_echo=$ac_try;;
27957esac
27958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27967 { (case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27970esac
27971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_try") 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; } &&
27976 { ac_try='test -s conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980esac
27981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_try") 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027986 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027987else
27988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027989sed 's/^/| /' conftest.$ac_ext >&5
27990
Reid Spencera773bd52006-08-04 18:18:08 +000027991
John Criswell7a73b802003-06-30 21:59:07 +000027992fi
Reid Spencera773bd52006-08-04 18:18:08 +000027993
Bill Wendlingebcceee2009-04-18 11:20:33 +000027994rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027995 conftest$ac_exeext
27996 if test "${ac_cv_search_mallinfo+set}" = set; then
27997 break
John Criswell7a73b802003-06-30 21:59:07 +000027998fi
Reid Spencera773bd52006-08-04 18:18:08 +000027999done
28000if test "${ac_cv_search_mallinfo+set}" = set; then
28001 :
28002else
28003 ac_cv_search_mallinfo=no
28004fi
28005rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028006LIBS=$ac_func_search_save_LIBS
28007fi
Reid Spencera773bd52006-08-04 18:18:08 +000028008{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28009echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28010ac_res=$ac_cv_search_mallinfo
28011if test "$ac_res" != no; then
28012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028013
28014cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028015#define HAVE_MALLINFO 1
28016_ACEOF
28017
28018fi
28019
28020
Reid Spencer0a262ba2005-08-24 10:07:20 +000028021if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028022
Reid Spencera773bd52006-08-04 18:18:08 +000028023{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28024echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028025if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_check_lib_save_LIBS=$LIBS
28029LIBS="-lpthread $LIBS"
28030cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
28036
Reid Spencera773bd52006-08-04 18:18:08 +000028037/* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028040#ifdef __cplusplus
28041extern "C"
28042#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028043char pthread_mutex_init ();
28044int
28045main ()
28046{
Reid Spencera773bd52006-08-04 18:18:08 +000028047return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028053if { (ac_try="$ac_link"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028086 ac_cv_lib_pthread_pthread_mutex_init=yes
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
Reid Spencera773bd52006-08-04 18:18:08 +000028091 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028092fi
Reid Spencera773bd52006-08-04 18:18:08 +000028093
Bill Wendlingebcceee2009-04-18 11:20:33 +000028094rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028095 conftest$ac_exeext conftest.$ac_ext
28096LIBS=$ac_check_lib_save_LIBS
28097fi
Reid Spencera773bd52006-08-04 18:18:08 +000028098{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28099echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028100if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102#define HAVE_LIBPTHREAD 1
28103_ACEOF
28104
28105 LIBS="-lpthread $LIBS"
28106
28107fi
28108
Reid Spencera773bd52006-08-04 18:18:08 +000028109 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28110echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028111if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28113else
28114 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028115cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028116/* confdefs.h. */
28117_ACEOF
28118cat confdefs.h >>conftest.$ac_ext
28119cat >>conftest.$ac_ext <<_ACEOF
28120/* end confdefs.h. */
28121
Reid Spencera773bd52006-08-04 18:18:08 +000028122/* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028125#ifdef __cplusplus
28126extern "C"
28127#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028128char pthread_mutex_lock ();
28129int
28130main ()
28131{
Reid Spencera773bd52006-08-04 18:18:08 +000028132return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028133 ;
28134 return 0;
28135}
28136_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028137for ac_lib in '' pthread; do
28138 if test -z "$ac_lib"; then
28139 ac_res="none required"
28140 else
28141 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028143 fi
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145if { (ac_try="$ac_link"
28146case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159 { (case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28162esac
28163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_try") 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
28169 { (case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_try") 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028178 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028179else
28180 echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
Reid Spencera773bd52006-08-04 18:18:08 +000028183
Brian Gaeke5f268f72003-12-05 19:29:01 +000028184fi
Reid Spencera773bd52006-08-04 18:18:08 +000028185
Bill Wendlingebcceee2009-04-18 11:20:33 +000028186rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028187 conftest$ac_exeext
28188 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28189 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028190fi
Reid Spencera773bd52006-08-04 18:18:08 +000028191done
28192if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28193 :
28194else
28195 ac_cv_search_pthread_mutex_lock=no
28196fi
28197rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028198LIBS=$ac_func_search_save_LIBS
28199fi
Reid Spencera773bd52006-08-04 18:18:08 +000028200{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28201echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28202ac_res=$ac_cv_search_pthread_mutex_lock
28203if test "$ac_res" != no; then
28204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028205
John Criswell40468462004-09-24 21:19:06 +000028206cat >>confdefs.h <<\_ACEOF
28207#define HAVE_PTHREAD_MUTEX_LOCK 1
28208_ACEOF
28209
28210fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028211
Owen Andersonde8aed22009-06-16 18:20:20 +000028212 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28213echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28214if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217 ac_func_search_save_LIBS=$LIBS
28218cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224
28225/* Override any GCC internal prototype to avoid an error.
28226 Use char because int might match the return type of a GCC
28227 builtin and then its argument prototype would still apply. */
28228#ifdef __cplusplus
28229extern "C"
28230#endif
28231char pthread_rwlock_init ();
28232int
28233main ()
28234{
28235return pthread_rwlock_init ();
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240for ac_lib in '' pthread; do
28241 if test -z "$ac_lib"; then
28242 ac_res="none required"
28243 else
28244 ac_res=-l$ac_lib
28245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28246 fi
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248if { (ac_try="$ac_link"
28249case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28265esac
28266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest$ac_exeext'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28275esac
28276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_search_pthread_rwlock_init=$ac_res
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286
28287fi
28288
28289rm -f core conftest.err conftest.$ac_objext \
28290 conftest$ac_exeext
28291 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28292 break
28293fi
28294done
28295if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28296 :
28297else
28298 ac_cv_search_pthread_rwlock_init=no
28299fi
28300rm conftest.$ac_ext
28301LIBS=$ac_func_search_save_LIBS
28302fi
28303{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28304echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28305ac_res=$ac_cv_search_pthread_rwlock_init
28306if test "$ac_res" != no; then
28307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28308
28309cat >>confdefs.h <<\_ACEOF
28310#define HAVE_PTHREAD_RWLOCK_INIT 1
28311_ACEOF
28312
28313fi
28314
Owen Anderson27fcfe12009-06-25 23:10:26 +000028315 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28316echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28317if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320 ac_func_search_save_LIBS=$LIBS
28321cat >conftest.$ac_ext <<_ACEOF
28322/* confdefs.h. */
28323_ACEOF
28324cat confdefs.h >>conftest.$ac_ext
28325cat >>conftest.$ac_ext <<_ACEOF
28326/* end confdefs.h. */
28327
28328/* Override any GCC internal prototype to avoid an error.
28329 Use char because int might match the return type of a GCC
28330 builtin and then its argument prototype would still apply. */
28331#ifdef __cplusplus
28332extern "C"
28333#endif
28334char pthread_getspecific ();
28335int
28336main ()
28337{
28338return pthread_getspecific ();
28339 ;
28340 return 0;
28341}
28342_ACEOF
28343for ac_lib in '' pthread; do
28344 if test -z "$ac_lib"; then
28345 ac_res="none required"
28346 else
28347 ac_res=-l$ac_lib
28348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28349 fi
28350 rm -f conftest.$ac_objext conftest$ac_exeext
28351if { (ac_try="$ac_link"
28352case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28355esac
28356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_link") 2>conftest.er1
28358 ac_status=$?
28359 grep -v '^ *+' conftest.er1 >conftest.err
28360 rm -f conftest.er1
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
28364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28365 { (case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28368esac
28369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_try") 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378esac
28379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_try") 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 ac_cv_search_pthread_getspecific=$ac_res
28385else
28386 echo "$as_me: failed program was:" >&5
28387sed 's/^/| /' conftest.$ac_ext >&5
28388
28389
28390fi
28391
28392rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext
28394 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28395 break
28396fi
28397done
28398if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28399 :
28400else
28401 ac_cv_search_pthread_getspecific=no
28402fi
28403rm conftest.$ac_ext
28404LIBS=$ac_func_search_save_LIBS
28405fi
28406{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28407echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28408ac_res=$ac_cv_search_pthread_getspecific
28409if test "$ac_res" != no; then
28410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28411
28412cat >>confdefs.h <<\_ACEOF
28413#define HAVE_PTHREAD_GETSPECIFIC 1
28414_ACEOF
28415
28416fi
28417
Reid Spencer0a262ba2005-08-24 10:07:20 +000028418fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028419
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028420
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028421# Check whether --with-udis86 was given.
28422if test "${with_udis86+set}" = set; then
28423 withval=$with_udis86;
28424 USE_UDIS86=1
28425
28426 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028427 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028428 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28429 esac
28430
28431{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28432echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28433if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-ludis86 $LIBS"
28438cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
28443/* end confdefs.h. */
28444
28445/* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28448#ifdef __cplusplus
28449extern "C"
28450#endif
28451char ud_init ();
28452int
28453main ()
28454{
28455return ud_init ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (ac_try="$ac_link"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_link") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028473 (exit $ac_status); } &&
28474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28475 { (case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_try") 2>&5
28481 ac_status=$?
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; } &&
28484 { ac_try='test -s conftest$ac_exeext'
28485 { (case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_try") 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028494 ac_cv_lib_udis86_ud_init=yes
28495else
28496 echo "$as_me: failed program was:" >&5
28497sed 's/^/| /' conftest.$ac_ext >&5
28498
28499 ac_cv_lib_udis86_ud_init=no
28500fi
28501
Bill Wendlingebcceee2009-04-18 11:20:33 +000028502rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028503 conftest$ac_exeext conftest.$ac_ext
28504LIBS=$ac_check_lib_save_LIBS
28505fi
28506{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28507echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28508if test $ac_cv_lib_udis86_ud_init = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define HAVE_LIBUDIS86 1
28511_ACEOF
28512
28513 LIBS="-ludis86 $LIBS"
28514
28515else
28516
28517 echo "Error! You need to have libudis86 around."
28518 exit -1
28519
28520fi
28521
28522
28523else
28524 USE_UDIS86=0
28525
28526fi
28527
28528
28529cat >>confdefs.h <<_ACEOF
28530#define USE_UDIS86 $USE_UDIS86
28531_ACEOF
28532
28533
28534
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028535# Check whether --with-oprofile was given.
28536if test "${with_oprofile+set}" = set; then
28537 withval=$with_oprofile;
28538 USE_OPROFILE=1
28539
28540 case "$withval" in
28541 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028542 no) llvm_cv_oppath=
28543 USE_OPROFILE=0
28544 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028545 *) llvm_cv_oppath="${withval}/lib/oprofile"
28546 CPPFLAGS="-I${withval}/include";;
28547 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028548 if test -n "$llvm_cv_oppath" ; then
28549 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28550 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28551echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28552if test "${ac_cv_search_bfd_init+set}" = set; then
28553 echo $ECHO_N "(cached) $ECHO_C" >&6
28554else
28555 ac_func_search_save_LIBS=$LIBS
28556cat >conftest.$ac_ext <<_ACEOF
28557/* confdefs.h. */
28558_ACEOF
28559cat confdefs.h >>conftest.$ac_ext
28560cat >>conftest.$ac_ext <<_ACEOF
28561/* end confdefs.h. */
28562
28563/* Override any GCC internal prototype to avoid an error.
28564 Use char because int might match the return type of a GCC
28565 builtin and then its argument prototype would still apply. */
28566#ifdef __cplusplus
28567extern "C"
28568#endif
28569char bfd_init ();
28570int
28571main ()
28572{
28573return bfd_init ();
28574 ;
28575 return 0;
28576}
28577_ACEOF
28578for ac_lib in '' bfd; do
28579 if test -z "$ac_lib"; then
28580 ac_res="none required"
28581 else
28582 ac_res=-l$ac_lib
28583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28584 fi
28585 rm -f conftest.$ac_objext conftest$ac_exeext
28586if { (ac_try="$ac_link"
28587case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_link") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest$ac_exeext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_cv_search_bfd_init=$ac_res
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624
28625fi
28626
28627rm -f core conftest.err conftest.$ac_objext \
28628 conftest$ac_exeext
28629 if test "${ac_cv_search_bfd_init+set}" = set; then
28630 break
28631fi
28632done
28633if test "${ac_cv_search_bfd_init+set}" = set; then
28634 :
28635else
28636 ac_cv_search_bfd_init=no
28637fi
28638rm conftest.$ac_ext
28639LIBS=$ac_func_search_save_LIBS
28640fi
28641{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28642echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28643ac_res=$ac_cv_search_bfd_init
28644if test "$ac_res" != no; then
28645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28646
28647fi
28648
28649 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028650echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28651if test "${ac_cv_search_op_open_agent+set}" = set; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28653else
28654 ac_func_search_save_LIBS=$LIBS
28655cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h. */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h. */
28661
28662/* Override any GCC internal prototype to avoid an error.
28663 Use char because int might match the return type of a GCC
28664 builtin and then its argument prototype would still apply. */
28665#ifdef __cplusplus
28666extern "C"
28667#endif
28668char op_open_agent ();
28669int
28670main ()
28671{
28672return op_open_agent ();
28673 ;
28674 return 0;
28675}
28676_ACEOF
28677for ac_lib in '' opagent; do
28678 if test -z "$ac_lib"; then
28679 ac_res="none required"
28680 else
28681 ac_res=-l$ac_lib
28682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28683 fi
28684 rm -f conftest.$ac_objext conftest$ac_exeext
28685if { (ac_try="$ac_link"
28686case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_link") 2>conftest.er1
28692 ac_status=$?
28693 grep -v '^ *+' conftest.er1 >conftest.err
28694 rm -f conftest.er1
28695 cat conftest.err >&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); } &&
28698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702esac
28703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; } &&
28708 { ac_try='test -s conftest$ac_exeext'
28709 { (case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_try") 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 ac_cv_search_op_open_agent=$ac_res
28719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
28723
28724fi
28725
28726rm -f core conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext
28728 if test "${ac_cv_search_op_open_agent+set}" = set; then
28729 break
28730fi
28731done
28732if test "${ac_cv_search_op_open_agent+set}" = set; then
28733 :
28734else
28735 ac_cv_search_op_open_agent=no
28736fi
28737rm conftest.$ac_ext
28738LIBS=$ac_func_search_save_LIBS
28739fi
28740{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28741echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28742ac_res=$ac_cv_search_op_open_agent
28743if test "$ac_res" != no; then
28744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28745
28746else
28747
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028748 echo "Error! You need to have libopagent around."
28749 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028750
28751fi
28752
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028753 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028754 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28755echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28756if test "${ac_cv_header_opagent_h+set}" = set; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28758fi
28759{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28760echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28761else
28762 # Is the header compilable?
28763{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28764echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28765cat >conftest.$ac_ext <<_ACEOF
28766/* confdefs.h. */
28767_ACEOF
28768cat confdefs.h >>conftest.$ac_ext
28769cat >>conftest.$ac_ext <<_ACEOF
28770/* end confdefs.h. */
28771$ac_includes_default
28772#include <opagent.h>
28773_ACEOF
28774rm -f conftest.$ac_objext
28775if { (ac_try="$ac_compile"
28776case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779esac
28780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_compile") 2>conftest.er1
28782 ac_status=$?
28783 grep -v '^ *+' conftest.er1 >conftest.err
28784 rm -f conftest.er1
28785 cat conftest.err >&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } &&
28788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28789 { (case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28792esac
28793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_try") 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest.$ac_objext'
28799 { (case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28802esac
28803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_try") 2>&5
28805 ac_status=$?
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; }; then
28808 ac_header_compiler=yes
28809else
28810 echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813 ac_header_compiler=no
28814fi
28815
28816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28818echo "${ECHO_T}$ac_header_compiler" >&6; }
28819
28820# Is the header present?
28821{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28822echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28823cat >conftest.$ac_ext <<_ACEOF
28824/* confdefs.h. */
28825_ACEOF
28826cat confdefs.h >>conftest.$ac_ext
28827cat >>conftest.$ac_ext <<_ACEOF
28828/* end confdefs.h. */
28829#include <opagent.h>
28830_ACEOF
28831if { (ac_try="$ac_cpp conftest.$ac_ext"
28832case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28835esac
28836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28838 ac_status=$?
28839 grep -v '^ *+' conftest.er1 >conftest.err
28840 rm -f conftest.er1
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } >/dev/null; then
28844 if test -s conftest.err; then
28845 ac_cpp_err=$ac_c_preproc_warn_flag
28846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28847 else
28848 ac_cpp_err=
28849 fi
28850else
28851 ac_cpp_err=yes
28852fi
28853if test -z "$ac_cpp_err"; then
28854 ac_header_preproc=yes
28855else
28856 echo "$as_me: failed program was:" >&5
28857sed 's/^/| /' conftest.$ac_ext >&5
28858
28859 ac_header_preproc=no
28860fi
28861
28862rm -f conftest.err conftest.$ac_ext
28863{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28864echo "${ECHO_T}$ac_header_preproc" >&6; }
28865
28866# So? What about this header?
28867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28868 yes:no: )
28869 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28870echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28872echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28873 ac_header_preproc=yes
28874 ;;
28875 no:yes:* )
28876 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28877echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28879echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28881echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28883echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28885echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28886 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28887echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28888 ( cat <<\_ASBOX
28889## ----------------------------------- ##
28890## Report this to llvmbugs@cs.uiuc.edu ##
28891## ----------------------------------- ##
28892_ASBOX
28893 ) | sed "s/^/$as_me: WARNING: /" >&2
28894 ;;
28895esac
28896{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28897echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28898if test "${ac_cv_header_opagent_h+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28900else
28901 ac_cv_header_opagent_h=$ac_header_preproc
28902fi
28903{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28904echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28905
28906fi
28907if test $ac_cv_header_opagent_h = yes; then
28908 :
28909else
28910
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028911 echo "Error! You need to have opagent.h around."
28912 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028913
28914fi
28915
28916
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028917 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028918
28919else
28920
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028921 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028922
28923
28924fi
28925
28926
28927cat >>confdefs.h <<_ACEOF
28928#define USE_OPROFILE $USE_OPROFILE
28929_ACEOF
28930
28931
28932
Reid Spencer59473af2004-12-25 07:31:29 +000028933
28934
28935
28936
28937
28938ac_header_dirent=no
28939for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28940 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028941{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28942echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028944 echo $ECHO_N "(cached) $ECHO_C" >&6
28945else
28946 cat >conftest.$ac_ext <<_ACEOF
28947/* confdefs.h. */
28948_ACEOF
28949cat confdefs.h >>conftest.$ac_ext
28950cat >>conftest.$ac_ext <<_ACEOF
28951/* end confdefs.h. */
28952#include <sys/types.h>
28953#include <$ac_hdr>
28954
28955int
28956main ()
28957{
28958if ((DIR *) 0)
28959return 0;
28960 ;
28961 return 0;
28962}
28963_ACEOF
28964rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028965if { (ac_try="$ac_compile"
28966case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28969esac
28970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028972 ac_status=$?
28973 grep -v '^ *+' conftest.er1 >conftest.err
28974 rm -f conftest.er1
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028977 (exit $ac_status); } &&
28978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28979 { (case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28982esac
28983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_try") 2>&5
28985 ac_status=$?
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); }; } &&
28988 { ac_try='test -s conftest.$ac_objext'
28989 { (case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28992esac
28993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_try") 2>&5
28995 ac_status=$?
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028998 eval "$as_ac_Header=yes"
28999else
29000 echo "$as_me: failed program was:" >&5
29001sed 's/^/| /' conftest.$ac_ext >&5
29002
Reid Spencera773bd52006-08-04 18:18:08 +000029003 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029004fi
Reid Spencera773bd52006-08-04 18:18:08 +000029005
29006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029007fi
Reid Spencera773bd52006-08-04 18:18:08 +000029008ac_res=`eval echo '${'$as_ac_Header'}'`
29009 { echo "$as_me:$LINENO: result: $ac_res" >&5
29010echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029011if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012 cat >>confdefs.h <<_ACEOF
29013#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29014_ACEOF
29015
29016ac_header_dirent=$ac_hdr; break
29017fi
29018
29019done
29020# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29021if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029022 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29023echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029024if test "${ac_cv_search_opendir+set}" = set; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29026else
29027 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029028cat >conftest.$ac_ext <<_ACEOF
29029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
29034
Reid Spencera773bd52006-08-04 18:18:08 +000029035/* Override any GCC internal prototype to avoid an error.
29036 Use char because int might match the return type of a GCC
29037 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029038#ifdef __cplusplus
29039extern "C"
29040#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029041char opendir ();
29042int
29043main ()
29044{
Reid Spencera773bd52006-08-04 18:18:08 +000029045return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029046 ;
29047 return 0;
29048}
29049_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029050for ac_lib in '' dir; do
29051 if test -z "$ac_lib"; then
29052 ac_res="none required"
29053 else
29054 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029056 fi
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058if { (ac_try="$ac_link"
29059case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29062esac
29063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029065 ac_status=$?
29066 grep -v '^ *+' conftest.er1 >conftest.err
29067 rm -f conftest.er1
29068 cat conftest.err >&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029070 (exit $ac_status); } &&
29071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29075esac
29076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
29082 { (case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29085esac
29086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_try") 2>&5
29088 ac_status=$?
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029091 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029092else
29093 echo "$as_me: failed program was:" >&5
29094sed 's/^/| /' conftest.$ac_ext >&5
29095
Reid Spencera773bd52006-08-04 18:18:08 +000029096
Reid Spencer59473af2004-12-25 07:31:29 +000029097fi
Reid Spencera773bd52006-08-04 18:18:08 +000029098
Bill Wendlingebcceee2009-04-18 11:20:33 +000029099rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029100 conftest$ac_exeext
29101 if test "${ac_cv_search_opendir+set}" = set; then
29102 break
Reid Spencer59473af2004-12-25 07:31:29 +000029103fi
Reid Spencera773bd52006-08-04 18:18:08 +000029104done
29105if test "${ac_cv_search_opendir+set}" = set; then
29106 :
29107else
29108 ac_cv_search_opendir=no
29109fi
29110rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029111LIBS=$ac_func_search_save_LIBS
29112fi
Reid Spencera773bd52006-08-04 18:18:08 +000029113{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29114echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29115ac_res=$ac_cv_search_opendir
29116if test "$ac_res" != no; then
29117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029118
29119fi
29120
29121else
Reid Spencera773bd52006-08-04 18:18:08 +000029122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29123echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029124if test "${ac_cv_search_opendir+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
29127 ac_func_search_save_LIBS=$LIBS
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
Reid Spencera773bd52006-08-04 18:18:08 +000029135/* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029138#ifdef __cplusplus
29139extern "C"
29140#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029141char opendir ();
29142int
29143main ()
29144{
Reid Spencera773bd52006-08-04 18:18:08 +000029145return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029146 ;
29147 return 0;
29148}
29149_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029150for ac_lib in '' x; do
29151 if test -z "$ac_lib"; then
29152 ac_res="none required"
29153 else
29154 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029156 fi
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158if { (ac_try="$ac_link"
29159case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29162esac
29163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029165 ac_status=$?
29166 grep -v '^ *+' conftest.er1 >conftest.err
29167 rm -f conftest.er1
29168 cat conftest.err >&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029170 (exit $ac_status); } &&
29171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29172 { (case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29175esac
29176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_try") 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
29182 { (case "(($ac_try" in
29183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184 *) ac_try_echo=$ac_try;;
29185esac
29186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_try") 2>&5
29188 ac_status=$?
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029191 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
Reid Spencera773bd52006-08-04 18:18:08 +000029196
Reid Spencer59473af2004-12-25 07:31:29 +000029197fi
Reid Spencera773bd52006-08-04 18:18:08 +000029198
Bill Wendlingebcceee2009-04-18 11:20:33 +000029199rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029200 conftest$ac_exeext
29201 if test "${ac_cv_search_opendir+set}" = set; then
29202 break
Reid Spencer59473af2004-12-25 07:31:29 +000029203fi
Reid Spencera773bd52006-08-04 18:18:08 +000029204done
29205if test "${ac_cv_search_opendir+set}" = set; then
29206 :
29207else
29208 ac_cv_search_opendir=no
29209fi
29210rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029211LIBS=$ac_func_search_save_LIBS
29212fi
Reid Spencera773bd52006-08-04 18:18:08 +000029213{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29214echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29215ac_res=$ac_cv_search_opendir
29216if test "$ac_res" != no; then
29217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029218
29219fi
29220
29221fi
29222
Reid Spencera773bd52006-08-04 18:18:08 +000029223{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29224echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029225if test "${ac_cv_header_mmap_anon+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227else
29228 ac_ext=c
29229ac_cpp='$CPP $CPPFLAGS'
29230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
29234 cat >conftest.$ac_ext <<_ACEOF
29235/* confdefs.h. */
29236_ACEOF
29237cat confdefs.h >>conftest.$ac_ext
29238cat >>conftest.$ac_ext <<_ACEOF
29239/* end confdefs.h. */
29240#include <sys/mman.h>
29241#include <unistd.h>
29242#include <fcntl.h>
29243int
29244main ()
29245{
29246mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29247 ;
29248 return 0;
29249}
29250_ACEOF
29251rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029252if { (ac_try="$ac_compile"
29253case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29256esac
29257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029259 ac_status=$?
29260 grep -v '^ *+' conftest.er1 >conftest.err
29261 rm -f conftest.er1
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029264 (exit $ac_status); } &&
29265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; } &&
29275 { ac_try='test -s conftest.$ac_objext'
29276 { (case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_try") 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029285 ac_cv_header_mmap_anon=yes
29286else
29287 echo "$as_me: failed program was:" >&5
29288sed 's/^/| /' conftest.$ac_ext >&5
29289
Reid Spencera773bd52006-08-04 18:18:08 +000029290 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029291fi
Reid Spencera773bd52006-08-04 18:18:08 +000029292
29293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029294 ac_ext=c
29295ac_cpp='$CPP $CPPFLAGS'
29296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298ac_compiler_gnu=$ac_cv_c_compiler_gnu
29299
29300
29301fi
Reid Spencera773bd52006-08-04 18:18:08 +000029302{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29303echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029304if test "$ac_cv_header_mmap_anon" = yes; then
29305
29306cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029307#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029308_ACEOF
29309
29310fi
29311
Reid Spencera773bd52006-08-04 18:18:08 +000029312{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29313echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029314if test "${ac_cv_header_stat_broken+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29316else
29317 cat >conftest.$ac_ext <<_ACEOF
29318/* confdefs.h. */
29319_ACEOF
29320cat confdefs.h >>conftest.$ac_ext
29321cat >>conftest.$ac_ext <<_ACEOF
29322/* end confdefs.h. */
29323#include <sys/types.h>
29324#include <sys/stat.h>
29325
Reid Spencera773bd52006-08-04 18:18:08 +000029326#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029327# if S_ISBLK (S_IFDIR)
29328You lose.
29329# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029330#endif
29331
Reid Spencera773bd52006-08-04 18:18:08 +000029332#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029333# if S_ISBLK (S_IFCHR)
29334You lose.
29335# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029336#endif
29337
Reid Spencera773bd52006-08-04 18:18:08 +000029338#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029339# if S_ISLNK (S_IFREG)
29340You lose.
29341# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029342#endif
29343
Reid Spencera773bd52006-08-04 18:18:08 +000029344#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029345# if S_ISSOCK (S_IFREG)
29346You lose.
29347# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029348#endif
29349
29350_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29352 $EGREP "You lose" >/dev/null 2>&1; then
29353 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029354else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029355 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029356fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029357rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029358
Reid Spencer59473af2004-12-25 07:31:29 +000029359fi
Reid Spencera773bd52006-08-04 18:18:08 +000029360{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29361echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029362if test $ac_cv_header_stat_broken = yes; then
29363
29364cat >>confdefs.h <<\_ACEOF
29365#define STAT_MACROS_BROKEN 1
29366_ACEOF
29367
29368fi
29369
Reid Spencera773bd52006-08-04 18:18:08 +000029370{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29371echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029372if test "${ac_cv_header_stdc+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29374else
29375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029381#include <stdlib.h>
29382#include <stdarg.h>
29383#include <string.h>
29384#include <float.h>
29385
John Criswell0c38eaf2003-09-10 15:17:25 +000029386int
29387main ()
29388{
29389
29390 ;
29391 return 0;
29392}
John Criswell7a73b802003-06-30 21:59:07 +000029393_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029394rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029395if { (ac_try="$ac_compile"
29396case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29399esac
29400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409 { (case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29412esac
29413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_try") 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
29419 { (case "(($ac_try" in
29420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421 *) ac_try_echo=$ac_try;;
29422esac
29423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424 (eval "$ac_try") 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029428 ac_cv_header_stdc=yes
29429else
29430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029431sed 's/^/| /' conftest.$ac_ext >&5
29432
Reid Spencera773bd52006-08-04 18:18:08 +000029433 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029434fi
Reid Spencera773bd52006-08-04 18:18:08 +000029435
29436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029437
29438if test $ac_cv_header_stdc = yes; then
29439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029446#include <string.h>
29447
29448_ACEOF
29449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029450 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029451 :
29452else
29453 ac_cv_header_stdc=no
29454fi
29455rm -f conftest*
29456
29457fi
29458
29459if test $ac_cv_header_stdc = yes; then
29460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29461 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029467#include <stdlib.h>
29468
29469_ACEOF
29470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029471 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029472 :
29473else
29474 ac_cv_header_stdc=no
29475fi
29476rm -f conftest*
29477
29478fi
29479
29480if test $ac_cv_header_stdc = yes; then
29481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29482 if test "$cross_compiling" = yes; then
29483 :
29484else
29485 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029486/* confdefs.h. */
29487_ACEOF
29488cat confdefs.h >>conftest.$ac_ext
29489cat >>conftest.$ac_ext <<_ACEOF
29490/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029491#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029492#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029493#if ((' ' & 0x0FF) == 0x020)
29494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29496#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029497# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029498 (('a' <= (c) && (c) <= 'i') \
29499 || ('j' <= (c) && (c) <= 'r') \
29500 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29502#endif
29503
29504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29505int
29506main ()
29507{
29508 int i;
29509 for (i = 0; i < 256; i++)
29510 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029511 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029512 return 2;
29513 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029514}
29515_ACEOF
29516rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029517if { (ac_try="$ac_link"
29518case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29521esac
29522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029524 ac_status=$?
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029527 { (case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29530esac
29531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; }; then
29536 :
29537else
29538 echo "$as_me: program exited with status $ac_status" >&5
29539echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029540sed 's/^/| /' conftest.$ac_ext >&5
29541
John Criswell7a73b802003-06-30 21:59:07 +000029542( exit $ac_status )
29543ac_cv_header_stdc=no
29544fi
Reid Spencera773bd52006-08-04 18:18:08 +000029545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29546fi
29547
29548
John Criswell7a73b802003-06-30 21:59:07 +000029549fi
29550fi
Reid Spencera773bd52006-08-04 18:18:08 +000029551{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29552echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029553if test $ac_cv_header_stdc = yes; then
29554
29555cat >>confdefs.h <<\_ACEOF
29556#define STDC_HEADERS 1
29557_ACEOF
29558
29559fi
29560
Reid Spencera773bd52006-08-04 18:18:08 +000029561{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29562echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029563if test "${ac_cv_header_sys_wait_h+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565else
29566 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029567/* confdefs.h. */
29568_ACEOF
29569cat confdefs.h >>conftest.$ac_ext
29570cat >>conftest.$ac_ext <<_ACEOF
29571/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029572#include <sys/types.h>
29573#include <sys/wait.h>
29574#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029575# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029576#endif
29577#ifndef WIFEXITED
29578# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29579#endif
29580
John Criswell7a73b802003-06-30 21:59:07 +000029581int
29582main ()
29583{
29584 int s;
29585 wait (&s);
29586 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29587 ;
29588 return 0;
29589}
29590_ACEOF
29591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029592if { (ac_try="$ac_compile"
29593case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29596esac
29597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029600 grep -v '^ *+' conftest.er1 >conftest.err
29601 rm -f conftest.er1
29602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029604 (exit $ac_status); } &&
29605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609esac
29610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; } &&
29615 { ac_try='test -s conftest.$ac_objext'
29616 { (case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29619esac
29620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_try") 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029625 ac_cv_header_sys_wait_h=yes
29626else
29627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029628sed 's/^/| /' conftest.$ac_ext >&5
29629
Reid Spencera773bd52006-08-04 18:18:08 +000029630 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029631fi
Reid Spencera773bd52006-08-04 18:18:08 +000029632
29633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029634fi
Reid Spencera773bd52006-08-04 18:18:08 +000029635{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29636echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029637if test $ac_cv_header_sys_wait_h = yes; then
29638
29639cat >>confdefs.h <<\_ACEOF
29640#define HAVE_SYS_WAIT_H 1
29641_ACEOF
29642
29643fi
29644
Reid Spencera773bd52006-08-04 18:18:08 +000029645{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29646echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029647if test "${ac_cv_header_time+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
29650 cat >conftest.$ac_ext <<_ACEOF
29651/* confdefs.h. */
29652_ACEOF
29653cat confdefs.h >>conftest.$ac_ext
29654cat >>conftest.$ac_ext <<_ACEOF
29655/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029656#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029657#include <sys/time.h>
29658#include <time.h>
29659
29660int
29661main ()
29662{
29663if ((struct tm *) 0)
29664return 0;
29665 ;
29666 return 0;
29667}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029668_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029669rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029670if { (ac_try="$ac_compile"
29671case "(($ac_try" in
29672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 *) ac_try_echo=$ac_try;;
29674esac
29675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029677 ac_status=$?
29678 grep -v '^ *+' conftest.er1 >conftest.err
29679 rm -f conftest.er1
29680 cat conftest.err >&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029682 (exit $ac_status); } &&
29683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29684 { (case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29687esac
29688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_try") 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; } &&
29693 { ac_try='test -s conftest.$ac_objext'
29694 { (case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697esac
29698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_try") 2>&5
29700 ac_status=$?
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029703 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029704else
29705 echo "$as_me: failed program was:" >&5
29706sed 's/^/| /' conftest.$ac_ext >&5
29707
Reid Spencera773bd52006-08-04 18:18:08 +000029708 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029709fi
Reid Spencera773bd52006-08-04 18:18:08 +000029710
29711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029712fi
Reid Spencera773bd52006-08-04 18:18:08 +000029713{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29714echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029715if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029717cat >>confdefs.h <<\_ACEOF
29718#define TIME_WITH_SYS_TIME 1
29719_ACEOF
29720
29721fi
29722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029723
Reid Spencer59473af2004-12-25 07:31:29 +000029724
29725
29726
29727
29728
29729
29730for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29731do
29732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738fi
Reid Spencera773bd52006-08-04 18:18:08 +000029739ac_res=`eval echo '${'$as_ac_Header'}'`
29740 { echo "$as_me:$LINENO: result: $ac_res" >&5
29741echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029742else
29743 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029744{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029746cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029747/* confdefs.h. */
29748_ACEOF
29749cat confdefs.h >>conftest.$ac_ext
29750cat >>conftest.$ac_ext <<_ACEOF
29751/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029752$ac_includes_default
29753#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029754_ACEOF
29755rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029756if { (ac_try="$ac_compile"
29757case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29760esac
29761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029763 ac_status=$?
29764 grep -v '^ *+' conftest.er1 >conftest.err
29765 rm -f conftest.er1
29766 cat conftest.err >&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029768 (exit $ac_status); } &&
29769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29770 { (case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29773esac
29774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest.$ac_objext'
29780 { (case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29783esac
29784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_try") 2>&5
29786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029789 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029790else
29791 echo "$as_me: failed program was:" >&5
29792sed 's/^/| /' conftest.$ac_ext >&5
29793
Reid Spencera773bd52006-08-04 18:18:08 +000029794 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029795fi
Reid Spencera773bd52006-08-04 18:18:08 +000029796
29797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29799echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029800
Reid Spencer59473af2004-12-25 07:31:29 +000029801# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029802{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029804cat >conftest.$ac_ext <<_ACEOF
29805/* confdefs.h. */
29806_ACEOF
29807cat confdefs.h >>conftest.$ac_ext
29808cat >>conftest.$ac_ext <<_ACEOF
29809/* end confdefs.h. */
29810#include <$ac_header>
29811_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029812if { (ac_try="$ac_cpp conftest.$ac_ext"
29813case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816esac
29817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029819 ac_status=$?
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029824 (exit $ac_status); } >/dev/null; then
29825 if test -s conftest.err; then
29826 ac_cpp_err=$ac_c_preproc_warn_flag
29827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29828 else
29829 ac_cpp_err=
29830 fi
29831else
29832 ac_cpp_err=yes
29833fi
29834if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029835 ac_header_preproc=yes
29836else
29837 echo "$as_me: failed program was:" >&5
29838sed 's/^/| /' conftest.$ac_ext >&5
29839
29840 ac_header_preproc=no
29841fi
Reid Spencera773bd52006-08-04 18:18:08 +000029842
Reid Spencer59473af2004-12-25 07:31:29 +000029843rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029844{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29845echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029846
29847# So? What about this header?
29848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29849 yes:no: )
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29854 ac_header_preproc=yes
29855 ;;
29856 no:yes:* )
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029869 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029870## ----------------------------------- ##
29871## Report this to llvmbugs@cs.uiuc.edu ##
29872## ----------------------------------- ##
29873_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029874 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029875 ;;
29876esac
Reid Spencera773bd52006-08-04 18:18:08 +000029877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029880 echo $ECHO_N "(cached) $ECHO_C" >&6
29881else
29882 eval "$as_ac_Header=\$ac_header_preproc"
29883fi
Reid Spencera773bd52006-08-04 18:18:08 +000029884ac_res=`eval echo '${'$as_ac_Header'}'`
29885 { echo "$as_me:$LINENO: result: $ac_res" >&5
29886echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029887
29888fi
Reid Spencer59473af2004-12-25 07:31:29 +000029889if test `eval echo '${'$as_ac_Header'}'` = yes; then
29890 cat >>confdefs.h <<_ACEOF
29891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029892_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029893
29894fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029895
Reid Spencer59473af2004-12-25 07:31:29 +000029896done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029897
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029898
29899
Reid Spencer59473af2004-12-25 07:31:29 +000029900
29901
29902
29903
Douglas Gregor071d73d2009-05-18 17:21:34 +000029904for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029905do
29906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029911 echo $ECHO_N "(cached) $ECHO_C" >&6
29912fi
Reid Spencera773bd52006-08-04 18:18:08 +000029913ac_res=`eval echo '${'$as_ac_Header'}'`
29914 { echo "$as_me:$LINENO: result: $ac_res" >&5
29915echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029916else
29917 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029918{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029920cat >conftest.$ac_ext <<_ACEOF
29921/* confdefs.h. */
29922_ACEOF
29923cat confdefs.h >>conftest.$ac_ext
29924cat >>conftest.$ac_ext <<_ACEOF
29925/* end confdefs.h. */
29926$ac_includes_default
29927#include <$ac_header>
29928_ACEOF
29929rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029930if { (ac_try="$ac_compile"
29931case "(($ac_try" in
29932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933 *) ac_try_echo=$ac_try;;
29934esac
29935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029937 ac_status=$?
29938 grep -v '^ *+' conftest.er1 >conftest.err
29939 rm -f conftest.er1
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
29953 { ac_try='test -s conftest.$ac_objext'
29954 { (case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_try") 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029963 ac_header_compiler=yes
29964else
29965 echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
Reid Spencera773bd52006-08-04 18:18:08 +000029968 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029969fi
Reid Spencera773bd52006-08-04 18:18:08 +000029970
29971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29972{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29973echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029974
29975# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029976{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029978cat >conftest.$ac_ext <<_ACEOF
29979/* confdefs.h. */
29980_ACEOF
29981cat confdefs.h >>conftest.$ac_ext
29982cat >>conftest.$ac_ext <<_ACEOF
29983/* end confdefs.h. */
29984#include <$ac_header>
29985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029986if { (ac_try="$ac_cpp conftest.$ac_ext"
29987case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29990esac
29991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029993 ac_status=$?
29994 grep -v '^ *+' conftest.er1 >conftest.err
29995 rm -f conftest.er1
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029998 (exit $ac_status); } >/dev/null; then
29999 if test -s conftest.err; then
30000 ac_cpp_err=$ac_c_preproc_warn_flag
30001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30002 else
30003 ac_cpp_err=
30004 fi
30005else
30006 ac_cpp_err=yes
30007fi
30008if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030009 ac_header_preproc=yes
30010else
30011 echo "$as_me: failed program was:" >&5
30012sed 's/^/| /' conftest.$ac_ext >&5
30013
30014 ac_header_preproc=no
30015fi
Reid Spencera773bd52006-08-04 18:18:08 +000030016
Reid Spencer59473af2004-12-25 07:31:29 +000030017rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030018{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30019echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030020
30021# So? What about this header?
30022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30023 yes:no: )
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30028 ac_header_preproc=yes
30029 ;;
30030 no:yes:* )
30031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030043 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030044## ----------------------------------- ##
30045## Report this to llvmbugs@cs.uiuc.edu ##
30046## ----------------------------------- ##
30047_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030048 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030049 ;;
30050esac
Reid Spencera773bd52006-08-04 18:18:08 +000030051{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030054 echo $ECHO_N "(cached) $ECHO_C" >&6
30055else
30056 eval "$as_ac_Header=\$ac_header_preproc"
30057fi
Reid Spencera773bd52006-08-04 18:18:08 +000030058ac_res=`eval echo '${'$as_ac_Header'}'`
30059 { echo "$as_me:$LINENO: result: $ac_res" >&5
30060echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030061
30062fi
30063if test `eval echo '${'$as_ac_Header'}'` = yes; then
30064 cat >>confdefs.h <<_ACEOF
30065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30066_ACEOF
30067
30068fi
30069
30070done
30071
30072
Douglas Gregor071d73d2009-05-18 17:21:34 +000030073
30074for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030075do
30076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30081 echo $ECHO_N "(cached) $ECHO_C" >&6
30082fi
30083ac_res=`eval echo '${'$as_ac_Header'}'`
30084 { echo "$as_me:$LINENO: result: $ac_res" >&5
30085echo "${ECHO_T}$ac_res" >&6; }
30086else
30087 # Is the header compilable?
30088{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30090cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096$ac_includes_default
30097#include <$ac_header>
30098_ACEOF
30099rm -f conftest.$ac_objext
30100if { (ac_try="$ac_compile"
30101case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
30107 ac_status=$?
30108 grep -v '^ *+' conftest.er1 >conftest.err
30109 rm -f conftest.er1
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30127esac
30128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030133 ac_header_compiler=yes
30134else
30135 echo "$as_me: failed program was:" >&5
30136sed 's/^/| /' conftest.$ac_ext >&5
30137
30138 ac_header_compiler=no
30139fi
30140
30141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30143echo "${ECHO_T}$ac_header_compiler" >&6; }
30144
30145# Is the header present?
30146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30148cat >conftest.$ac_ext <<_ACEOF
30149/* confdefs.h. */
30150_ACEOF
30151cat confdefs.h >>conftest.$ac_ext
30152cat >>conftest.$ac_ext <<_ACEOF
30153/* end confdefs.h. */
30154#include <$ac_header>
30155_ACEOF
30156if { (ac_try="$ac_cpp conftest.$ac_ext"
30157case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30160esac
30161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30163 ac_status=$?
30164 grep -v '^ *+' conftest.er1 >conftest.err
30165 rm -f conftest.er1
30166 cat conftest.err >&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030168 (exit $ac_status); } >/dev/null; then
30169 if test -s conftest.err; then
30170 ac_cpp_err=$ac_c_preproc_warn_flag
30171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30172 else
30173 ac_cpp_err=
30174 fi
30175else
30176 ac_cpp_err=yes
30177fi
30178if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030179 ac_header_preproc=yes
30180else
30181 echo "$as_me: failed program was:" >&5
30182sed 's/^/| /' conftest.$ac_ext >&5
30183
30184 ac_header_preproc=no
30185fi
30186
30187rm -f conftest.err conftest.$ac_ext
30188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30189echo "${ECHO_T}$ac_header_preproc" >&6; }
30190
30191# So? What about this header?
30192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30193 yes:no: )
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30198 ac_header_preproc=yes
30199 ;;
30200 no:yes:* )
30201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30213 ( cat <<\_ASBOX
30214## ----------------------------------- ##
30215## Report this to llvmbugs@cs.uiuc.edu ##
30216## ----------------------------------- ##
30217_ASBOX
30218 ) | sed "s/^/$as_me: WARNING: /" >&2
30219 ;;
30220esac
30221{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30225else
30226 eval "$as_ac_Header=\$ac_header_preproc"
30227fi
30228ac_res=`eval echo '${'$as_ac_Header'}'`
30229 { echo "$as_me:$LINENO: result: $ac_res" >&5
30230echo "${ECHO_T}$ac_res" >&6; }
30231
30232fi
30233if test `eval echo '${'$as_ac_Header'}'` = yes; then
30234 cat >>confdefs.h <<_ACEOF
30235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30236_ACEOF
30237
30238fi
30239
30240done
Reid Spencer59473af2004-12-25 07:31:29 +000030241
30242
30243
30244
Reid Spencerbe3e4192007-08-17 05:45:26 +000030245
30246for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030247do
30248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030253 echo $ECHO_N "(cached) $ECHO_C" >&6
30254fi
Reid Spencera773bd52006-08-04 18:18:08 +000030255ac_res=`eval echo '${'$as_ac_Header'}'`
30256 { echo "$as_me:$LINENO: result: $ac_res" >&5
30257echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030258else
30259 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030262cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030263/* confdefs.h. */
30264_ACEOF
30265cat confdefs.h >>conftest.$ac_ext
30266cat >>conftest.$ac_ext <<_ACEOF
30267/* end confdefs.h. */
30268$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030269#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030270_ACEOF
30271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030272if { (ac_try="$ac_compile"
30273case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030305 ac_header_compiler=yes
30306else
30307 echo "$as_me: failed program was:" >&5
30308sed 's/^/| /' conftest.$ac_ext >&5
30309
Reid Spencera773bd52006-08-04 18:18:08 +000030310 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030311fi
Reid Spencera773bd52006-08-04 18:18:08 +000030312
30313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30315echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030316
30317# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030318{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030320cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030321/* confdefs.h. */
30322_ACEOF
30323cat confdefs.h >>conftest.$ac_ext
30324cat >>conftest.$ac_ext <<_ACEOF
30325/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030326#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030327_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030328if { (ac_try="$ac_cpp conftest.$ac_ext"
30329case "(($ac_try" in
30330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30331 *) ac_try_echo=$ac_try;;
30332esac
30333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030335 ac_status=$?
30336 grep -v '^ *+' conftest.er1 >conftest.err
30337 rm -f conftest.er1
30338 cat conftest.err >&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030340 (exit $ac_status); } >/dev/null; then
30341 if test -s conftest.err; then
30342 ac_cpp_err=$ac_c_preproc_warn_flag
30343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30344 else
30345 ac_cpp_err=
30346 fi
30347else
30348 ac_cpp_err=yes
30349fi
30350if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030351 ac_header_preproc=yes
30352else
30353 echo "$as_me: failed program was:" >&5
30354sed 's/^/| /' conftest.$ac_ext >&5
30355
30356 ac_header_preproc=no
30357fi
Reid Spencera773bd52006-08-04 18:18:08 +000030358
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030359rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30361echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030362
30363# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30365 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030370 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030371 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030372 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030385 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030386## ----------------------------------- ##
30387## Report this to llvmbugs@cs.uiuc.edu ##
30388## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030389_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030390 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030391 ;;
30392esac
Reid Spencera773bd52006-08-04 18:18:08 +000030393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030398 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030399fi
Reid Spencera773bd52006-08-04 18:18:08 +000030400ac_res=`eval echo '${'$as_ac_Header'}'`
30401 { echo "$as_me:$LINENO: result: $ac_res" >&5
30402echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030403
30404fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030405if test `eval echo '${'$as_ac_Header'}'` = yes; then
30406 cat >>confdefs.h <<_ACEOF
30407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030408_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030409
30410fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030411
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412done
30413
John Criswell7ed43ad2004-07-19 16:12:29 +000030414
Reid Spencercdb08a32006-06-05 16:11:07 +000030415
Reid Spencera6d990a2006-09-14 06:17:21 +000030416
Douglas Gregor01746742009-05-11 18:05:52 +000030417
30418for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030419do
30420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030425 echo $ECHO_N "(cached) $ECHO_C" >&6
30426fi
Reid Spencera773bd52006-08-04 18:18:08 +000030427ac_res=`eval echo '${'$as_ac_Header'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030430else
30431 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030432{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030434cat >conftest.$ac_ext <<_ACEOF
30435/* confdefs.h. */
30436_ACEOF
30437cat confdefs.h >>conftest.$ac_ext
30438cat >>conftest.$ac_ext <<_ACEOF
30439/* end confdefs.h. */
30440$ac_includes_default
30441#include <$ac_header>
30442_ACEOF
30443rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030444if { (ac_try="$ac_compile"
30445case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448esac
30449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030451 ac_status=$?
30452 grep -v '^ *+' conftest.er1 >conftest.err
30453 rm -f conftest.er1
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030456 (exit $ac_status); } &&
30457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest.$ac_objext'
30468 { (case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30471esac
30472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_try") 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030477 ac_header_compiler=yes
30478else
30479 echo "$as_me: failed program was:" >&5
30480sed 's/^/| /' conftest.$ac_ext >&5
30481
Reid Spencera773bd52006-08-04 18:18:08 +000030482 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030483fi
Reid Spencera773bd52006-08-04 18:18:08 +000030484
30485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30487echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030488
30489# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030490{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030492cat >conftest.$ac_ext <<_ACEOF
30493/* confdefs.h. */
30494_ACEOF
30495cat confdefs.h >>conftest.$ac_ext
30496cat >>conftest.$ac_ext <<_ACEOF
30497/* end confdefs.h. */
30498#include <$ac_header>
30499_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030500if { (ac_try="$ac_cpp conftest.$ac_ext"
30501case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30504esac
30505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030507 ac_status=$?
30508 grep -v '^ *+' conftest.er1 >conftest.err
30509 rm -f conftest.er1
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030512 (exit $ac_status); } >/dev/null; then
30513 if test -s conftest.err; then
30514 ac_cpp_err=$ac_c_preproc_warn_flag
30515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30516 else
30517 ac_cpp_err=
30518 fi
30519else
30520 ac_cpp_err=yes
30521fi
30522if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030523 ac_header_preproc=yes
30524else
30525 echo "$as_me: failed program was:" >&5
30526sed 's/^/| /' conftest.$ac_ext >&5
30527
30528 ac_header_preproc=no
30529fi
Reid Spencera773bd52006-08-04 18:18:08 +000030530
Chris Lattner0b142592005-11-14 06:57:34 +000030531rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030532{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30533echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030534
30535# So? What about this header?
30536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30537 yes:no: )
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30542 ac_header_preproc=yes
30543 ;;
30544 no:yes:* )
30545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030557 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030558## ----------------------------------- ##
30559## Report this to llvmbugs@cs.uiuc.edu ##
30560## ----------------------------------- ##
30561_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030562 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030563 ;;
30564esac
Reid Spencera773bd52006-08-04 18:18:08 +000030565{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030568 echo $ECHO_N "(cached) $ECHO_C" >&6
30569else
30570 eval "$as_ac_Header=\$ac_header_preproc"
30571fi
Reid Spencera773bd52006-08-04 18:18:08 +000030572ac_res=`eval echo '${'$as_ac_Header'}'`
30573 { echo "$as_me:$LINENO: result: $ac_res" >&5
30574echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030575
30576fi
30577if test `eval echo '${'$as_ac_Header'}'` = yes; then
30578 cat >>confdefs.h <<_ACEOF
30579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30580_ACEOF
30581
30582fi
30583
30584done
30585
Reid Spencer0a262ba2005-08-24 10:07:20 +000030586if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030587
30588for ac_header in pthread.h
30589do
30590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030595 echo $ECHO_N "(cached) $ECHO_C" >&6
30596fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030597ac_res=`eval echo '${'$as_ac_Header'}'`
30598 { echo "$as_me:$LINENO: result: $ac_res" >&5
30599echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030600else
30601 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030604cat >conftest.$ac_ext <<_ACEOF
30605/* confdefs.h. */
30606_ACEOF
30607cat confdefs.h >>conftest.$ac_ext
30608cat >>conftest.$ac_ext <<_ACEOF
30609/* end confdefs.h. */
30610$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030611#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030612_ACEOF
30613rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030614if { (ac_try="$ac_compile"
30615case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30618esac
30619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030621 ac_status=$?
30622 grep -v '^ *+' conftest.er1 >conftest.err
30623 rm -f conftest.er1
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030626 (exit $ac_status); } &&
30627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30631esac
30632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; } &&
30637 { ac_try='test -s conftest.$ac_objext'
30638 { (case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30641esac
30642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_try") 2>&5
30644 ac_status=$?
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030647 ac_header_compiler=yes
30648else
30649 echo "$as_me: failed program was:" >&5
30650sed 's/^/| /' conftest.$ac_ext >&5
30651
Reid Spencera773bd52006-08-04 18:18:08 +000030652 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030653fi
Reid Spencera773bd52006-08-04 18:18:08 +000030654
30655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30657echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030658
30659# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030662cat >conftest.$ac_ext <<_ACEOF
30663/* confdefs.h. */
30664_ACEOF
30665cat confdefs.h >>conftest.$ac_ext
30666cat >>conftest.$ac_ext <<_ACEOF
30667/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030668#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030670if { (ac_try="$ac_cpp conftest.$ac_ext"
30671case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30674esac
30675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030677 ac_status=$?
30678 grep -v '^ *+' conftest.er1 >conftest.err
30679 rm -f conftest.er1
30680 cat conftest.err >&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030682 (exit $ac_status); } >/dev/null; then
30683 if test -s conftest.err; then
30684 ac_cpp_err=$ac_c_preproc_warn_flag
30685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30686 else
30687 ac_cpp_err=
30688 fi
30689else
30690 ac_cpp_err=yes
30691fi
30692if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030693 ac_header_preproc=yes
30694else
30695 echo "$as_me: failed program was:" >&5
30696sed 's/^/| /' conftest.$ac_ext >&5
30697
30698 ac_header_preproc=no
30699fi
Reid Spencera773bd52006-08-04 18:18:08 +000030700
Reid Spencer0a262ba2005-08-24 10:07:20 +000030701rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30703echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030704
30705# So? What about this header?
30706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30707 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030712 ac_header_preproc=yes
30713 ;;
30714 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030727 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030728## ----------------------------------- ##
30729## Report this to llvmbugs@cs.uiuc.edu ##
30730## ----------------------------------- ##
30731_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030732 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030733 ;;
30734esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030738 echo $ECHO_N "(cached) $ECHO_C" >&6
30739else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030740 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030741fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030742ac_res=`eval echo '${'$as_ac_Header'}'`
30743 { echo "$as_me:$LINENO: result: $ac_res" >&5
30744echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030745
30746fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030747if test `eval echo '${'$as_ac_Header'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30750_ACEOF
30751 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030752
30753else
30754 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030755
30756fi
30757
Reid Spencerbe3e4192007-08-17 05:45:26 +000030758done
Reid Spencer1000b732006-12-01 00:37:14 +000030759
30760else
30761 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030762
30763fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030764
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030765if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030766
30767
30768for ac_header in ffi.h ffi/ffi.h
30769do
30770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30776fi
30777ac_res=`eval echo '${'$as_ac_Header'}'`
30778 { echo "$as_me:$LINENO: result: $ac_res" >&5
30779echo "${ECHO_T}$ac_res" >&6; }
30780else
30781 # Is the header compilable?
30782{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30784cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790$ac_includes_default
30791#include <$ac_header>
30792_ACEOF
30793rm -f conftest.$ac_objext
30794if { (ac_try="$ac_compile"
30795case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_compile") 2>conftest.er1
30801 ac_status=$?
30802 grep -v '^ *+' conftest.er1 >conftest.err
30803 rm -f conftest.er1
30804 cat conftest.err >&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030806 (exit $ac_status); } &&
30807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30808 { (case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30811esac
30812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_try") 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030827 ac_header_compiler=yes
30828else
30829 echo "$as_me: failed program was:" >&5
30830sed 's/^/| /' conftest.$ac_ext >&5
30831
30832 ac_header_compiler=no
30833fi
30834
30835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30837echo "${ECHO_T}$ac_header_compiler" >&6; }
30838
30839# Is the header present?
30840{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30842cat >conftest.$ac_ext <<_ACEOF
30843/* confdefs.h. */
30844_ACEOF
30845cat confdefs.h >>conftest.$ac_ext
30846cat >>conftest.$ac_ext <<_ACEOF
30847/* end confdefs.h. */
30848#include <$ac_header>
30849_ACEOF
30850if { (ac_try="$ac_cpp conftest.$ac_ext"
30851case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
30857 ac_status=$?
30858 grep -v '^ *+' conftest.er1 >conftest.err
30859 rm -f conftest.er1
30860 cat conftest.err >&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030862 (exit $ac_status); } >/dev/null; then
30863 if test -s conftest.err; then
30864 ac_cpp_err=$ac_c_preproc_warn_flag
30865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30866 else
30867 ac_cpp_err=
30868 fi
30869else
30870 ac_cpp_err=yes
30871fi
30872if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030873 ac_header_preproc=yes
30874else
30875 echo "$as_me: failed program was:" >&5
30876sed 's/^/| /' conftest.$ac_ext >&5
30877
30878 ac_header_preproc=no
30879fi
30880
30881rm -f conftest.err conftest.$ac_ext
30882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30883echo "${ECHO_T}$ac_header_preproc" >&6; }
30884
30885# So? What about this header?
30886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30887 yes:no: )
30888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30892 ac_header_preproc=yes
30893 ;;
30894 no:yes:* )
30895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30907 ( cat <<\_ASBOX
30908## ----------------------------------- ##
30909## Report this to llvmbugs@cs.uiuc.edu ##
30910## ----------------------------------- ##
30911_ASBOX
30912 ) | sed "s/^/$as_me: WARNING: /" >&2
30913 ;;
30914esac
30915{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919else
30920 eval "$as_ac_Header=\$ac_header_preproc"
30921fi
30922ac_res=`eval echo '${'$as_ac_Header'}'`
30923 { echo "$as_me:$LINENO: result: $ac_res" >&5
30924echo "${ECHO_T}$ac_res" >&6; }
30925
30926fi
30927if test `eval echo '${'$as_ac_Header'}'` = yes; then
30928 cat >>confdefs.h <<_ACEOF
30929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30930_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030931
30932fi
30933
30934done
30935
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030936fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030937
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030938
Reid Spencer8085cff2005-01-16 02:58:39 +000030939
Reid Spencerb2ed05262006-11-03 18:04:08 +000030940 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30941echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30942if test "${ac_cv_huge_val_sanity+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030946 ac_ext=cpp
30947ac_cpp='$CXXCPP $CPPFLAGS'
30948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030951
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030952 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030953 if test "$cross_compiling" = yes; then
30954 ac_cv_huge_val_sanity=yes
30955else
30956 cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962#include <math.h>
30963int
30964main ()
30965{
30966double x = HUGE_VAL; return x != x;
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971rm -f conftest$ac_exeext
30972if { (ac_try="$ac_link"
30973case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_link") 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985esac
30986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 ac_cv_huge_val_sanity=yes
30992else
30993 echo "$as_me: program exited with status $ac_status" >&5
30994echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997( exit $ac_status )
30998ac_cv_huge_val_sanity=no
30999fi
31000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31001fi
31002
31003
31004 ac_ext=c
31005ac_cpp='$CPP $CPPFLAGS'
31006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31008ac_compiler_gnu=$ac_cv_c_compiler_gnu
31009
31010
31011fi
31012{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31013echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31014 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31015
31016
Reid Spencera773bd52006-08-04 18:18:08 +000031017{ echo "$as_me:$LINENO: checking for pid_t" >&5
31018echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031019if test "${ac_cv_type_pid_t+set}" = set; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31021else
31022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031023/* confdefs.h. */
31024_ACEOF
31025cat confdefs.h >>conftest.$ac_ext
31026cat >>conftest.$ac_ext <<_ACEOF
31027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031028$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031029typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031030int
31031main ()
31032{
Reid Spencera773bd52006-08-04 18:18:08 +000031033if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031034 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031035if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031036 return 0;
31037 ;
31038 return 0;
31039}
31040_ACEOF
31041rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031042if { (ac_try="$ac_compile"
31043case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31046esac
31047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031050 grep -v '^ *+' conftest.er1 >conftest.err
31051 rm -f conftest.er1
31052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031054 (exit $ac_status); } &&
31055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31056 { (case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31059esac
31060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_try") 2>&5
31062 ac_status=$?
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); }; } &&
31065 { ac_try='test -s conftest.$ac_objext'
31066 { (case "(($ac_try" in
31067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068 *) ac_try_echo=$ac_try;;
31069esac
31070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071 (eval "$ac_try") 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031075 ac_cv_type_pid_t=yes
31076else
31077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031078sed 's/^/| /' conftest.$ac_ext >&5
31079
Reid Spencera773bd52006-08-04 18:18:08 +000031080 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031081fi
Reid Spencera773bd52006-08-04 18:18:08 +000031082
31083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031084fi
Reid Spencera773bd52006-08-04 18:18:08 +000031085{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31086echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031087if test $ac_cv_type_pid_t = yes; then
31088 :
31089else
31090
31091cat >>confdefs.h <<_ACEOF
31092#define pid_t int
31093_ACEOF
31094
31095fi
31096
Reid Spencera773bd52006-08-04 18:18:08 +000031097{ echo "$as_me:$LINENO: checking for size_t" >&5
31098echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031099if test "${ac_cv_type_size_t+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
31102 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031108$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031109typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031110int
31111main ()
31112{
Reid Spencera773bd52006-08-04 18:18:08 +000031113if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031114 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031115if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031116 return 0;
31117 ;
31118 return 0;
31119}
31120_ACEOF
31121rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031122if { (ac_try="$ac_compile"
31123case "(($ac_try" in
31124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125 *) ac_try_echo=$ac_try;;
31126esac
31127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031130 grep -v '^ *+' conftest.er1 >conftest.err
31131 rm -f conftest.er1
31132 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31136 { (case "(($ac_try" in
31137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138 *) ac_try_echo=$ac_try;;
31139esac
31140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141 (eval "$ac_try") 2>&5
31142 ac_status=$?
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest.$ac_objext'
31146 { (case "(($ac_try" in
31147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31148 *) ac_try_echo=$ac_try;;
31149esac
31150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31151 (eval "$ac_try") 2>&5
31152 ac_status=$?
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031155 ac_cv_type_size_t=yes
31156else
31157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031158sed 's/^/| /' conftest.$ac_ext >&5
31159
Reid Spencera773bd52006-08-04 18:18:08 +000031160 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031161fi
Reid Spencera773bd52006-08-04 18:18:08 +000031162
31163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031164fi
Reid Spencera773bd52006-08-04 18:18:08 +000031165{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31166echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031167if test $ac_cv_type_size_t = yes; then
31168 :
31169else
31170
31171cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031172#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031173_ACEOF
31174
31175fi
31176
Reid Spencera773bd52006-08-04 18:18:08 +000031177{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31178echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031179if test "${ac_cv_type_signal+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31181else
31182 cat >conftest.$ac_ext <<_ACEOF
31183/* confdefs.h. */
31184_ACEOF
31185cat confdefs.h >>conftest.$ac_ext
31186cat >>conftest.$ac_ext <<_ACEOF
31187/* end confdefs.h. */
31188#include <sys/types.h>
31189#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031190
31191int
31192main ()
31193{
Reid Spencera773bd52006-08-04 18:18:08 +000031194return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031195 ;
31196 return 0;
31197}
31198_ACEOF
31199rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031200if { (ac_try="$ac_compile"
31201case "(($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_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031207 ac_status=$?
31208 grep -v '^ *+' conftest.er1 >conftest.err
31209 rm -f conftest.er1
31210 cat conftest.err >&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031212 (exit $ac_status); } &&
31213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31214 { (case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_try") 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; } &&
31223 { ac_try='test -s conftest.$ac_objext'
31224 { (case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227esac
31228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_try") 2>&5
31230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031233 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031234else
31235 echo "$as_me: failed program was:" >&5
31236sed 's/^/| /' conftest.$ac_ext >&5
31237
Reid Spencera773bd52006-08-04 18:18:08 +000031238 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239fi
Reid Spencera773bd52006-08-04 18:18:08 +000031240
31241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031242fi
Reid Spencera773bd52006-08-04 18:18:08 +000031243{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31244echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031245
31246cat >>confdefs.h <<_ACEOF
31247#define RETSIGTYPE $ac_cv_type_signal
31248_ACEOF
31249
31250
Reid Spencera773bd52006-08-04 18:18:08 +000031251{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31252echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031253if test "${ac_cv_struct_tm+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31255else
31256 cat >conftest.$ac_ext <<_ACEOF
31257/* confdefs.h. */
31258_ACEOF
31259cat confdefs.h >>conftest.$ac_ext
31260cat >>conftest.$ac_ext <<_ACEOF
31261/* end confdefs.h. */
31262#include <sys/types.h>
31263#include <time.h>
31264
31265int
31266main ()
31267{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031268struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031269 ;
31270 return 0;
31271}
31272_ACEOF
31273rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031274if { (ac_try="$ac_compile"
31275case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31278esac
31279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031281 ac_status=$?
31282 grep -v '^ *+' conftest.er1 >conftest.err
31283 rm -f conftest.er1
31284 cat conftest.err >&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031286 (exit $ac_status); } &&
31287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291esac
31292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest.$ac_objext'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031307 ac_cv_struct_tm=time.h
31308else
31309 echo "$as_me: failed program was:" >&5
31310sed 's/^/| /' conftest.$ac_ext >&5
31311
Reid Spencera773bd52006-08-04 18:18:08 +000031312 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031313fi
Reid Spencera773bd52006-08-04 18:18:08 +000031314
31315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031316fi
Reid Spencera773bd52006-08-04 18:18:08 +000031317{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31318echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031319if test $ac_cv_struct_tm = sys/time.h; then
31320
31321cat >>confdefs.h <<\_ACEOF
31322#define TM_IN_SYS_TIME 1
31323_ACEOF
31324
31325fi
31326
Reid Spencera773bd52006-08-04 18:18:08 +000031327{ echo "$as_me:$LINENO: checking for int64_t" >&5
31328echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031329if test "${ac_cv_type_int64_t+set}" = set; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31331else
31332 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031333/* confdefs.h. */
31334_ACEOF
31335cat confdefs.h >>conftest.$ac_ext
31336cat >>conftest.$ac_ext <<_ACEOF
31337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031338$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031339typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031340int
31341main ()
31342{
Reid Spencera773bd52006-08-04 18:18:08 +000031343if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031344 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031345if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031346 return 0;
31347 ;
31348 return 0;
31349}
31350_ACEOF
31351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031352if { (ac_try="$ac_compile"
31353case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031360 grep -v '^ *+' conftest.er1 >conftest.err
31361 rm -f conftest.er1
31362 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031364 (exit $ac_status); } &&
31365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31366 { (case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31369esac
31370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_try") 2>&5
31372 ac_status=$?
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; } &&
31375 { ac_try='test -s conftest.$ac_objext'
31376 { (case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31379esac
31380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381 (eval "$ac_try") 2>&5
31382 ac_status=$?
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031385 ac_cv_type_int64_t=yes
31386else
31387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031388sed 's/^/| /' conftest.$ac_ext >&5
31389
Reid Spencera773bd52006-08-04 18:18:08 +000031390 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031391fi
Reid Spencera773bd52006-08-04 18:18:08 +000031392
31393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031394fi
Reid Spencera773bd52006-08-04 18:18:08 +000031395{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31396echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031397if test $ac_cv_type_int64_t = yes; then
31398
31399cat >>confdefs.h <<_ACEOF
31400#define HAVE_INT64_T 1
31401_ACEOF
31402
31403
31404else
31405 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31406echo "$as_me: error: Type int64_t required but not found" >&2;}
31407 { (exit 1); exit 1; }; }
31408fi
31409
Reid Spencera773bd52006-08-04 18:18:08 +000031410{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31411echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031412if test "${ac_cv_type_uint64_t+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31414else
31415 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031416/* confdefs.h. */
31417_ACEOF
31418cat confdefs.h >>conftest.$ac_ext
31419cat >>conftest.$ac_ext <<_ACEOF
31420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031421$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031422typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031423int
31424main ()
31425{
Reid Spencera773bd52006-08-04 18:18:08 +000031426if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031427 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031428if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031429 return 0;
31430 ;
31431 return 0;
31432}
31433_ACEOF
31434rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031435if { (ac_try="$ac_compile"
31436case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31439esac
31440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031443 grep -v '^ *+' conftest.er1 >conftest.err
31444 rm -f conftest.er1
31445 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031447 (exit $ac_status); } &&
31448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31452esac
31453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; } &&
31458 { ac_try='test -s conftest.$ac_objext'
31459 { (case "(($ac_try" in
31460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461 *) ac_try_echo=$ac_try;;
31462esac
31463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464 (eval "$ac_try") 2>&5
31465 ac_status=$?
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031468 ac_cv_type_uint64_t=yes
31469else
31470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031471sed 's/^/| /' conftest.$ac_ext >&5
31472
Reid Spencera773bd52006-08-04 18:18:08 +000031473 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031474fi
Reid Spencera773bd52006-08-04 18:18:08 +000031475
31476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031477fi
Reid Spencera773bd52006-08-04 18:18:08 +000031478{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31479echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031480if test $ac_cv_type_uint64_t = yes; then
31481
31482cat >>confdefs.h <<_ACEOF
31483#define HAVE_UINT64_T 1
31484_ACEOF
31485
31486
31487else
Reid Spencera773bd52006-08-04 18:18:08 +000031488 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31489echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031490if test "${ac_cv_type_u_int64_t+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031494/* confdefs.h. */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h. */
31499$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031500typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031501int
31502main ()
31503{
Reid Spencera773bd52006-08-04 18:18:08 +000031504if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031505 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031506if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031507 return 0;
31508 ;
31509 return 0;
31510}
31511_ACEOF
31512rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031513if { (ac_try="$ac_compile"
31514case "(($ac_try" in
31515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31516 *) ac_try_echo=$ac_try;;
31517esac
31518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31519 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031521 grep -v '^ *+' conftest.er1 >conftest.err
31522 rm -f conftest.er1
31523 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031525 (exit $ac_status); } &&
31526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31527 { (case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31530esac
31531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_try") 2>&5
31533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; } &&
31536 { ac_try='test -s conftest.$ac_objext'
31537 { (case "(($ac_try" in
31538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539 *) ac_try_echo=$ac_try;;
31540esac
31541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542 (eval "$ac_try") 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031546 ac_cv_type_u_int64_t=yes
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
Reid Spencera773bd52006-08-04 18:18:08 +000031551 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031552fi
Reid Spencera773bd52006-08-04 18:18:08 +000031553
31554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031555fi
Reid Spencera773bd52006-08-04 18:18:08 +000031556{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31557echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031558if test $ac_cv_type_u_int64_t = yes; then
31559
31560cat >>confdefs.h <<_ACEOF
31561#define HAVE_U_INT64_T 1
31562_ACEOF
31563
31564
Misha Brukmanceca9042004-09-02 23:02:30 +000031565else
31566 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31567echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31568 { (exit 1); exit 1; }; }
31569fi
31570
John Criswell679ff312004-09-02 18:44:44 +000031571fi
31572
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031573
31574
31575
31576
31577
31578
31579
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031580
31581
Reid Spencerdf3be822006-01-23 08:15:53 +000031582for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031583do
31584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031585{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031588 echo $ECHO_N "(cached) $ECHO_C" >&6
31589else
31590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031591/* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31598#define $ac_func innocuous_$ac_func
31599
31600/* System header to define __stub macros and hopefully few prototypes,
31601 which can conflict with char $ac_func (); below.
31602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31603 <limits.h> exists even on freestanding compilers. */
31604
31605#ifdef __STDC__
31606# include <limits.h>
31607#else
31608# include <assert.h>
31609#endif
31610
31611#undef $ac_func
31612
Reid Spencera773bd52006-08-04 18:18:08 +000031613/* Override any GCC internal prototype to avoid an error.
31614 Use char because int might match the return type of a GCC
31615 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031616#ifdef __cplusplus
31617extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031619char $ac_func ();
31620/* The GNU C library defines this for functions which it implements
31621 to always fail with ENOSYS. Some functions are actually named
31622 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031623#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031624choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031625#endif
John Criswell7a73b802003-06-30 21:59:07 +000031626
John Criswell7a73b802003-06-30 21:59:07 +000031627int
31628main ()
31629{
Reid Spencera773bd52006-08-04 18:18:08 +000031630return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031631 ;
31632 return 0;
31633}
31634_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031635rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031636if { (ac_try="$ac_link"
31637case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31640esac
31641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031644 grep -v '^ *+' conftest.er1 >conftest.err
31645 rm -f conftest.er1
31646 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031648 (exit $ac_status); } &&
31649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31650 { (case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31653esac
31654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31655 (eval "$ac_try") 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; } &&
31659 { ac_try='test -s conftest$ac_exeext'
31660 { (case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31663esac
31664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_try") 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031669 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031670else
31671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031672sed 's/^/| /' conftest.$ac_ext >&5
31673
Reid Spencera773bd52006-08-04 18:18:08 +000031674 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031675fi
Reid Spencera773bd52006-08-04 18:18:08 +000031676
Bill Wendlingebcceee2009-04-18 11:20:33 +000031677rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031678 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031679fi
Reid Spencera773bd52006-08-04 18:18:08 +000031680ac_res=`eval echo '${'$as_ac_var'}'`
31681 { echo "$as_me:$LINENO: result: $ac_res" >&5
31682echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683if test `eval echo '${'$as_ac_var'}'` = yes; then
31684 cat >>confdefs.h <<_ACEOF
31685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031686_ACEOF
31687
31688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031689done
John Criswell7a73b802003-06-30 21:59:07 +000031690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691
31692
31693
Reid Spencer6af3d262004-12-15 04:01:48 +000031694
Reid Spencer96cf5872007-07-13 10:05:30 +000031695for ac_func in powf fmodf strtof round
31696do
31697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703 cat >conftest.$ac_ext <<_ACEOF
31704/* confdefs.h. */
31705_ACEOF
31706cat confdefs.h >>conftest.$ac_ext
31707cat >>conftest.$ac_ext <<_ACEOF
31708/* end confdefs.h. */
31709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31711#define $ac_func innocuous_$ac_func
31712
31713/* System header to define __stub macros and hopefully few prototypes,
31714 which can conflict with char $ac_func (); below.
31715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31716 <limits.h> exists even on freestanding compilers. */
31717
31718#ifdef __STDC__
31719# include <limits.h>
31720#else
31721# include <assert.h>
31722#endif
31723
31724#undef $ac_func
31725
31726/* Override any GCC internal prototype to avoid an error.
31727 Use char because int might match the return type of a GCC
31728 builtin and then its argument prototype would still apply. */
31729#ifdef __cplusplus
31730extern "C"
31731#endif
31732char $ac_func ();
31733/* The GNU C library defines this for functions which it implements
31734 to always fail with ENOSYS. Some functions are actually named
31735 something starting with __ and the normal name is an alias. */
31736#if defined __stub_$ac_func || defined __stub___$ac_func
31737choke me
31738#endif
31739
31740int
31741main ()
31742{
31743return $ac_func ();
31744 ;
31745 return 0;
31746}
31747_ACEOF
31748rm -f conftest.$ac_objext conftest$ac_exeext
31749if { (ac_try="$ac_link"
31750case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_link") 2>conftest.er1
31756 ac_status=$?
31757 grep -v '^ *+' conftest.er1 >conftest.err
31758 rm -f conftest.er1
31759 cat conftest.err >&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031761 (exit $ac_status); } &&
31762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31766esac
31767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
31769 ac_status=$?
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest$ac_exeext'
31773 { (case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31776esac
31777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_try") 2>&5
31779 ac_status=$?
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031782 eval "$as_ac_var=yes"
31783else
31784 echo "$as_me: failed program was:" >&5
31785sed 's/^/| /' conftest.$ac_ext >&5
31786
31787 eval "$as_ac_var=no"
31788fi
31789
Bill Wendlingebcceee2009-04-18 11:20:33 +000031790rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031791 conftest$ac_exeext conftest.$ac_ext
31792fi
31793ac_res=`eval echo '${'$as_ac_var'}'`
31794 { echo "$as_me:$LINENO: result: $ac_res" >&5
31795echo "${ECHO_T}$ac_res" >&6; }
31796if test `eval echo '${'$as_ac_var'}'` = yes; then
31797 cat >>confdefs.h <<_ACEOF
31798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31799_ACEOF
31800
31801fi
31802done
31803
31804
31805
31806
31807
Reid Spencer6af3d262004-12-15 04:01:48 +000031808
Reid Spencerb90645c2007-02-16 19:17:20 +000031809for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31810do
31811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31816else
31817 cat >conftest.$ac_ext <<_ACEOF
31818/* confdefs.h. */
31819_ACEOF
31820cat confdefs.h >>conftest.$ac_ext
31821cat >>conftest.$ac_ext <<_ACEOF
31822/* end confdefs.h. */
31823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31825#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031826
Reid Spencerb90645c2007-02-16 19:17:20 +000031827/* System header to define __stub macros and hopefully few prototypes,
31828 which can conflict with char $ac_func (); below.
31829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31830 <limits.h> exists even on freestanding compilers. */
31831
31832#ifdef __STDC__
31833# include <limits.h>
31834#else
31835# include <assert.h>
31836#endif
31837
31838#undef $ac_func
31839
31840/* Override any GCC internal prototype to avoid an error.
31841 Use char because int might match the return type of a GCC
31842 builtin and then its argument prototype would still apply. */
31843#ifdef __cplusplus
31844extern "C"
31845#endif
31846char $ac_func ();
31847/* The GNU C library defines this for functions which it implements
31848 to always fail with ENOSYS. Some functions are actually named
31849 something starting with __ and the normal name is an alias. */
31850#if defined __stub_$ac_func || defined __stub___$ac_func
31851choke me
31852#endif
31853
31854int
31855main ()
31856{
31857return $ac_func ();
31858 ;
31859 return 0;
31860}
31861_ACEOF
31862rm -f conftest.$ac_objext conftest$ac_exeext
31863if { (ac_try="$ac_link"
31864case "(($ac_try" in
31865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31866 *) ac_try_echo=$ac_try;;
31867esac
31868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31869 (eval "$ac_link") 2>conftest.er1
31870 ac_status=$?
31871 grep -v '^ *+' conftest.er1 >conftest.err
31872 rm -f conftest.er1
31873 cat conftest.err >&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031875 (exit $ac_status); } &&
31876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31877 { (case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31880esac
31881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_try") 2>&5
31883 ac_status=$?
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; } &&
31886 { ac_try='test -s conftest$ac_exeext'
31887 { (case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31890esac
31891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_try") 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031896 eval "$as_ac_var=yes"
31897else
31898 echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
31901 eval "$as_ac_var=no"
31902fi
31903
Bill Wendlingebcceee2009-04-18 11:20:33 +000031904rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031905 conftest$ac_exeext conftest.$ac_ext
31906fi
31907ac_res=`eval echo '${'$as_ac_var'}'`
31908 { echo "$as_me:$LINENO: result: $ac_res" >&5
31909echo "${ECHO_T}$ac_res" >&6; }
31910if test `eval echo '${'$as_ac_var'}'` = yes; then
31911 cat >>confdefs.h <<_ACEOF
31912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31913_ACEOF
31914
31915fi
31916done
31917
31918
31919
31920
31921for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031922do
31923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031927 echo $ECHO_N "(cached) $ECHO_C" >&6
31928else
31929 cat >conftest.$ac_ext <<_ACEOF
31930/* confdefs.h. */
31931_ACEOF
31932cat confdefs.h >>conftest.$ac_ext
31933cat >>conftest.$ac_ext <<_ACEOF
31934/* end confdefs.h. */
31935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31937#define $ac_func innocuous_$ac_func
31938
31939/* System header to define __stub macros and hopefully few prototypes,
31940 which can conflict with char $ac_func (); below.
31941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31942 <limits.h> exists even on freestanding compilers. */
31943
31944#ifdef __STDC__
31945# include <limits.h>
31946#else
31947# include <assert.h>
31948#endif
31949
31950#undef $ac_func
31951
Reid Spencera773bd52006-08-04 18:18:08 +000031952/* Override any GCC internal prototype to avoid an error.
31953 Use char because int might match the return type of a GCC
31954 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031955#ifdef __cplusplus
31956extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031957#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031958char $ac_func ();
31959/* The GNU C library defines this for functions which it implements
31960 to always fail with ENOSYS. Some functions are actually named
31961 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031962#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031963choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031964#endif
31965
31966int
31967main ()
31968{
Reid Spencera773bd52006-08-04 18:18:08 +000031969return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031970 ;
31971 return 0;
31972}
31973_ACEOF
31974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031975if { (ac_try="$ac_link"
31976case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31979esac
31980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031982 ac_status=$?
31983 grep -v '^ *+' conftest.er1 >conftest.err
31984 rm -f conftest.er1
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031987 (exit $ac_status); } &&
31988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31992esac
31993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
31995 ac_status=$?
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; } &&
31998 { ac_try='test -s conftest$ac_exeext'
31999 { (case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_try") 2>&5
32005 ac_status=$?
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032008 eval "$as_ac_var=yes"
32009else
32010 echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
Reid Spencera773bd52006-08-04 18:18:08 +000032013 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032014fi
Reid Spencera773bd52006-08-04 18:18:08 +000032015
Bill Wendlingebcceee2009-04-18 11:20:33 +000032016rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032017 conftest$ac_exeext conftest.$ac_ext
32018fi
Reid Spencera773bd52006-08-04 18:18:08 +000032019ac_res=`eval echo '${'$as_ac_var'}'`
32020 { echo "$as_me:$LINENO: result: $ac_res" >&5
32021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032022if test `eval echo '${'$as_ac_var'}'` = yes; then
32023 cat >>confdefs.h <<_ACEOF
32024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32025_ACEOF
32026
32027fi
32028done
32029
32030
32031
32032
32033
32034
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032035for ac_func in mktemp realpath sbrk setrlimit strdup
32036do
32037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32042else
32043 cat >conftest.$ac_ext <<_ACEOF
32044/* confdefs.h. */
32045_ACEOF
32046cat confdefs.h >>conftest.$ac_ext
32047cat >>conftest.$ac_ext <<_ACEOF
32048/* end confdefs.h. */
32049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32051#define $ac_func innocuous_$ac_func
32052
32053/* System header to define __stub macros and hopefully few prototypes,
32054 which can conflict with char $ac_func (); below.
32055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056 <limits.h> exists even on freestanding compilers. */
32057
32058#ifdef __STDC__
32059# include <limits.h>
32060#else
32061# include <assert.h>
32062#endif
32063
32064#undef $ac_func
32065
32066/* Override any GCC internal prototype to avoid an error.
32067 Use char because int might match the return type of a GCC
32068 builtin and then its argument prototype would still apply. */
32069#ifdef __cplusplus
32070extern "C"
32071#endif
32072char $ac_func ();
32073/* The GNU C library defines this for functions which it implements
32074 to always fail with ENOSYS. Some functions are actually named
32075 something starting with __ and the normal name is an alias. */
32076#if defined __stub_$ac_func || defined __stub___$ac_func
32077choke me
32078#endif
32079
32080int
32081main ()
32082{
32083return $ac_func ();
32084 ;
32085 return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext conftest$ac_exeext
32089if { (ac_try="$ac_link"
32090case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32093esac
32094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_link") 2>conftest.er1
32096 ac_status=$?
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
32102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32103 { (case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_try") 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest$ac_exeext'
32113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32116esac
32117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; }; then
32122 eval "$as_ac_var=yes"
32123else
32124 echo "$as_me: failed program was:" >&5
32125sed 's/^/| /' conftest.$ac_ext >&5
32126
32127 eval "$as_ac_var=no"
32128fi
32129
32130rm -f core conftest.err conftest.$ac_objext \
32131 conftest$ac_exeext conftest.$ac_ext
32132fi
32133ac_res=`eval echo '${'$as_ac_var'}'`
32134 { echo "$as_me:$LINENO: result: $ac_res" >&5
32135echo "${ECHO_T}$ac_res" >&6; }
32136if test `eval echo '${'$as_ac_var'}'` = yes; then
32137 cat >>confdefs.h <<_ACEOF
32138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32139_ACEOF
32140
32141fi
32142done
Reid Spencerdf3be822006-01-23 08:15:53 +000032143
32144
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032145
32146
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032147
32148for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032149do
32150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032154 echo $ECHO_N "(cached) $ECHO_C" >&6
32155else
32156 cat >conftest.$ac_ext <<_ACEOF
32157/* confdefs.h. */
32158_ACEOF
32159cat confdefs.h >>conftest.$ac_ext
32160cat >>conftest.$ac_ext <<_ACEOF
32161/* end confdefs.h. */
32162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32164#define $ac_func innocuous_$ac_func
32165
32166/* System header to define __stub macros and hopefully few prototypes,
32167 which can conflict with char $ac_func (); below.
32168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32169 <limits.h> exists even on freestanding compilers. */
32170
32171#ifdef __STDC__
32172# include <limits.h>
32173#else
32174# include <assert.h>
32175#endif
32176
32177#undef $ac_func
32178
Reid Spencera773bd52006-08-04 18:18:08 +000032179/* Override any GCC internal prototype to avoid an error.
32180 Use char because int might match the return type of a GCC
32181 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032182#ifdef __cplusplus
32183extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032184#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032185char $ac_func ();
32186/* The GNU C library defines this for functions which it implements
32187 to always fail with ENOSYS. Some functions are actually named
32188 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032189#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032190choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032191#endif
32192
32193int
32194main ()
32195{
Reid Spencera773bd52006-08-04 18:18:08 +000032196return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032197 ;
32198 return 0;
32199}
32200_ACEOF
32201rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032202if { (ac_try="$ac_link"
32203case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032209 ac_status=$?
32210 grep -v '^ *+' conftest.er1 >conftest.err
32211 rm -f conftest.er1
32212 cat conftest.err >&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032214 (exit $ac_status); } &&
32215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32216 { (case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32219esac
32220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_try") 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; } &&
32225 { ac_try='test -s conftest$ac_exeext'
32226 { (case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_try") 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032235 eval "$as_ac_var=yes"
32236else
32237 echo "$as_me: failed program was:" >&5
32238sed 's/^/| /' conftest.$ac_ext >&5
32239
Reid Spencera773bd52006-08-04 18:18:08 +000032240 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032241fi
Reid Spencera773bd52006-08-04 18:18:08 +000032242
Bill Wendlingebcceee2009-04-18 11:20:33 +000032243rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032244 conftest$ac_exeext conftest.$ac_ext
32245fi
Reid Spencera773bd52006-08-04 18:18:08 +000032246ac_res=`eval echo '${'$as_ac_var'}'`
32247 { echo "$as_me:$LINENO: result: $ac_res" >&5
32248echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032249if test `eval echo '${'$as_ac_var'}'` = yes; then
32250 cat >>confdefs.h <<_ACEOF
32251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32252_ACEOF
32253
32254fi
32255done
32256
32257
Reid Spencerba46ca32004-12-31 05:49:15 +000032258
32259
Chris Lattner0b142592005-11-14 06:57:34 +000032260
Chris Lattner511f11d2005-11-14 07:25:50 +000032261for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032262do
32263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032267 echo $ECHO_N "(cached) $ECHO_C" >&6
32268else
32269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032270/* confdefs.h. */
32271_ACEOF
32272cat confdefs.h >>conftest.$ac_ext
32273cat >>conftest.$ac_ext <<_ACEOF
32274/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32277#define $ac_func innocuous_$ac_func
32278
32279/* System header to define __stub macros and hopefully few prototypes,
32280 which can conflict with char $ac_func (); below.
32281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32282 <limits.h> exists even on freestanding compilers. */
32283
32284#ifdef __STDC__
32285# include <limits.h>
32286#else
32287# include <assert.h>
32288#endif
32289
32290#undef $ac_func
32291
Reid Spencera773bd52006-08-04 18:18:08 +000032292/* Override any GCC internal prototype to avoid an error.
32293 Use char because int might match the return type of a GCC
32294 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032295#ifdef __cplusplus
32296extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032297#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032298char $ac_func ();
32299/* The GNU C library defines this for functions which it implements
32300 to always fail with ENOSYS. Some functions are actually named
32301 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032302#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032303choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032304#endif
John Criswell7a73b802003-06-30 21:59:07 +000032305
John Criswell7a73b802003-06-30 21:59:07 +000032306int
32307main ()
32308{
Reid Spencera773bd52006-08-04 18:18:08 +000032309return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032310 ;
32311 return 0;
32312}
32313_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032314rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032315if { (ac_try="$ac_link"
32316case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319esac
32320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032322 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032327 (exit $ac_status); } &&
32328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32329 { (case "(($ac_try" in
32330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331 *) ac_try_echo=$ac_try;;
32332esac
32333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334 (eval "$ac_try") 2>&5
32335 ac_status=$?
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest$ac_exeext'
32339 { (case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32342esac
32343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_try") 2>&5
32345 ac_status=$?
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032348 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032349else
32350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032351sed 's/^/| /' conftest.$ac_ext >&5
32352
Reid Spencera773bd52006-08-04 18:18:08 +000032353 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032354fi
Reid Spencera773bd52006-08-04 18:18:08 +000032355
Bill Wendlingebcceee2009-04-18 11:20:33 +000032356rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032357 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032358fi
Reid Spencera773bd52006-08-04 18:18:08 +000032359ac_res=`eval echo '${'$as_ac_var'}'`
32360 { echo "$as_me:$LINENO: result: $ac_res" >&5
32361echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032362if test `eval echo '${'$as_ac_var'}'` = yes; then
32363 cat >>confdefs.h <<_ACEOF
32364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032365_ACEOF
32366
32367fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032368done
John Criswell7a73b802003-06-30 21:59:07 +000032369
Reid Spencercdb08a32006-06-05 16:11:07 +000032370
32371
32372
32373
Reid Spencerafa22e22006-12-10 23:29:19 +000032374for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032375do
32376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032380 echo $ECHO_N "(cached) $ECHO_C" >&6
32381else
32382 cat >conftest.$ac_ext <<_ACEOF
32383/* confdefs.h. */
32384_ACEOF
32385cat confdefs.h >>conftest.$ac_ext
32386cat >>conftest.$ac_ext <<_ACEOF
32387/* end confdefs.h. */
32388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32390#define $ac_func innocuous_$ac_func
32391
32392/* System header to define __stub macros and hopefully few prototypes,
32393 which can conflict with char $ac_func (); below.
32394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32395 <limits.h> exists even on freestanding compilers. */
32396
32397#ifdef __STDC__
32398# include <limits.h>
32399#else
32400# include <assert.h>
32401#endif
32402
32403#undef $ac_func
32404
Reid Spencera773bd52006-08-04 18:18:08 +000032405/* Override any GCC internal prototype to avoid an error.
32406 Use char because int might match the return type of a GCC
32407 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032408#ifdef __cplusplus
32409extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032410#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032411char $ac_func ();
32412/* The GNU C library defines this for functions which it implements
32413 to always fail with ENOSYS. Some functions are actually named
32414 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032415#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032416choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032417#endif
32418
32419int
32420main ()
32421{
Reid Spencera773bd52006-08-04 18:18:08 +000032422return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032423 ;
32424 return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032428if { (ac_try="$ac_link"
32429case "(($ac_try" in
32430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431 *) ac_try_echo=$ac_try;;
32432esac
32433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32434 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032435 ac_status=$?
32436 grep -v '^ *+' conftest.er1 >conftest.err
32437 rm -f conftest.er1
32438 cat conftest.err >&5
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032440 (exit $ac_status); } &&
32441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32442 { (case "(($ac_try" in
32443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444 *) ac_try_echo=$ac_try;;
32445esac
32446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447 (eval "$ac_try") 2>&5
32448 ac_status=$?
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; } &&
32451 { ac_try='test -s conftest$ac_exeext'
32452 { (case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32455esac
32456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457 (eval "$ac_try") 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032461 eval "$as_ac_var=yes"
32462else
32463 echo "$as_me: failed program was:" >&5
32464sed 's/^/| /' conftest.$ac_ext >&5
32465
Reid Spencera773bd52006-08-04 18:18:08 +000032466 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032467fi
Reid Spencera773bd52006-08-04 18:18:08 +000032468
Bill Wendlingebcceee2009-04-18 11:20:33 +000032469rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032470 conftest$ac_exeext conftest.$ac_ext
32471fi
Reid Spencera773bd52006-08-04 18:18:08 +000032472ac_res=`eval echo '${'$as_ac_var'}'`
32473 { echo "$as_me:$LINENO: result: $ac_res" >&5
32474echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032475if test `eval echo '${'$as_ac_var'}'` = yes; then
32476 cat >>confdefs.h <<_ACEOF
32477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32478_ACEOF
32479
32480fi
32481done
32482
Reid Spencera773bd52006-08-04 18:18:08 +000032483{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32484echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032485if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032486 echo $ECHO_N "(cached) $ECHO_C" >&6
32487else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032488 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032489ac_cpp='$CPP $CPPFLAGS'
32490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32492ac_compiler_gnu=$ac_cv_c_compiler_gnu
32493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032494 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032495 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032496else
32497 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032498
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032499 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032504
John Criswella0137d32003-10-13 16:22:01 +000032505#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032506#include <stdlib.h>
32507
John Criswella0137d32003-10-13 16:22:01 +000032508int
32509main ()
32510{
32511
Reid Spencer2706f8c2004-09-19 23:53:36 +000032512volatile double A, B;
32513char Buffer[100];
32514A = 1;
32515A /= 10.0;
32516sprintf(Buffer, "%a", A);
32517B = atof(Buffer);
32518if (A != B)
32519 return (1);
32520if (A != 0x1.999999999999ap-4)
32521 return (1);
32522return (0);
John Criswella0137d32003-10-13 16:22:01 +000032523 ;
32524 return 0;
32525}
32526_ACEOF
32527rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032528if { (ac_try="$ac_link"
32529case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32532esac
32533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032535 ac_status=$?
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032538 { (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
John Criswella0137d32003-10-13 16:22:01 +000032544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032547 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032548else
32549 echo "$as_me: program exited with status $ac_status" >&5
32550echo "$as_me: failed program was:" >&5
32551sed 's/^/| /' conftest.$ac_ext >&5
32552
32553( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032554llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032555fi
Reid Spencera773bd52006-08-04 18:18:08 +000032556rm -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 +000032557fi
Reid Spencera773bd52006-08-04 18:18:08 +000032558
32559
Reid Spencer2706f8c2004-09-19 23:53:36 +000032560 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032561ac_cpp='$CPP $CPPFLAGS'
32562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032566fi
Reid Spencera773bd52006-08-04 18:18:08 +000032567{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32568echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032569 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032570
32571cat >>confdefs.h <<\_ACEOF
32572#define HAVE_PRINTF_A 1
32573_ACEOF
32574
Reid Spencer2706f8c2004-09-19 23:53:36 +000032575 fi
John Criswella0137d32003-10-13 16:22:01 +000032576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032577# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32578# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032579{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32580echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032581if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
John Criswell0021c312004-02-13 21:57:29 +000032584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032585/* confdefs.h. */
32586_ACEOF
32587cat confdefs.h >>conftest.$ac_ext
32588cat >>conftest.$ac_ext <<_ACEOF
32589/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032590#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032591int
32592main ()
32593{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032594char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032595 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032596 ;
32597 return 0;
32598}
32599_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032600rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032601if { (ac_try="$ac_link"
32602case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32605esac
32606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032609 grep -v '^ *+' conftest.er1 >conftest.err
32610 rm -f conftest.er1
32611 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest$ac_exeext'
32625 { (case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628esac
32629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_try") 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032634 ac_cv_working_alloca_h=yes
32635else
32636 echo "$as_me: failed program was:" >&5
32637sed 's/^/| /' conftest.$ac_ext >&5
32638
Reid Spencera773bd52006-08-04 18:18:08 +000032639 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032640fi
Reid Spencera773bd52006-08-04 18:18:08 +000032641
Bill Wendlingebcceee2009-04-18 11:20:33 +000032642rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032643 conftest$ac_exeext conftest.$ac_ext
32644fi
Reid Spencera773bd52006-08-04 18:18:08 +000032645{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32646echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032647if test $ac_cv_working_alloca_h = yes; then
32648
32649cat >>confdefs.h <<\_ACEOF
32650#define HAVE_ALLOCA_H 1
32651_ACEOF
32652
32653fi
32654
Reid Spencera773bd52006-08-04 18:18:08 +000032655{ echo "$as_me:$LINENO: checking for alloca" >&5
32656echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032657if test "${ac_cv_func_alloca_works+set}" = set; then
32658 echo $ECHO_N "(cached) $ECHO_C" >&6
32659else
32660 cat >conftest.$ac_ext <<_ACEOF
32661/* confdefs.h. */
32662_ACEOF
32663cat confdefs.h >>conftest.$ac_ext
32664cat >>conftest.$ac_ext <<_ACEOF
32665/* end confdefs.h. */
32666#ifdef __GNUC__
32667# define alloca __builtin_alloca
32668#else
32669# ifdef _MSC_VER
32670# include <malloc.h>
32671# define alloca _alloca
32672# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032673# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032674# include <alloca.h>
32675# else
32676# ifdef _AIX
32677 #pragma alloca
32678# else
32679# ifndef alloca /* predefined by HP cc +Olibcalls */
32680char *alloca ();
32681# endif
32682# endif
32683# endif
32684# endif
32685#endif
32686
32687int
32688main ()
32689{
32690char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032691 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032692 ;
32693 return 0;
32694}
32695_ACEOF
32696rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032697if { (ac_try="$ac_link"
32698case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32701esac
32702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032704 ac_status=$?
32705 grep -v '^ *+' conftest.er1 >conftest.err
32706 rm -f conftest.er1
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32711 { (case "(($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_try") 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest$ac_exeext'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32724esac
32725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032730 ac_cv_func_alloca_works=yes
32731else
32732 echo "$as_me: failed program was:" >&5
32733sed 's/^/| /' conftest.$ac_ext >&5
32734
Reid Spencera773bd52006-08-04 18:18:08 +000032735 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032736fi
Reid Spencera773bd52006-08-04 18:18:08 +000032737
Bill Wendlingebcceee2009-04-18 11:20:33 +000032738rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032739 conftest$ac_exeext conftest.$ac_ext
32740fi
Reid Spencera773bd52006-08-04 18:18:08 +000032741{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32742echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032743
32744if test $ac_cv_func_alloca_works = yes; then
32745
32746cat >>confdefs.h <<\_ACEOF
32747#define HAVE_ALLOCA 1
32748_ACEOF
32749
32750else
32751 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32752# that cause trouble. Some versions do not even contain alloca or
32753# contain a buggy version. If you still want to use their alloca,
32754# use ar to extract alloca.o from them instead of compiling alloca.c.
32755
Reid Spencera773bd52006-08-04 18:18:08 +000032756ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032757
32758cat >>confdefs.h <<\_ACEOF
32759#define C_ALLOCA 1
32760_ACEOF
32761
32762
Reid Spencera773bd52006-08-04 18:18:08 +000032763{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32764echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032765if test "${ac_cv_os_cray+set}" = set; then
32766 echo $ECHO_N "(cached) $ECHO_C" >&6
32767else
32768 cat >conftest.$ac_ext <<_ACEOF
32769/* confdefs.h. */
32770_ACEOF
32771cat confdefs.h >>conftest.$ac_ext
32772cat >>conftest.$ac_ext <<_ACEOF
32773/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032774#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032775webecray
32776#else
32777wenotbecray
32778#endif
32779
32780_ACEOF
32781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32782 $EGREP "webecray" >/dev/null 2>&1; then
32783 ac_cv_os_cray=yes
32784else
32785 ac_cv_os_cray=no
32786fi
32787rm -f conftest*
32788
32789fi
Reid Spencera773bd52006-08-04 18:18:08 +000032790{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32791echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032792if test $ac_cv_os_cray = yes; then
32793 for ac_func in _getb67 GETB67 getb67; do
32794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032795{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032798 echo $ECHO_N "(cached) $ECHO_C" >&6
32799else
32800 cat >conftest.$ac_ext <<_ACEOF
32801/* confdefs.h. */
32802_ACEOF
32803cat confdefs.h >>conftest.$ac_ext
32804cat >>conftest.$ac_ext <<_ACEOF
32805/* end confdefs.h. */
32806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32808#define $ac_func innocuous_$ac_func
32809
32810/* System header to define __stub macros and hopefully few prototypes,
32811 which can conflict with char $ac_func (); below.
32812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32813 <limits.h> exists even on freestanding compilers. */
32814
32815#ifdef __STDC__
32816# include <limits.h>
32817#else
32818# include <assert.h>
32819#endif
32820
32821#undef $ac_func
32822
Reid Spencera773bd52006-08-04 18:18:08 +000032823/* Override any GCC internal prototype to avoid an error.
32824 Use char because int might match the return type of a GCC
32825 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032826#ifdef __cplusplus
32827extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032828#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032829char $ac_func ();
32830/* The GNU C library defines this for functions which it implements
32831 to always fail with ENOSYS. Some functions are actually named
32832 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032833#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032834choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032835#endif
32836
32837int
32838main ()
32839{
Reid Spencera773bd52006-08-04 18:18:08 +000032840return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032841 ;
32842 return 0;
32843}
32844_ACEOF
32845rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032846if { (ac_try="$ac_link"
32847case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32850esac
32851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032853 ac_status=$?
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32860 { (case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32863esac
32864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_try") 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; } &&
32869 { ac_try='test -s conftest$ac_exeext'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032879 eval "$as_ac_var=yes"
32880else
32881 echo "$as_me: failed program was:" >&5
32882sed 's/^/| /' conftest.$ac_ext >&5
32883
Reid Spencera773bd52006-08-04 18:18:08 +000032884 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032885fi
Reid Spencera773bd52006-08-04 18:18:08 +000032886
Bill Wendlingebcceee2009-04-18 11:20:33 +000032887rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032888 conftest$ac_exeext conftest.$ac_ext
32889fi
Reid Spencera773bd52006-08-04 18:18:08 +000032890ac_res=`eval echo '${'$as_ac_var'}'`
32891 { echo "$as_me:$LINENO: result: $ac_res" >&5
32892echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032893if test `eval echo '${'$as_ac_var'}'` = yes; then
32894
32895cat >>confdefs.h <<_ACEOF
32896#define CRAY_STACKSEG_END $ac_func
32897_ACEOF
32898
32899 break
32900fi
32901
32902 done
32903fi
32904
Reid Spencera773bd52006-08-04 18:18:08 +000032905{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32906echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032907if test "${ac_cv_c_stack_direction+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909else
32910 if test "$cross_compiling" = yes; then
32911 ac_cv_c_stack_direction=0
32912else
32913 cat >conftest.$ac_ext <<_ACEOF
32914/* confdefs.h. */
32915_ACEOF
32916cat confdefs.h >>conftest.$ac_ext
32917cat >>conftest.$ac_ext <<_ACEOF
32918/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032919$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032920int
32921find_stack_direction ()
32922{
32923 static char *addr = 0;
32924 auto char dummy;
32925 if (addr == 0)
32926 {
32927 addr = &dummy;
32928 return find_stack_direction ();
32929 }
John Criswell0021c312004-02-13 21:57:29 +000032930 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032931 return (&dummy > addr) ? 1 : -1;
32932}
John Criswell0021c312004-02-13 21:57:29 +000032933
John Criswell0021c312004-02-13 21:57:29 +000032934int
32935main ()
32936{
Reid Spencera773bd52006-08-04 18:18:08 +000032937 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032938}
32939_ACEOF
32940rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032941if { (ac_try="$ac_link"
32942case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032951 { (case "(($ac_try" in
32952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953 *) ac_try_echo=$ac_try;;
32954esac
32955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032957 ac_status=$?
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032960 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032961else
32962 echo "$as_me: program exited with status $ac_status" >&5
32963echo "$as_me: failed program was:" >&5
32964sed 's/^/| /' conftest.$ac_ext >&5
32965
32966( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032967ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032968fi
Reid Spencera773bd52006-08-04 18:18:08 +000032969rm -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 +000032970fi
Reid Spencera773bd52006-08-04 18:18:08 +000032971
32972
John Criswell0021c312004-02-13 21:57:29 +000032973fi
Reid Spencera773bd52006-08-04 18:18:08 +000032974{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32975echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032976
32977cat >>confdefs.h <<_ACEOF
32978#define STACK_DIRECTION $ac_cv_c_stack_direction
32979_ACEOF
32980
32981
John Criswell0021c312004-02-13 21:57:29 +000032982fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032983
32984
Reid Spencera773bd52006-08-04 18:18:08 +000032985{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32986echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032987if test "${ac_cv_func_rand48+set}" = set; then
32988 echo $ECHO_N "(cached) $ECHO_C" >&6
32989else
Reid Spencera773bd52006-08-04 18:18:08 +000032990 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032991ac_cpp='$CXXCPP $CPPFLAGS'
32992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32995
32996 cat >conftest.$ac_ext <<_ACEOF
32997/* confdefs.h. */
32998_ACEOF
32999cat confdefs.h >>conftest.$ac_ext
33000cat >>conftest.$ac_ext <<_ACEOF
33001/* end confdefs.h. */
33002#include <stdlib.h>
33003int
33004main ()
33005{
33006srand48(0);lrand48();drand48();
33007 ;
33008 return 0;
33009}
33010_ACEOF
33011rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033012if { (ac_try="$ac_compile"
33013case "(($ac_try" in
33014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015 *) ac_try_echo=$ac_try;;
33016esac
33017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033019 ac_status=$?
33020 grep -v '^ *+' conftest.er1 >conftest.err
33021 rm -f conftest.er1
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033024 (exit $ac_status); } &&
33025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33029esac
33030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; } &&
33035 { ac_try='test -s conftest.$ac_objext'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033045 ac_cv_func_rand48=yes
33046else
33047 echo "$as_me: failed program was:" >&5
33048sed 's/^/| /' conftest.$ac_ext >&5
33049
Reid Spencera773bd52006-08-04 18:18:08 +000033050 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033051fi
Reid Spencera773bd52006-08-04 18:18:08 +000033052
33053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033054 ac_ext=c
33055ac_cpp='$CPP $CPPFLAGS'
33056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33058ac_compiler_gnu=$ac_cv_c_compiler_gnu
33059
33060fi
Reid Spencera773bd52006-08-04 18:18:08 +000033061{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33062echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033063
33064if test "$ac_cv_func_rand48" = "yes" ; then
33065
33066cat >>confdefs.h <<\_ACEOF
33067#define HAVE_RAND48 1
33068_ACEOF
33069
33070fi
John Criswell0021c312004-02-13 21:57:29 +000033071
33072
Reid Spencera773bd52006-08-04 18:18:08 +000033073{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33074echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033075if test "${ac_cv_cxx_namespaces+set}" = set; then
33076 echo $ECHO_N "(cached) $ECHO_C" >&6
33077else
Reid Spencera773bd52006-08-04 18:18:08 +000033078 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033079ac_cpp='$CXXCPP $CPPFLAGS'
33080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33083
33084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033085/* confdefs.h. */
33086_ACEOF
33087cat confdefs.h >>conftest.$ac_ext
33088cat >>conftest.$ac_ext <<_ACEOF
33089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033090namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033091int
33092main ()
33093{
33094using namespace Outer::Inner; return i;
33095 ;
33096 return 0;
33097}
33098_ACEOF
33099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033100if { (ac_try="$ac_compile"
33101case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104esac
33105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033108 grep -v '^ *+' conftest.er1 >conftest.err
33109 rm -f conftest.er1
33110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033112 (exit $ac_status); } &&
33113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33117esac
33118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; } &&
33123 { ac_try='test -s conftest.$ac_objext'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033133 ac_cv_cxx_namespaces=yes
33134else
33135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033136sed 's/^/| /' conftest.$ac_ext >&5
33137
Reid Spencera773bd52006-08-04 18:18:08 +000033138 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033139fi
Reid Spencera773bd52006-08-04 18:18:08 +000033140
33141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033142 ac_ext=c
33143ac_cpp='$CPP $CPPFLAGS'
33144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33146ac_compiler_gnu=$ac_cv_c_compiler_gnu
33147
33148
33149fi
Reid Spencera773bd52006-08-04 18:18:08 +000033150{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33151echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033152if test "$ac_cv_cxx_namespaces" = yes; then
33153
33154cat >>confdefs.h <<\_ACEOF
33155#define HAVE_NAMESPACES
33156_ACEOF
33157
33158fi
33159
Reid Spencera773bd52006-08-04 18:18:08 +000033160{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33161echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033162if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33164else
33165
Reid Spencera773bd52006-08-04 18:18:08 +000033166 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033167ac_cpp='$CXXCPP $CPPFLAGS'
33168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33171
33172 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033173/* confdefs.h. */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033178#include <iterator>
33179#ifdef HAVE_NAMESPACES
33180using namespace std;
33181#endif
John Criswell7a73b802003-06-30 21:59:07 +000033182int
33183main ()
33184{
33185iterator<int,int,int> t; return 0;
33186 ;
33187 return 0;
33188}
33189_ACEOF
33190rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033191if { (ac_try="$ac_compile"
33192case "(($ac_try" in
33193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194 *) ac_try_echo=$ac_try;;
33195esac
33196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033199 grep -v '^ *+' conftest.er1 >conftest.err
33200 rm -f conftest.er1
33201 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033203 (exit $ac_status); } &&
33204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33208esac
33209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; } &&
33214 { ac_try='test -s conftest.$ac_objext'
33215 { (case "(($ac_try" in
33216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217 *) ac_try_echo=$ac_try;;
33218esac
33219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220 (eval "$ac_try") 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033224 ac_cv_cxx_have_std_iterator=yes
33225else
33226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033227sed 's/^/| /' conftest.$ac_ext >&5
33228
Reid Spencera773bd52006-08-04 18:18:08 +000033229 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033230fi
Reid Spencera773bd52006-08-04 18:18:08 +000033231
33232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033233 ac_ext=c
33234ac_cpp='$CPP $CPPFLAGS'
33235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237ac_compiler_gnu=$ac_cv_c_compiler_gnu
33238
33239
33240fi
Reid Spencera773bd52006-08-04 18:18:08 +000033241{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33242echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033243if test "$ac_cv_cxx_have_std_iterator" = yes
33244then
John Criswell40468462004-09-24 21:19:06 +000033245
33246cat >>confdefs.h <<\_ACEOF
33247#define HAVE_STD_ITERATOR 1
33248_ACEOF
33249
33250else
33251
33252cat >>confdefs.h <<\_ACEOF
33253#define HAVE_STD_ITERATOR 0
33254_ACEOF
33255
John Criswell7a73b802003-06-30 21:59:07 +000033256fi
33257
Reid Spencera773bd52006-08-04 18:18:08 +000033258{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33259echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033260if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33262else
33263
Reid Spencera773bd52006-08-04 18:18:08 +000033264 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033265ac_cpp='$CXXCPP $CPPFLAGS'
33266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33269
33270 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033271/* confdefs.h. */
33272_ACEOF
33273cat confdefs.h >>conftest.$ac_ext
33274cat >>conftest.$ac_ext <<_ACEOF
33275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033276#include <iterator>
33277#ifdef HAVE_NAMESPACES
33278using namespace std;
33279#endif
John Criswell7a73b802003-06-30 21:59:07 +000033280int
33281main ()
33282{
John Criswellc78022e2003-07-29 19:11:58 +000033283bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033284 ;
33285 return 0;
33286}
33287_ACEOF
33288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033289if { (ac_try="$ac_compile"
33290case "(($ac_try" in
33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292 *) ac_try_echo=$ac_try;;
33293esac
33294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033297 grep -v '^ *+' conftest.er1 >conftest.err
33298 rm -f conftest.er1
33299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033301 (exit $ac_status); } &&
33302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33303 { (case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33306esac
33307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308 (eval "$ac_try") 2>&5
33309 ac_status=$?
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); }; } &&
33312 { ac_try='test -s conftest.$ac_objext'
33313 { (case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33316esac
33317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_try") 2>&5
33319 ac_status=$?
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033322 ac_cv_cxx_have_bi_iterator=yes
33323else
33324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033325sed 's/^/| /' conftest.$ac_ext >&5
33326
Reid Spencera773bd52006-08-04 18:18:08 +000033327 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033328fi
Reid Spencera773bd52006-08-04 18:18:08 +000033329
33330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033331 ac_ext=c
33332ac_cpp='$CPP $CPPFLAGS'
33333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335ac_compiler_gnu=$ac_cv_c_compiler_gnu
33336
33337
33338fi
Reid Spencera773bd52006-08-04 18:18:08 +000033339{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33340echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033341if test "$ac_cv_cxx_have_bi_iterator" = yes
33342then
John Criswell40468462004-09-24 21:19:06 +000033343
33344cat >>confdefs.h <<\_ACEOF
33345#define HAVE_BI_ITERATOR 1
33346_ACEOF
33347
33348else
33349
33350cat >>confdefs.h <<\_ACEOF
33351#define HAVE_BI_ITERATOR 0
33352_ACEOF
33353
John Criswell7a73b802003-06-30 21:59:07 +000033354fi
33355
Reid Spencera773bd52006-08-04 18:18:08 +000033356{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33357echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033358if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33359 echo $ECHO_N "(cached) $ECHO_C" >&6
33360else
33361
Reid Spencera773bd52006-08-04 18:18:08 +000033362 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033363ac_cpp='$CXXCPP $CPPFLAGS'
33364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33367
33368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033369/* confdefs.h. */
33370_ACEOF
33371cat confdefs.h >>conftest.$ac_ext
33372cat >>conftest.$ac_ext <<_ACEOF
33373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033374#include <iterator>
33375#ifdef HAVE_NAMESPACES
33376using namespace std;
33377#endif
John Criswell7a73b802003-06-30 21:59:07 +000033378int
33379main ()
33380{
John Criswellc78022e2003-07-29 19:11:58 +000033381forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033382 ;
33383 return 0;
33384}
33385_ACEOF
33386rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033387if { (ac_try="$ac_compile"
33388case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33391esac
33392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033395 grep -v '^ *+' conftest.er1 >conftest.err
33396 rm -f conftest.er1
33397 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033399 (exit $ac_status); } &&
33400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33401 { (case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33404esac
33405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406 (eval "$ac_try") 2>&5
33407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; } &&
33410 { ac_try='test -s conftest.$ac_objext'
33411 { (case "(($ac_try" in
33412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413 *) ac_try_echo=$ac_try;;
33414esac
33415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_try") 2>&5
33417 ac_status=$?
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033420 ac_cv_cxx_have_fwd_iterator=yes
33421else
33422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033423sed 's/^/| /' conftest.$ac_ext >&5
33424
Reid Spencera773bd52006-08-04 18:18:08 +000033425 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033426fi
Reid Spencera773bd52006-08-04 18:18:08 +000033427
33428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033429 ac_ext=c
33430ac_cpp='$CPP $CPPFLAGS'
33431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433ac_compiler_gnu=$ac_cv_c_compiler_gnu
33434
33435
33436fi
Reid Spencera773bd52006-08-04 18:18:08 +000033437{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33438echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033439if test "$ac_cv_cxx_have_fwd_iterator" = yes
33440then
John Criswell40468462004-09-24 21:19:06 +000033441
33442cat >>confdefs.h <<\_ACEOF
33443#define HAVE_FWD_ITERATOR 1
33444_ACEOF
33445
33446else
33447
33448cat >>confdefs.h <<\_ACEOF
33449#define HAVE_FWD_ITERATOR 0
33450_ACEOF
33451
John Criswell7a73b802003-06-30 21:59:07 +000033452fi
33453
33454
Reid Spencera773bd52006-08-04 18:18:08 +000033455{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33456echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033457if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33459else
Reid Spencera773bd52006-08-04 18:18:08 +000033460 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033461ac_cpp='$CXXCPP $CPPFLAGS'
33462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33465
Reid Spencerabec8f92004-10-27 23:03:44 +000033466 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033467/* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
33472#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033473int
33474main ()
33475{
33476float f; isnan(f);
33477 ;
33478 return 0;
33479}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033480_ACEOF
33481rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033482if { (ac_try="$ac_compile"
33483case "(($ac_try" in
33484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33485 *) ac_try_echo=$ac_try;;
33486esac
33487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33488 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033490 grep -v '^ *+' conftest.er1 >conftest.err
33491 rm -f conftest.er1
33492 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033494 (exit $ac_status); } &&
33495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33496 { (case "(($ac_try" in
33497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498 *) ac_try_echo=$ac_try;;
33499esac
33500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33501 (eval "$ac_try") 2>&5
33502 ac_status=$?
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); }; } &&
33505 { ac_try='test -s conftest.$ac_objext'
33506 { (case "(($ac_try" in
33507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508 *) ac_try_echo=$ac_try;;
33509esac
33510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511 (eval "$ac_try") 2>&5
33512 ac_status=$?
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033515 ac_cv_func_isnan_in_math_h=yes
33516else
33517 echo "$as_me: failed program was:" >&5
33518sed 's/^/| /' conftest.$ac_ext >&5
33519
Reid Spencera773bd52006-08-04 18:18:08 +000033520 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033521fi
Reid Spencera773bd52006-08-04 18:18:08 +000033522
33523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033524 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033525ac_cpp='$CPP $CPPFLAGS'
33526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528ac_compiler_gnu=$ac_cv_c_compiler_gnu
33529
33530fi
Reid Spencera773bd52006-08-04 18:18:08 +000033531{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33532echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033533
33534
33535if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033536
33537cat >>confdefs.h <<\_ACEOF
33538#define HAVE_ISNAN_IN_MATH_H 1
33539_ACEOF
33540
Reid Spencerabec8f92004-10-27 23:03:44 +000033541fi
33542
Reid Spencera773bd52006-08-04 18:18:08 +000033543{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33544echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033545if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33546 echo $ECHO_N "(cached) $ECHO_C" >&6
33547else
Reid Spencera773bd52006-08-04 18:18:08 +000033548 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033549ac_cpp='$CXXCPP $CPPFLAGS'
33550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33553
Reid Spencerabec8f92004-10-27 23:03:44 +000033554 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033555/* confdefs.h. */
33556_ACEOF
33557cat confdefs.h >>conftest.$ac_ext
33558cat >>conftest.$ac_ext <<_ACEOF
33559/* end confdefs.h. */
33560#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033561int
33562main ()
33563{
33564float f; isnan(f);
33565 ;
33566 return 0;
33567}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033568_ACEOF
33569rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033570if { (ac_try="$ac_compile"
33571case "(($ac_try" in
33572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573 *) ac_try_echo=$ac_try;;
33574esac
33575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033582 (exit $ac_status); } &&
33583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33584 { (case "(($ac_try" in
33585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33587esac
33588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_try") 2>&5
33590 ac_status=$?
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; } &&
33593 { ac_try='test -s conftest.$ac_objext'
33594 { (case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33597esac
33598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_try") 2>&5
33600 ac_status=$?
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033603 ac_cv_func_isnan_in_cmath=yes
33604else
33605 echo "$as_me: failed program was:" >&5
33606sed 's/^/| /' conftest.$ac_ext >&5
33607
Reid Spencera773bd52006-08-04 18:18:08 +000033608 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033609fi
Reid Spencera773bd52006-08-04 18:18:08 +000033610
33611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033612 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033613ac_cpp='$CPP $CPPFLAGS'
33614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33616ac_compiler_gnu=$ac_cv_c_compiler_gnu
33617
33618fi
Reid Spencera773bd52006-08-04 18:18:08 +000033619{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33620echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033621
33622if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033623
33624cat >>confdefs.h <<\_ACEOF
33625#define HAVE_ISNAN_IN_CMATH 1
33626_ACEOF
33627
Reid Spencerabec8f92004-10-27 23:03:44 +000033628fi
33629
Reid Spencera773bd52006-08-04 18:18:08 +000033630{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33631echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033632if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33633 echo $ECHO_N "(cached) $ECHO_C" >&6
33634else
Reid Spencera773bd52006-08-04 18:18:08 +000033635 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033636ac_cpp='$CXXCPP $CPPFLAGS'
33637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33640
Reid Spencerabec8f92004-10-27 23:03:44 +000033641 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033642/* confdefs.h. */
33643_ACEOF
33644cat confdefs.h >>conftest.$ac_ext
33645cat >>conftest.$ac_ext <<_ACEOF
33646/* end confdefs.h. */
33647#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033648int
33649main ()
33650{
33651float f; std::isnan(f);
33652 ;
33653 return 0;
33654}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033655_ACEOF
33656rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033657if { (ac_try="$ac_compile"
33658case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33661esac
33662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033665 grep -v '^ *+' conftest.er1 >conftest.err
33666 rm -f conftest.er1
33667 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033669 (exit $ac_status); } &&
33670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33671 { (case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33674esac
33675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_try") 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; } &&
33680 { ac_try='test -s conftest.$ac_objext'
33681 { (case "(($ac_try" in
33682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683 *) ac_try_echo=$ac_try;;
33684esac
33685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686 (eval "$ac_try") 2>&5
33687 ac_status=$?
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033690 ac_cv_func_std_isnan_in_cmath=yes
33691else
33692 echo "$as_me: failed program was:" >&5
33693sed 's/^/| /' conftest.$ac_ext >&5
33694
Reid Spencera773bd52006-08-04 18:18:08 +000033695 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033696fi
Reid Spencera773bd52006-08-04 18:18:08 +000033697
33698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033699 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033700ac_cpp='$CPP $CPPFLAGS'
33701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33703ac_compiler_gnu=$ac_cv_c_compiler_gnu
33704
33705fi
Reid Spencera773bd52006-08-04 18:18:08 +000033706{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33707echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033708
33709if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033710
33711cat >>confdefs.h <<\_ACEOF
33712#define HAVE_STD_ISNAN_IN_CMATH 1
33713_ACEOF
33714
Reid Spencerabec8f92004-10-27 23:03:44 +000033715fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033716
33717
Reid Spencera773bd52006-08-04 18:18:08 +000033718{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33719echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033720if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33721 echo $ECHO_N "(cached) $ECHO_C" >&6
33722else
Reid Spencera773bd52006-08-04 18:18:08 +000033723 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033724ac_cpp='$CXXCPP $CPPFLAGS'
33725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33728
Reid Spencerabec8f92004-10-27 23:03:44 +000033729 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033730/* confdefs.h. */
33731_ACEOF
33732cat confdefs.h >>conftest.$ac_ext
33733cat >>conftest.$ac_ext <<_ACEOF
33734/* end confdefs.h. */
33735#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033736int
33737main ()
33738{
33739float f; isinf(f);
33740 ;
33741 return 0;
33742}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033743_ACEOF
33744rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033745if { (ac_try="$ac_compile"
33746case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33749esac
33750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033753 grep -v '^ *+' conftest.er1 >conftest.err
33754 rm -f conftest.er1
33755 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033757 (exit $ac_status); } &&
33758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; } &&
33768 { ac_try='test -s conftest.$ac_objext'
33769 { (case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33772esac
33773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_try") 2>&5
33775 ac_status=$?
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033778 ac_cv_func_isinf_in_math_h=yes
33779else
33780 echo "$as_me: failed program was:" >&5
33781sed 's/^/| /' conftest.$ac_ext >&5
33782
Reid Spencera773bd52006-08-04 18:18:08 +000033783 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033784fi
Reid Spencera773bd52006-08-04 18:18:08 +000033785
33786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033787 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033788ac_cpp='$CPP $CPPFLAGS'
33789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33791ac_compiler_gnu=$ac_cv_c_compiler_gnu
33792
33793fi
Reid Spencera773bd52006-08-04 18:18:08 +000033794{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33795echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033796
33797if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033798
33799cat >>confdefs.h <<\_ACEOF
33800#define HAVE_ISINF_IN_MATH_H 1
33801_ACEOF
33802
Reid Spencerabec8f92004-10-27 23:03:44 +000033803fi
33804
Reid Spencera773bd52006-08-04 18:18:08 +000033805{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33806echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033807if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33808 echo $ECHO_N "(cached) $ECHO_C" >&6
33809else
Reid Spencera773bd52006-08-04 18:18:08 +000033810 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033811ac_cpp='$CXXCPP $CPPFLAGS'
33812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33815
Reid Spencerabec8f92004-10-27 23:03:44 +000033816 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033817/* confdefs.h. */
33818_ACEOF
33819cat confdefs.h >>conftest.$ac_ext
33820cat >>conftest.$ac_ext <<_ACEOF
33821/* end confdefs.h. */
33822#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033823int
33824main ()
33825{
33826float f; isinf(f);
33827 ;
33828 return 0;
33829}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033830_ACEOF
33831rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033832if { (ac_try="$ac_compile"
33833case "(($ac_try" in
33834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33835 *) ac_try_echo=$ac_try;;
33836esac
33837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33838 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033840 grep -v '^ *+' conftest.er1 >conftest.err
33841 rm -f conftest.er1
33842 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033844 (exit $ac_status); } &&
33845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849esac
33850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; } &&
33855 { ac_try='test -s conftest.$ac_objext'
33856 { (case "(($ac_try" in
33857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858 *) ac_try_echo=$ac_try;;
33859esac
33860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861 (eval "$ac_try") 2>&5
33862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033865 ac_cv_func_isinf_in_cmath=yes
33866else
33867 echo "$as_me: failed program was:" >&5
33868sed 's/^/| /' conftest.$ac_ext >&5
33869
Reid Spencera773bd52006-08-04 18:18:08 +000033870 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033871fi
Reid Spencera773bd52006-08-04 18:18:08 +000033872
33873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033874 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033875ac_cpp='$CPP $CPPFLAGS'
33876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33878ac_compiler_gnu=$ac_cv_c_compiler_gnu
33879
33880fi
Reid Spencera773bd52006-08-04 18:18:08 +000033881{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33882echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033883
33884if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033885
33886cat >>confdefs.h <<\_ACEOF
33887#define HAVE_ISINF_IN_CMATH 1
33888_ACEOF
33889
Reid Spencerabec8f92004-10-27 23:03:44 +000033890fi
33891
Reid Spencera773bd52006-08-04 18:18:08 +000033892{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33893echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033894if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33895 echo $ECHO_N "(cached) $ECHO_C" >&6
33896else
Reid Spencera773bd52006-08-04 18:18:08 +000033897 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033898ac_cpp='$CXXCPP $CPPFLAGS'
33899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33902
Reid Spencerabec8f92004-10-27 23:03:44 +000033903 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033904/* confdefs.h. */
33905_ACEOF
33906cat confdefs.h >>conftest.$ac_ext
33907cat >>conftest.$ac_ext <<_ACEOF
33908/* end confdefs.h. */
33909#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033910int
33911main ()
33912{
33913float f; std::isinf(f)}
33914 ;
33915 return 0;
33916}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033917_ACEOF
33918rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033919if { (ac_try="$ac_compile"
33920case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33923esac
33924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033927 grep -v '^ *+' conftest.er1 >conftest.err
33928 rm -f conftest.er1
33929 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033931 (exit $ac_status); } &&
33932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33933 { (case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33936esac
33937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_try") 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; } &&
33942 { ac_try='test -s conftest.$ac_objext'
33943 { (case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33946esac
33947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_try") 2>&5
33949 ac_status=$?
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033952 ac_cv_func_std_isinf_in_cmath=yes
33953else
33954 echo "$as_me: failed program was:" >&5
33955sed 's/^/| /' conftest.$ac_ext >&5
33956
Reid Spencera773bd52006-08-04 18:18:08 +000033957 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033958fi
Reid Spencera773bd52006-08-04 18:18:08 +000033959
33960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033961 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033962ac_cpp='$CPP $CPPFLAGS'
33963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33965ac_compiler_gnu=$ac_cv_c_compiler_gnu
33966
33967fi
Reid Spencera773bd52006-08-04 18:18:08 +000033968{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33969echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033970
33971if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033972
33973cat >>confdefs.h <<\_ACEOF
33974#define HAVE_STD_ISINF_IN_CMATH 1
33975_ACEOF
33976
Reid Spencerabec8f92004-10-27 23:03:44 +000033977fi
33978
Reid Spencera773bd52006-08-04 18:18:08 +000033979{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33980echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033981if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33983else
Reid Spencera773bd52006-08-04 18:18:08 +000033984 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033985ac_cpp='$CXXCPP $CPPFLAGS'
33986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33989
Reid Spencerabec8f92004-10-27 23:03:44 +000033990 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033991/* confdefs.h. */
33992_ACEOF
33993cat confdefs.h >>conftest.$ac_ext
33994cat >>conftest.$ac_ext <<_ACEOF
33995/* end confdefs.h. */
33996#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033997int
33998main ()
33999{
34000float f; finite(f);
34001 ;
34002 return 0;
34003}
Brian Gaeked59a6472004-07-21 03:33:58 +000034004_ACEOF
34005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034006if { (ac_try="$ac_compile"
34007case "(($ac_try" in
34008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34009 *) ac_try_echo=$ac_try;;
34010esac
34011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34012 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034014 grep -v '^ *+' conftest.er1 >conftest.err
34015 rm -f conftest.er1
34016 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034018 (exit $ac_status); } &&
34019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34020 { (case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34023esac
34024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025 (eval "$ac_try") 2>&5
34026 ac_status=$?
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; } &&
34029 { ac_try='test -s conftest.$ac_objext'
34030 { (case "(($ac_try" in
34031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 *) ac_try_echo=$ac_try;;
34033esac
34034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035 (eval "$ac_try") 2>&5
34036 ac_status=$?
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034039 ac_cv_func_finite_in_ieeefp_h=yes
34040else
34041 echo "$as_me: failed program was:" >&5
34042sed 's/^/| /' conftest.$ac_ext >&5
34043
Reid Spencera773bd52006-08-04 18:18:08 +000034044 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034045fi
Reid Spencera773bd52006-08-04 18:18:08 +000034046
34047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034048 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034049ac_cpp='$CPP $CPPFLAGS'
34050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34052ac_compiler_gnu=$ac_cv_c_compiler_gnu
34053
34054fi
Reid Spencera773bd52006-08-04 18:18:08 +000034055{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34056echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034057
Brian Gaeke6802b552004-10-28 05:06:45 +000034058if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034059
34060cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034061#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034062_ACEOF
34063
Reid Spencerabec8f92004-10-27 23:03:44 +000034064fi
34065
34066
34067
Reid Spencer30fe5262007-01-20 07:48:49 +000034068if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034069
34070
34071for ac_header in stdlib.h unistd.h
34072do
34073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034078 echo $ECHO_N "(cached) $ECHO_C" >&6
34079fi
Reid Spencera773bd52006-08-04 18:18:08 +000034080ac_res=`eval echo '${'$as_ac_Header'}'`
34081 { echo "$as_me:$LINENO: result: $ac_res" >&5
34082echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034083else
34084 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034087cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034088/* confdefs.h. */
34089_ACEOF
34090cat confdefs.h >>conftest.$ac_ext
34091cat >>conftest.$ac_ext <<_ACEOF
34092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034093$ac_includes_default
34094#include <$ac_header>
34095_ACEOF
34096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034097if { (ac_try="$ac_compile"
34098case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101esac
34102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034105 grep -v '^ *+' conftest.er1 >conftest.err
34106 rm -f conftest.er1
34107 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034109 (exit $ac_status); } &&
34110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34111 { (case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34114esac
34115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_try") 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; } &&
34120 { ac_try='test -s conftest.$ac_objext'
34121 { (case "(($ac_try" in
34122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123 *) ac_try_echo=$ac_try;;
34124esac
34125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126 (eval "$ac_try") 2>&5
34127 ac_status=$?
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034130 ac_header_compiler=yes
34131else
34132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034133sed 's/^/| /' conftest.$ac_ext >&5
34134
Reid Spencera773bd52006-08-04 18:18:08 +000034135 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034136fi
Reid Spencera773bd52006-08-04 18:18:08 +000034137
34138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34140echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034141
34142# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034143{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034145cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034146/* confdefs.h. */
34147_ACEOF
34148cat confdefs.h >>conftest.$ac_ext
34149cat >>conftest.$ac_ext <<_ACEOF
34150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034151#include <$ac_header>
34152_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034153if { (ac_try="$ac_cpp conftest.$ac_ext"
34154case "(($ac_try" in
34155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156 *) ac_try_echo=$ac_try;;
34157esac
34158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034160 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034161 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034162 rm -f conftest.er1
34163 cat conftest.err >&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034165 (exit $ac_status); } >/dev/null; then
34166 if test -s conftest.err; then
34167 ac_cpp_err=$ac_c_preproc_warn_flag
34168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34169 else
34170 ac_cpp_err=
34171 fi
34172else
34173 ac_cpp_err=yes
34174fi
34175if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034176 ac_header_preproc=yes
34177else
34178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034179sed 's/^/| /' conftest.$ac_ext >&5
34180
John Criswell7a73b802003-06-30 21:59:07 +000034181 ac_header_preproc=no
34182fi
Reid Spencera773bd52006-08-04 18:18:08 +000034183
John Criswell7a73b802003-06-30 21:59:07 +000034184rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34186echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034187
34188# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34190 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34195 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034196 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034197 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034210 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034211## ----------------------------------- ##
34212## Report this to llvmbugs@cs.uiuc.edu ##
34213## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034214_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034215 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034216 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034217esac
Reid Spencera773bd52006-08-04 18:18:08 +000034218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034221 echo $ECHO_N "(cached) $ECHO_C" >&6
34222else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034223 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034224fi
Reid Spencera773bd52006-08-04 18:18:08 +000034225ac_res=`eval echo '${'$as_ac_Header'}'`
34226 { echo "$as_me:$LINENO: result: $ac_res" >&5
34227echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034228
34229fi
34230if test `eval echo '${'$as_ac_Header'}'` = yes; then
34231 cat >>confdefs.h <<_ACEOF
34232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34233_ACEOF
34234
34235fi
34236
34237done
34238
34239
34240for ac_func in getpagesize
34241do
34242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034246 echo $ECHO_N "(cached) $ECHO_C" >&6
34247else
34248 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034249/* confdefs.h. */
34250_ACEOF
34251cat confdefs.h >>conftest.$ac_ext
34252cat >>conftest.$ac_ext <<_ACEOF
34253/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34256#define $ac_func innocuous_$ac_func
34257
John Criswell7a73b802003-06-30 21:59:07 +000034258/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034259 which can conflict with char $ac_func (); below.
34260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34261 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034262
John Criswell0c38eaf2003-09-10 15:17:25 +000034263#ifdef __STDC__
34264# include <limits.h>
34265#else
34266# include <assert.h>
34267#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034268
34269#undef $ac_func
34270
Reid Spencera773bd52006-08-04 18:18:08 +000034271/* Override any GCC internal prototype to avoid an error.
34272 Use char because int might match the return type of a GCC
34273 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034274#ifdef __cplusplus
34275extern "C"
34276#endif
John Criswell7a73b802003-06-30 21:59:07 +000034277char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034278/* The GNU C library defines this for functions which it implements
34279 to always fail with ENOSYS. Some functions are actually named
34280 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034281#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034282choke me
John Criswell7a73b802003-06-30 21:59:07 +000034283#endif
34284
John Criswell0c38eaf2003-09-10 15:17:25 +000034285int
34286main ()
34287{
Reid Spencera773bd52006-08-04 18:18:08 +000034288return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034289 ;
34290 return 0;
34291}
34292_ACEOF
34293rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034294if { (ac_try="$ac_link"
34295case "(($ac_try" in
34296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297 *) ac_try_echo=$ac_try;;
34298esac
34299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034301 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034302 grep -v '^ *+' conftest.er1 >conftest.err
34303 rm -f conftest.er1
34304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034306 (exit $ac_status); } &&
34307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34308 { (case "(($ac_try" in
34309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34310 *) ac_try_echo=$ac_try;;
34311esac
34312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34313 (eval "$ac_try") 2>&5
34314 ac_status=$?
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); }; } &&
34317 { ac_try='test -s conftest$ac_exeext'
34318 { (case "(($ac_try" in
34319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320 *) ac_try_echo=$ac_try;;
34321esac
34322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323 (eval "$ac_try") 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034327 eval "$as_ac_var=yes"
34328else
34329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034330sed 's/^/| /' conftest.$ac_ext >&5
34331
Reid Spencera773bd52006-08-04 18:18:08 +000034332 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034333fi
Reid Spencera773bd52006-08-04 18:18:08 +000034334
Bill Wendlingebcceee2009-04-18 11:20:33 +000034335rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034336 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034337fi
Reid Spencera773bd52006-08-04 18:18:08 +000034338ac_res=`eval echo '${'$as_ac_var'}'`
34339 { echo "$as_me:$LINENO: result: $ac_res" >&5
34340echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034341if test `eval echo '${'$as_ac_var'}'` = yes; then
34342 cat >>confdefs.h <<_ACEOF
34343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34344_ACEOF
34345
34346fi
34347done
34348
Reid Spencera773bd52006-08-04 18:18:08 +000034349{ echo "$as_me:$LINENO: checking for working mmap" >&5
34350echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034351if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34352 echo $ECHO_N "(cached) $ECHO_C" >&6
34353else
34354 if test "$cross_compiling" = yes; then
34355 ac_cv_func_mmap_fixed_mapped=no
34356else
34357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034358/* confdefs.h. */
34359_ACEOF
34360cat confdefs.h >>conftest.$ac_ext
34361cat >>conftest.$ac_ext <<_ACEOF
34362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034363$ac_includes_default
34364/* malloc might have been renamed as rpl_malloc. */
34365#undef malloc
34366
34367/* Thanks to Mike Haertel and Jim Avera for this test.
34368 Here is a matrix of mmap possibilities:
34369 mmap private not fixed
34370 mmap private fixed at somewhere currently unmapped
34371 mmap private fixed at somewhere already mapped
34372 mmap shared not fixed
34373 mmap shared fixed at somewhere currently unmapped
34374 mmap shared fixed at somewhere already mapped
34375 For private mappings, we should verify that changes cannot be read()
34376 back from the file, nor mmap's back from the file at a different
34377 address. (There have been systems where private was not correctly
34378 implemented like the infamous i386 svr4.0, and systems where the
34379 VM page cache was not coherent with the file system buffer cache
34380 like early versions of FreeBSD and possibly contemporary NetBSD.)
34381 For shared mappings, we should conversely verify that changes get
34382 propagated back to all the places they're supposed to be.
34383
34384 Grep wants private fixed already mapped.
34385 The main things grep needs to know about mmap are:
34386 * does it exist and is it safe to write into the mmap'd area
34387 * how to use it (BSD variants) */
34388
34389#include <fcntl.h>
34390#include <sys/mman.h>
34391
Bill Wendlingebcceee2009-04-18 11:20:33 +000034392#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034393char *malloc ();
34394#endif
34395
34396/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034397#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034398/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034399# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034400# define HAVE_SYS_PARAM_H 1
34401# endif
34402
34403# ifdef _SC_PAGESIZE
34404# define getpagesize() sysconf(_SC_PAGESIZE)
34405# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034406# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034407# include <sys/param.h>
34408# ifdef EXEC_PAGESIZE
34409# define getpagesize() EXEC_PAGESIZE
34410# else /* no EXEC_PAGESIZE */
34411# ifdef NBPG
34412# define getpagesize() NBPG * CLSIZE
34413# ifndef CLSIZE
34414# define CLSIZE 1
34415# endif /* no CLSIZE */
34416# else /* no NBPG */
34417# ifdef NBPC
34418# define getpagesize() NBPC
34419# else /* no NBPC */
34420# ifdef PAGESIZE
34421# define getpagesize() PAGESIZE
34422# endif /* PAGESIZE */
34423# endif /* no NBPC */
34424# endif /* no NBPG */
34425# endif /* no EXEC_PAGESIZE */
34426# else /* no HAVE_SYS_PARAM_H */
34427# define getpagesize() 8192 /* punt totally */
34428# endif /* no HAVE_SYS_PARAM_H */
34429# endif /* no _SC_PAGESIZE */
34430
34431#endif /* no HAVE_GETPAGESIZE */
34432
34433int
34434main ()
34435{
34436 char *data, *data2, *data3;
34437 int i, pagesize;
34438 int fd;
34439
34440 pagesize = getpagesize ();
34441
34442 /* First, make a file with some known garbage in it. */
34443 data = (char *) malloc (pagesize);
34444 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034445 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034446 for (i = 0; i < pagesize; ++i)
34447 *(data + i) = rand ();
34448 umask (0);
34449 fd = creat ("conftest.mmap", 0600);
34450 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034451 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034452 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034453 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034454 close (fd);
34455
34456 /* Next, try to mmap the file at a fixed address which already has
34457 something else allocated at it. If we can, also make sure that
34458 we see the same garbage. */
34459 fd = open ("conftest.mmap", O_RDWR);
34460 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034461 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034462 data2 = (char *) malloc (2 * pagesize);
34463 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034464 return 1;
34465 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034468 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034469 for (i = 0; i < pagesize; ++i)
34470 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034471 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034472
34473 /* Finally, make sure that changes to the mapped area do not
34474 percolate back to the file as seen by read(). (This is a bug on
34475 some variants of i386 svr4.0.) */
34476 for (i = 0; i < pagesize; ++i)
34477 *(data2 + i) = *(data2 + i) + 1;
34478 data3 = (char *) malloc (pagesize);
34479 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034480 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034481 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034482 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034483 for (i = 0; i < pagesize; ++i)
34484 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034485 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034486 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034487 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034488}
34489_ACEOF
34490rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034491if { (ac_try="$ac_link"
34492case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34495esac
34496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034498 ac_status=$?
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034501 { (case "(($ac_try" in
34502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503 *) ac_try_echo=$ac_try;;
34504esac
34505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034507 ac_status=$?
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); }; }; then
34510 ac_cv_func_mmap_fixed_mapped=yes
34511else
34512 echo "$as_me: program exited with status $ac_status" >&5
34513echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034514sed 's/^/| /' conftest.$ac_ext >&5
34515
John Criswell7a73b802003-06-30 21:59:07 +000034516( exit $ac_status )
34517ac_cv_func_mmap_fixed_mapped=no
34518fi
Reid Spencera773bd52006-08-04 18:18:08 +000034519rm -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 +000034520fi
Reid Spencera773bd52006-08-04 18:18:08 +000034521
34522
John Criswell7a73b802003-06-30 21:59:07 +000034523fi
Reid Spencera773bd52006-08-04 18:18:08 +000034524{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34525echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034526if test $ac_cv_func_mmap_fixed_mapped = yes; then
34527
34528cat >>confdefs.h <<\_ACEOF
34529#define HAVE_MMAP 1
34530_ACEOF
34531
34532fi
34533rm -f conftest.mmap
34534
Reid Spencer30fe5262007-01-20 07:48:49 +000034535 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034536echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034537if test "${ac_cv_func_mmap_file+set}" = set; then
34538 echo $ECHO_N "(cached) $ECHO_C" >&6
34539else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034540 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034541ac_cpp='$CPP $CPPFLAGS'
34542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34544ac_compiler_gnu=$ac_cv_c_compiler_gnu
34545
34546 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034547 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034548else
34549 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034550
Reid Spencer777ce172004-09-20 04:09:56 +000034551 /* confdefs.h. */
34552_ACEOF
34553cat confdefs.h >>conftest.$ac_ext
34554cat >>conftest.$ac_ext <<_ACEOF
34555/* end confdefs.h. */
34556
John Criswell7a73b802003-06-30 21:59:07 +000034557#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034558#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034559#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034560
34561int
34562main ()
34563{
John Criswell7a73b802003-06-30 21:59:07 +000034564
34565 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034566 fd = creat ("foo",0777);
34567 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34568 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034569 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034570 ;
34571 return 0;
34572}
John Criswell7a73b802003-06-30 21:59:07 +000034573_ACEOF
34574rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034575if { (ac_try="$ac_link"
34576case "(($ac_try" in
34577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34578 *) ac_try_echo=$ac_try;;
34579esac
34580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034582 ac_status=$?
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034585 { (case "(($ac_try" in
34586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587 *) ac_try_echo=$ac_try;;
34588esac
34589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034591 ac_status=$?
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; }; then
34594 ac_cv_func_mmap_file=yes
34595else
34596 echo "$as_me: program exited with status $ac_status" >&5
34597echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034598sed 's/^/| /' conftest.$ac_ext >&5
34599
John Criswell7a73b802003-06-30 21:59:07 +000034600( exit $ac_status )
34601ac_cv_func_mmap_file=no
34602fi
Reid Spencera773bd52006-08-04 18:18:08 +000034603rm -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 +000034604fi
Reid Spencera773bd52006-08-04 18:18:08 +000034605
34606
John Criswell7a73b802003-06-30 21:59:07 +000034607 ac_ext=c
34608ac_cpp='$CPP $CPPFLAGS'
34609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34611ac_compiler_gnu=$ac_cv_c_compiler_gnu
34612
34613
34614fi
Reid Spencera773bd52006-08-04 18:18:08 +000034615{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34616echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034617if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034618
34619cat >>confdefs.h <<\_ACEOF
34620#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034621_ACEOF
34622
34623 MMAP_FILE=yes
34624
34625fi
34626
Reid Spencer30fe5262007-01-20 07:48:49 +000034627 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034628echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034629if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34631else
Reid Spencer582a23c2004-12-29 07:07:57 +000034632 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034633 ac_cv_need_dev_zero_for_mmap=yes
34634 else
34635 ac_cv_need_dev_zero_for_mmap=no
34636 fi
34637
34638fi
Reid Spencera773bd52006-08-04 18:18:08 +000034639{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34640echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034641if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34642
34643cat >>confdefs.h <<\_ACEOF
34644#define NEED_DEV_ZERO_FOR_MMAP 1
34645_ACEOF
34646
34647fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034648
Reid Spencer30fe5262007-01-20 07:48:49 +000034649 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34650 then
34651 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034652echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034653 fi
34654 if test "$ac_cv_func_mmap_file" = "no"
34655 then
34656 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034657echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034658 fi
John Criswellb13092b2003-07-22 21:00:24 +000034659fi
John Criswell7a73b802003-06-30 21:59:07 +000034660
Owen Andersona8603702009-05-19 22:18:56 +000034661{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034662echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034663cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034664/* confdefs.h. */
34665_ACEOF
34666cat confdefs.h >>conftest.$ac_ext
34667cat >>conftest.$ac_ext <<_ACEOF
34668/* end confdefs.h. */
34669int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034670 volatile unsigned long val = 1;
34671 __sync_synchronize();
34672 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034673 __sync_add_and_fetch(&val, 1);
34674 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034675 return 0;
34676 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034677
34678_ACEOF
34679rm -f conftest.$ac_objext conftest$ac_exeext
34680if { (ac_try="$ac_link"
34681case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34684esac
34685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686 (eval "$ac_link") 2>conftest.er1
34687 ac_status=$?
34688 grep -v '^ *+' conftest.er1 >conftest.err
34689 rm -f conftest.er1
34690 cat conftest.err >&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); } &&
34693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34694 { (case "(($ac_try" in
34695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696 *) ac_try_echo=$ac_try;;
34697esac
34698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699 (eval "$ac_try") 2>&5
34700 ac_status=$?
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); }; } &&
34703 { ac_try='test -s conftest$ac_exeext'
34704 { (case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34707esac
34708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709 (eval "$ac_try") 2>&5
34710 ac_status=$?
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; }; then
34713 { echo "$as_me:$LINENO: result: yes" >&5
34714echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034715
34716cat >>confdefs.h <<\_ACEOF
34717#define LLVM_MULTITHREADED 1
34718_ACEOF
34719
Owen Andersond4b272b2009-05-18 23:58:51 +000034720else
34721 echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724 { echo "$as_me:$LINENO: result: no" >&5
34725echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034726
Owen Andersona8603702009-05-19 22:18:56 +000034727cat >>confdefs.h <<\_ACEOF
34728#define LLVM_MULTITHREADED 0
34729_ACEOF
34730
34731 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34732echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034733fi
34734
34735rm -f core conftest.err conftest.$ac_objext \
34736 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034737
34738
John Criswell7a73b802003-06-30 21:59:07 +000034739
Nick Lewycky4372e692009-09-29 06:18:23 +000034740if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34741 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34742echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34743if test "${llvm_cv_linux_mixed+set}" = set; then
34744 echo $ECHO_N "(cached) $ECHO_C" >&6
34745else
34746 ac_ext=c
34747ac_cpp='$CPP $CPPFLAGS'
34748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34750ac_compiler_gnu=$ac_cv_c_compiler_gnu
34751
34752 cat >conftest.$ac_ext <<_ACEOF
34753/* confdefs.h. */
34754_ACEOF
34755cat confdefs.h >>conftest.$ac_ext
34756cat >>conftest.$ac_ext <<_ACEOF
34757/* end confdefs.h. */
34758#ifndef __x86_64__
34759 error: Not x86-64 even if uname says so!
34760 #endif
34761
34762int
34763main ()
34764{
34765
34766 ;
34767 return 0;
34768}
34769_ACEOF
34770rm -f conftest.$ac_objext
34771if { (ac_try="$ac_compile"
34772case "(($ac_try" in
34773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774 *) ac_try_echo=$ac_try;;
34775esac
34776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_compile") 2>conftest.er1
34778 ac_status=$?
34779 grep -v '^ *+' conftest.er1 >conftest.err
34780 rm -f conftest.er1
34781 cat conftest.err >&5
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); } &&
34784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34785 { (case "(($ac_try" in
34786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34787 *) ac_try_echo=$ac_try;;
34788esac
34789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34790 (eval "$ac_try") 2>&5
34791 ac_status=$?
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest.$ac_objext'
34795 { (case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34798esac
34799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_try") 2>&5
34801 ac_status=$?
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; }; then
34804 llvm_cv_linux_mixed=no
34805else
34806 echo "$as_me: failed program was:" >&5
34807sed 's/^/| /' conftest.$ac_ext >&5
34808
34809 llvm_cv_linux_mixed=yes
34810fi
34811
34812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34813 ac_ext=c
34814ac_cpp='$CPP $CPPFLAGS'
34815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817ac_compiler_gnu=$ac_cv_c_compiler_gnu
34818
34819
34820fi
34821{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34822echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34823
34824 if test "$llvm_cv_linux_mixed" = "yes"; then
34825 llvm_cv_target_arch="x86"
34826 ARCH="x86"
34827 fi
34828fi
34829
Reid Spencer9372f152007-07-30 20:13:24 +000034830
34831for ac_func in __dso_handle
34832do
34833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34838else
34839 cat >conftest.$ac_ext <<_ACEOF
34840/* confdefs.h. */
34841_ACEOF
34842cat confdefs.h >>conftest.$ac_ext
34843cat >>conftest.$ac_ext <<_ACEOF
34844/* end confdefs.h. */
34845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34847#define $ac_func innocuous_$ac_func
34848
34849/* System header to define __stub macros and hopefully few prototypes,
34850 which can conflict with char $ac_func (); below.
34851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34852 <limits.h> exists even on freestanding compilers. */
34853
34854#ifdef __STDC__
34855# include <limits.h>
34856#else
34857# include <assert.h>
34858#endif
34859
34860#undef $ac_func
34861
34862/* Override any GCC internal prototype to avoid an error.
34863 Use char because int might match the return type of a GCC
34864 builtin and then its argument prototype would still apply. */
34865#ifdef __cplusplus
34866extern "C"
34867#endif
34868char $ac_func ();
34869/* The GNU C library defines this for functions which it implements
34870 to always fail with ENOSYS. Some functions are actually named
34871 something starting with __ and the normal name is an alias. */
34872#if defined __stub_$ac_func || defined __stub___$ac_func
34873choke me
34874#endif
34875
34876int
34877main ()
34878{
34879return $ac_func ();
34880 ;
34881 return 0;
34882}
34883_ACEOF
34884rm -f conftest.$ac_objext conftest$ac_exeext
34885if { (ac_try="$ac_link"
34886case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34889esac
34890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_link") 2>conftest.er1
34892 ac_status=$?
34893 grep -v '^ *+' conftest.er1 >conftest.err
34894 rm -f conftest.er1
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034897 (exit $ac_status); } &&
34898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34899 { (case "(($ac_try" in
34900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34901 *) ac_try_echo=$ac_try;;
34902esac
34903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34904 (eval "$ac_try") 2>&5
34905 ac_status=$?
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); }; } &&
34908 { ac_try='test -s conftest$ac_exeext'
34909 { (case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34912esac
34913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914 (eval "$ac_try") 2>&5
34915 ac_status=$?
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034918 eval "$as_ac_var=yes"
34919else
34920 echo "$as_me: failed program was:" >&5
34921sed 's/^/| /' conftest.$ac_ext >&5
34922
34923 eval "$as_ac_var=no"
34924fi
34925
Bill Wendlingebcceee2009-04-18 11:20:33 +000034926rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034927 conftest$ac_exeext conftest.$ac_ext
34928fi
34929ac_res=`eval echo '${'$as_ac_var'}'`
34930 { echo "$as_me:$LINENO: result: $ac_res" >&5
34931echo "${ECHO_T}$ac_res" >&6; }
34932if test `eval echo '${'$as_ac_var'}'` = yes; then
34933 cat >>confdefs.h <<_ACEOF
34934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34935_ACEOF
34936
34937fi
34938done
34939
34940
Reid Spencera773bd52006-08-04 18:18:08 +000034941{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34942echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034943if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34944 echo $ECHO_N "(cached) $ECHO_C" >&6
34945else
34946 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034947if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034948 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034949 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34950 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034951 if test $? -eq 0 ; then
34952 llvm_cv_llvmgcc_sanity="yes"
34953 fi
34954 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034955fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034956fi
Reid Spencera773bd52006-08-04 18:18:08 +000034957{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34958echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034959
34960if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034961 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34962echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034963 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034964 LLVMCC1=$llvmcc1path
34965
Reid Spencer502935f2004-12-22 05:56:56 +000034966 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034967 LLVMCC1PLUS=$llvmcc1pluspath
34968
Reid Spencer502935f2004-12-22 05:56:56 +000034969 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34970 LLVMGCCDIR=$llvmgccdir
34971
Reid Spencer282d8c12006-12-21 22:55:41 +000034972 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34973 LLVMGCCLIBEXEC=$llvmgcclibexec
34974
Reid Spencerb5d75b82006-05-09 00:31:01 +000034975 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034976 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34977 LLVMGCC_VERSION=$llvmgccversion
34978
34979 LLVMGCC_MAJVERS=$llvmgccmajvers
34980
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034981 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034982 LLVMGCC_LANGS=$llvmgcclangs
34983
34984 { echo "$as_me:$LINENO: result: ok" >&5
34985echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034986fi
34987
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034988SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034989
34990
Reid Spencere9de0912004-08-20 09:03:57 +000034991# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034992# information into substitutions that will end up in Makefile.config.in
34993# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034994if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034995 prefix="/usr/local"
34996fi
Reid Spencere9de0912004-08-20 09:03:57 +000034997eval LLVM_PREFIX="${prefix}";
34998eval LLVM_BINDIR="${prefix}/bin";
34999eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035000eval LLVM_DATADIR="${prefix}/share/llvm";
35001eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35002eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035003eval LLVM_INCLUDEDIR="${prefix}/include";
35004eval LLVM_INFODIR="${prefix}/info";
35005eval LLVM_MANDIR="${prefix}/man";
35006LLVM_CONFIGTIME=`date`
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035018# Place the various directores into the config.h file as #defines so that we
35019# can know about the installation paths within LLVM.
35020
Reid Spencere9de0912004-08-20 09:03:57 +000035021cat >>confdefs.h <<_ACEOF
35022#define LLVM_PREFIX "$LLVM_PREFIX"
35023_ACEOF
35024
35025
35026cat >>confdefs.h <<_ACEOF
35027#define LLVM_BINDIR "$LLVM_BINDIR"
35028_ACEOF
35029
35030
35031cat >>confdefs.h <<_ACEOF
35032#define LLVM_LIBDIR "$LLVM_LIBDIR"
35033_ACEOF
35034
35035
35036cat >>confdefs.h <<_ACEOF
35037#define LLVM_DATADIR "$LLVM_DATADIR"
35038_ACEOF
35039
35040
35041cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035042#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035043_ACEOF
35044
35045
35046cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035047#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035048_ACEOF
35049
35050
35051cat >>confdefs.h <<_ACEOF
35052#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35053_ACEOF
35054
35055
35056cat >>confdefs.h <<_ACEOF
35057#define LLVM_INFODIR "$LLVM_INFODIR"
35058_ACEOF
35059
35060
35061cat >>confdefs.h <<_ACEOF
35062#define LLVM_MANDIR "$LLVM_MANDIR"
35063_ACEOF
35064
35065
35066cat >>confdefs.h <<_ACEOF
35067#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35068_ACEOF
35069
35070
Eric Christopher790e11c2007-12-01 00:34:39 +000035071cat >>confdefs.h <<_ACEOF
35072#define LLVM_HOSTTRIPLE "$host"
35073_ACEOF
35074
35075
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035076# Determine which bindings to build.
35077if test "$BINDINGS_TO_BUILD" = auto ; then
35078 BINDINGS_TO_BUILD=""
35079 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35080 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35081 fi
35082fi
35083BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35084
35085
35086# This isn't really configurey, but it avoids having to repeat the list in
35087# other files.
35088ALL_BINDINGS=ocaml
35089
35090
Gordon Henriksenf0915682007-10-02 16:42:22 +000035091# Do any work necessary to ensure that bindings have what they need.
35092binding_prereqs_failed=0
35093for a_binding in $BINDINGS_TO_BUILD ; do
35094 case "$a_binding" in
35095 ocaml)
35096 if test "x$OCAMLC" = x ; then
35097 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35098echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35099 binding_prereqs_failed=1
35100 fi
35101 if test "x$OCAMLDEP" = x ; then
35102 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35103echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35104 binding_prereqs_failed=1
35105 fi
35106 if test "x$OCAMLOPT" = x ; then
35107 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35108echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35109 fi
35110 if test "x$with_ocaml_libdir" != xauto ; then
35111 OCAML_LIBDIR=$with_ocaml_libdir
35112
35113 else
35114 ocaml_stdlib="`"$OCAMLC" -where`"
35115 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35116 then
35117 # ocaml stdlib is beneath our prefix; use stdlib
35118 OCAML_LIBDIR=$ocaml_stdlib
35119
35120 else
35121 # ocaml stdlib is outside our prefix; use libdir/ocaml
35122 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35123
35124 fi
35125 fi
35126 ;;
35127 esac
35128done
35129if test "$binding_prereqs_failed" = 1 ; then
35130 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35131echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35132 { (exit 1); exit 1; }; }
35133fi
35134
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035135{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35136echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35137if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139else
35140 ac_ext=cpp
35141ac_cpp='$CXXCPP $CPPFLAGS'
35142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35145
35146 oldcxxflags="$CXXFLAGS"
35147 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35148 cat >conftest.$ac_ext <<_ACEOF
35149/* confdefs.h. */
35150_ACEOF
35151cat confdefs.h >>conftest.$ac_ext
35152cat >>conftest.$ac_ext <<_ACEOF
35153/* end confdefs.h. */
35154
35155int
35156main ()
35157{
35158
35159 ;
35160 return 0;
35161}
35162_ACEOF
35163rm -f conftest.$ac_objext
35164if { (ac_try="$ac_compile"
35165case "(($ac_try" in
35166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167 *) ac_try_echo=$ac_try;;
35168esac
35169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35170 (eval "$ac_compile") 2>conftest.er1
35171 ac_status=$?
35172 grep -v '^ *+' conftest.er1 >conftest.err
35173 rm -f conftest.er1
35174 cat conftest.err >&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035176 (exit $ac_status); } &&
35177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35178 { (case "(($ac_try" in
35179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35180 *) ac_try_echo=$ac_try;;
35181esac
35182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35183 (eval "$ac_try") 2>&5
35184 ac_status=$?
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; } &&
35187 { ac_try='test -s conftest.$ac_objext'
35188 { (case "(($ac_try" in
35189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190 *) ac_try_echo=$ac_try;;
35191esac
35192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193 (eval "$ac_try") 2>&5
35194 ac_status=$?
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035197 llvm_cv_cxx_visibility_inlines_hidden=yes
35198else
35199 echo "$as_me: failed program was:" >&5
35200sed 's/^/| /' conftest.$ac_ext >&5
35201
35202 llvm_cv_cxx_visibility_inlines_hidden=no
35203fi
35204
35205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35206 CXXFLAGS="$oldcxxflags"
35207 ac_ext=c
35208ac_cpp='$CPP $CPPFLAGS'
35209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35211ac_compiler_gnu=$ac_cv_c_compiler_gnu
35212
35213
35214fi
35215{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35216echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35217if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35218 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35219
35220else
35221 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35222
35223fi
35224
Gordon Henriksenf0915682007-10-02 16:42:22 +000035225
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035226if test "$llvm_cv_link_use_r" = "yes" ; then
35227 RPATH="-Wl,-R"
35228else
35229 RPATH="-Wl,-rpath"
35230fi
35231
35232
35233if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35234 RDYNAMIC="-Wl,-export-dynamic"
35235else
35236 RDYNAMIC=""
35237fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035238
35239
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035240
Reid Spencera773bd52006-08-04 18:18:08 +000035241ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035242
Douglas Gregor1555a232009-06-16 20:12:29 +000035243ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35244
35245ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35246
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035247ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35248
Reid Spencera773bd52006-08-04 18:18:08 +000035249ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035251
Reid Spencera773bd52006-08-04 18:18:08 +000035252ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035253
35254
Reid Spencerea949cf2006-08-16 00:45:38 +000035255ac_config_files="$ac_config_files llvm.spec"
35256
35257
Reid Spencera773bd52006-08-04 18:18:08 +000035258ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035259
35260
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035261ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35262
35263
Reid Spencera773bd52006-08-04 18:18:08 +000035264ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035265
35266
Reid Spencera773bd52006-08-04 18:18:08 +000035267ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035268
Reid Spencera773bd52006-08-04 18:18:08 +000035269ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035270
35271
Reid Spencera773bd52006-08-04 18:18:08 +000035272ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035273
35274
Reid Spencera773bd52006-08-04 18:18:08 +000035275ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035276
35277
Reid Spencera773bd52006-08-04 18:18:08 +000035278ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035279
35280
Reid Spencer8b2e1412006-11-17 03:32:33 +000035281ac_config_commands="$ac_config_commands runtime/Makefile"
35282
35283
Reid Spencera773bd52006-08-04 18:18:08 +000035284ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035285
35286
Reid Spencera773bd52006-08-04 18:18:08 +000035287ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035288
35289
Bill Wendlingf24eb392009-01-04 23:12:30 +000035290ac_config_commands="$ac_config_commands unittests/Makefile"
35291
35292
Reid Spencera773bd52006-08-04 18:18:08 +000035293ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035294
35295
Reid Spencera773bd52006-08-04 18:18:08 +000035296ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035297
35298
Reid Spencera773bd52006-08-04 18:18:08 +000035299ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035300
35301
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035302ac_config_commands="$ac_config_commands bindings/Makefile"
35303
35304
35305ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35306
35307
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035308
John Criswell7a73b802003-06-30 21:59:07 +000035309cat >confcache <<\_ACEOF
35310# This file is a shell script that caches the results of configure
35311# tests run on this system so they can be shared between configure
35312# scripts and configure runs, see configure's option --config-cache.
35313# It is not useful on other systems. If it contains results you don't
35314# want to keep, you may remove or edit it.
35315#
35316# config.status only pays attention to the cache file if you give it
35317# the --recheck option to rerun configure.
35318#
John Criswell0c38eaf2003-09-10 15:17:25 +000035319# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035320# loading this file, other *unset* `ac_cv_foo' will be assigned the
35321# following values.
35322
35323_ACEOF
35324
35325# The following way of writing the cache mishandles newlines in values,
35326# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035327# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035328# Ultrix sh set writes to stderr and can't be redirected directly,
35329# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035330(
35331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35332 eval ac_val=\$$ac_var
35333 case $ac_val in #(
35334 *${as_nl}*)
35335 case $ac_var in #(
35336 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35337echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35338 esac
35339 case $ac_var in #(
35340 _ | IFS | as_nl) ;; #(
35341 *) $as_unset $ac_var ;;
35342 esac ;;
35343 esac
35344 done
35345
John Criswell7a73b802003-06-30 21:59:07 +000035346 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35348 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035349 # `set' does not quote correctly, so add quotes (double-quote
35350 # substitution turns \\\\ into \\, and sed turns \\ into \).
35351 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035352 "s/'/'\\\\''/g;
35353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035354 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035355 *)
35356 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035358 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035359 esac |
35360 sort
35361) |
John Criswell7a73b802003-06-30 21:59:07 +000035362 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035363 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035364 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035365 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35367 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35369 :end' >>confcache
35370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35371 if test -w "$cache_file"; then
35372 test "x$cache_file" != "x/dev/null" &&
35373 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35374echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035375 cat confcache >$cache_file
35376 else
Reid Spencera773bd52006-08-04 18:18:08 +000035377 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35378echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035379 fi
35380fi
35381rm -f confcache
35382
35383test "x$prefix" = xNONE && prefix=$ac_default_prefix
35384# Let make expand exec_prefix.
35385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35386
John Criswell7a73b802003-06-30 21:59:07 +000035387DEFS=-DHAVE_CONFIG_H
35388
John Criswell0c38eaf2003-09-10 15:17:25 +000035389ac_libobjs=
35390ac_ltlibobjs=
35391for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35392 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35394 ac_i=`echo "$ac_i" | sed "$ac_script"`
35395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35396 # will be set to the directory where LIBOBJS objects are built.
35397 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35398 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035399done
35400LIBOBJS=$ac_libobjs
35401
35402LTLIBOBJS=$ac_ltlibobjs
35403
35404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035405if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35406 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35407Usually this means the macro was only invoked conditionally." >&5
35408echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35409Usually this means the macro was only invoked conditionally." >&2;}
35410 { (exit 1); exit 1; }; }
35411fi
35412if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35413 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35414Usually this means the macro was only invoked conditionally." >&5
35415echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35416Usually this means the macro was only invoked conditionally." >&2;}
35417 { (exit 1); exit 1; }; }
35418fi
John Criswell7a73b802003-06-30 21:59:07 +000035419
35420: ${CONFIG_STATUS=./config.status}
35421ac_clean_files_save=$ac_clean_files
35422ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35423{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35424echo "$as_me: creating $CONFIG_STATUS" >&6;}
35425cat >$CONFIG_STATUS <<_ACEOF
35426#! $SHELL
35427# Generated by $as_me.
35428# Run this file to recreate the current configuration.
35429# Compiler output produced by configure, useful for debugging
35430# configure, is in config.log if it exists.
35431
35432debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035433ac_cs_recheck=false
35434ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035435SHELL=\${CONFIG_SHELL-$SHELL}
35436_ACEOF
35437
35438cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035439## --------------------- ##
35440## M4sh Initialization. ##
35441## --------------------- ##
35442
Bill Wendlingebcceee2009-04-18 11:20:33 +000035443# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35445 emulate sh
35446 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35448 # is contrary to our usage. Disable this feature.
35449 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035450 setopt NO_GLOB_SUBST
35451else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035452 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035453fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035454BIN_SH=xpg4; export BIN_SH # for Tru64
35455DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035456
John Criswell7a73b802003-06-30 21:59:07 +000035457
Reid Spencera773bd52006-08-04 18:18:08 +000035458# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035459# Avoid depending upon Character Ranges.
35460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35463as_cr_digits='0123456789'
35464as_cr_alnum=$as_cr_Letters$as_cr_digits
35465
35466# The user is always right.
35467if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035468 echo "#! /bin/sh" >conf$$.sh
35469 echo "exit 0" >>conf$$.sh
35470 chmod +x conf$$.sh
35471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035472 PATH_SEPARATOR=';'
35473 else
35474 PATH_SEPARATOR=:
35475 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035476 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035477fi
35478
Reid Spencera773bd52006-08-04 18:18:08 +000035479# Support unset when possible.
35480if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35481 as_unset=unset
35482else
35483 as_unset=false
35484fi
John Criswell7a73b802003-06-30 21:59:07 +000035485
Reid Spencera773bd52006-08-04 18:18:08 +000035486
35487# IFS
35488# We need space, tab and new line, in precisely that order. Quoting is
35489# there to prevent editors from complaining about space-tab.
35490# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35491# splitting by setting IFS to empty value.)
35492as_nl='
35493'
35494IFS=" "" $as_nl"
35495
35496# Find who we are. Look in the path if we contain no directory separator.
35497case $0 in
35498 *[\\/]* ) as_myself=$0 ;;
35499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035500for as_dir in $PATH
35501do
35502 IFS=$as_save_IFS
35503 test -z "$as_dir" && as_dir=.
35504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35505done
Reid Spencera773bd52006-08-04 18:18:08 +000035506IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035507
Reid Spencera773bd52006-08-04 18:18:08 +000035508 ;;
35509esac
35510# We did not find ourselves, most probably we were run as `sh COMMAND'
35511# in which case we are not to be found in the path.
35512if test "x$as_myself" = x; then
35513 as_myself=$0
35514fi
35515if test ! -f "$as_myself"; then
35516 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35517 { (exit 1); exit 1; }
35518fi
35519
35520# Work around bugs in pre-3.0 UWIN ksh.
35521for as_var in ENV MAIL MAILPATH
35522do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35523done
35524PS1='$ '
35525PS2='> '
35526PS4='+ '
35527
35528# NLS nuisances.
35529for as_var in \
35530 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35531 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35532 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035533do
Reid Spencera773bd52006-08-04 18:18:08 +000035534 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35535 eval $as_var=C; export $as_var
35536 else
35537 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35538 fi
35539done
35540
35541# Required to use basename.
35542if expr a : '\(a\)' >/dev/null 2>&1 &&
35543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35544 as_expr=expr
35545else
35546 as_expr=false
35547fi
35548
35549if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35550 as_basename=basename
35551else
35552 as_basename=false
35553fi
35554
35555
35556# Name of the executable.
35557as_me=`$as_basename -- "$0" ||
35558$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35559 X"$0" : 'X\(//\)$' \| \
35560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35561echo X/"$0" |
35562 sed '/^.*\/\([^/][^/]*\)\/*$/{
35563 s//\1/
35564 q
35565 }
35566 /^X\/\(\/\/\)$/{
35567 s//\1/
35568 q
35569 }
35570 /^X\/\(\/\).*/{
35571 s//\1/
35572 q
35573 }
35574 s/.*/./; q'`
35575
35576# CDPATH.
35577$as_unset CDPATH
35578
35579
35580
John Criswell7a73b802003-06-30 21:59:07 +000035581 as_lineno_1=$LINENO
35582 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035583 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035584 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035585
35586 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35587 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035588 # line-number line after each line using $LINENO; the second 'sed'
35589 # does the real work. The second script uses 'N' to pair each
35590 # line-number line with the line containing $LINENO, and appends
35591 # trailing '-' during substitution so that $LINENO is not a special
35592 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035593 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035594 # scripts with optimization help from Paolo Bonzini. Blame Lee
35595 # E. McMahon (1931-1989) for sed's syntax. :-)
35596 sed -n '
35597 p
35598 /[$]LINENO/=
35599 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035600 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035601 s/[$]LINENO.*/&-/
35602 t lineno
35603 b
35604 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035605 N
Reid Spencera773bd52006-08-04 18:18:08 +000035606 :loop
35607 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035608 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035609 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035610 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035611 chmod +x "$as_me.lineno" ||
35612 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035613 { (exit 1); exit 1; }; }
35614
35615 # Don't try to exec as it changes $[0], causing all sort of problems
35616 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035617 # original and so on. Autoconf is especially sensitive to this).
35618 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035619 # Exit status is that of the last command.
35620 exit
35621}
35622
35623
Reid Spencera773bd52006-08-04 18:18:08 +000035624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35625 as_dirname=dirname
35626else
35627 as_dirname=false
35628fi
35629
35630ECHO_C= ECHO_N= ECHO_T=
35631case `echo -n x` in
35632-n*)
35633 case `echo 'x\c'` in
35634 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35635 *) ECHO_C='\c';;
35636 esac;;
35637*)
35638 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035639esac
35640
Reid Spencera773bd52006-08-04 18:18:08 +000035641if expr a : '\(a\)' >/dev/null 2>&1 &&
35642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035643 as_expr=expr
35644else
35645 as_expr=false
35646fi
35647
35648rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035649if test -d conf$$.dir; then
35650 rm -f conf$$.dir/conf$$.file
35651else
35652 rm -f conf$$.dir
35653 mkdir conf$$.dir
35654fi
John Criswell7a73b802003-06-30 21:59:07 +000035655echo >conf$$.file
35656if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035657 as_ln_s='ln -s'
35658 # ... but there are two gotchas:
35659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35661 # In both cases, we have to default to `cp -p'.
35662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035663 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035664elif ln conf$$.file conf$$ 2>/dev/null; then
35665 as_ln_s=ln
35666else
35667 as_ln_s='cp -p'
35668fi
Reid Spencera773bd52006-08-04 18:18:08 +000035669rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35670rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035671
John Criswell0c38eaf2003-09-10 15:17:25 +000035672if mkdir -p . 2>/dev/null; then
35673 as_mkdir_p=:
35674else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035675 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035676 as_mkdir_p=false
35677fi
35678
Bill Wendlingebcceee2009-04-18 11:20:33 +000035679# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35680# systems may use methods other than mode bits to determine executability.
35681cat >conf$$.file <<_ASEOF
35682#! /bin/sh
35683exit 0
35684_ASEOF
35685chmod +x conf$$.file
35686if test -x conf$$.file >/dev/null 2>&1; then
35687 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035688else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035689 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035690fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035691rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035692
35693# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035694as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035695
35696# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035697as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035698
35699
John Criswell7a73b802003-06-30 21:59:07 +000035700exec 6>&1
35701
Reid Spencera773bd52006-08-04 18:18:08 +000035702# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035703# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035704# values after options handling.
35705ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035706This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035707generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035708
35709 CONFIG_FILES = $CONFIG_FILES
35710 CONFIG_HEADERS = $CONFIG_HEADERS
35711 CONFIG_LINKS = $CONFIG_LINKS
35712 CONFIG_COMMANDS = $CONFIG_COMMANDS
35713 $ $0 $@
35714
Reid Spencera773bd52006-08-04 18:18:08 +000035715on `(hostname || uname -n) 2>/dev/null | sed 1q`
35716"
35717
John Criswell7a73b802003-06-30 21:59:07 +000035718_ACEOF
35719
Reid Spencera773bd52006-08-04 18:18:08 +000035720cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035721# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035722config_files="$ac_config_files"
35723config_headers="$ac_config_headers"
35724config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035725
Reid Spencera773bd52006-08-04 18:18:08 +000035726_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035727
35728cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035729ac_cs_usage="\
35730\`$as_me' instantiates files from templates according to the
35731current configuration.
35732
35733Usage: $0 [OPTIONS] [FILE]...
35734
35735 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035736 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035737 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035738 -d, --debug don't remove temporary files
35739 --recheck update $as_me by reconfiguring in the same conditions
35740 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035741 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035742 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035743 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035744
35745Configuration files:
35746$config_files
35747
35748Configuration headers:
35749$config_headers
35750
John Criswellc764fbc2003-09-06 15:17:13 +000035751Configuration commands:
35752$config_commands
35753
John Criswell7a73b802003-06-30 21:59:07 +000035754Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035755
Reid Spencera773bd52006-08-04 18:18:08 +000035756_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035757cat >>$CONFIG_STATUS <<_ACEOF
35758ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035759llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035760configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035761 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035762
Reid Spencera773bd52006-08-04 18:18:08 +000035763Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035764This config.status script is free software; the Free Software Foundation
35765gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035766
35767ac_pwd='$ac_pwd'
35768srcdir='$srcdir'
35769INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035770_ACEOF
35771
35772cat >>$CONFIG_STATUS <<\_ACEOF
35773# If no file are specified by the user, then we need to provide default
35774# value. By we need to know if files were specified by the user.
35775ac_need_defaults=:
35776while test $# != 0
35777do
35778 case $1 in
35779 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35781 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035782 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035784 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035785 ac_option=$1
35786 ac_optarg=$2
35787 ac_shift=shift
35788 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035789 esac
35790
John Criswell0c38eaf2003-09-10 15:17:25 +000035791 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035792 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35794 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035795 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35796 echo "$ac_cs_version"; exit ;;
35797 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035798 debug=: ;;
35799 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035800 $ac_shift
35801 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035802 ac_need_defaults=false;;
35803 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035804 $ac_shift
35805 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035806 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035807 --he | --h)
35808 # Conflict between --help and --header
35809 { echo "$as_me: error: ambiguous option: $1
35810Try \`$0 --help' for more information." >&2
35811 { (exit 1); exit 1; }; };;
35812 --help | --hel | -h )
35813 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35816 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035817
35818 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035819 -*) { echo "$as_me: error: unrecognized option: $1
35820Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035821 { (exit 1); exit 1; }; } ;;
35822
Reid Spencera773bd52006-08-04 18:18:08 +000035823 *) ac_config_targets="$ac_config_targets $1"
35824 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035825
35826 esac
35827 shift
35828done
35829
John Criswell0c38eaf2003-09-10 15:17:25 +000035830ac_configure_extra_args=
35831
35832if $ac_cs_silent; then
35833 exec 6>/dev/null
35834 ac_configure_extra_args="$ac_configure_extra_args --silent"
35835fi
35836
35837_ACEOF
35838cat >>$CONFIG_STATUS <<_ACEOF
35839if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035840 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35841 CONFIG_SHELL=$SHELL
35842 export CONFIG_SHELL
35843 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035844fi
35845
John Criswell7a73b802003-06-30 21:59:07 +000035846_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035847cat >>$CONFIG_STATUS <<\_ACEOF
35848exec 5>>config.log
35849{
35850 echo
35851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35852## Running $as_me. ##
35853_ASBOX
35854 echo "$ac_log"
35855} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035856
Reid Spencera773bd52006-08-04 18:18:08 +000035857_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035858cat >>$CONFIG_STATUS <<_ACEOF
35859#
Reid Spencera773bd52006-08-04 18:18:08 +000035860# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035861#
Reid Spencerc0682832005-02-24 19:05:19 +000035862llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035863
35864_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035865
John Criswell7a73b802003-06-30 21:59:07 +000035866cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035867
35868# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035869for ac_config_target in $ac_config_targets
35870do
Reid Spencera773bd52006-08-04 18:18:08 +000035871 case $ac_config_target in
35872 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035873 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35874 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035875 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035876 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035877 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035878 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035879 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035880 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035881 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35882 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35883 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35884 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35885 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35886 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035887 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035888 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35889 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035890 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035891 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35892 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35893 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035894 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35895 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035896
John Criswell7a73b802003-06-30 21:59:07 +000035897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35898echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35899 { (exit 1); exit 1; }; };;
35900 esac
35901done
35902
Reid Spencera773bd52006-08-04 18:18:08 +000035903
John Criswell7a73b802003-06-30 21:59:07 +000035904# If the user did not use the arguments to specify the items to instantiate,
35905# then the envvar interface is used. Set only those that are not.
35906# We use the long form for the default assignment because of an extremely
35907# bizarre bug on SunOS 4.1.3.
35908if $ac_need_defaults; then
35909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035912fi
35913
John Criswell0c38eaf2003-09-10 15:17:25 +000035914# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035915# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035916# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035917# Hook for its removal unless debugging.
35918# Note that there is a small window in which the directory will not be cleaned:
35919# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035920$debug ||
35921{
Reid Spencera773bd52006-08-04 18:18:08 +000035922 tmp=
35923 trap 'exit_status=$?
35924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35925' 0
John Criswell7a73b802003-06-30 21:59:07 +000035926 trap '{ (exit 1); exit 1; }' 1 2 13 15
35927}
John Criswell7a73b802003-06-30 21:59:07 +000035928# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035929
John Criswell7a73b802003-06-30 21:59:07 +000035930{
Reid Spencera773bd52006-08-04 18:18:08 +000035931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035932 test -n "$tmp" && test -d "$tmp"
35933} ||
35934{
Reid Spencera773bd52006-08-04 18:18:08 +000035935 tmp=./conf$$-$RANDOM
35936 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035937} ||
35938{
John Criswell0c38eaf2003-09-10 15:17:25 +000035939 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035940 { (exit 1); exit 1; }
35941}
35942
John Criswell7a73b802003-06-30 21:59:07 +000035943#
Reid Spencera773bd52006-08-04 18:18:08 +000035944# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035945#
35946
35947# No need to generate the scripts if there are no CONFIG_FILES.
35948# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035949if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035950
35951_ACEOF
35952
Reid Spencera773bd52006-08-04 18:18:08 +000035953
35954
35955ac_delim='%!_!# '
35956for ac_last_try in false false false false false :; do
35957 cat >conf$$subs.sed <<_ACEOF
35958SHELL!$SHELL$ac_delim
35959PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35960PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35961PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35962PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35963PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35964PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35965exec_prefix!$exec_prefix$ac_delim
35966prefix!$prefix$ac_delim
35967program_transform_name!$program_transform_name$ac_delim
35968bindir!$bindir$ac_delim
35969sbindir!$sbindir$ac_delim
35970libexecdir!$libexecdir$ac_delim
35971datarootdir!$datarootdir$ac_delim
35972datadir!$datadir$ac_delim
35973sysconfdir!$sysconfdir$ac_delim
35974sharedstatedir!$sharedstatedir$ac_delim
35975localstatedir!$localstatedir$ac_delim
35976includedir!$includedir$ac_delim
35977oldincludedir!$oldincludedir$ac_delim
35978docdir!$docdir$ac_delim
35979infodir!$infodir$ac_delim
35980htmldir!$htmldir$ac_delim
35981dvidir!$dvidir$ac_delim
35982pdfdir!$pdfdir$ac_delim
35983psdir!$psdir$ac_delim
35984libdir!$libdir$ac_delim
35985localedir!$localedir$ac_delim
35986mandir!$mandir$ac_delim
35987DEFS!$DEFS$ac_delim
35988ECHO_C!$ECHO_C$ac_delim
35989ECHO_N!$ECHO_N$ac_delim
35990ECHO_T!$ECHO_T$ac_delim
35991LIBS!$LIBS$ac_delim
35992build_alias!$build_alias$ac_delim
35993host_alias!$host_alias$ac_delim
35994target_alias!$target_alias$ac_delim
35995LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35996subdirs!$subdirs$ac_delim
35997build!$build$ac_delim
35998build_cpu!$build_cpu$ac_delim
35999build_vendor!$build_vendor$ac_delim
36000build_os!$build_os$ac_delim
36001host!$host$ac_delim
36002host_cpu!$host_cpu$ac_delim
36003host_vendor!$host_vendor$ac_delim
36004host_os!$host_os$ac_delim
36005target!$target$ac_delim
36006target_cpu!$target_cpu$ac_delim
36007target_vendor!$target_vendor$ac_delim
36008target_os!$target_os$ac_delim
36009OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036010HOST_OS!$HOST_OS$ac_delim
36011TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036012LINKALL!$LINKALL$ac_delim
36013NOLINKALL!$NOLINKALL$ac_delim
36014LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36015LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036016ARCH!$ARCH$ac_delim
36017ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036018CC!$CC$ac_delim
36019CFLAGS!$CFLAGS$ac_delim
36020LDFLAGS!$LDFLAGS$ac_delim
36021CPPFLAGS!$CPPFLAGS$ac_delim
36022ac_ct_CC!$ac_ct_CC$ac_delim
36023EXEEXT!$EXEEXT$ac_delim
36024OBJEXT!$OBJEXT$ac_delim
36025CPP!$CPP$ac_delim
36026GREP!$GREP$ac_delim
36027EGREP!$EGREP$ac_delim
36028LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36029BUILD_CC!$BUILD_CC$ac_delim
36030BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036031BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036032CVSBUILD!$CVSBUILD$ac_delim
36033ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036034ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036035DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036036ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36037EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036038DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036039DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036040JIT!$JIT$ac_delim
36041TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36042ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36043ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036044ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036045TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036046LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36047LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036048LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036049ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036050EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036051BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036052ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36053ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036054CXX!$CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036055_ACEOF
36056
36057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36058 break
36059 elif $ac_last_try; then
36060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36061echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36062 { (exit 1); exit 1; }; }
36063 else
36064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036065 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036066done
36067
36068ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36069if test -n "$ac_eof"; then
36070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36071 ac_eof=`expr $ac_eof + 1`
36072fi
36073
36074cat >>$CONFIG_STATUS <<_ACEOF
36075cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36077_ACEOF
36078sed '
36079s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36080s/^/s,@/; s/!/@,|#_!!_#|/
36081:n
36082t n
36083s/'"$ac_delim"'$/,g/; t
36084s/$/\\/; p
36085N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36086' >>$CONFIG_STATUS <conf$$subs.sed
36087rm -f conf$$subs.sed
36088cat >>$CONFIG_STATUS <<_ACEOF
36089CEOF$ac_eof
36090_ACEOF
36091
36092
36093ac_delim='%!_!# '
36094for ac_last_try in false false false false false :; do
36095 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036096CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036097ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036098NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036099ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036100LN_S!$LN_S$ac_delim
36101CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036102CP!$CP$ac_delim
36103DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036104FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036105MKDIR!$MKDIR$ac_delim
36106MV!$MV$ac_delim
36107RANLIB!$RANLIB$ac_delim
36108RM!$RM$ac_delim
36109SED!$SED$ac_delim
36110TAR!$TAR$ac_delim
36111BINPWD!$BINPWD$ac_delim
36112GRAPHVIZ!$GRAPHVIZ$ac_delim
36113DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036114FDP!$FDP$ac_delim
36115NEATO!$NEATO$ac_delim
36116TWOPI!$TWOPI$ac_delim
36117CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036118GV!$GV$ac_delim
36119DOTTY!$DOTTY$ac_delim
36120PERL!$PERL$ac_delim
36121HAVE_PERL!$HAVE_PERL$ac_delim
36122INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36123INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36124INSTALL_DATA!$INSTALL_DATA$ac_delim
36125BZIP2!$BZIP2$ac_delim
36126DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036127GROFF!$GROFF$ac_delim
36128GZIP!$GZIP$ac_delim
36129POD2HTML!$POD2HTML$ac_delim
36130POD2MAN!$POD2MAN$ac_delim
36131RUNTEST!$RUNTEST$ac_delim
36132TCLSH!$TCLSH$ac_delim
36133ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036134OCAMLC!$OCAMLC$ac_delim
36135OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036136OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036137OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036138GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036139INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36140INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36141CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36142CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36143LIBADD_DL!$LIBADD_DL$ac_delim
36144ECHO!$ECHO$ac_delim
36145AR!$AR$ac_delim
36146STRIP!$STRIP$ac_delim
36147CXXCPP!$CXXCPP$ac_delim
36148F77!$F77$ac_delim
36149FFLAGS!$FFLAGS$ac_delim
36150ac_ct_F77!$ac_ct_F77$ac_delim
36151LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036152LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36153LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036154LLVMGCC!$LLVMGCC$ac_delim
36155LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036156USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036157USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036158HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036159HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036160ALLOCA!$ALLOCA$ac_delim
36161MMAP_FILE!$MMAP_FILE$ac_delim
36162LLVMCC1!$LLVMCC1$ac_delim
36163LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36164LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036165LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036166LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36167LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036168LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036169SHLIBEXT!$SHLIBEXT$ac_delim
36170LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36171LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36172LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36173LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36174LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36175LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36176LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36177LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36178LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36179LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036180BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36181ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036182OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036183ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036184RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036185RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036186LIBOBJS!$LIBOBJS$ac_delim
36187LTLIBOBJS!$LTLIBOBJS$ac_delim
36188_ACEOF
36189
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036190 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Reid Spencera773bd52006-08-04 18:18:08 +000036191 break
36192 elif $ac_last_try; then
36193 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36194echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36195 { (exit 1); exit 1; }; }
36196 else
36197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36198 fi
36199done
36200
36201ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36202if test -n "$ac_eof"; then
36203 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36204 ac_eof=`expr $ac_eof + 1`
36205fi
36206
36207cat >>$CONFIG_STATUS <<_ACEOF
36208cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36210_ACEOF
36211sed '
36212s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36213s/^/s,@/; s/!/@,|#_!!_#|/
36214:n
36215t n
36216s/'"$ac_delim"'$/,g/; t
36217s/$/\\/; p
36218N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36219' >>$CONFIG_STATUS <conf$$subs.sed
36220rm -f conf$$subs.sed
36221cat >>$CONFIG_STATUS <<_ACEOF
36222:end
36223s/|#_!!_#|//g
36224CEOF$ac_eof
36225_ACEOF
36226
36227
36228# VPATH may cause trouble with some makes, so we remove $(srcdir),
36229# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36230# trailing colons and then remove the whole line if VPATH becomes empty
36231# (actually we leave an empty line to preserve line numbers).
36232if test "x$srcdir" = x.; then
36233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36234s/:*\$(srcdir):*/:/
36235s/:*\${srcdir}:*/:/
36236s/:*@srcdir@:*/:/
36237s/^\([^=]*=[ ]*\):*/\1/
36238s/:*$//
36239s/^[^=]*=[ ]*$//
36240}'
36241fi
36242
36243cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036244fi # test -n "$CONFIG_FILES"
36245
Reid Spencera773bd52006-08-04 18:18:08 +000036246
36247for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36248do
36249 case $ac_tag in
36250 :[FHLC]) ac_mode=$ac_tag; continue;;
36251 esac
36252 case $ac_mode$ac_tag in
36253 :[FHL]*:*);;
36254 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36255echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36256 { (exit 1); exit 1; }; };;
36257 :[FH]-) ac_tag=-:-;;
36258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36259 esac
36260 ac_save_IFS=$IFS
36261 IFS=:
36262 set x $ac_tag
36263 IFS=$ac_save_IFS
36264 shift
36265 ac_file=$1
36266 shift
36267
36268 case $ac_mode in
36269 :L) ac_source=$1;;
36270 :[FH])
36271 ac_file_inputs=
36272 for ac_f
36273 do
36274 case $ac_f in
36275 -) ac_f="$tmp/stdin";;
36276 *) # Look for the file first in the build tree, then in the source tree
36277 # (if the path is not absolute). The absolute path cannot be DOS-style,
36278 # because $ac_f cannot contain `:'.
36279 test -f "$ac_f" ||
36280 case $ac_f in
36281 [\\/$]*) false;;
36282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36283 esac ||
36284 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36285echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36286 { (exit 1); exit 1; }; };;
36287 esac
36288 ac_file_inputs="$ac_file_inputs $ac_f"
36289 done
36290
36291 # Let's still pretend it is `configure' which instantiates (i.e., don't
36292 # use $as_me), people would be surprised to read:
36293 # /* config.h. Generated by config.status. */
36294 configure_input="Generated from "`IFS=:
36295 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36296 if test x"$ac_file" != x-; then
36297 configure_input="$ac_file. $configure_input"
36298 { echo "$as_me:$LINENO: creating $ac_file" >&5
36299echo "$as_me: creating $ac_file" >&6;}
36300 fi
36301
36302 case $ac_tag in
36303 *:-:* | *:-) cat >"$tmp/stdin";;
36304 esac
36305 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036306 esac
36307
Reid Spencera773bd52006-08-04 18:18:08 +000036308 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036310 X"$ac_file" : 'X\(//\)[^/]' \| \
36311 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036313echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36315 s//\1/
36316 q
36317 }
36318 /^X\(\/\/\)[^/].*/{
36319 s//\1/
36320 q
36321 }
36322 /^X\(\/\/\)$/{
36323 s//\1/
36324 q
36325 }
36326 /^X\(\/\).*/{
36327 s//\1/
36328 q
36329 }
36330 s/.*/./; q'`
36331 { as_dir="$ac_dir"
36332 case $as_dir in #(
36333 -*) as_dir=./$as_dir;;
36334 esac
36335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036336 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036337 while :; do
36338 case $as_dir in #(
36339 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36340 *) as_qdir=$as_dir;;
36341 esac
36342 as_dirs="'$as_qdir' $as_dirs"
36343 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036345 X"$as_dir" : 'X\(//\)[^/]' \| \
36346 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036348echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36350 s//\1/
36351 q
36352 }
36353 /^X\(\/\/\)[^/].*/{
36354 s//\1/
36355 q
36356 }
36357 /^X\(\/\/\)$/{
36358 s//\1/
36359 q
36360 }
36361 /^X\(\/\).*/{
36362 s//\1/
36363 q
36364 }
36365 s/.*/./; q'`
36366 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036367 done
Reid Spencera773bd52006-08-04 18:18:08 +000036368 test -z "$as_dirs" || eval "mkdir $as_dirs"
36369 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36370echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036371 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036372 ac_builddir=.
36373
Reid Spencera773bd52006-08-04 18:18:08 +000036374case "$ac_dir" in
36375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36376*)
John Criswell7a73b802003-06-30 21:59:07 +000036377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036378 # A ".." for each directory in $ac_dir_suffix.
36379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36380 case $ac_top_builddir_sub in
36381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36383 esac ;;
36384esac
36385ac_abs_top_builddir=$ac_pwd
36386ac_abs_builddir=$ac_pwd$ac_dir_suffix
36387# for backward compatibility:
36388ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036389
36390case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036391 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036392 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036393 ac_top_srcdir=$ac_top_builddir_sub
36394 ac_abs_top_srcdir=$ac_pwd ;;
36395 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036396 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036397 ac_top_srcdir=$srcdir
36398 ac_abs_top_srcdir=$srcdir ;;
36399 *) # Relative name.
36400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36401 ac_top_srcdir=$ac_top_build_prefix$srcdir
36402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036403esac
Reid Spencera773bd52006-08-04 18:18:08 +000036404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036405
John Criswell7a73b802003-06-30 21:59:07 +000036406
Reid Spencera773bd52006-08-04 18:18:08 +000036407 case $ac_mode in
36408 :F)
36409 #
36410 # CONFIG_FILE
36411 #
John Criswell7a73b802003-06-30 21:59:07 +000036412
36413 case $INSTALL in
36414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036416 esac
John Criswell7a73b802003-06-30 21:59:07 +000036417_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036418
36419cat >>$CONFIG_STATUS <<\_ACEOF
36420# If the template does not know about datarootdir, expand it.
36421# FIXME: This hack should be removed a few years after 2.60.
36422ac_datarootdir_hack=; ac_datarootdir_seen=
36423
36424case `sed -n '/datarootdir/ {
36425 p
36426 q
36427}
36428/@datadir@/p
36429/@docdir@/p
36430/@infodir@/p
36431/@localedir@/p
36432/@mandir@/p
36433' $ac_file_inputs` in
36434*datarootdir*) ac_datarootdir_seen=yes;;
36435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36436 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36437echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36438_ACEOF
36439cat >>$CONFIG_STATUS <<_ACEOF
36440 ac_datarootdir_hack='
36441 s&@datadir@&$datadir&g
36442 s&@docdir@&$docdir&g
36443 s&@infodir@&$infodir&g
36444 s&@localedir@&$localedir&g
36445 s&@mandir@&$mandir&g
36446 s&\\\${datarootdir}&$datarootdir&g' ;;
36447esac
36448_ACEOF
36449
36450# Neutralize VPATH when `$srcdir' = `.'.
36451# Shell code in configure.ac might set extrasub.
36452# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036453cat >>$CONFIG_STATUS <<_ACEOF
36454 sed "$ac_vpsub
36455$extrasub
36456_ACEOF
36457cat >>$CONFIG_STATUS <<\_ACEOF
36458:t
36459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036460s&@configure_input@&$configure_input&;t t
36461s&@top_builddir@&$ac_top_builddir_sub&;t t
36462s&@srcdir@&$ac_srcdir&;t t
36463s&@abs_srcdir@&$ac_abs_srcdir&;t t
36464s&@top_srcdir@&$ac_top_srcdir&;t t
36465s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36466s&@builddir@&$ac_builddir&;t t
36467s&@abs_builddir@&$ac_abs_builddir&;t t
36468s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36469s&@INSTALL@&$ac_INSTALL&;t t
36470$ac_datarootdir_hack
36471" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036472
Reid Spencera773bd52006-08-04 18:18:08 +000036473test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36474 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36476 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36477which seems to be undefined. Please make sure it is defined." >&5
36478echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36479which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036480
Reid Spencera773bd52006-08-04 18:18:08 +000036481 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036482 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036483 -) cat "$tmp/out"; rm -f "$tmp/out";;
36484 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036485 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036486 ;;
36487 :H)
36488 #
36489 # CONFIG_HEADER
36490 #
John Criswell7a73b802003-06-30 21:59:07 +000036491_ACEOF
36492
Reid Spencera773bd52006-08-04 18:18:08 +000036493# Transform confdefs.h into a sed script `conftest.defines', that
36494# substitutes the proper values into config.h.in to produce config.h.
36495rm -f conftest.defines conftest.tail
36496# First, append a space to every undef/define line, to ease matching.
36497echo 's/$/ /' >conftest.defines
36498# Then, protect against being on the right side of a sed subst, or in
36499# an unquoted here document, in config.status. If some macros were
36500# called several times there might be several #defines for the same
36501# symbol, which is useless. But do not sort them, since the last
36502# AC_DEFINE must be honored.
36503ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36504# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36505# NAME is the cpp macro being defined, VALUE is the value it is being given.
36506# PARAMS is the parameter list in the macro definition--in most cases, it's
36507# just an empty string.
36508ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36509ac_dB='\\)[ (].*,\\1define\\2'
36510ac_dC=' '
36511ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036512
Reid Spencera773bd52006-08-04 18:18:08 +000036513uniq confdefs.h |
36514 sed -n '
36515 t rset
36516 :rset
36517 s/^[ ]*#[ ]*define[ ][ ]*//
36518 t ok
36519 d
36520 :ok
36521 s/[\\&,]/\\&/g
36522 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36523 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36524 ' >>conftest.defines
36525
36526# Remove the space that was appended to ease matching.
36527# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036528# example, in the case of _POSIX_SOURCE, which is predefined and required
36529# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036530# (The regexp can be short, since the line contains either #define or #undef.)
36531echo 's/ $//
36532s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036533
Reid Spencera773bd52006-08-04 18:18:08 +000036534# Break up conftest.defines:
36535ac_max_sed_lines=50
36536
36537# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36538# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36539# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36540# et cetera.
36541ac_in='$ac_file_inputs'
36542ac_out='"$tmp/out1"'
36543ac_nxt='"$tmp/out2"'
36544
36545while :
John Criswell7a73b802003-06-30 21:59:07 +000036546do
Reid Spencera773bd52006-08-04 18:18:08 +000036547 # Write a here document:
36548 cat >>$CONFIG_STATUS <<_ACEOF
36549 # First, check the format of the line:
36550 cat >"\$tmp/defines.sed" <<\\CEOF
36551/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36552/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36553b
36554:def
36555_ACEOF
36556 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036557 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036558 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36559 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36560 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36561 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036562 rm -f conftest.defines
36563 mv conftest.tail conftest.defines
36564done
Reid Spencera773bd52006-08-04 18:18:08 +000036565rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036566
Reid Spencera773bd52006-08-04 18:18:08 +000036567echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036568cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036569 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036570 echo "/* $configure_input */" >"$tmp/config.h"
36571 cat "$ac_result" >>"$tmp/config.h"
36572 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36574echo "$as_me: $ac_file is unchanged" >&6;}
36575 else
John Criswell7a73b802003-06-30 21:59:07 +000036576 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036577 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036578 fi
36579 else
Reid Spencera773bd52006-08-04 18:18:08 +000036580 echo "/* $configure_input */"
36581 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036582 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036583 rm -f "$tmp/out12"
36584 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036585
Reid Spencera773bd52006-08-04 18:18:08 +000036586 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36587echo "$as_me: executing $ac_file commands" >&6;}
36588 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036589 esac
John Criswell7a73b802003-06-30 21:59:07 +000036590
Reid Spencera773bd52006-08-04 18:18:08 +000036591
36592 case $ac_file$ac_mode in
36593 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036595 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036597 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036599 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036601 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036603 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036605 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036606 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036607 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036608 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036609 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036610 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036611 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036612 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036613 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036614 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036615 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036617 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036618 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036619
36620 esac
36621done # for ac_tag
36622
John Criswell7a73b802003-06-30 21:59:07 +000036623
36624{ (exit 0); exit 0; }
36625_ACEOF
36626chmod +x $CONFIG_STATUS
36627ac_clean_files=$ac_clean_files_save
36628
36629
36630# configure is writing to config.log, and then calls config.status.
36631# config.status does its own redirection, appending to config.log.
36632# Unfortunately, on DOS this fails, as config.log is still kept open
36633# by configure, so config.status won't be able to write to it; its
36634# output is simply discarded. So we exec the FD to /dev/null,
36635# effectively closing config.log, so it can be properly (re)opened and
36636# appended to by config.status. When coming back to configure, we
36637# need to make the FD available again.
36638if test "$no_create" != yes; then
36639 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036640 ac_config_status_args=
36641 test "$silent" = yes &&
36642 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036643 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036645 exec 5>>config.log
36646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36647 # would make configure fail if this is the last instruction.
36648 $ac_cs_success || { (exit 1); exit 1; }
36649fi
36650
John Criswell12399a12003-09-30 15:55:44 +000036651#
36652# CONFIG_SUBDIRS section.
36653#
36654if test "$no_recursion" != yes; then
36655
36656 # Remove --cache-file and --srcdir arguments so they do not pile up.
36657 ac_sub_configure_args=
36658 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036659 eval "set x $ac_configure_args"
36660 shift
36661 for ac_arg
36662 do
John Criswell12399a12003-09-30 15:55:44 +000036663 if test -n "$ac_prev"; then
36664 ac_prev=
36665 continue
36666 fi
36667 case $ac_arg in
36668 -cache-file | --cache-file | --cache-fil | --cache-fi \
36669 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36670 ac_prev=cache_file ;;
36671 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36672 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36673 | --c=*)
36674 ;;
36675 --config-cache | -C)
36676 ;;
36677 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36678 ac_prev=srcdir ;;
36679 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36680 ;;
36681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36682 ac_prev=prefix ;;
36683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036685 *)
36686 case $ac_arg in
36687 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36688 esac
36689 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036690 esac
36691 done
36692
36693 # Always prepend --prefix to ensure using the same prefix
36694 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036695 ac_arg="--prefix=$prefix"
36696 case $ac_arg in
36697 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36698 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036699 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036700
36701 ac_popdir=`pwd`
36702 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36703
36704 # Do not complain, so a configure script can configure whichever
36705 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036706 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036707
Reid Spencera773bd52006-08-04 18:18:08 +000036708 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36709 echo "$as_me:$LINENO: $ac_msg" >&5
36710 echo "$ac_msg" >&6
36711 { as_dir="$ac_dir"
36712 case $as_dir in #(
36713 -*) as_dir=./$as_dir;;
36714 esac
36715 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036716 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036717 while :; do
36718 case $as_dir in #(
36719 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36720 *) as_qdir=$as_dir;;
36721 esac
36722 as_dirs="'$as_qdir' $as_dirs"
36723 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036725 X"$as_dir" : 'X\(//\)[^/]' \| \
36726 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036728echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36730 s//\1/
36731 q
36732 }
36733 /^X\(\/\/\)[^/].*/{
36734 s//\1/
36735 q
36736 }
36737 /^X\(\/\/\)$/{
36738 s//\1/
36739 q
36740 }
36741 /^X\(\/\).*/{
36742 s//\1/
36743 q
36744 }
36745 s/.*/./; q'`
36746 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036747 done
Reid Spencera773bd52006-08-04 18:18:08 +000036748 test -z "$as_dirs" || eval "mkdir $as_dirs"
36749 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36750echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036751 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036752 ac_builddir=.
36753
Reid Spencera773bd52006-08-04 18:18:08 +000036754case "$ac_dir" in
36755.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36756*)
John Criswell12399a12003-09-30 15:55:44 +000036757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036758 # A ".." for each directory in $ac_dir_suffix.
36759 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36760 case $ac_top_builddir_sub in
36761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36763 esac ;;
36764esac
36765ac_abs_top_builddir=$ac_pwd
36766ac_abs_builddir=$ac_pwd$ac_dir_suffix
36767# for backward compatibility:
36768ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036769
36770case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036771 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036772 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036773 ac_top_srcdir=$ac_top_builddir_sub
36774 ac_abs_top_srcdir=$ac_pwd ;;
36775 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036776 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036777 ac_top_srcdir=$srcdir
36778 ac_abs_top_srcdir=$srcdir ;;
36779 *) # Relative name.
36780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36781 ac_top_srcdir=$ac_top_build_prefix$srcdir
36782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036783esac
Reid Spencera773bd52006-08-04 18:18:08 +000036784ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036785
36786
Reid Spencera773bd52006-08-04 18:18:08 +000036787 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036788
36789 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036790 if test -f "$ac_srcdir/configure.gnu"; then
36791 ac_sub_configure=$ac_srcdir/configure.gnu
36792 elif test -f "$ac_srcdir/configure"; then
36793 ac_sub_configure=$ac_srcdir/configure
36794 elif test -f "$ac_srcdir/configure.in"; then
36795 # This should be Cygnus configure.
36796 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036797 else
36798 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36799echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36800 ac_sub_configure=
36801 fi
36802
36803 # The recursion is here.
36804 if test -n "$ac_sub_configure"; then
36805 # Make the cache file name correct relative to the subdirectory.
36806 case $cache_file in
36807 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036808 *) # Relative name.
36809 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036810 esac
36811
Reid Spencera773bd52006-08-04 18:18:08 +000036812 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36813echo "$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 +000036814 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036815 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36816 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036817 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036818echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36819 { (exit 1); exit 1; }; }
36820 fi
36821
Reid Spencera773bd52006-08-04 18:18:08 +000036822 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036823 done
36824fi
36825