blob: 44b90d55fe82e1e28ce2736d2aa53e4f789c8618 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000844ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000845EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000846BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000847CXX
848CXXFLAGS
849ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000882OCAMLC
883OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000884OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000885OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000886GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000900LLVMGCCCOMMAND
901LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000930ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000931RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000932RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000933LIBOBJS
934LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000935ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000936 ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000954projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000960projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000988# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000997includedir='${prefix}/include'
998oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001010ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001015 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001016 ac_prev=
1017 continue
1018 fi
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
Reid Spencera773bd52006-08-04 18:18:08 +00001027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001052 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001054 datadir=$ac_optarg ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
John Criswell7a73b802003-06-30 21:59:07 +00001063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
Reid Spencera773bd52006-08-04 18:18:08 +00001116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
John Criswell7a73b802003-06-30 21:59:07 +00001122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
Reid Spencera773bd52006-08-04 18:18:08 +00001146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
John Criswell7a73b802003-06-30 21:59:07 +00001151 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
Reid Spencera773bd52006-08-04 18:18:08 +00001220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
John Criswell7a73b802003-06-30 21:59:07 +00001230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001286 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001326 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
Reid Spencera773bd52006-08-04 18:18:08 +00001346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001351do
Reid Spencera773bd52006-08-04 18:18:08 +00001352 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001353 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001356 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
Reid Spencera773bd52006-08-04 18:18:08 +00001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
John Criswell7a73b802003-06-30 21:59:07 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001404echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
Reid Spencera773bd52006-08-04 18:18:08 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001432 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001463\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
John Criswell7a73b802003-06-30 21:59:07 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001536 --enable-optimized Compile with optimizations enabled (default is NO)
1537 --enable-profiling Compile with profiling enabled (default is NO)
1538 --enable-assertions Compile with assertion checks enabled (default is
1539 YES)
David Greenea696d242007-06-28 19:36:08 +00001540 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001541 Compile with expensive debug checks enabled (default
1542 is NO)
1543 --enable-debug-runtime Build runtime libs with debug symbols (default is
1544 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001545 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001546 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001547 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001548 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001549 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001550 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001551 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001552 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1553 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001554 --enable-bindings Build specific language bindings:
1555 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001556 --enable-libffi Check for the presence of libffi (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001557 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001560 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001562 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001563 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001564 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001565 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001566
1567Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001570 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1571 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001572 --with-llvmgcc Specify location of llvm-gcc driver (default
1573 searches PATH)
1574 --with-llvmgxx Specify location of llvm-g++ driver (default
1575 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001576 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001577 --with-ocaml-libdir Specify install location for ocaml bindings (default
1578 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001579 --with-binutils-include Specify path to binutils/include/ containing
1580 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001581 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001586 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CC C compiler command
1590 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001595 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to <llvmbugs@cs.uiuc.edu>.
1606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001607ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001613 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001614 ac_builddir=.
1615
Reid Spencera773bd52006-08-04 18:18:08 +00001616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
John Criswell7a73b802003-06-30 21:59:07 +00001619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001631
1632case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001633 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001645esac
Reid Spencera773bd52006-08-04 18:18:08 +00001646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001647
Reid Spencera773bd52006-08-04 18:18:08 +00001648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001656 else
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001660 done
1661fi
1662
Reid Spencera773bd52006-08-04 18:18:08 +00001663test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001664if $ac_init_version; then
1665 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001666llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001667generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001668
Reid Spencera773bd52006-08-04 18:18:08 +00001669Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001673
Tanya Lattnercf067672008-01-17 05:57:22 +00001674Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001676 exit
John Criswell7a73b802003-06-30 21:59:07 +00001677fi
Reid Spencera773bd52006-08-04 18:18:08 +00001678cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001679This file contains any messages produced by compilers while
1680running configure, to aid debugging if configure makes a mistake.
1681
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001682It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001683generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001684
1685 $ $0 $@
1686
1687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001688exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001689{
1690cat <<_ASUNAME
1691## --------- ##
1692## Platform. ##
1693## --------- ##
1694
1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703
1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711
1712_ASUNAME
1713
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 echo "PATH: $as_dir"
1720done
Reid Spencera773bd52006-08-04 18:18:08 +00001721IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001722
1723} >&5
1724
1725cat >&5 <<_ACEOF
1726
1727
1728## ----------- ##
1729## Core tests. ##
1730## ----------- ##
1731
1732_ACEOF
1733
1734
1735# Keep a trace of the command line.
1736# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001738# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001740ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001741ac_configure_args0=
1742ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_must_keep_next=false
1744for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001745do
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 for ac_arg
1747 do
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001753 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 case $ac_pass in
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 2)
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001761 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1771 ;;
1772 -* ) ac_must_keep_next=true ;;
1773 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001775 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ;;
1777 esac
1778 done
John Criswell7a73b802003-06-30 21:59:07 +00001779done
John Criswell0c38eaf2003-09-10 15:17:25 +00001780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781$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 +00001782
1783# When interrupted or exit'd, cleanup temporary files, and complete
1784# config.log. We remove comments because anyway the quotes in there
1785# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001786# WARNING: Use '\'' to represent an apostrophe within the trap.
1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001788trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1790 {
1791 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001792
John Criswell7a73b802003-06-30 21:59:07 +00001793 cat <<\_ASBOX
1794## ---------------- ##
1795## Cache variables. ##
1796## ---------------- ##
1797_ASBOX
1798 echo
1799 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001800(
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
1806 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 *) $as_unset $ac_var ;;
1812 esac ;;
1813 esac
1814 done
John Criswell7a73b802003-06-30 21:59:07 +00001815 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001822 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001825 esac |
1826 sort
1827)
John Criswell7a73b802003-06-30 21:59:07 +00001828 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001829
1830 cat <<\_ASBOX
1831## ----------------- ##
1832## Output variables. ##
1833## ----------------- ##
1834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_vars
1837 do
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001843 done | sort
1844 echo
1845
1846 if test -n "$ac_subst_files"; then
1847 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001848## ------------------- ##
1849## File substitutions. ##
1850## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_files
1854 do
Reid Spencera773bd52006-08-04 18:18:08 +00001855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001860 done | sort
1861 echo
1862 fi
1863
John Criswell7a73b802003-06-30 21:59:07 +00001864 if test -s confdefs.h; then
1865 cat <<\_ASBOX
1866## ----------- ##
1867## confdefs.h. ##
1868## ----------- ##
1869_ASBOX
1870 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001871 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001872 echo
1873 fi
1874 test "$ac_signal" != 0 &&
1875 echo "$as_me: caught signal $ac_signal"
1876 echo "$as_me: exit $exit_status"
1877 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001880 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001881' 0
John Criswell7a73b802003-06-30 21:59:07 +00001882for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884done
1885ac_signal=0
1886
1887# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001888rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001889
1890# Predefined preprocessor variables.
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_NAME "$PACKAGE_NAME"
1894_ACEOF
1895
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_VERSION "$PACKAGE_VERSION"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_STRING "$PACKAGE_STRING"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914_ACEOF
1915
1916
1917# Let the site file select an alternate cache file if it wants to.
1918# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001919if test -n "$CONFIG_SITE"; then
1920 set x "$CONFIG_SITE"
1921elif test "x$prefix" != xNONE; then
1922 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1923else
1924 set x "$ac_default_prefix/share/config.site" \
1925 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001926fi
Reid Spencera773bd52006-08-04 18:18:08 +00001927shift
1928for ac_site_file
1929do
John Criswell7a73b802003-06-30 21:59:07 +00001930 if test -r "$ac_site_file"; then
1931 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936done
1937
1938if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943echo "$as_me: loading cache $cache_file" >&6;}
1944 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001947 esac
1948 fi
1949else
1950 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001958for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1994 fi
1995done
1996if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2002fi
2003
Reid Spencera773bd52006-08-04 18:18:08 +00002004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
John Criswell7a73b802003-06-30 21:59:07 +00002028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034
2035
Tanya Lattnercf067672008-01-17 05:57:22 +00002036LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037
2038
2039
2040
2041
2042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002045for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
Reid Spencera773bd52006-08-04 18:18:08 +00002054 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059done
2060if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002063 { (exit 1); exit 1; }; }
2064fi
Reid Spencera773bd52006-08-04 18:18:08 +00002065
2066# These three variables are undocumented and unsupported,
2067# and are intended to be withdrawn in a future Autoconf release.
2068# They can cause serious problems if a builder's source tree is in a directory
2069# whose full name contains unusual characters.
2070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
John Criswell7a73b802003-06-30 21:59:07 +00002074
John Criswell392aaa32003-07-22 19:18:09 +00002075
Reid Spencer2706f8c2004-09-19 23:53:36 +00002076if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002079echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 fi
John Criswell93e1c722003-09-15 17:04:06 +00002082fi
2083
John Criswell33a911a2003-11-25 20:36:46 +00002084for i in `ls ${srcdir}/projects`
2085do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 if test -d ${srcdir}/projects/${i} ; then
2087 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 CVS) ;;
2089 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002095 # llvm-test is the old name of the test-suite, kept here for backwards
2096 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002097 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002099 test-suite) subdirs="$subdirs projects/test-suite"
2100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002110 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002111 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002116 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002118 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 esac
John Criswell33a911a2003-11-25 20:36:46 +00002120 fi
2121done
John Criswell559a6c12003-09-30 16:31:48 +00002122
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002128 { (exit 1); exit 1; }; }
2129
Reid Spencera773bd52006-08-04 18:18:08 +00002130{ echo "$as_me:$LINENO: checking build system type" >&5
2131echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002132if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
Reid Spencera773bd52006-08-04 18:18:08 +00002135 ac_build_alias=$build_alias
2136test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 1); exit 1; }; }
2146
2147fi
Reid Spencera773bd52006-08-04 18:18:08 +00002148{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149echo "${ECHO_T}$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
2152*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2155esac
John Criswell7a73b802003-06-30 21:59:07 +00002156build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_build
2159shift
2160build_cpu=$1
2161build_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165build_os=$*
2166IFS=$ac_save_IFS
2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002168
2169
Reid Spencera773bd52006-08-04 18:18:08 +00002170{ echo "$as_me:$LINENO: checking host system type" >&5
2171echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002172if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
Reid Spencera773bd52006-08-04 18:18:08 +00002175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2177else
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002182fi
John Criswell7a73b802003-06-30 21:59:07 +00002183
2184fi
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186echo "${ECHO_T}$ac_cv_host" >&6; }
2187case $ac_cv_host in
2188*-*-*) ;;
2189*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2192esac
John Criswell7a73b802003-06-30 21:59:07 +00002193host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_host
2196shift
2197host_cpu=$1
2198host_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202host_os=$*
2203IFS=$ac_save_IFS
2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002205
2206
Reid Spencera773bd52006-08-04 18:18:08 +00002207{ echo "$as_me:$LINENO: checking target system type" >&5
2208echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002209if test "${ac_cv_target+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
Reid Spencera773bd52006-08-04 18:18:08 +00002212 if test "x$target_alias" = x; then
2213 ac_cv_target=$ac_cv_host
2214else
2215 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221fi
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223echo "${ECHO_T}$ac_cv_target" >&6; }
2224case $ac_cv_target in
2225*-*-*) ;;
2226*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227echo "$as_me: error: invalid value of canonical target" >&2;}
2228 { (exit 1); exit 1; }; };;
2229esac
John Criswell7a73b802003-06-30 21:59:07 +00002230target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_target
2233shift
2234target_cpu=$1
2235target_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239target_os=$*
2240IFS=$ac_save_IFS
2241case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002242
2243
2244# The aliases save the names the user supplied, while $host etc.
2245# will get canonicalized.
2246test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2248 NONENONEs,x,x, &&
2249 program_prefix=${target_alias}-
2250
Reid Spencera773bd52006-08-04 18:18:08 +00002251{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002256 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="AIX"
2261 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002262 *-*-irix*)
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="IRIX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Cygwin"
2271 llvm_cv_platform_type="Unix" ;;
2272 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002274 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="Darwin"
2276 llvm_cv_platform_type="Unix" ;;
2277 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="FreeBSD"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002282 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002285 llvm_cv_os_type="OpenBSD"
2286 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002287 *-*-netbsd*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="NetBSD"
2291 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002292 *-*-dragonfly*)
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="DragonFly"
2296 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002297 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002300 llvm_cv_os_type="HP-UX"
2301 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 llvm_cv_os_type="Interix"
2306 llvm_cv_platform_type="Unix" ;;
2307 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 llvm_cv_os_type="Linux"
2311 llvm_cv_platform_type="Unix" ;;
2312 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,-z,allextract"
2314 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315 llvm_cv_os_type="SunOS"
2316 llvm_cv_platform_type="Unix" ;;
2317 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="Win32"
2321 llvm_cv_platform_type="Win32" ;;
2322 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="MingW"
2326 llvm_cv_platform_type="Win32" ;;
2327 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option=""
2329 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="Unknown"
2331 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002332esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002333fi
Reid Spencera773bd52006-08-04 18:18:08 +00002334{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002340 { (exit 1); exit 1; }; }
2341fi
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344
2345
Reid Spencera773bd52006-08-04 18:18:08 +00002346LINKALL=$llvm_cv_link_all_option
2347
2348NOLINKALL=$llvm_cv_no_link_all_option
2349
2350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351case $llvm_cv_platform_type in
2352 Unix)
2353
2354cat >>confdefs.h <<\_ACEOF
2355#define LLVM_ON_UNIX 1
2356_ACEOF
2357
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002358 LLVM_ON_UNIX=1
2359
2360 LLVM_ON_WIN32=0
2361
Reid Spencer7b3e8512004-12-24 06:29:05 +00002362 ;;
2363 Win32)
2364
2365cat >>confdefs.h <<\_ACEOF
2366#define LLVM_ON_WIN32 1
2367_ACEOF
2368
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002369 LLVM_ON_UNIX=0
2370
2371 LLVM_ON_WIN32=1
2372
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373 ;;
2374esac
2375
Reid Spencera773bd52006-08-04 18:18:08 +00002376{ echo "$as_me:$LINENO: checking target architecture" >&5
2377echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378if test "${llvm_cv_target_arch+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002382 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002383 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002384 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2385 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002386 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002387 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002388 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002389 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002390 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002391 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002392 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002393 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002394esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395fi
Reid Spencera773bd52006-08-04 18:18:08 +00002396{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399if test "$llvm_cv_target_arch" = "Unknown" ; then
2400 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2402fi
John Criswell76595452003-07-01 22:07:39 +00002403
Bill Wendlinga0833352009-03-12 04:10:09 +00002404ARCH=$llvm_cv_target_arch
2405
2406
2407ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002412if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002429 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 +00002430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434done
2435done
Reid Spencera773bd52006-08-04 18:18:08 +00002436IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002442 { echo "$as_me:$LINENO: result: $CC" >&5
2443echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444else
Reid Spencera773bd52006-08-04 18:18:08 +00002445 { echo "$as_me:$LINENO: result: no" >&5
2446echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447fi
2448
Reid Spencera773bd52006-08-04 18:18:08 +00002449
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450fi
2451if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002469 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 +00002470 ac_cv_prog_ac_ct_CC="gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474done
2475done
Reid Spencera773bd52006-08-04 18:18:08 +00002476IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
Reid Spencera773bd52006-08-04 18:18:08 +00002485 { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487fi
2488
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet. If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&5
2497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet. If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500ac_tool_warned=yes ;;
2501esac
2502 CC=$ac_ct_CC
2503 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
2505 CC="$ac_cv_prog_CC"
2506fi
2507
2508if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002509 if test -n "$ac_tool_prefix"; then
2510 # 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 +00002511set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002526 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 +00002527 ac_cv_prog_CC="${ac_tool_prefix}cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531done
2532done
Reid Spencera773bd52006-08-04 18:18:08 +00002533IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534
2535fi
2536fi
2537CC=$ac_cv_prog_CC
2538if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002539 { echo "$as_me:$LINENO: result: $CC" >&5
2540echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541else
Reid Spencera773bd52006-08-04 18:18:08 +00002542 { echo "$as_me:$LINENO: result: no" >&5
2543echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545
Reid Spencera773bd52006-08-04 18:18:08 +00002546
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548fi
2549if test -z "$CC"; then
2550 # Extract the first word of "cc", so it can be a program name with args.
2551set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559else
2560 ac_prog_rejected=no
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002567 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 +00002568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569 ac_prog_rejected=yes
2570 continue
2571 fi
2572 ac_cv_prog_CC="cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
Reid Spencera773bd52006-08-04 18:18:08 +00002578IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579
2580if test $ac_prog_rejected = yes; then
2581 # We found a bogon in the path, so make sure we never use it.
2582 set dummy $ac_cv_prog_CC
2583 shift
2584 if test $# != 0; then
2585 # We chose a different compiler from the bogus one.
2586 # However, it has the same basename, so the bogon will be chosen
2587 # first if we set CC to just the basename; use the full file name.
2588 shift
2589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2590 fi
2591fi
2592fi
2593fi
2594CC=$ac_cv_prog_CC
2595if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002596 { echo "$as_me:$LINENO: result: $CC" >&5
2597echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598else
Reid Spencera773bd52006-08-04 18:18:08 +00002599 { echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601fi
2602
Reid Spencera773bd52006-08-04 18:18:08 +00002603
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604fi
2605if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002607 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002608 do
2609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002625 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 +00002626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
Reid Spencera773bd52006-08-04 18:18:08 +00002632IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002633
2634fi
2635fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: $CC" >&5
2639echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002640else
Reid Spencera773bd52006-08-04 18:18:08 +00002641 { echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002643fi
2644
Reid Spencera773bd52006-08-04 18:18:08 +00002645
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002647 done
2648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649if test -z "$CC"; then
2650 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002651 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002652do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002669 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 +00002670 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675done
Reid Spencera773bd52006-08-04 18:18:08 +00002676IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002677
2678fi
2679fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002684else
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002687fi
2688
Reid Spencera773bd52006-08-04 18:18:08 +00002689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002691done
John Criswell7a73b802003-06-30 21:59:07 +00002692
Reid Spencera773bd52006-08-04 18:18:08 +00002693 if test "x$ac_ct_CC" = x; then
2694 CC=""
2695 else
2696 case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699whose name does not start with the host triplet. If you think this
2700configuration is useful to you, please write to autoconf@gnu.org." >&5
2701echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702whose name does not start with the host triplet. If you think this
2703configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704ac_tool_warned=yes ;;
2705esac
2706 CC=$ac_ct_CC
2707 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708fi
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711
2712
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714See \`config.log' for more details." >&5
2715echo "$as_me: error: no acceptable C compiler found in \$PATH
2716See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002720echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002721ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002722{ (ac_try="$ac_compiler --version >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002732{ (ac_try="$ac_compiler -v >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002742{ (ac_try="$ac_compiler -V >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752
2753cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002759
John Criswell7a73b802003-06-30 21:59:07 +00002760int
2761main ()
2762{
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002769ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002770# Try to create an executable without -o first, disregard a.out.
2771# It will help us diagnose broken compilers, and finding out an intuition
2772# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002773{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002776#
2777# List of possible output files, starting from the most likely.
2778# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2779# only as a last resort. b.out is created by i960 compilers.
2780ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2781#
2782# The IRIX 6 linker writes into existing files which may not be
2783# executable, retaining their permissions. Remove them first so a
2784# subsequent execution test works.
2785ac_rmfiles=
2786for ac_file in $ac_files
2787do
2788 case $ac_file in
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 esac
2792done
2793rm -f $ac_rmfiles
2794
2795if { (ac_try="$ac_link_default"
2796case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799esac
2800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807# in a Makefile. We should not override ac_cv_exeext if it was cached,
2808# so that the user can short-circuit this test for compilers unknown to
2809# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002810for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002811do
2812 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002813 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002817 # We found the default executable, but exeext='' is most
2818 # certainly right.
2819 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002820 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 then :; else
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 fi
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2829 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002831 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002832 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002833 esac
2834done
Reid Spencera773bd52006-08-04 18:18:08 +00002835test "$ac_cv_exeext" = no && ac_cv_exeext=
2836
John Criswell7a73b802003-06-30 21:59:07 +00002837else
2838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002839sed 's/^/| /' conftest.$ac_ext >&5
2840
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002841{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002842See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002843echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002844See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002845 { (exit 77); exit 77; }; }
2846fi
2847
2848ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002849{ echo "$as_me:$LINENO: result: $ac_file" >&5
2850echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002851
Reid Spencera773bd52006-08-04 18:18:08 +00002852# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002853# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002854{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002856# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857# If not cross compiling, check that we can run a simple program.
2858if test "$cross_compiling" != yes; then
2859 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 cross_compiling=no
2870 else
2871 if test "$cross_compiling" = maybe; then
2872 cross_compiling=yes
2873 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002877echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002878If you meant to cross compile, use \`--host'.
2879See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002880 { (exit 1); exit 1; }; }
2881 fi
2882 fi
2883fi
Reid Spencera773bd52006-08-04 18:18:08 +00002884{ echo "$as_me:$LINENO: result: yes" >&5
2885echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002886
John Criswell0c38eaf2003-09-10 15:17:25 +00002887rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002888ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002889# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002890# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002891{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
Reid Spencera773bd52006-08-04 18:18:08 +00002896{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898if { (ac_try="$ac_link"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910# work properly (i.e., refer to `conftest.exe'), while it won't with
2911# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002912for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002914 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002917 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002918 * ) break;;
2919 esac
2920done
2921else
John Criswell0c38eaf2003-09-10 15:17:25 +00002922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002926 { (exit 1); exit 1; }; }
2927fi
2928
2929rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002930{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002932
2933rm -f conftest.$ac_ext
2934EXEEXT=$ac_cv_exeext
2935ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002936{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002938if test "${ac_cv_objext+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002947
John Criswell7a73b802003-06-30 21:59:07 +00002948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002969 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 break;;
2973 esac
2974done
2975else
2976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980See \`config.log' for more details." >&5
2981echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002983 { (exit 1); exit 1; }; }
2984fi
2985
2986rm -f conftest.$ac_cv_objext conftest.$ac_ext
2987fi
Reid Spencera773bd52006-08-04 18:18:08 +00002988{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002990OBJEXT=$ac_cv_objext
2991ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002992{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002994if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003003
John Criswell7a73b802003-06-30 21:59:07 +00003004int
3005main ()
3006{
3007#ifndef __GNUC__
3008 choke me
3009#endif
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003023 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003049 ac_compiler_gnu=yes
3050else
3051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003052sed 's/^/| /' conftest.$ac_ext >&5
3053
Reid Spencera773bd52006-08-04 18:18:08 +00003054 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003055fi
Reid Spencera773bd52006-08-04 18:18:08 +00003056
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003058ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003059
3060fi
Reid Spencera773bd52006-08-04 18:18:08 +00003061{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003063GCC=`test $ac_compiler_gnu = yes && echo yes`
3064ac_test_CFLAGS=${CFLAGS+set}
3065ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003066{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003068if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
Reid Spencera773bd52006-08-04 18:18:08 +00003071 ac_save_c_werror_flag=$ac_c_werror_flag
3072 ac_c_werror_flag=yes
3073 ac_cv_prog_cc_g=no
3074 CFLAGS="-g"
3075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003081
John Criswell7a73b802003-06-30 21:59:07 +00003082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003091if { (ac_try="$ac_compile"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003124 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003125else
3126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003127sed 's/^/| /' conftest.$ac_ext >&5
3128
Reid Spencera773bd52006-08-04 18:18:08 +00003129 CFLAGS=""
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140
3141 ;
3142 return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003179 :
3180else
3181 echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (ac_try="$ac_compile"
3203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003235 ac_cv_prog_cc_g=yes
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240
John Criswell7a73b802003-06-30 21:59:07 +00003241fi
Reid Spencera773bd52006-08-04 18:18:08 +00003242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003244fi
Reid Spencera773bd52006-08-04 18:18:08 +00003245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251fi
3252{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003259 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003261 fi
3262else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003265 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003267 fi
3268fi
Reid Spencera773bd52006-08-04 18:18:08 +00003269{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
Reid Spencera773bd52006-08-04 18:18:08 +00003274 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003308 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003311 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
Reid Spencera773bd52006-08-04 18:18:08 +00003314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316#define FOO(x) 'x'
3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319int test (int i, double x);
3320struct s1 {int (*f) (int a);};
3321struct s2 {int (*f) (double a);};
3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323int argc;
3324char **argv;
3325int
3326main ()
3327{
3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331}
3332_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003371 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
Reid Spencera773bd52006-08-04 18:18:08 +00003376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377fi
Reid Spencera773bd52006-08-04 18:18:08 +00003378
3379rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381done
Reid Spencera773bd52006-08-04 18:18:08 +00003382rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383CC=$ac_save_CC
3384
3385fi
Reid Spencera773bd52006-08-04 18:18:08 +00003386# AC_CACHE_VAL
3387case "x$ac_cv_prog_cc_c89" in
3388 x)
3389 { echo "$as_me:$LINENO: result: none needed" >&5
3390echo "${ECHO_T}none needed" >&6; } ;;
3391 xno)
3392 { echo "$as_me:$LINENO: result: unsupported" >&5
3393echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003395 CC="$CC $ac_cv_prog_cc_c89"
3396 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3397echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398esac
3399
John Criswell0c38eaf2003-09-10 15:17:25 +00003400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401ac_ext=c
3402ac_cpp='$CPP $CPPFLAGS'
3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003413{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3414echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415# On Suns, sometimes $CPP names a directory.
3416if test -n "$CPP" && test -d "$CPP"; then
3417 CPP=
3418fi
3419if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3425 do
3426 ac_preproc_ok=false
3427for ac_c_preproc_warn_flag in '' yes
3428do
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441#ifdef __STDC__
3442# include <limits.h>
3443#else
3444# include <assert.h>
3445#endif
3446 Syntax error
3447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003448if { (ac_try="$ac_cpp conftest.$ac_ext"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 else
3465 ac_cpp_err=
3466 fi
3467else
3468 ac_cpp_err=yes
3469fi
3470if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471 :
3472else
3473 echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 # Broken: fails on valid input.
3477continue
3478fi
Reid Spencera773bd52006-08-04 18:18:08 +00003479
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480rm -f conftest.err conftest.$ac_ext
3481
Reid Spencera773bd52006-08-04 18:18:08 +00003482 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
3490#include <ac_nonexistent.h>
3491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003492if { (ac_try="$ac_cpp conftest.$ac_ext"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3508 else
3509 ac_cpp_err=
3510 fi
3511else
3512 ac_cpp_err=yes
3513fi
3514if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515 # Broken: success on invalid input.
3516continue
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 # Passes both tests.
3522ac_preproc_ok=:
3523break
3524fi
Reid Spencera773bd52006-08-04 18:18:08 +00003525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003526rm -f conftest.err conftest.$ac_ext
3527
3528done
3529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530rm -f conftest.err conftest.$ac_ext
3531if $ac_preproc_ok; then
3532 break
3533fi
3534
3535 done
3536 ac_cv_prog_CPP=$CPP
3537
3538fi
3539 CPP=$ac_cv_prog_CPP
3540else
3541 ac_cv_prog_CPP=$CPP
3542fi
Reid Spencera773bd52006-08-04 18:18:08 +00003543{ echo "$as_me:$LINENO: result: $CPP" >&5
3544echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545ac_preproc_ok=false
3546for ac_c_preproc_warn_flag in '' yes
3547do
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565 Syntax error
3566_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003567if { (ac_try="$ac_cpp conftest.$ac_ext"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3585 fi
3586else
3587 ac_cpp_err=yes
3588fi
3589if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590 :
3591else
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 # Broken: fails on valid input.
3596continue
3597fi
Reid Spencera773bd52006-08-04 18:18:08 +00003598
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599rm -f conftest.err conftest.$ac_ext
3600
Reid Spencera773bd52006-08-04 18:18:08 +00003601 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h. */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h. */
3609#include <ac_nonexistent.h>
3610_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003611if { (ac_try="$ac_cpp conftest.$ac_ext"
3612case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615esac
3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627 else
3628 ac_cpp_err=
3629 fi
3630else
3631 ac_cpp_err=yes
3632fi
3633if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634 # Broken: success on invalid input.
3635continue
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 # Passes both tests.
3641ac_preproc_ok=:
3642break
3643fi
Reid Spencera773bd52006-08-04 18:18:08 +00003644
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003645rm -f conftest.err conftest.$ac_ext
3646
3647done
3648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649rm -f conftest.err conftest.$ac_ext
3650if $ac_preproc_ok; then
3651 :
3652else
3653 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654See \`config.log' for more details." >&5
3655echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3658fi
3659
John Criswell7a73b802003-06-30 21:59:07 +00003660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
John Criswell7a73b802003-06-30 21:59:07 +00003666
Reid Spencera773bd52006-08-04 18:18:08 +00003667{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003669if test "${ac_cv_path_GREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
Reid Spencera773bd52006-08-04 18:18:08 +00003672 # Extract the first word of "grep ggrep" to use in msg output
3673if test -z "$GREP"; then
3674set dummy grep ggrep; ac_prog_name=$2
3675if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
Reid Spencera773bd52006-08-04 18:18:08 +00003678 ac_path_GREP_found=false
3679# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003681for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003685 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003686 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691case `"$ac_path_GREP" --version 2>&1` in
3692*GNU*)
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694*)
3695 ac_count=0
3696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697 while :
3698 do
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 ac_count=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3713 done
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715esac
3716
3717
3718 $ac_path_GREP_found && break 3
3719 done
3720done
3721
3722done
3723IFS=$as_save_IFS
3724
3725
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003726fi
Reid Spencera773bd52006-08-04 18:18:08 +00003727
3728GREP="$ac_cv_path_GREP"
3729if test -z "$GREP"; then
3730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732 { (exit 1); exit 1; }; }
3733fi
3734
3735else
3736 ac_cv_path_GREP=$GREP
3737fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003738
John Criswell7a73b802003-06-30 21:59:07 +00003739
Reid Spencera773bd52006-08-04 18:18:08 +00003740fi
3741{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743 GREP="$ac_cv_path_GREP"
3744
3745
3746{ echo "$as_me:$LINENO: checking for egrep" >&5
3747echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752 then ac_cv_path_EGREP="$GREP -E"
3753 else
3754 # Extract the first word of "egrep" to use in msg output
3755if test -z "$EGREP"; then
3756set dummy egrep; ac_prog_name=$2
3757if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 ac_path_EGREP_found=false
3761# Loop through the user's path and test for each of PROGNAME-LIST
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773case `"$ac_path_EGREP" --version 2>&1` in
3774*GNU*)
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776*)
3777 ac_count=0
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779 while :
3780 do
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3792 fi
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797esac
3798
3799
3800 $ac_path_EGREP_found && break 3
3801 done
3802done
3803
3804done
3805IFS=$as_save_IFS
3806
3807
3808fi
3809
3810EGREP="$ac_cv_path_EGREP"
3811if test -z "$EGREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3815fi
3816
3817else
3818 ac_cv_path_EGREP=$EGREP
3819fi
3820
3821
3822 fi
3823fi
3824{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3827
3828
3829{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003831if test "${ac_cv_header_stdc+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003840#include <stdlib.h>
3841#include <stdarg.h>
3842#include <string.h>
3843#include <float.h>
3844
John Criswell0c38eaf2003-09-10 15:17:25 +00003845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
John Criswell7a73b802003-06-30 21:59:07 +00003852_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003854if { (ac_try="$ac_compile"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003887 ac_cv_header_stdc=yes
3888else
3889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003890sed 's/^/| /' conftest.$ac_ext >&5
3891
Reid Spencera773bd52006-08-04 18:18:08 +00003892 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003893fi
Reid Spencera773bd52006-08-04 18:18:08 +00003894
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003896
3897if test $ac_cv_header_stdc = yes; then
3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003905#include <string.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003909 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003910 :
3911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003926#include <stdlib.h>
3927
3928_ACEOF
3929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003930 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003931 :
3932else
3933 ac_cv_header_stdc=no
3934fi
3935rm -f conftest*
3936
3937fi
3938
3939if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3942 :
3943else
3944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003950#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003951#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003952#if ((' ' & 0x0FF) == 0x020)
3953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003956# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961#endif
3962
3963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964int
3965main ()
3966{
3967 int i;
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003971 return 2;
3972 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003973}
3974_ACEOF
3975rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003976if { (ac_try="$ac_link"
3977case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003986 { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 :
3996else
3997 echo "$as_me: program exited with status $ac_status" >&5
3998echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003999sed 's/^/| /' conftest.$ac_ext >&5
4000
John Criswell7a73b802003-06-30 21:59:07 +00004001( exit $ac_status )
4002ac_cv_header_stdc=no
4003fi
Reid Spencera773bd52006-08-04 18:18:08 +00004004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005fi
4006
4007
John Criswell7a73b802003-06-30 21:59:07 +00004008fi
4009fi
Reid Spencera773bd52006-08-04 18:18:08 +00004010{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004012if test $ac_cv_header_stdc = yes; then
4013
4014cat >>confdefs.h <<\_ACEOF
4015#define STDC_HEADERS 1
4016_ACEOF
4017
4018fi
4019
Reid Spencera773bd52006-08-04 18:18:08 +00004020# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4032do
4033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045$ac_includes_default
4046
4047#include <$ac_header>
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (ac_try="$ac_compile"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004083 eval "$as_ac_Header=yes"
4084else
4085 echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 eval "$as_ac_Header=no"
4089fi
4090
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092fi
4093ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095echo "${ECHO_T}$ac_res" >&6; }
4096if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099_ACEOF
4100
4101fi
4102
4103done
4104
4105
4106{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108if test "${ac_cv_c_bigendian+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 # See if sys/param.h defines the BYTE_ORDER macro.
4112cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
4118#include <sys/types.h>
4119#include <sys/param.h>
4120
4121int
4122main ()
4123{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004124#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004125 bogus endian macros
4126#endif
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004166 # It does; now see whether it defined to BIG_ENDIAN or not.
4167cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
4173#include <sys/types.h>
4174#include <sys/param.h>
4175
4176int
4177main ()
4178{
4179#if BYTE_ORDER != BIG_ENDIAN
4180 not big endian
4181#endif
4182
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (ac_try="$ac_compile"
4189case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004221 ac_cv_c_bigendian=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 ac_cv_c_bigendian=no
4227fi
4228
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 # It does not; compile a test program.
4235if test "$cross_compiling" = yes; then
4236 # try to guess the endianness by grepping values into an object file
4237 ac_cv_c_bigendian=unknown
4238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h. */
4244short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4250int
4251main ()
4252{
4253 _ascii (); _ebcdic ();
4254 ;
4255 return 0;
4256}
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293 ac_cv_c_bigendian=yes
4294fi
4295if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296 if test "$ac_cv_c_bigendian" = unknown; then
4297 ac_cv_c_bigendian=no
4298 else
4299 # finding both strings is unlikely to happen, but who knows?
4300 ac_cv_c_bigendian=unknown
4301 fi
4302fi
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311else
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318$ac_includes_default
4319int
4320main ()
4321{
4322
4323 /* Are we little or big endian? From Harbison&Steele. */
4324 union
4325 {
4326 long int l;
4327 char c[sizeof (long int)];
4328 } u;
4329 u.l = 1;
4330 return u.c[sizeof (long int) - 1] == 1;
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336rm -f conftest$ac_exeext
4337if { (ac_try="$ac_link"
4338case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_link") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_c_bigendian=no
4357else
4358 echo "$as_me: program exited with status $ac_status" >&5
4359echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362( exit $ac_status )
4363ac_cv_c_bigendian=yes
4364fi
4365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4366fi
4367
4368
4369fi
4370
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375case $ac_cv_c_bigendian in
4376 yes)
4377 ENDIAN=big
4378 ;;
4379 no)
4380 ENDIAN=little
4381 ;;
4382 *)
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385echo "$as_me: error: unknown endianness
4386presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388esac
4389
4390
4391if test "$cross_compiling" = yes; then
4392 LLVM_CROSS_COMPILING=1
4393
4394
4395{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397if test "${ac_cv_build_exeext+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401 ac_cv_build_exeext=.exe
4402else
4403 ac_build_prefix=${build_alias}-
4404
4405 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406set dummy ${ac_build_prefix}gcc; ac_word=$2
4407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004421 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 +00004422 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432BUILD_CC=$ac_cv_prog_BUILD_CC
4433if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435echo "${ECHO_T}$BUILD_CC" >&6; }
4436else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6; }
4439fi
4440
4441
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444set dummy gcc; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004459 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 +00004460 ac_cv_prog_BUILD_CC="gcc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464done
4465done
4466IFS=$as_save_IFS
4467
4468fi
4469fi
4470BUILD_CC=$ac_cv_prog_BUILD_CC
4471if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473echo "${ECHO_T}$BUILD_CC" >&6; }
4474else
4475 { echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6; }
4477fi
4478
4479
4480 if test -z "$BUILD_CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482set dummy cc; ac_word=$2
4483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488 if test -n "$BUILD_CC"; then
4489 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4490else
4491 ac_prog_rejected=no
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004498 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 +00004499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4501 continue
4502 fi
4503 ac_cv_prog_BUILD_CC="cc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507done
4508done
4509IFS=$as_save_IFS
4510
4511if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_BUILD_CC
4514 shift
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set BUILD_CC to just the basename; use the full file name.
4519 shift
4520 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521 fi
4522fi
4523fi
4524fi
4525BUILD_CC=$ac_cv_prog_BUILD_CC
4526if test -n "$BUILD_CC"; then
4527 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528echo "${ECHO_T}$BUILD_CC" >&6; }
4529else
4530 { echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6; }
4532fi
4533
4534
4535 fi
4536 fi
4537 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539 { (exit 1); exit 1; }; }
4540 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541 rm -f conftest*
4542 echo 'int main () { return 0; }' > conftest.$ac_ext
4543 ac_cv_build_exeext=
4544 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545 (eval $ac_build_link) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for file in conftest.*; do
4550 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004551 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004552 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4553 esac
4554 done
4555 else
4556 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558 { (exit 1); exit 1; }; }
4559 fi
4560 rm -f conftest*
4561 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562fi
4563fi
4564
4565BUILD_EXEEXT=""
4566test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569ac_build_exeext=$BUILD_EXEEXT
4570
Jim Grosbach673612e2008-10-02 22:56:44 +00004571 ac_build_prefix=${build_alias}-
4572 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573set dummy ${ac_build_prefix}g++; ac_word=$2
4574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579 if test -n "$BUILD_CXX"; then
4580 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004588 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 +00004589 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593done
4594done
4595IFS=$as_save_IFS
4596
4597fi
4598fi
4599BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600if test -n "$BUILD_CXX"; then
4601 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602echo "${ECHO_T}$BUILD_CXX" >&6; }
4603else
4604 { echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6; }
4606fi
4607
4608
4609 if test -z "$BUILD_CXX"; then
4610 # Extract the first word of "g++", so it can be a program name with args.
4611set dummy g++; ac_word=$2
4612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$BUILD_CXX"; then
4618 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004626 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 +00004627 ac_cv_prog_BUILD_CXX="g++"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635fi
4636fi
4637BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640echo "${ECHO_T}$BUILD_CXX" >&6; }
4641else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; }
4644fi
4645
4646
4647 if test -z "$BUILD_CXX"; then
4648 # Extract the first word of "c++", so it can be a program name with args.
4649set dummy c++; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 if test -n "$BUILD_CXX"; then
4656 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4657else
4658 ac_prog_rejected=no
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004665 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 +00004666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667 ac_prog_rejected=yes
4668 continue
4669 fi
4670 ac_cv_prog_BUILD_CXX="c++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678if test $ac_prog_rejected = yes; then
4679 # We found a bogon in the path, so make sure we never use it.
4680 set dummy $ac_cv_prog_BUILD_CXX
4681 shift
4682 if test $# != 0; then
4683 # We chose a different compiler from the bogus one.
4684 # However, it has the same basename, so the bogon will be chosen
4685 # first if we set BUILD_CXX to just the basename; use the full file name.
4686 shift
4687 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4688 fi
4689fi
4690fi
4691fi
4692BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693if test -n "$BUILD_CXX"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695echo "${ECHO_T}$BUILD_CXX" >&6; }
4696else
4697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
4699fi
4700
4701
4702 fi
4703 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004704else
4705 LLVM_CROSS_COMPILING=0
4706
4707fi
4708
Nick Lewycky5b28f862009-04-10 05:18:27 +00004709if 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 +00004710 cvsbuild="yes"
4711 optimize="no"
4712 CVSBUILD=CVSBUILD=1
4713
4714else
4715 cvsbuild="no"
4716 optimize="yes"
4717fi
4718
4719
4720# Check whether --enable-optimized was given.
4721if test "${enable_optimized+set}" = set; then
4722 enableval=$enable_optimized;
4723else
4724 enableval=$optimize
4725fi
4726
4727if test ${enableval} = "no" ; then
4728 ENABLE_OPTIMIZED=
4729
4730else
4731 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4732
4733fi
4734
David Greene2a5a12c2009-04-17 14:50:39 +00004735# Check whether --enable-profiling was given.
4736if test "${enable_profiling+set}" = set; then
4737 enableval=$enable_profiling;
4738else
4739 enableval="no"
4740fi
4741
4742if test ${enableval} = "no" ; then
4743 ENABLE_PROFILING=
4744
4745else
4746 ENABLE_PROFILING=ENABLE_PROFILING=1
4747
4748fi
4749
Reid Spencera773bd52006-08-04 18:18:08 +00004750# Check whether --enable-assertions was given.
4751if test "${enable_assertions+set}" = set; then
4752 enableval=$enable_assertions;
4753else
4754 enableval="yes"
4755fi
4756
4757if test ${enableval} = "yes" ; then
4758 DISABLE_ASSERTIONS=
4759
4760else
4761 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4762
4763fi
4764
David Greenea696d242007-06-28 19:36:08 +00004765# Check whether --enable-expensive-checks was given.
4766if test "${enable_expensive_checks+set}" = set; then
4767 enableval=$enable_expensive_checks;
4768else
4769 enableval="no"
4770fi
4771
4772if test ${enableval} = "yes" ; then
4773 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4774
4775 EXPENSIVE_CHECKS=yes
4776
4777else
4778 ENABLE_EXPENSIVE_CHECKS=
4779
4780 EXPENSIVE_CHECKS=no
4781
4782fi
4783
Reid Spencer8b2e1412006-11-17 03:32:33 +00004784# Check whether --enable-debug-runtime was given.
4785if test "${enable_debug_runtime+set}" = set; then
4786 enableval=$enable_debug_runtime;
4787else
4788 enableval=no
4789fi
4790
4791if test ${enableval} = "no" ; then
4792 DEBUG_RUNTIME=
4793
4794else
4795 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4796
4797fi
4798
Reid Spencera773bd52006-08-04 18:18:08 +00004799# Check whether --enable-jit was given.
4800if test "${enable_jit+set}" = set; then
4801 enableval=$enable_jit;
4802else
4803 enableval=default
4804fi
4805
4806if test ${enableval} = "no"
4807then
4808 JIT=
4809
4810else
4811 case "$llvm_cv_target_arch" in
4812 x86) TARGET_HAS_JIT=1
4813 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004814 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
4816 PowerPC) TARGET_HAS_JIT=1
4817 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004818 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004819 ;;
4820 Alpha) TARGET_HAS_JIT=1
4821 ;;
4822 IA64) TARGET_HAS_JIT=0
4823 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004824 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004825 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004826 Mips) TARGET_HAS_JIT=0
4827 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004828 PIC16) TARGET_HAS_JIT=0
4829 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004830 XCore) TARGET_HAS_JIT=0
4831 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004832 MSP430) TARGET_HAS_JIT=0
4833 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004834 *) TARGET_HAS_JIT=0
4835 ;;
4836 esac
4837fi
4838
4839# Check whether --enable-doxygen was given.
4840if test "${enable_doxygen+set}" = set; then
4841 enableval=$enable_doxygen;
4842else
4843 enableval=default
4844fi
4845
4846case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4848 ;;
4849 no) ENABLE_DOXYGEN=0
4850 ;;
4851 default) ENABLE_DOXYGEN=0
4852 ;;
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4856esac
4857
4858# Check whether --enable-threads was given.
4859if test "${enable_threads+set}" = set; then
4860 enableval=$enable_threads;
4861else
Reid Spencer65c5d752006-11-05 17:08:18 +00004862 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004863fi
4864
4865case "$enableval" in
4866 yes) ENABLE_THREADS=1
4867 ;;
4868 no) ENABLE_THREADS=0
4869 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004870 default) ENABLE_THREADS=1
4871 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4875esac
4876
Owen Andersona8603702009-05-19 22:18:56 +00004877cat >>confdefs.h <<_ACEOF
4878#define ENABLE_THREADS $ENABLE_THREADS
4879_ACEOF
4880
4881
Reid Spencer89b0d992006-12-16 22:07:52 +00004882# Check whether --enable-pic was given.
4883if test "${enable_pic+set}" = set; then
4884 enableval=$enable_pic;
4885else
4886 enableval=default
4887fi
4888
4889case "$enableval" in
4890 yes) ENABLE_PIC=1
4891 ;;
4892 no) ENABLE_PIC=0
4893 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004894 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004895 ;;
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4899esac
4900
4901cat >>confdefs.h <<_ACEOF
4902#define ENABLE_PIC $ENABLE_PIC
4903_ACEOF
4904
4905
Reid Spencera773bd52006-08-04 18:18:08 +00004906TARGETS_TO_BUILD=""
4907# Check whether --enable-targets was given.
4908if test "${enable_targets+set}" = set; then
4909 enableval=$enable_targets;
4910else
4911 enableval=all
4912fi
4913
4914case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004915 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004916 host-only)
4917 case "$llvm_cv_target_arch" in
4918 x86) TARGETS_TO_BUILD="X86" ;;
4919 x86_64) TARGETS_TO_BUILD="X86" ;;
4920 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4921 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4922 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4923 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004924 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004925 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004926 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004927 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004928 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004929 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004930 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4931echo "$as_me: error: Can not set target to build" >&2;}
4932 { (exit 1); exit 1; }; } ;;
4933 esac
4934 ;;
4935 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4936 case "$a_target" in
4937 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4938 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4940 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4941 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4942 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004949 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4950 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004951 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004952 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4953echo "$as_me: error: Unrecognized target $a_target" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955 esac
4956 done
4957 ;;
4958esac
Reid Spencera773bd52006-08-04 18:18:08 +00004959TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4960
4961
Reid Spencer65c5d752006-11-05 17:08:18 +00004962# Check whether --enable-cbe-printf-a was given.
4963if test "${enable_cbe_printf_a+set}" = set; then
4964 enableval=$enable_cbe_printf_a;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_CBE_PRINTF_A=1
4971 ;;
4972 no) ENABLE_CBE_PRINTF_A=0
4973 ;;
4974 default) ENABLE_CBE_PRINTF_A=1
4975 ;;
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4979esac
4980
4981cat >>confdefs.h <<_ACEOF
4982#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4983_ACEOF
4984
4985
Reid Spencera773bd52006-08-04 18:18:08 +00004986
4987# Check whether --with-llvmgccdir was given.
4988if test "${with_llvmgccdir+set}" = set; then
4989 withval=$with_llvmgccdir;
4990else
4991 withval=default
4992fi
4993
4994case "$withval" in
4995 default) WITH_LLVMGCCDIR=default ;;
4996 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4997 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4998echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000esac
5001
5002
Devang Patel5d28b882007-12-04 22:54:47 +00005003# Check whether --with-llvmgcc was given.
5004if test "${with_llvmgcc+set}" = set; then
5005 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5006 WITH_LLVMGCCDIR=""
5007fi
5008
5009
5010
5011# Check whether --with-llvmgxx was given.
5012if test "${with_llvmgxx+set}" = set; then
5013 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5014 WITH_LLVMGCCDIR=""
5015fi
5016
Douglas Gregor01746742009-05-11 18:05:52 +00005017
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005018if test -n "$LLVMGCC"; then
5019 LLVMGCCCOMMAND="$LLVMGCC"
5020fi
5021
5022if test -n "$LLVMGXX"; then
5023 LLVMGXXCOMMAND="$LLVMGXX"
5024fi
Devang Patel5d28b882007-12-04 22:54:47 +00005025
5026if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5027 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5028echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5029 { (exit 1); exit 1; }; };
5030fi
5031
5032if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5033 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5034echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5035 { (exit 1); exit 1; }; };
5036fi
5037
5038
Reid Spencera773bd52006-08-04 18:18:08 +00005039# Check whether --with-extra-options was given.
5040if test "${with_extra_options+set}" = set; then
5041 withval=$with_extra_options;
5042else
5043 withval=default
5044fi
5045
5046case "$withval" in
5047 default) EXTRA_OPTIONS= ;;
5048 *) EXTRA_OPTIONS=$withval ;;
5049esac
5050EXTRA_OPTIONS=$EXTRA_OPTIONS
5051
5052
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005053# Check whether --enable-bindings was given.
5054if test "${enable_bindings+set}" = set; then
5055 enableval=$enable_bindings;
5056else
5057 enableval=default
5058fi
5059
5060BINDINGS_TO_BUILD=""
5061case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005062 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005063 all ) BINDINGS_TO_BUILD="ocaml" ;;
5064 none | no) BINDINGS_TO_BUILD="" ;;
5065 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_binding" in
5067 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5068 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5069echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071 esac
5072 done
5073 ;;
5074esac
5075
Reid Spencera773bd52006-08-04 18:18:08 +00005076
Gordon Henriksenf0915682007-10-02 16:42:22 +00005077# Check whether --with-ocaml-libdir was given.
5078if test "${with_ocaml_libdir+set}" = set; then
5079 withval=$with_ocaml_libdir;
5080else
5081 withval=auto
5082fi
5083
5084case "$withval" in
5085 auto) with_ocaml_libdir="$withval" ;;
5086 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5087 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5088echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5089 { (exit 1); exit 1; }; } ;;
5090esac
5091
5092
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005093# Check whether --with-binutils-include was given.
5094if test "${with_binutils_include+set}" = set; then
5095 withval=$with_binutils_include;
5096else
5097 withval=default
5098fi
5099
5100case "$withval" in
5101 default) WITH_BINUTILS_INCDIR=default ;;
5102 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5103 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5104echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5106esac
5107if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5108 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5109
5110 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5111 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5112 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5113echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5114 { (exit 1); exit 1; }; };
5115 fi
5116fi
5117
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005118# Check whether --enable-libffi was given.
5119if test "${enable_libffi+set}" = set; then
5120 enableval=$enable_libffi;
5121else
5122 enableval=yes
5123fi
5124
5125case "$enableval" in
5126 yes) llvm_cv_enable_libffi="yes" ;;
5127 no) llvm_cv_enable_libffi="no" ;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5131esac
5132
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005133
Reid Spencera773bd52006-08-04 18:18:08 +00005134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5140echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5141# On Suns, sometimes $CPP names a directory.
5142if test -n "$CPP" && test -d "$CPP"; then
5143 CPP=
5144fi
5145if test -z "$CPP"; then
5146 if test "${ac_cv_prog_CPP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 # Double quotes because CPP needs to be expanded
5150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5151 do
5152 ac_preproc_ok=false
5153for ac_c_preproc_warn_flag in '' yes
5154do
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
5167#ifdef __STDC__
5168# include <limits.h>
5169#else
5170# include <assert.h>
5171#endif
5172 Syntax error
5173_ACEOF
5174if { (ac_try="$ac_cpp conftest.$ac_ext"
5175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
5179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190 else
5191 ac_cpp_err=
5192 fi
5193else
5194 ac_cpp_err=yes
5195fi
5196if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005197 :
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 # Broken: fails on valid input.
5203continue
5204fi
5205
5206rm -f conftest.err conftest.$ac_ext
5207
5208 # OK, works on sane cases. Now check whether nonexistent headers
5209 # can be detected and how.
5210 cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h. */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h. */
5216#include <ac_nonexistent.h>
5217_ACEOF
5218if { (ac_try="$ac_cpp conftest.$ac_ext"
5219case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222esac
5223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_c_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234 else
5235 ac_cpp_err=
5236 fi
5237else
5238 ac_cpp_err=yes
5239fi
5240if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005241 # Broken: success on invalid input.
5242continue
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 # Passes both tests.
5248ac_preproc_ok=:
5249break
5250fi
5251
5252rm -f conftest.err conftest.$ac_ext
5253
5254done
5255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256rm -f conftest.err conftest.$ac_ext
5257if $ac_preproc_ok; then
5258 break
5259fi
5260
5261 done
5262 ac_cv_prog_CPP=$CPP
5263
5264fi
5265 CPP=$ac_cv_prog_CPP
5266else
5267 ac_cv_prog_CPP=$CPP
5268fi
5269{ echo "$as_me:$LINENO: result: $CPP" >&5
5270echo "${ECHO_T}$CPP" >&6; }
5271ac_preproc_ok=false
5272for ac_c_preproc_warn_flag in '' yes
5273do
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
5280 cat >conftest.$ac_ext <<_ACEOF
5281/* confdefs.h. */
5282_ACEOF
5283cat confdefs.h >>conftest.$ac_ext
5284cat >>conftest.$ac_ext <<_ACEOF
5285/* end confdefs.h. */
5286#ifdef __STDC__
5287# include <limits.h>
5288#else
5289# include <assert.h>
5290#endif
5291 Syntax error
5292_ACEOF
5293if { (ac_try="$ac_cpp conftest.$ac_ext"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005305 (exit $ac_status); } >/dev/null; then
5306 if test -s conftest.err; then
5307 ac_cpp_err=$ac_c_preproc_warn_flag
5308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5309 else
5310 ac_cpp_err=
5311 fi
5312else
5313 ac_cpp_err=yes
5314fi
5315if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005316 :
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 # Broken: fails on valid input.
5322continue
5323fi
5324
5325rm -f conftest.err conftest.$ac_ext
5326
5327 # OK, works on sane cases. Now check whether nonexistent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335#include <ac_nonexistent.h>
5336_ACEOF
5337if { (ac_try="$ac_cpp conftest.$ac_ext"
5338case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353 else
5354 ac_cpp_err=
5355 fi
5356else
5357 ac_cpp_err=yes
5358fi
5359if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005360 # Broken: success on invalid input.
5361continue
5362else
5363 echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 # Passes both tests.
5367ac_preproc_ok=:
5368break
5369fi
5370
5371rm -f conftest.err conftest.$ac_ext
5372
5373done
5374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375rm -f conftest.err conftest.$ac_ext
5376if $ac_preproc_ok; then
5377 :
5378else
5379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5380See \`config.log' for more details." >&5
5381echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5382See \`config.log' for more details." >&2;}
5383 { (exit 1); exit 1; }; }
5384fi
5385
5386ac_ext=c
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392ac_ext=c
5393ac_cpp='$CPP $CPPFLAGS'
5394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397if test -n "$ac_tool_prefix"; then
5398 for ac_prog in gcc
5399 do
5400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404if test "${ac_cv_prog_CC+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 if test -n "$CC"; then
5408 ac_cv_prog_CC="$CC" # Let the user override the test.
5409else
5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005416 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 +00005417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421done
5422done
5423IFS=$as_save_IFS
5424
5425fi
5426fi
5427CC=$ac_cv_prog_CC
5428if test -n "$CC"; then
5429 { echo "$as_me:$LINENO: result: $CC" >&5
5430echo "${ECHO_T}$CC" >&6; }
5431else
5432 { echo "$as_me:$LINENO: result: no" >&5
5433echo "${ECHO_T}no" >&6; }
5434fi
5435
5436
5437 test -n "$CC" && break
5438 done
5439fi
5440if test -z "$CC"; then
5441 ac_ct_CC=$CC
5442 for ac_prog in gcc
5443do
5444 # Extract the first word of "$ac_prog", so it can be a program name with args.
5445set dummy $ac_prog; ac_word=$2
5446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451 if test -n "$ac_ct_CC"; then
5452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5453else
5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005460 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 +00005461 ac_cv_prog_ac_ct_CC="$ac_prog"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466done
5467IFS=$as_save_IFS
5468
5469fi
5470fi
5471ac_ct_CC=$ac_cv_prog_ac_ct_CC
5472if test -n "$ac_ct_CC"; then
5473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5474echo "${ECHO_T}$ac_ct_CC" >&6; }
5475else
5476 { echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6; }
5478fi
5479
5480
5481 test -n "$ac_ct_CC" && break
5482done
5483
5484 if test "x$ac_ct_CC" = x; then
5485 CC=""
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488yes:)
5489{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5490whose name does not start with the host triplet. If you think this
5491configuration is useful to you, please write to autoconf@gnu.org." >&5
5492echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5493whose name does not start with the host triplet. If you think this
5494configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5495ac_tool_warned=yes ;;
5496esac
5497 CC=$ac_ct_CC
5498 fi
5499fi
5500
5501
5502test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5503See \`config.log' for more details." >&5
5504echo "$as_me: error: no acceptable C compiler found in \$PATH
5505See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5507
5508# Provide some information about the compiler.
5509echo "$as_me:$LINENO: checking for C compiler version" >&5
5510ac_compiler=`set X $ac_compile; echo $2`
5511{ (ac_try="$ac_compiler --version >&5"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compiler --version >&5") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521{ (ac_try="$ac_compiler -v >&5"
5522case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compiler -v >&5") 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }
5531{ (ac_try="$ac_compiler -V >&5"
5532case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535esac
5536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compiler -V >&5") 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }
5541
5542{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5543echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5544if test "${ac_cv_c_compiler_gnu+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
5553
5554int
5555main ()
5556{
5557#ifndef __GNUC__
5558 choke me
5559#endif
5560
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext
5566if { (ac_try="$ac_compile"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580 { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_try") 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_try") 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005599 ac_compiler_gnu=yes
5600else
5601 echo "$as_me: failed program was:" >&5
5602sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ac_compiler_gnu=no
5605fi
5606
5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608ac_cv_c_compiler_gnu=$ac_compiler_gnu
5609
5610fi
5611{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5612echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5613GCC=`test $ac_compiler_gnu = yes && echo yes`
5614ac_test_CFLAGS=${CFLAGS+set}
5615ac_save_CFLAGS=$CFLAGS
5616{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5617echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5618if test "${ac_cv_prog_cc_g+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 ac_save_c_werror_flag=$ac_c_werror_flag
5622 ac_c_werror_flag=yes
5623 ac_cv_prog_cc_g=no
5624 CFLAGS="-g"
5625 cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631
5632int
5633main ()
5634{
5635
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640rm -f conftest.$ac_objext
5641if { (ac_try="$ac_compile"
5642case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655 { (case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
5659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_try") 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; } &&
5664 { ac_try='test -s conftest.$ac_objext'
5665 { (case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_try") 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005674 ac_cv_prog_cc_g=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 CFLAGS=""
5680 cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h. */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h. */
5686
5687int
5688main ()
5689{
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext
5696if { (ac_try="$ac_compile"
5697case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700esac
5701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005708 (exit $ac_status); } &&
5709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723esac
5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_try") 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005729 :
5730else
5731 echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_c_werror_flag=$ac_save_c_werror_flag
5735 CFLAGS="-g"
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742
5743int
5744main ()
5745{
5746
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005785 ac_cv_prog_cc_g=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790
5791fi
5792
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794fi
5795
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797fi
5798
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_c_werror_flag=$ac_save_c_werror_flag
5801fi
5802{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5804if test "$ac_test_CFLAGS" = set; then
5805 CFLAGS=$ac_save_CFLAGS
5806elif test $ac_cv_prog_cc_g = yes; then
5807 if test "$GCC" = yes; then
5808 CFLAGS="-g -O2"
5809 else
5810 CFLAGS="-g"
5811 fi
5812else
5813 if test "$GCC" = yes; then
5814 CFLAGS="-O2"
5815 else
5816 CFLAGS=
5817 fi
5818fi
5819{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5820echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5821if test "${ac_cv_prog_cc_c89+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 ac_cv_prog_cc_c89=no
5825ac_save_CC=$CC
5826cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832#include <stdarg.h>
5833#include <stdio.h>
5834#include <sys/types.h>
5835#include <sys/stat.h>
5836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5837struct buf { int x; };
5838FILE * (*rcsopen) (struct buf *, struct stat *, int);
5839static char *e (p, i)
5840 char **p;
5841 int i;
5842{
5843 return p[i];
5844}
5845static char *f (char * (*g) (char **, int), char **p, ...)
5846{
5847 char *s;
5848 va_list v;
5849 va_start (v,p);
5850 s = g (p, va_arg (v,int));
5851 va_end (v);
5852 return s;
5853}
5854
5855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5856 function prototypes and stuff, but not '\xHH' hex character constants.
5857 These don't provoke an error unfortunately, instead are silently treated
5858 as 'x'. The following induces an error, until -std is added to get
5859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5860 array size at least. It's necessary to write '\x00'==0 to get something
5861 that's true only with -std. */
5862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5863
5864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5865 inside strings and character constants. */
5866#define FOO(x) 'x'
5867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5868
5869int test (int i, double x);
5870struct s1 {int (*f) (int a);};
5871struct s2 {int (*f) (double a);};
5872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5873int argc;
5874char **argv;
5875int
5876main ()
5877{
5878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5885do
5886 CC="$ac_save_CC $ac_arg"
5887 rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005921 ac_cv_prog_cc_c89=$ac_arg
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926
5927fi
5928
5929rm -f core conftest.err conftest.$ac_objext
5930 test "x$ac_cv_prog_cc_c89" != "xno" && break
5931done
5932rm -f conftest.$ac_ext
5933CC=$ac_save_CC
5934
5935fi
5936# AC_CACHE_VAL
5937case "x$ac_cv_prog_cc_c89" in
5938 x)
5939 { echo "$as_me:$LINENO: result: none needed" >&5
5940echo "${ECHO_T}none needed" >&6; } ;;
5941 xno)
5942 { echo "$as_me:$LINENO: result: unsupported" >&5
5943echo "${ECHO_T}unsupported" >&6; } ;;
5944 *)
5945 CC="$CC $ac_cv_prog_cc_c89"
5946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5947echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5948esac
5949
5950
5951ac_ext=c
5952ac_cpp='$CPP $CPPFLAGS'
5953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956
5957ac_ext=cpp
5958ac_cpp='$CXXCPP $CPPFLAGS'
5959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962if test -z "$CXX"; then
5963 if test -n "$CCC"; then
5964 CXX=$CCC
5965 else
5966 if test -n "$ac_tool_prefix"; then
5967 for ac_prog in g++
5968 do
5969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973if test "${ac_cv_prog_CXX+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976 if test -n "$CXX"; then
5977 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005985 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 +00005986 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990done
5991done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996CXX=$ac_cv_prog_CXX
5997if test -n "$CXX"; then
5998 { echo "$as_me:$LINENO: result: $CXX" >&5
5999echo "${ECHO_T}$CXX" >&6; }
6000else
6001 { echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6; }
6003fi
6004
6005
6006 test -n "$CXX" && break
6007 done
6008fi
6009if test -z "$CXX"; then
6010 ac_ct_CXX=$CXX
6011 for ac_prog in g++
6012do
6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
6014set dummy $ac_prog; ac_word=$2
6015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020 if test -n "$ac_ct_CXX"; then
6021 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006029 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 +00006030 ac_cv_prog_ac_ct_CXX="$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6041if test -n "$ac_ct_CXX"; then
6042 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6043echo "${ECHO_T}$ac_ct_CXX" >&6; }
6044else
6045 { echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6; }
6047fi
6048
6049
6050 test -n "$ac_ct_CXX" && break
6051done
6052
6053 if test "x$ac_ct_CXX" = x; then
6054 CXX="g++"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057yes:)
6058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059whose name does not start with the host triplet. If you think this
6060configuration is useful to you, please write to autoconf@gnu.org." >&5
6061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062whose name does not start with the host triplet. If you think this
6063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066 CXX=$ac_ct_CXX
6067 fi
6068fi
6069
6070 fi
6071fi
6072# Provide some information about the compiler.
6073echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6074ac_compiler=`set X $ac_compile; echo $2`
6075{ (ac_try="$ac_compiler --version >&5"
6076case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler --version >&5") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6085{ (ac_try="$ac_compiler -v >&5"
6086case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compiler -v >&5") 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }
6095{ (ac_try="$ac_compiler -V >&5"
6096case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099esac
6100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compiler -V >&5") 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }
6105
6106{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6107echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6108if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
6117
6118int
6119main ()
6120{
6121#ifndef __GNUC__
6122 choke me
6123#endif
6124
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006163 ac_compiler_gnu=yes
6164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_compiler_gnu=no
6169fi
6170
6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6173
6174fi
6175{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6176echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6177GXX=`test $ac_compiler_gnu = yes && echo yes`
6178ac_test_CXXFLAGS=${CXXFLAGS+set}
6179ac_save_CXXFLAGS=$CXXFLAGS
6180{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6181echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6182if test "${ac_cv_prog_cxx_g+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6186 ac_cxx_werror_flag=yes
6187 ac_cv_prog_cxx_g=no
6188 CXXFLAGS="-g"
6189 cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195
6196int
6197main ()
6198{
6199
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204rm -f conftest.$ac_objext
6205if { (ac_try="$ac_compile"
6206case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
6210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6219 { (case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_try") 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_try") 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006238 ac_cv_prog_cxx_g=yes
6239else
6240 echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 CXXFLAGS=""
6244 cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h. */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h. */
6250
6251int
6252main ()
6253{
6254
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (ac_try="$ac_compile"
6261case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264esac
6265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_try") 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006293 :
6294else
6295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6299 CXXFLAGS="-g"
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307int
6308main ()
6309{
6310
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (ac_try="$ac_compile"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006349 ac_cv_prog_cxx_g=yes
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358fi
6359
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361fi
6362
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6365fi
6366{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6367echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6368if test "$ac_test_CXXFLAGS" = set; then
6369 CXXFLAGS=$ac_save_CXXFLAGS
6370elif test $ac_cv_prog_cxx_g = yes; then
6371 if test "$GXX" = yes; then
6372 CXXFLAGS="-g -O2"
6373 else
6374 CXXFLAGS="-g"
6375 fi
6376else
6377 if test "$GXX" = yes; then
6378 CXXFLAGS="-O2"
6379 else
6380 CXXFLAGS=
6381 fi
6382fi
6383ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
Reid Spencera773bd52006-08-04 18:18:08 +00006389
6390{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6391echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6392if test "${lt_cv_path_NM+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395 if test -n "$NM"; then
6396 # Let the user override the test.
6397 lt_cv_path_NM="$NM"
6398else
6399 lt_nm_to_check="${ac_tool_prefix}nm"
6400 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6401 lt_nm_to_check="$lt_nm_to_check nm"
6402 fi
6403 for lt_tmp_nm in $lt_nm_to_check; do
6404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6405 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6406 IFS="$lt_save_ifs"
6407 test -z "$ac_dir" && ac_dir=.
6408 tmp_nm="$ac_dir/$lt_tmp_nm"
6409 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6410 # Check to see if the nm accepts a BSD-compat flag.
6411 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6412 # nm: unknown option "B" ignored
6413 # Tru64's nm complains that /dev/null is an invalid object file
6414 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6415 */dev/null* | *'Invalid file or object type'*)
6416 lt_cv_path_NM="$tmp_nm -B"
6417 break
6418 ;;
6419 *)
6420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6421 */dev/null*)
6422 lt_cv_path_NM="$tmp_nm -p"
6423 break
6424 ;;
6425 *)
6426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6427 continue # so that we can try to find one that supports BSD flags
6428 ;;
6429 esac
6430 ;;
6431 esac
6432 fi
6433 done
6434 IFS="$lt_save_ifs"
6435 done
6436 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6437fi
6438fi
6439{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6440echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6441NM="$lt_cv_path_NM"
6442
6443
6444
6445{ echo "$as_me:$LINENO: checking for GNU make" >&5
6446echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6447if test "${llvm_cv_gnu_make_command+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 llvm_cv_gnu_make_command=''
6451 for a in "$MAKE" make gmake gnumake ; do
6452 if test -z "$a" ; then continue ; fi ;
6453 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6454 then
6455 llvm_cv_gnu_make_command=$a ;
6456 break;
6457 fi
6458 done
6459fi
6460{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6461echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6462 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6463 ifGNUmake='' ;
6464 else
6465 ifGNUmake='#' ;
6466 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6467echo "${ECHO_T}\"Not found\"" >&6; };
6468 fi
6469
6470
6471{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6472echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6473LN_S=$as_ln_s
6474if test "$LN_S" = "ln -s"; then
6475 { echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6; }
6477else
6478 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6479echo "${ECHO_T}no, using $LN_S" >&6; }
6480fi
6481
6482# Extract the first word of "cmp", so it can be a program name with args.
6483set dummy cmp; ac_word=$2
6484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486if test "${ac_cv_path_CMP+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489 case $CMP in
6490 [\\/]* | ?:[\\/]*)
6491 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6492 ;;
6493 *)
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006500 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 +00006501 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506done
6507IFS=$as_save_IFS
6508
6509 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6510 ;;
6511esac
6512fi
6513CMP=$ac_cv_path_CMP
6514if test -n "$CMP"; then
6515 { echo "$as_me:$LINENO: result: $CMP" >&5
6516echo "${ECHO_T}$CMP" >&6; }
6517else
6518 { echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6; }
6520fi
6521
6522
6523# Extract the first word of "cp", so it can be a program name with args.
6524set dummy cp; ac_word=$2
6525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527if test "${ac_cv_path_CP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530 case $CP in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6533 ;;
6534 *)
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006541 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 +00006542 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6551 ;;
6552esac
6553fi
6554CP=$ac_cv_path_CP
6555if test -n "$CP"; then
6556 { echo "$as_me:$LINENO: result: $CP" >&5
6557echo "${ECHO_T}$CP" >&6; }
6558else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6; }
6561fi
6562
6563
6564# Extract the first word of "date", so it can be a program name with args.
6565set dummy date; ac_word=$2
6566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568if test "${ac_cv_path_DATE+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 case $DATE in
6572 [\\/]* | ?:[\\/]*)
6573 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6574 ;;
6575 *)
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006582 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 +00006583 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6586 fi
6587done
6588done
6589IFS=$as_save_IFS
6590
6591 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6592 ;;
6593esac
6594fi
6595DATE=$ac_cv_path_DATE
6596if test -n "$DATE"; then
6597 { echo "$as_me:$LINENO: result: $DATE" >&5
6598echo "${ECHO_T}$DATE" >&6; }
6599else
6600 { echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6; }
6602fi
6603
6604
6605# Extract the first word of "find", so it can be a program name with args.
6606set dummy find; ac_word=$2
6607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609if test "${ac_cv_path_FIND+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 case $FIND in
6613 [\\/]* | ?:[\\/]*)
6614 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6615 ;;
6616 *)
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006623 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 +00006624 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629done
6630IFS=$as_save_IFS
6631
6632 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6633 ;;
6634esac
6635fi
6636FIND=$ac_cv_path_FIND
6637if test -n "$FIND"; then
6638 { echo "$as_me:$LINENO: result: $FIND" >&5
6639echo "${ECHO_T}$FIND" >&6; }
6640else
6641 { echo "$as_me:$LINENO: result: no" >&5
6642echo "${ECHO_T}no" >&6; }
6643fi
6644
6645
6646# Extract the first word of "grep", so it can be a program name with args.
6647set dummy grep; ac_word=$2
6648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650if test "${ac_cv_path_GREP+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653 case $GREP in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6656 ;;
6657 *)
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006664 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 +00006665 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669done
6670done
6671IFS=$as_save_IFS
6672
6673 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6674 ;;
6675esac
6676fi
6677GREP=$ac_cv_path_GREP
6678if test -n "$GREP"; then
6679 { echo "$as_me:$LINENO: result: $GREP" >&5
6680echo "${ECHO_T}$GREP" >&6; }
6681else
6682 { echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6; }
6684fi
6685
6686
6687# Extract the first word of "mkdir", so it can be a program name with args.
6688set dummy mkdir; ac_word=$2
6689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691if test "${ac_cv_path_MKDIR+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 case $MKDIR in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006705 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 +00006706 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
6712IFS=$as_save_IFS
6713
6714 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6715 ;;
6716esac
6717fi
6718MKDIR=$ac_cv_path_MKDIR
6719if test -n "$MKDIR"; then
6720 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6721echo "${ECHO_T}$MKDIR" >&6; }
6722else
6723 { echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6; }
6725fi
6726
6727
6728# Extract the first word of "mv", so it can be a program name with args.
6729set dummy mv; ac_word=$2
6730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732if test "${ac_cv_path_MV+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735 case $MV in
6736 [\\/]* | ?:[\\/]*)
6737 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6738 ;;
6739 *)
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006746 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 +00006747 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751done
6752done
6753IFS=$as_save_IFS
6754
6755 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6756 ;;
6757esac
6758fi
6759MV=$ac_cv_path_MV
6760if test -n "$MV"; then
6761 { echo "$as_me:$LINENO: result: $MV" >&5
6762echo "${ECHO_T}$MV" >&6; }
6763else
6764 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766fi
6767
6768
6769if test -n "$ac_tool_prefix"; then
6770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6771set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6774if test "${ac_cv_prog_RANLIB+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776else
6777 if test -n "$RANLIB"; then
6778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006786 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 +00006787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797RANLIB=$ac_cv_prog_RANLIB
6798if test -n "$RANLIB"; then
6799 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6800echo "${ECHO_T}$RANLIB" >&6; }
6801else
6802 { echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6; }
6804fi
6805
6806
6807fi
6808if test -z "$ac_cv_prog_RANLIB"; then
6809 ac_ct_RANLIB=$RANLIB
6810 # Extract the first word of "ranlib", so it can be a program name with args.
6811set dummy ranlib; ac_word=$2
6812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817 if test -n "$ac_ct_RANLIB"; then
6818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006826 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 +00006827 ac_cv_prog_ac_ct_RANLIB="ranlib"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831done
6832done
6833IFS=$as_save_IFS
6834
6835fi
6836fi
6837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6838if test -n "$ac_ct_RANLIB"; then
6839 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6840echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6841else
6842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
6844fi
6845
6846 if test "x$ac_ct_RANLIB" = x; then
6847 RANLIB=":"
6848 else
6849 case $cross_compiling:$ac_tool_warned in
6850yes:)
6851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6852whose name does not start with the host triplet. If you think this
6853configuration is useful to you, please write to autoconf@gnu.org." >&5
6854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6855whose name does not start with the host triplet. If you think this
6856configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859 RANLIB=$ac_ct_RANLIB
6860 fi
6861else
6862 RANLIB="$ac_cv_prog_RANLIB"
6863fi
6864
6865# Extract the first word of "rm", so it can be a program name with args.
6866set dummy rm; ac_word=$2
6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_RM+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 case $RM in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006883 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 +00006884 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890IFS=$as_save_IFS
6891
6892 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6893 ;;
6894esac
6895fi
6896RM=$ac_cv_path_RM
6897if test -n "$RM"; then
6898 { echo "$as_me:$LINENO: result: $RM" >&5
6899echo "${ECHO_T}$RM" >&6; }
6900else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
6903fi
6904
6905
6906# Extract the first word of "sed", so it can be a program name with args.
6907set dummy sed; ac_word=$2
6908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910if test "${ac_cv_path_SED+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912else
6913 case $SED in
6914 [\\/]* | ?:[\\/]*)
6915 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6916 ;;
6917 *)
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006924 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 +00006925 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930done
6931IFS=$as_save_IFS
6932
6933 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6934 ;;
6935esac
6936fi
6937SED=$ac_cv_path_SED
6938if test -n "$SED"; then
6939 { echo "$as_me:$LINENO: result: $SED" >&5
6940echo "${ECHO_T}$SED" >&6; }
6941else
6942 { echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6; }
6944fi
6945
6946
6947# Extract the first word of "tar", so it can be a program name with args.
6948set dummy tar; ac_word=$2
6949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_path_TAR+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954 case $TAR in
6955 [\\/]* | ?:[\\/]*)
6956 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6957 ;;
6958 *)
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006965 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 +00006966 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971done
6972IFS=$as_save_IFS
6973
6974 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6975 ;;
6976esac
6977fi
6978TAR=$ac_cv_path_TAR
6979if test -n "$TAR"; then
6980 { echo "$as_me:$LINENO: result: $TAR" >&5
6981echo "${ECHO_T}$TAR" >&6; }
6982else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
6985fi
6986
6987
6988# Extract the first word of "pwd", so it can be a program name with args.
6989set dummy pwd; ac_word=$2
6990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992if test "${ac_cv_path_BINPWD+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 case $BINPWD in
6996 [\\/]* | ?:[\\/]*)
6997 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6998 ;;
6999 *)
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007006 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 +00007007 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012done
7013IFS=$as_save_IFS
7014
7015 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7016 ;;
7017esac
7018fi
7019BINPWD=$ac_cv_path_BINPWD
7020if test -n "$BINPWD"; then
7021 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7022echo "${ECHO_T}$BINPWD" >&6; }
7023else
7024 { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
7026fi
7027
7028
7029
7030# Extract the first word of "Graphviz", so it can be a program name with args.
7031set dummy Graphviz; ac_word=$2
7032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037 case $GRAPHVIZ in
7038 [\\/]* | ?:[\\/]*)
7039 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7040 ;;
7041 *)
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007048 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 +00007049 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7058 ;;
7059esac
7060fi
7061GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7062if test -n "$GRAPHVIZ"; then
7063 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7064echo "${ECHO_T}$GRAPHVIZ" >&6; }
7065else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6; }
7068fi
7069
7070
7071if test "$GRAPHVIZ" != "echo Graphviz" ; then
7072
7073cat >>confdefs.h <<\_ACEOF
7074#define HAVE_GRAPHVIZ 1
7075_ACEOF
7076
Jeff Cohen28783c32007-01-12 18:22:38 +00007077 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007078 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7079 fi
7080
7081cat >>confdefs.h <<_ACEOF
7082#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7083_ACEOF
7084
7085fi
7086# Extract the first word of "dot", so it can be a program name with args.
7087set dummy dot; ac_word=$2
7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_path_DOT+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093 case $DOT in
7094 [\\/]* | ?:[\\/]*)
7095 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007104 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 +00007105 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110done
7111IFS=$as_save_IFS
7112
7113 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7114 ;;
7115esac
7116fi
7117DOT=$ac_cv_path_DOT
7118if test -n "$DOT"; then
7119 { echo "$as_me:$LINENO: result: $DOT" >&5
7120echo "${ECHO_T}$DOT" >&6; }
7121else
7122 { echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6; }
7124fi
7125
7126
7127if test "$DOT" != "echo dot" ; then
7128
7129cat >>confdefs.h <<\_ACEOF
7130#define HAVE_DOT 1
7131_ACEOF
7132
Jeff Cohen28783c32007-01-12 18:22:38 +00007133 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007134 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7135 fi
7136
7137cat >>confdefs.h <<_ACEOF
7138#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7139_ACEOF
7140
7141fi
7142for ac_prog in gv gsview32
7143do
7144 # Extract the first word of "$ac_prog", so it can be a program name with args.
7145set dummy $ac_prog; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_GV+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 case $GV in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7154 ;;
7155 *)
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007162 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 +00007163 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171 ;;
7172esac
7173fi
7174GV=$ac_cv_path_GV
7175if test -n "$GV"; then
7176 { echo "$as_me:$LINENO: result: $GV" >&5
7177echo "${ECHO_T}$GV" >&6; }
7178else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
7181fi
7182
7183
7184 test -n "$GV" && break
7185done
7186test -n "$GV" || GV="echo gv"
7187
7188if test "$GV" != "echo gv" ; then
7189
7190cat >>confdefs.h <<\_ACEOF
7191#define HAVE_GV 1
7192_ACEOF
7193
Jeff Cohen28783c32007-01-12 18:22:38 +00007194 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007195 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7196 fi
7197
7198cat >>confdefs.h <<_ACEOF
7199#define LLVM_PATH_GV "$GV${EXEEXT}"
7200_ACEOF
7201
7202fi
7203# Extract the first word of "dotty", so it can be a program name with args.
7204set dummy dotty; ac_word=$2
7205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_DOTTY+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209else
7210 case $DOTTY in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007221 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 +00007222 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226done
7227done
7228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7231 ;;
7232esac
7233fi
7234DOTTY=$ac_cv_path_DOTTY
7235if test -n "$DOTTY"; then
7236 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7237echo "${ECHO_T}$DOTTY" >&6; }
7238else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
7241fi
7242
7243
7244if test "$DOTTY" != "echo dotty" ; then
7245
7246cat >>confdefs.h <<\_ACEOF
7247#define HAVE_DOTTY 1
7248_ACEOF
7249
Jeff Cohen28783c32007-01-12 18:22:38 +00007250 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007251 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7252 fi
7253
7254cat >>confdefs.h <<_ACEOF
7255#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7256_ACEOF
7257
7258fi
7259
7260
7261# Extract the first word of "perl", so it can be a program name with args.
7262set dummy perl; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_PERL+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268 case $PERL in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007279 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 +00007280 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7289 ;;
7290esac
7291fi
7292PERL=$ac_cv_path_PERL
7293if test -n "$PERL"; then
7294 { echo "$as_me:$LINENO: result: $PERL" >&5
7295echo "${ECHO_T}$PERL" >&6; }
7296else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302if test "$PERL" != "none"; then
7303 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7304echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7305 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7306 { echo "$as_me:$LINENO: result: yes" >&5
7307echo "${ECHO_T}yes" >&6; }
7308 else
7309 PERL=none
7310 { echo "$as_me:$LINENO: result: not found" >&5
7311echo "${ECHO_T}not found" >&6; }
7312 fi
7313fi
7314
7315
7316if test x"$PERL" = xnone; then
7317 HAVE_PERL=0
7318
Reid Spencer59807fa2007-05-17 18:11:03 +00007319 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7320echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7321 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007322else
7323 HAVE_PERL=1
7324
7325fi
7326
7327# Find a good install program. We prefer a C program (faster),
7328# so one script is as good as another. But avoid the broken or
7329# incompatible versions:
7330# SysV /etc/install, /usr/sbin/install
7331# SunOS /usr/etc/install
7332# IRIX /sbin/install
7333# AIX /bin/install
7334# AmigaOS /C/install, which installs bootblocks on floppy discs
7335# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7336# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7337# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7338# OS/2's system install, which has a completely different semantic
7339# ./install, which can be erroneously created by make from ./install.sh.
7340{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7341echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7342if test -z "$INSTALL"; then
7343if test "${ac_cv_path_install+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 # Account for people who put trailing slashes in PATH elements.
7352case $as_dir/ in
7353 ./ | .// | /cC/* | \
7354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7355 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7356 /usr/ucb/* ) ;;
7357 *)
7358 # OSF1 and SCO ODT 3.0 have their own names for install.
7359 # Don't use installbsd from OSF since it installs stuff as root
7360 # by default.
7361 for ac_prog in ginstall scoinst install; do
7362 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007363 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 +00007364 if test $ac_prog = install &&
7365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366 # AIX install. It has an incompatible calling convention.
7367 :
7368 elif test $ac_prog = install &&
7369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7370 # program-specific install script used by HP pwplus--don't use.
7371 :
7372 else
7373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7374 break 3
7375 fi
7376 fi
7377 done
7378 done
7379 ;;
7380esac
7381done
7382IFS=$as_save_IFS
7383
7384
7385fi
7386 if test "${ac_cv_path_install+set}" = set; then
7387 INSTALL=$ac_cv_path_install
7388 else
7389 # As a last resort, use the slow shell script. Don't cache a
7390 # value for INSTALL within a source directory, because that will
7391 # break other packages using the cache if that directory is
7392 # removed, or if the value is a relative name.
7393 INSTALL=$ac_install_sh
7394 fi
7395fi
7396{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7397echo "${ECHO_T}$INSTALL" >&6; }
7398
7399# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7400# It thinks the first close brace ends the variable substitution.
7401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7402
7403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7404
7405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7406
7407
7408# Extract the first word of "bzip2", so it can be a program name with args.
7409set dummy bzip2; ac_word=$2
7410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412if test "${ac_cv_path_BZIP2+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415 case $BZIP2 in
7416 [\\/]* | ?:[\\/]*)
7417 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7418 ;;
7419 *)
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007426 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 +00007427 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432done
7433IFS=$as_save_IFS
7434
Reid Spencera773bd52006-08-04 18:18:08 +00007435 ;;
7436esac
7437fi
7438BZIP2=$ac_cv_path_BZIP2
7439if test -n "$BZIP2"; then
7440 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7441echo "${ECHO_T}$BZIP2" >&6; }
7442else
7443 { echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6; }
7445fi
7446
7447
7448# Extract the first word of "doxygen", so it can be a program name with args.
7449set dummy doxygen; ac_word=$2
7450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452if test "${ac_cv_path_DOXYGEN+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454else
7455 case $DOXYGEN in
7456 [\\/]* | ?:[\\/]*)
7457 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7458 ;;
7459 *)
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007466 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 +00007467 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471done
7472done
7473IFS=$as_save_IFS
7474
Reid Spencera773bd52006-08-04 18:18:08 +00007475 ;;
7476esac
7477fi
7478DOXYGEN=$ac_cv_path_DOXYGEN
7479if test -n "$DOXYGEN"; then
7480 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7481echo "${ECHO_T}$DOXYGEN" >&6; }
7482else
7483 { echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6; }
7485fi
7486
7487
Reid Spencera773bd52006-08-04 18:18:08 +00007488# Extract the first word of "groff", so it can be a program name with args.
7489set dummy groff; ac_word=$2
7490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_GROFF+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 case $GROFF in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007506 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 +00007507 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511done
7512done
7513IFS=$as_save_IFS
7514
Reid Spencera773bd52006-08-04 18:18:08 +00007515 ;;
7516esac
7517fi
7518GROFF=$ac_cv_path_GROFF
7519if test -n "$GROFF"; then
7520 { echo "$as_me:$LINENO: result: $GROFF" >&5
7521echo "${ECHO_T}$GROFF" >&6; }
7522else
7523 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
7525fi
7526
7527
7528# Extract the first word of "gzip", so it can be a program name with args.
7529set dummy gzip; ac_word=$2
7530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_GZIP+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 case $GZIP in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007546 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 +00007547 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551done
7552done
7553IFS=$as_save_IFS
7554
Reid Spencera773bd52006-08-04 18:18:08 +00007555 ;;
7556esac
7557fi
7558GZIP=$ac_cv_path_GZIP
7559if test -n "$GZIP"; then
7560 { echo "$as_me:$LINENO: result: $GZIP" >&5
7561echo "${ECHO_T}$GZIP" >&6; }
7562else
7563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
7565fi
7566
7567
7568# Extract the first word of "pod2html", so it can be a program name with args.
7569set dummy pod2html; ac_word=$2
7570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572if test "${ac_cv_path_POD2HTML+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574else
7575 case $POD2HTML in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7578 ;;
7579 *)
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007586 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 +00007587 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593IFS=$as_save_IFS
7594
Reid Spencera773bd52006-08-04 18:18:08 +00007595 ;;
7596esac
7597fi
7598POD2HTML=$ac_cv_path_POD2HTML
7599if test -n "$POD2HTML"; then
7600 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7601echo "${ECHO_T}$POD2HTML" >&6; }
7602else
7603 { echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6; }
7605fi
7606
7607
7608# Extract the first word of "pod2man", so it can be a program name with args.
7609set dummy pod2man; ac_word=$2
7610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612if test "${ac_cv_path_POD2MAN+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615 case $POD2MAN in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007626 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 +00007627 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633IFS=$as_save_IFS
7634
Reid Spencera773bd52006-08-04 18:18:08 +00007635 ;;
7636esac
7637fi
7638POD2MAN=$ac_cv_path_POD2MAN
7639if test -n "$POD2MAN"; then
7640 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7641echo "${ECHO_T}$POD2MAN" >&6; }
7642else
7643 { echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6; }
7645fi
7646
7647
7648# Extract the first word of "runtest", so it can be a program name with args.
7649set dummy runtest; ac_word=$2
7650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652if test "${ac_cv_path_RUNTEST+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655 case $RUNTEST in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007666 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 +00007667 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671done
7672done
7673IFS=$as_save_IFS
7674
Reid Spencera773bd52006-08-04 18:18:08 +00007675 ;;
7676esac
7677fi
7678RUNTEST=$ac_cv_path_RUNTEST
7679if test -n "$RUNTEST"; then
7680 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7681echo "${ECHO_T}$RUNTEST" >&6; }
7682else
7683 { echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6; }
7685fi
7686
7687
7688
7689no_itcl=true
7690{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7691echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7692
7693# Check whether --with-tclinclude was given.
7694if test "${with_tclinclude+set}" = set; then
7695 withval=$with_tclinclude; with_tclinclude=${withval}
7696else
7697 with_tclinclude=''
7698fi
7699
7700if test "${ac_cv_path_tclsh+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703
7704if test x"${with_tclinclude}" != x ; then
7705 if test -f ${with_tclinclude}/tclsh ; then
7706 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7707 elif test -f ${with_tclinclude}/src/tclsh ; then
7708 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7709 else
7710 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7711echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7712 { (exit 1); exit 1; }; }
7713 fi
7714fi
7715
7716if test x"${ac_cv_path_tclsh}" = x ; then
7717 { echo "$as_me:$LINENO: result: none" >&5
7718echo "${ECHO_T}none" >&6; }
7719 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
7720do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722set dummy $ac_prog; ac_word=$2
7723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_TCLSH+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 case $TCLSH in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007739 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 +00007740 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745done
7746IFS=$as_save_IFS
7747
7748 ;;
7749esac
7750fi
7751TCLSH=$ac_cv_path_TCLSH
7752if test -n "$TCLSH"; then
7753 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7754echo "${ECHO_T}$TCLSH" >&6; }
7755else
7756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
7758fi
7759
7760
7761 test -n "$TCLSH" && break
7762done
7763
7764 if test x"${TCLSH}" = x ; then
7765 ac_cv_path_tclsh='';
7766 else
7767 ac_cv_path_tclsh="${TCLSH}";
7768 fi
7769else
7770 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7771echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7772 TCLSH="${ac_cv_path_tclsh}"
7773
7774fi
7775
7776fi
7777
7778# Extract the first word of "zip", so it can be a program name with args.
7779set dummy zip; ac_word=$2
7780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782if test "${ac_cv_path_ZIP+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785 case $ZIP in
7786 [\\/]* | ?:[\\/]*)
7787 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7788 ;;
7789 *)
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007796 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 +00007797 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801done
7802done
7803IFS=$as_save_IFS
7804
Reid Spencera773bd52006-08-04 18:18:08 +00007805 ;;
7806esac
7807fi
7808ZIP=$ac_cv_path_ZIP
7809if test -n "$ZIP"; then
7810 { echo "$as_me:$LINENO: result: $ZIP" >&5
7811echo "${ECHO_T}$ZIP" >&6; }
7812else
7813 { echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6; }
7815fi
7816
7817
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007818for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007819do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824if test "${ac_cv_path_OCAMLC+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 case $OCAMLC in
7828 [\\/]* | ?:[\\/]*)
7829 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7830 ;;
7831 *)
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007838 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 +00007839 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844done
7845IFS=$as_save_IFS
7846
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007847 ;;
7848esac
7849fi
7850OCAMLC=$ac_cv_path_OCAMLC
7851if test -n "$OCAMLC"; then
7852 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7853echo "${ECHO_T}$OCAMLC" >&6; }
7854else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6; }
7857fi
7858
7859
Gordon Henriksene7072162008-03-07 18:20:01 +00007860 test -n "$OCAMLC" && break
7861done
7862
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007863for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007864do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 case $OCAMLOPT in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007883 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 +00007884 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889done
7890IFS=$as_save_IFS
7891
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007892 ;;
7893esac
7894fi
7895OCAMLOPT=$ac_cv_path_OCAMLOPT
7896if test -n "$OCAMLOPT"; then
7897 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7898echo "${ECHO_T}$OCAMLOPT" >&6; }
7899else
7900 { echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6; }
7902fi
7903
7904
Gordon Henriksene7072162008-03-07 18:20:01 +00007905 test -n "$OCAMLOPT" && break
7906done
7907
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007908for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007909do
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 case $OCAMLDEP in
7918 [\\/]* | ?:[\\/]*)
7919 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7920 ;;
7921 *)
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007928 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 +00007929 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935IFS=$as_save_IFS
7936
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007937 ;;
7938esac
7939fi
7940OCAMLDEP=$ac_cv_path_OCAMLDEP
7941if test -n "$OCAMLDEP"; then
7942 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7943echo "${ECHO_T}$OCAMLDEP" >&6; }
7944else
7945 { echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6; }
7947fi
7948
7949
Gordon Henriksene7072162008-03-07 18:20:01 +00007950 test -n "$OCAMLDEP" && break
7951done
7952
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007953for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007954do
7955 # Extract the first word of "$ac_prog", so it can be a program name with args.
7956set dummy $ac_prog; ac_word=$2
7957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7959if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962 case $OCAMLDOC in
7963 [\\/]* | ?:[\\/]*)
7964 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7965 ;;
7966 *)
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007973 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 +00007974 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978done
7979done
7980IFS=$as_save_IFS
7981
7982 ;;
7983esac
7984fi
7985OCAMLDOC=$ac_cv_path_OCAMLDOC
7986if test -n "$OCAMLDOC"; then
7987 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7988echo "${ECHO_T}$OCAMLDOC" >&6; }
7989else
7990 { echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6; }
7992fi
7993
7994
7995 test -n "$OCAMLDOC" && break
7996done
7997
Torok Edwincc499a42008-10-22 09:56:27 +00007998for ac_prog in gas as
7999do
8000 # Extract the first word of "$ac_prog", so it can be a program name with args.
8001set dummy $ac_prog; ac_word=$2
8002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8004if test "${ac_cv_path_GAS+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007 case $GAS in
8008 [\\/]* | ?:[\\/]*)
8009 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8010 ;;
8011 *)
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008018 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 +00008019 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023done
8024done
8025IFS=$as_save_IFS
8026
8027 ;;
8028esac
8029fi
8030GAS=$ac_cv_path_GAS
8031if test -n "$GAS"; then
8032 { echo "$as_me:$LINENO: result: $GAS" >&5
8033echo "${ECHO_T}$GAS" >&6; }
8034else
8035 { echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6; }
8037fi
8038
8039
8040 test -n "$GAS" && break
8041done
8042
Reid Spencera773bd52006-08-04 18:18:08 +00008043
8044{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8045echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8046if test "${llvm_cv_link_use_r+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049 ac_ext=c
8050ac_cpp='$CPP $CPPFLAGS'
8051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8053ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054
8055 oldcflags="$CFLAGS"
8056 CFLAGS="$CFLAGS -Wl,-R."
8057 cat >conftest.$ac_ext <<_ACEOF
8058/* confdefs.h. */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h. */
8063
8064int
8065main ()
8066{
8067int main() { return 0; }
8068 ;
8069 return 0;
8070}
8071_ACEOF
8072rm -f conftest.$ac_objext conftest$ac_exeext
8073if { (ac_try="$ac_link"
8074case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077esac
8078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_link") 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090esac
8091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; } &&
8096 { ac_try='test -s conftest$ac_exeext'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008106 llvm_cv_link_use_r=yes
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 llvm_cv_link_use_r=no
8112fi
8113
Bill Wendlingebcceee2009-04-18 11:20:33 +00008114rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008115 conftest$ac_exeext conftest.$ac_ext
8116 CFLAGS="$oldcflags"
8117 ac_ext=c
8118ac_cpp='$CPP $CPPFLAGS'
8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123
8124fi
8125{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8126echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8127if test "$llvm_cv_link_use_r" = yes ; then
8128
8129cat >>confdefs.h <<\_ACEOF
8130#define HAVE_LINK_R 1
8131_ACEOF
8132
8133 fi
8134
8135
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008136{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8137echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8138if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 ac_ext=c
8142ac_cpp='$CPP $CPPFLAGS'
8143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147 oldcflags="$CFLAGS"
8148 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8149 cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155
8156int
8157main ()
8158{
8159int main() { return 0; }
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008198 llvm_cv_link_use_export_dynamic=yes
8199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 llvm_cv_link_use_export_dynamic=no
8204fi
8205
Bill Wendlingebcceee2009-04-18 11:20:33 +00008206rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008207 conftest$ac_exeext conftest.$ac_ext
8208 CFLAGS="$oldcflags"
8209 ac_ext=c
8210ac_cpp='$CPP $CPPFLAGS'
8211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215
8216fi
8217{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8218echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8219if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8220
8221cat >>confdefs.h <<\_ACEOF
8222#define HAVE_LINK_EXPORT_DYNAMIC 1
8223_ACEOF
8224
8225 fi
8226
8227
Reid Spencera773bd52006-08-04 18:18:08 +00008228
8229
8230{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8231echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8232if test "${ac_cv_c_const+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234else
8235 cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h. */
8241
8242int
8243main ()
8244{
8245/* FIXME: Include the comments suggested by Paul. */
8246#ifndef __cplusplus
8247 /* Ultrix mips cc rejects this. */
8248 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008249 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008250 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008251 char const *const *ccp;
8252 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008253 /* NEC SVR4.0.2 mips cc rejects this. */
8254 struct point {int x, y;};
8255 static struct point const zero = {0,0};
8256 /* AIX XL C 1.02.0.0 rejects this.
8257 It does not let you subtract one const X* pointer from another in
8258 an arm of an if-expression whose if-part is not a constant
8259 expression */
8260 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008261 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008262 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008263 ++ccp;
8264 p = (char**) ccp;
8265 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008266 { /* SCO 3.2v4 cc rejects this. */
8267 char *t;
8268 char const *s = 0 ? (char *) 0 : (char const *) 0;
8269
8270 *t++ = 0;
8271 if (s) return 0;
8272 }
8273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8274 int x[] = {25, 17};
8275 const int *foo = &x[0];
8276 ++foo;
8277 }
8278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8279 typedef const int *iptr;
8280 iptr p = 0;
8281 ++p;
8282 }
8283 { /* AIX XL C 1.02.0.0 rejects this saying
8284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8285 struct s { int j; const int *ap[3]; };
8286 struct s *b; b->j = 5;
8287 }
8288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8289 const int foo = 10;
8290 if (!foo) return 0;
8291 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008292 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008293#endif
8294
8295 ;
8296 return 0;
8297}
8298_ACEOF
8299rm -f conftest.$ac_objext
8300if { (ac_try="$ac_compile"
8301case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008333 ac_cv_c_const=yes
8334else
8335 echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 ac_cv_c_const=no
8339fi
8340
8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342fi
8343{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8344echo "${ECHO_T}$ac_cv_c_const" >&6; }
8345if test $ac_cv_c_const = no; then
8346
8347cat >>confdefs.h <<\_ACEOF
8348#define const
8349_ACEOF
8350
8351fi
8352
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008353
8354
8355
8356
8357
8358ac_header_dirent=no
8359for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8360 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008361{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8362echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 cat >conftest.$ac_ext <<_ACEOF
8367/* confdefs.h. */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h. */
8372#include <sys/types.h>
8373#include <$ac_hdr>
8374
8375int
8376main ()
8377{
8378if ((DIR *) 0)
8379return 0;
8380 ;
8381 return 0;
8382}
8383_ACEOF
8384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008385if { (ac_try="$ac_compile"
8386case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389esac
8390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest.$ac_objext'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412esac
8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008418 eval "$as_ac_Header=yes"
8419else
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
Reid Spencera773bd52006-08-04 18:18:08 +00008423 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424fi
Reid Spencera773bd52006-08-04 18:18:08 +00008425
8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008427fi
Reid Spencera773bd52006-08-04 18:18:08 +00008428ac_res=`eval echo '${'$as_ac_Header'}'`
8429 { echo "$as_me:$LINENO: result: $ac_res" >&5
8430echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008431if test `eval echo '${'$as_ac_Header'}'` = yes; then
8432 cat >>confdefs.h <<_ACEOF
8433#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8434_ACEOF
8435
8436ac_header_dirent=$ac_hdr; break
8437fi
8438
8439done
8440# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8441if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008442 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8443echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008444if test "${ac_cv_search_opendir+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008448cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454
Reid Spencera773bd52006-08-04 18:18:08 +00008455/* Override any GCC internal prototype to avoid an error.
8456 Use char because int might match the return type of a GCC
8457 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008458#ifdef __cplusplus
8459extern "C"
8460#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008461char opendir ();
8462int
8463main ()
8464{
Reid Spencera773bd52006-08-04 18:18:08 +00008465return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466 ;
8467 return 0;
8468}
8469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008470for ac_lib in '' dir; do
8471 if test -z "$ac_lib"; then
8472 ac_res="none required"
8473 else
8474 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008476 fi
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (ac_try="$ac_link"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008511 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008516
8517fi
8518
Bill Wendlingebcceee2009-04-18 11:20:33 +00008519rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008520 conftest$ac_exeext
8521 if test "${ac_cv_search_opendir+set}" = set; then
8522 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008523fi
John Criswell7a73b802003-06-30 21:59:07 +00008524done
Reid Spencera773bd52006-08-04 18:18:08 +00008525if test "${ac_cv_search_opendir+set}" = set; then
8526 :
8527else
8528 ac_cv_search_opendir=no
8529fi
8530rm conftest.$ac_ext
8531LIBS=$ac_func_search_save_LIBS
8532fi
8533{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8534echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8535ac_res=$ac_cv_search_opendir
8536if test "$ac_res" != no; then
8537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008538
Reid Spencera773bd52006-08-04 18:18:08 +00008539fi
8540
8541else
8542 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8543echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8544if test "${ac_cv_search_opendir+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547 ac_func_search_save_LIBS=$LIBS
8548cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554
8555/* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8558#ifdef __cplusplus
8559extern "C"
8560#endif
8561char opendir ();
8562int
8563main ()
8564{
8565return opendir ();
8566 ;
8567 return 0;
8568}
8569_ACEOF
8570for ac_lib in '' x; do
8571 if test -z "$ac_lib"; then
8572 ac_res="none required"
8573 else
8574 ac_res=-l$ac_lib
8575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8576 fi
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578if { (ac_try="$ac_link"
8579case "(($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_link") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605esac
8606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008611 ac_cv_search_opendir=$ac_res
8612else
8613 echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616
8617fi
8618
Bill Wendlingebcceee2009-04-18 11:20:33 +00008619rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008620 conftest$ac_exeext
8621 if test "${ac_cv_search_opendir+set}" = set; then
8622 break
8623fi
8624done
8625if test "${ac_cv_search_opendir+set}" = set; then
8626 :
8627else
8628 ac_cv_search_opendir=no
8629fi
8630rm conftest.$ac_ext
8631LIBS=$ac_func_search_save_LIBS
8632fi
8633{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8634echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8635ac_res=$ac_cv_search_opendir
8636if test "$ac_res" != no; then
8637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8638
8639fi
8640
8641fi
John Criswell7a73b802003-06-30 21:59:07 +00008642
8643
8644for ac_header in dlfcn.h
8645do
8646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008651 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008652fi
Reid Spencera773bd52006-08-04 18:18:08 +00008653ac_res=`eval echo '${'$as_ac_Header'}'`
8654 { echo "$as_me:$LINENO: result: $ac_res" >&5
8655echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008656else
Brian Gaeke0a621332004-09-08 20:38:05 +00008657 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008660cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008661/* confdefs.h. */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
8665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008666$ac_includes_default
8667#include <$ac_header>
8668_ACEOF
8669rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008670if { (ac_try="$ac_compile"
8671case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674esac
8675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008677 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687esac
8688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008703 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008704else
8705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008706sed 's/^/| /' conftest.$ac_ext >&5
8707
Reid Spencera773bd52006-08-04 18:18:08 +00008708 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008709fi
Reid Spencera773bd52006-08-04 18:18:08 +00008710
8711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008714
8715# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008718cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
8724#include <$ac_header>
8725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008726if { (ac_try="$ac_cpp conftest.$ac_ext"
8727case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008738 (exit $ac_status); } >/dev/null; then
8739 if test -s conftest.err; then
8740 ac_cpp_err=$ac_c_preproc_warn_flag
8741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8742 else
8743 ac_cpp_err=
8744 fi
8745else
8746 ac_cpp_err=yes
8747fi
8748if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008749 ac_header_preproc=yes
8750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_header_preproc=no
8755fi
Reid Spencera773bd52006-08-04 18:18:08 +00008756
Brian Gaeke0a621332004-09-08 20:38:05 +00008757rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008760
8761# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008769 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008770 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008783 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008784## ----------------------------------- ##
8785## Report this to llvmbugs@cs.uiuc.edu ##
8786## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008787_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008788 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008789 ;;
8790esac
Reid Spencera773bd52006-08-04 18:18:08 +00008791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008796 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008797fi
Reid Spencera773bd52006-08-04 18:18:08 +00008798ac_res=`eval echo '${'$as_ac_Header'}'`
8799 { echo "$as_me:$LINENO: result: $ac_res" >&5
8800echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008801
8802fi
John Criswell7a73b802003-06-30 21:59:07 +00008803if test `eval echo '${'$as_ac_Header'}'` = yes; then
8804 cat >>confdefs.h <<_ACEOF
8805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8806_ACEOF
8807
8808fi
8809
8810done
8811
Reid Spencera773bd52006-08-04 18:18:08 +00008812# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008813if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008814 enableval=$enable_ltdl_install;
8815fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008816
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817
Bill Wendlingebcceee2009-04-18 11:20:33 +00008818
8819
8820if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821 INSTALL_LTDL_TRUE=
8822 INSTALL_LTDL_FALSE='#'
8823else
8824 INSTALL_LTDL_TRUE='#'
8825 INSTALL_LTDL_FALSE=
8826fi
8827
Bill Wendlingebcceee2009-04-18 11:20:33 +00008828
8829
8830if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831 CONVENIENCE_LTDL_TRUE=
8832 CONVENIENCE_LTDL_FALSE='#'
8833else
8834 CONVENIENCE_LTDL_TRUE='#'
8835 CONVENIENCE_LTDL_FALSE=
8836fi
8837
8838
Reid Spencera773bd52006-08-04 18:18:08 +00008839{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8840echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841library_names_spec=
8842libname_spec='lib$name'
8843soname_spec=
8844shrext_cmds=".so"
8845postinstall_cmds=
8846postuninstall_cmds=
8847finish_cmds=
8848finish_eval=
8849shlibpath_var=
8850shlibpath_overrides_runpath=unknown
8851version_type=none
8852dynamic_linker="$host_os ld.so"
8853sys_lib_dlsearch_path_spec="/lib /usr/lib"
8854if test "$GCC" = yes; then
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8857 # if the path contains ";" then we assume it to be the separator
8858 # otherwise default to the standard path separator (i.e. ":") - it is
8859 # assumed that no part of a normal pathname contains ";" but that should
8860 # okay in the real world where ";" in dirpaths is itself problematic.
8861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8862 else
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8864 fi
8865else
8866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8867fi
8868need_lib_prefix=unknown
8869hardcode_into_libs=no
8870
8871# when you set need_version to no, make sure it does not cause -set_version
8872# flags to be left without arguments
8873need_version=unknown
8874
8875case $host_os in
8876aix3*)
8877 version_type=linux
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8879 shlibpath_var=LIBPATH
8880
8881 # AIX 3 has no versioning support, so we append a major version to the name.
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884
8885aix4* | aix5*)
8886 version_type=linux
8887 need_lib_prefix=no
8888 need_version=no
8889 hardcode_into_libs=yes
8890 if test "$host_cpu" = ia64; then
8891 # AIX 5 supports IA64
8892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 else
8895 # With GCC up to 2.95.x, collect2 would create an import file
8896 # for dependence libraries. The import file would start with
8897 # the line `#! .'. This would cause the generated library to
8898 # depend on `.', always an invalid library. This was fixed in
8899 # development snapshots of GCC prior to 3.0.
8900 case $host_os in
8901 aix4 | aix4.[01] | aix4.[01].*)
8902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8903 echo ' yes '
8904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8905 :
8906 else
8907 can_build_shared=no
8908 fi
8909 ;;
8910 esac
8911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8912 # soname into executable. Probably we can add versioning support to
8913 # collect2, so additional links can be useful in future.
8914 if test "$aix_use_runtimelinking" = yes; then
8915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8916 # instead of lib<name>.a to let people know that these are not
8917 # typical AIX shared libraries.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 else
8920 # We preserve .a as extension for shared libraries through AIX4.2
8921 # and later when we are not doing run time linking.
8922 library_names_spec='${libname}${release}.a $libname.a'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 fi
8925 shlibpath_var=LIBPATH
8926 fi
8927 ;;
8928
8929amigaos*)
8930 library_names_spec='$libname.ixlibrary $libname.a'
8931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8932 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'
8933 ;;
8934
8935beos*)
8936 library_names_spec='${libname}${shared_ext}'
8937 dynamic_linker="$host_os ld.so"
8938 shlibpath_var=LIBRARY_PATH
8939 ;;
8940
8941bsdi[45]*)
8942 version_type=linux
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8950 # the default ld.so.conf also contains /usr/contrib/lib and
8951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8952 # libtool to hard-code these into programs
8953 ;;
8954
8955cygwin* | mingw* | pw32*)
8956 version_type=windows
8957 shrext_cmds=".dll"
8958 need_version=no
8959 need_lib_prefix=no
8960
8961 case $GCC,$host_os in
8962 yes,cygwin* | yes,mingw* | yes,pw32*)
8963 library_names_spec='$libname.dll.a'
8964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8965 postinstall_cmds='base_file=`basename \${file}`~
8966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8967 dldir=$destdir/`dirname \$dlpath`~
8968 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008969 $install_prog $dir/$dlname \$dldir/$dlname~
8970 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8972 dlpath=$dir/\$dldll~
8973 $rm \$dlpath'
8974 shlibpath_overrides_runpath=yes
8975
8976 case $host_os in
8977 cygwin*)
8978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8981 ;;
8982 mingw*)
8983 # MinGW DLLs use traditional 'lib' prefix
8984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8987 # It is most probably a Windows format PATH printed by
8988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8989 # path with ; separators, and with drive letters. We can handle the
8990 # drive letters (cygwin fileutils understands them), so leave them,
8991 # especially as we might pass files found there to a mingw objdump,
8992 # which wouldn't understand a cygwinified path. Ahh.
8993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8994 else
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8996 fi
8997 ;;
8998 pw32*)
8999 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009000 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 +00009001 ;;
9002 esac
9003 ;;
9004
9005 *)
9006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9007 ;;
9008 esac
9009 dynamic_linker='Win32 ld.exe'
9010 # FIXME: first we should search . and the directory the executable is in
9011 shlibpath_var=PATH
9012 ;;
9013
9014darwin* | rhapsody*)
9015 dynamic_linker="$host_os dyld"
9016 version_type=darwin
9017 need_lib_prefix=no
9018 need_version=no
9019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9020 soname_spec='${libname}${release}${major}$shared_ext'
9021 shlibpath_overrides_runpath=yes
9022 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009023 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9025 if test "$GCC" = yes; then
9026 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"`
9027 else
9028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9029 fi
9030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9031 ;;
9032
9033dgux*)
9034 version_type=linux
9035 need_lib_prefix=no
9036 need_version=no
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 ;;
9041
9042freebsd1*)
9043 dynamic_linker=no
9044 ;;
9045
9046kfreebsd*-gnu)
9047 version_type=linux
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=no
9054 hardcode_into_libs=yes
9055 dynamic_linker='GNU ld.so'
9056 ;;
9057
Reid Spencera773bd52006-08-04 18:18:08 +00009058freebsd* | dragonfly*)
9059 # DragonFly does not have aout. When/if they implement a new
9060 # versioning mechanism, adjust this.
9061 if test -x /usr/bin/objformat; then
9062 objformat=`/usr/bin/objformat`
9063 else
9064 case $host_os in
9065 freebsd[123]*) objformat=aout ;;
9066 *) objformat=elf ;;
9067 esac
9068 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069 version_type=freebsd-$objformat
9070 case $version_type in
9071 freebsd-elf*)
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 need_version=no
9074 need_lib_prefix=no
9075 ;;
9076 freebsd-*)
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9078 need_version=yes
9079 ;;
9080 esac
9081 shlibpath_var=LD_LIBRARY_PATH
9082 case $host_os in
9083 freebsd2*)
9084 shlibpath_overrides_runpath=yes
9085 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009086 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009095 freebsd*) # from 4.6 on
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9098 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009099 esac
9100 ;;
9101
9102gnu*)
9103 version_type=linux
9104 need_lib_prefix=no
9105 need_version=no
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 hardcode_into_libs=yes
9110 ;;
9111
9112hpux9* | hpux10* | hpux11*)
9113 # Give a soname corresponding to the major version so that dld.sl refuses to
9114 # link against other versions.
9115 version_type=sunos
9116 need_lib_prefix=no
9117 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009118 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009119 ia64*)
9120 shrext_cmds='.so'
9121 hardcode_into_libs=yes
9122 dynamic_linker="$host_os dld.so"
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 if test "X$HPUX_IA64_MODE" = X32; then
9128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9129 else
9130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9131 fi
9132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9133 ;;
9134 hppa*64*)
9135 shrext_cmds='.sl'
9136 hardcode_into_libs=yes
9137 dynamic_linker="$host_os dld.sl"
9138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9144 ;;
9145 *)
9146 shrext_cmds='.sl'
9147 dynamic_linker="$host_os dld.sl"
9148 shlibpath_var=SHLIB_PATH
9149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 ;;
9153 esac
9154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9155 postinstall_cmds='chmod 555 $lib'
9156 ;;
9157
Reid Spencera773bd52006-08-04 18:18:08 +00009158interix3*)
9159 version_type=linux
9160 need_lib_prefix=no
9161 need_version=no
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=no
9167 hardcode_into_libs=yes
9168 ;;
9169
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170irix5* | irix6* | nonstopux*)
9171 case $host_os in
9172 nonstopux*) version_type=nonstopux ;;
9173 *)
9174 if test "$lt_cv_prog_gnu_ld" = yes; then
9175 version_type=linux
9176 else
9177 version_type=irix
9178 fi ;;
9179 esac
9180 need_lib_prefix=no
9181 need_version=no
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9184 case $host_os in
9185 irix5* | nonstopux*)
9186 libsuff= shlibsuff=
9187 ;;
9188 *)
9189 case $LD in # libtool.m4 will add one of these switches to LD
9190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9191 libsuff= shlibsuff= libmagic=32-bit;;
9192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9193 libsuff=32 shlibsuff=N32 libmagic=N32;;
9194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9196 *) libsuff= shlibsuff= libmagic=never-match;;
9197 esac
9198 ;;
9199 esac
9200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9201 shlibpath_overrides_runpath=no
9202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9204 hardcode_into_libs=yes
9205 ;;
9206
9207# No shared lib support for Linux oldld, aout, or coff.
9208linux*oldld* | linux*aout* | linux*coff*)
9209 dynamic_linker=no
9210 ;;
9211
9212# This must be Linux ELF.
9213linux*)
9214 version_type=linux
9215 need_lib_prefix=no
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=no
9222 # This implies no fast_install, which is unacceptable.
9223 # Some rework will be needed to allow for fast_install
9224 # before this can be enabled.
9225 hardcode_into_libs=yes
9226
9227 # Append ld.so.conf contents to the search path
9228 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009229 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 +00009230 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9231 fi
9232
9233 # We used to test for /lib/ld.so.1 and disable shared libraries on
9234 # powerpc, because MkLinux only supported shared libraries with the
9235 # GNU dynamic linker. Since this was broken with cross compilers,
9236 # most powerpc-linux boxes support dynamic linking these days and
9237 # people can always --disable-shared, the test was removed, and we
9238 # assume the GNU/Linux dynamic linker is in use.
9239 dynamic_linker='GNU/Linux ld.so'
9240 ;;
9241
9242knetbsd*-gnu)
9243 version_type=linux
9244 need_lib_prefix=no
9245 need_version=no
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=no
9250 hardcode_into_libs=yes
9251 dynamic_linker='GNU ld.so'
9252 ;;
9253
9254netbsd*)
9255 version_type=sunos
9256 need_lib_prefix=no
9257 need_version=no
9258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9261 dynamic_linker='NetBSD (a.out) ld.so'
9262 else
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 dynamic_linker='NetBSD ld.elf_so'
9266 fi
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes
9269 hardcode_into_libs=yes
9270 ;;
9271
9272newsos6)
9273 version_type=linux
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes
9277 ;;
9278
9279nto-qnx*)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9287 ;;
9288
9289openbsd*)
9290 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009291 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9294 case $host_os in
9295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9296 *) need_version=no ;;
9297 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 case $host_os in
9303 openbsd2.[89] | openbsd2.[89].*)
9304 shlibpath_overrides_runpath=no
9305 ;;
9306 *)
9307 shlibpath_overrides_runpath=yes
9308 ;;
9309 esac
9310 else
9311 shlibpath_overrides_runpath=yes
9312 fi
9313 ;;
9314
9315os2*)
9316 libname_spec='$name'
9317 shrext_cmds=".dll"
9318 need_lib_prefix=no
9319 library_names_spec='$libname${shared_ext} $libname.a'
9320 dynamic_linker='OS/2 ld.exe'
9321 shlibpath_var=LIBPATH
9322 ;;
9323
9324osf3* | osf4* | osf5*)
9325 version_type=osf
9326 need_lib_prefix=no
9327 need_version=no
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9333 ;;
9334
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335solaris*)
9336 version_type=linux
9337 need_lib_prefix=no
9338 need_version=no
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes
9343 hardcode_into_libs=yes
9344 # ldd complains unless libraries are executable
9345 postinstall_cmds='chmod +x $lib'
9346 ;;
9347
9348sunos4*)
9349 version_type=sunos
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=yes
9354 if test "$with_gnu_ld" = yes; then
9355 need_lib_prefix=no
9356 fi
9357 need_version=yes
9358 ;;
9359
Reid Spencera773bd52006-08-04 18:18:08 +00009360sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361 version_type=linux
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 case $host_vendor in
9366 sni)
9367 shlibpath_overrides_runpath=no
9368 need_lib_prefix=no
9369 export_dynamic_flag_spec='${wl}-Blargedynsym'
9370 runpath_var=LD_RUN_PATH
9371 ;;
9372 siemens)
9373 need_lib_prefix=no
9374 ;;
9375 motorola)
9376 need_lib_prefix=no
9377 need_version=no
9378 shlibpath_overrides_runpath=no
9379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9380 ;;
9381 esac
9382 ;;
9383
9384sysv4*MP*)
9385 if test -d /usr/nec ;then
9386 version_type=linux
9387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9388 soname_spec='$libname${shared_ext}.$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 fi
9391 ;;
9392
Reid Spencera773bd52006-08-04 18:18:08 +00009393sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9394 version_type=freebsd-elf
9395 need_lib_prefix=no
9396 need_version=no
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 hardcode_into_libs=yes
9401 if test "$with_gnu_ld" = yes; then
9402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9403 shlibpath_overrides_runpath=no
9404 else
9405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9406 shlibpath_overrides_runpath=yes
9407 case $host_os in
9408 sco3.2v5*)
9409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410 ;;
9411 esac
9412 fi
9413 sys_lib_dlsearch_path_spec='/usr/lib'
9414 ;;
9415
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416uts4*)
9417 version_type=linux
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 ;;
9422
9423*)
9424 dynamic_linker=no
9425 ;;
9426esac
Reid Spencera773bd52006-08-04 18:18:08 +00009427{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9428echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429test "$dynamic_linker" = no && can_build_shared=no
9430
Reid Spencera773bd52006-08-04 18:18:08 +00009431variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9432if test "$GCC" = yes; then
9433 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9434fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435
Reid Spencera773bd52006-08-04 18:18:08 +00009436
9437{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9438echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009439if test "${libltdl_cv_shlibext+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441else
9442
9443module=yes
9444eval libltdl_cv_shlibext=$shrext_cmds
9445
9446fi
Reid Spencera773bd52006-08-04 18:18:08 +00009447{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9448echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009449if test -n "$libltdl_cv_shlibext"; then
9450
9451cat >>confdefs.h <<_ACEOF
9452#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9453_ACEOF
9454
9455fi
9456
9457
Reid Spencera773bd52006-08-04 18:18:08 +00009458{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9459echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460if test "${libltdl_cv_shlibpath_var+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463 libltdl_cv_shlibpath_var="$shlibpath_var"
9464fi
Reid Spencera773bd52006-08-04 18:18:08 +00009465{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9466echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467if test -n "$libltdl_cv_shlibpath_var"; then
9468
9469cat >>confdefs.h <<_ACEOF
9470#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9471_ACEOF
9472
9473fi
9474
9475
Reid Spencera773bd52006-08-04 18:18:08 +00009476{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9477echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478if test "${libltdl_cv_sys_search_path+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9482fi
Reid Spencera773bd52006-08-04 18:18:08 +00009483{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9484echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485if test -n "$libltdl_cv_sys_search_path"; then
9486 sys_search_path=
9487 for dir in $libltdl_cv_sys_search_path; do
9488 if test -z "$sys_search_path"; then
9489 sys_search_path="$dir"
9490 else
9491 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9492 fi
9493 done
9494
9495cat >>confdefs.h <<_ACEOF
9496#define LTDL_SYSSEARCHPATH "$sys_search_path"
9497_ACEOF
9498
9499fi
9500
Reid Spencera773bd52006-08-04 18:18:08 +00009501{ echo "$as_me:$LINENO: checking for objdir" >&5
9502echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503if test "${libltdl_cv_objdir+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506 libltdl_cv_objdir="$objdir"
9507 if test -n "$objdir"; then
9508 :
9509 else
9510 rm -f .libs 2>/dev/null
9511 mkdir .libs 2>/dev/null
9512 if test -d .libs; then
9513 libltdl_cv_objdir=.libs
9514 else
9515 # MS-DOS does not allow filenames that begin with a dot.
9516 libltdl_cv_objdir=_libs
9517 fi
9518 rmdir .libs 2>/dev/null
9519 fi
9520
9521fi
Reid Spencera773bd52006-08-04 18:18:08 +00009522{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9523echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524
9525cat >>confdefs.h <<_ACEOF
9526#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9527_ACEOF
9528
9529
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530
9531
9532
9533
9534# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009535{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9536echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540
9541# These are sane defaults that work on at least a few old systems.
9542# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9543
9544# Character class describing NM global symbol codes.
9545symcode='[BCDEGRST]'
9546
9547# Regexp to match symbols that can be accessed directly from C.
9548sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9549
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550# Transform an extracted symbol line into a proper C declaration
9551lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9552
9553# Transform an extracted symbol line into symbol name and symbol address
9554lt_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'"
9555
9556# Define system-specific variables.
9557case $host_os in
9558aix*)
9559 symcode='[BCDT]'
9560 ;;
9561cygwin* | mingw* | pw32*)
9562 symcode='[ABCDGISTW]'
9563 ;;
9564hpux*) # Its linker distinguishes data from code symbols
9565 if test "$host_cpu" = ia64; then
9566 symcode='[ABCDEGRST]'
9567 fi
9568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9569 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'"
9570 ;;
9571linux*)
9572 if test "$host_cpu" = ia64; then
9573 symcode='[ABCDGIRSTW]'
9574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9575 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'"
9576 fi
9577 ;;
9578irix* | nonstopux*)
9579 symcode='[BCDEGRST]'
9580 ;;
9581osf*)
9582 symcode='[BCDEGQRST]'
9583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009584solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585 symcode='[BDRT]'
9586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009587sco3.2v5*)
9588 symcode='[DT]'
9589 ;;
9590sysv4.2uw2*)
9591 symcode='[DT]'
9592 ;;
9593sysv5* | sco5v6* | unixware* | OpenUNIX*)
9594 symcode='[ABDT]'
9595 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596sysv4)
9597 symcode='[DFNSTU]'
9598 ;;
9599esac
9600
9601# Handle CRLF in mingw tool chain
9602opt_cr=
9603case $build_os in
9604mingw*)
9605 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9606 ;;
9607esac
9608
9609# If we're using GNU nm, then use its standard symbol codes.
9610case `$NM -V 2>&1` in
9611*GNU* | *'with BFD'*)
9612 symcode='[ABCDGIRSTW]' ;;
9613esac
9614
9615# Try without a prefix undercore, then with it.
9616for ac_symprfx in "" "_"; do
9617
Reid Spencera773bd52006-08-04 18:18:08 +00009618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9619 symxfrm="\\1 $ac_symprfx\\2 \\2"
9620
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009622 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 +00009623
9624 # Check to see that the pipe works correctly.
9625 pipe_works=no
9626
9627 rm -f conftest*
9628 cat > conftest.$ac_ext <<EOF
9629#ifdef __cplusplus
9630extern "C" {
9631#endif
9632char nm_test_var;
9633void nm_test_func(){}
9634#ifdef __cplusplus
9635}
9636#endif
9637int main(){nm_test_var='a';nm_test_func();return(0);}
9638EOF
9639
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; then
9645 # Now try to grab the symbols.
9646 nlist=conftest.nm
9647 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9648 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && test -s "$nlist"; then
9652 # Try sorting and uniquifying the output.
9653 if sort "$nlist" | uniq > "$nlist"T; then
9654 mv -f "$nlist"T "$nlist"
9655 else
9656 rm -f "$nlist"T
9657 fi
9658
9659 # Make sure that we snagged all the symbols we need.
9660 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9661 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9662 cat <<EOF > conftest.$ac_ext
9663#ifdef __cplusplus
9664extern "C" {
9665#endif
9666
9667EOF
9668 # Now generate the symbol file.
9669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9670
9671 cat <<EOF >> conftest.$ac_ext
9672#if defined (__STDC__) && __STDC__
9673# define lt_ptr_t void *
9674#else
9675# define lt_ptr_t char *
9676# define const
9677#endif
9678
9679/* The mapping between symbol names and symbols. */
9680const struct {
9681 const char *name;
9682 lt_ptr_t address;
9683}
9684lt_preloaded_symbols[] =
9685{
9686EOF
9687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9688 cat <<\EOF >> conftest.$ac_ext
9689 {0, (lt_ptr_t) 0}
9690};
9691
9692#ifdef __cplusplus
9693}
9694#endif
9695EOF
9696 # Now try linking the two files.
9697 mv conftest.$ac_objext conftstm.$ac_objext
9698 lt_save_LIBS="$LIBS"
9699 lt_save_CFLAGS="$CFLAGS"
9700 LIBS="conftstm.$ac_objext"
9701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9707 pipe_works=yes
9708 fi
9709 LIBS="$lt_save_LIBS"
9710 CFLAGS="$lt_save_CFLAGS"
9711 else
9712 echo "cannot find nm_test_func in $nlist" >&5
9713 fi
9714 else
9715 echo "cannot find nm_test_var in $nlist" >&5
9716 fi
9717 else
9718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9719 fi
9720 else
9721 echo "$progname: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 fi
9724 rm -f conftest* conftst*
9725
9726 # Do not use the global_symbol_pipe unless it works.
9727 if test "$pipe_works" = yes; then
9728 break
9729 else
9730 lt_cv_sys_global_symbol_pipe=
9731 fi
9732done
9733
9734fi
9735
9736if test -z "$lt_cv_sys_global_symbol_pipe"; then
9737 lt_cv_sys_global_symbol_to_cdecl=
9738fi
9739if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009740 { echo "$as_me:$LINENO: result: failed" >&5
9741echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742else
Reid Spencera773bd52006-08-04 18:18:08 +00009743 { echo "$as_me:$LINENO: result: ok" >&5
9744echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745fi
9746
9747
Reid Spencera773bd52006-08-04 18:18:08 +00009748{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9749echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9754 libltdl_cv_preloaded_symbols=yes
9755 else
9756 libltdl_cv_preloaded_symbols=no
9757 fi
9758
9759fi
Reid Spencera773bd52006-08-04 18:18:08 +00009760{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9761echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9763
9764cat >>confdefs.h <<\_ACEOF
9765#define HAVE_PRELOADED_SYMBOLS 1
9766_ACEOF
9767
9768fi
9769
9770LIBADD_DL=
9771
9772ac_ext=c
9773ac_cpp='$CPP $CPPFLAGS'
9774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776ac_compiler_gnu=$ac_cv_c_compiler_gnu
9777
9778
Reid Spencera773bd52006-08-04 18:18:08 +00009779{ echo "$as_me:$LINENO: checking for shl_load" >&5
9780echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781if test "${ac_cv_func_shl_load+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 cat >conftest.$ac_ext <<_ACEOF
9785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
9790/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9792#define shl_load innocuous_shl_load
9793
9794/* System header to define __stub macros and hopefully few prototypes,
9795 which can conflict with char shl_load (); below.
9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797 <limits.h> exists even on freestanding compilers. */
9798
9799#ifdef __STDC__
9800# include <limits.h>
9801#else
9802# include <assert.h>
9803#endif
9804
9805#undef shl_load
9806
Reid Spencera773bd52006-08-04 18:18:08 +00009807/* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009810#ifdef __cplusplus
9811extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813char shl_load ();
9814/* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009817#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819#endif
9820
9821int
9822main ()
9823{
Reid Spencera773bd52006-08-04 18:18:08 +00009824return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9844 { (case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_try") 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863 ac_cv_func_shl_load=yes
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
Reid Spencera773bd52006-08-04 18:18:08 +00009868 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869fi
Reid Spencera773bd52006-08-04 18:18:08 +00009870
Bill Wendlingebcceee2009-04-18 11:20:33 +00009871rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872 conftest$ac_exeext conftest.$ac_ext
9873fi
Reid Spencera773bd52006-08-04 18:18:08 +00009874{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9875echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876if test $ac_cv_func_shl_load = yes; then
9877
9878cat >>confdefs.h <<\_ACEOF
9879#define HAVE_SHL_LOAD 1
9880_ACEOF
9881
9882else
Reid Spencera773bd52006-08-04 18:18:08 +00009883 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9884echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888 ac_check_lib_save_LIBS=$LIBS
9889LIBS="-ldld $LIBS"
9890cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h. */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h. */
9896
Reid Spencera773bd52006-08-04 18:18:08 +00009897/* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900#ifdef __cplusplus
9901extern "C"
9902#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903char shl_load ();
9904int
9905main ()
9906{
Reid Spencera773bd52006-08-04 18:18:08 +00009907return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009913if { (ac_try="$ac_link"
9914case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917esac
9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920 ac_status=$?
9921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930esac
9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9940esac
9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_try") 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 ac_cv_lib_dld_shl_load=yes
9947else
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
Reid Spencera773bd52006-08-04 18:18:08 +00009951 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952fi
Reid Spencera773bd52006-08-04 18:18:08 +00009953
Bill Wendlingebcceee2009-04-18 11:20:33 +00009954rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955 conftest$ac_exeext conftest.$ac_ext
9956LIBS=$ac_check_lib_save_LIBS
9957fi
Reid Spencera773bd52006-08-04 18:18:08 +00009958{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9959echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960if test $ac_cv_lib_dld_shl_load = yes; then
9961
9962cat >>confdefs.h <<\_ACEOF
9963#define HAVE_SHL_LOAD 1
9964_ACEOF
9965
9966 LIBADD_DL="$LIBADD_DL -ldld"
9967else
Reid Spencera773bd52006-08-04 18:18:08 +00009968 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9969echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972else
9973 ac_check_lib_save_LIBS=$LIBS
9974LIBS="-ldl $LIBS"
9975cat >conftest.$ac_ext <<_ACEOF
9976/* confdefs.h. */
9977_ACEOF
9978cat confdefs.h >>conftest.$ac_ext
9979cat >>conftest.$ac_ext <<_ACEOF
9980/* end confdefs.h. */
9981
Reid Spencera773bd52006-08-04 18:18:08 +00009982/* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985#ifdef __cplusplus
9986extern "C"
9987#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988char dlopen ();
9989int
9990main ()
9991{
Reid Spencera773bd52006-08-04 18:18:08 +00009992return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993 ;
9994 return 0;
9995}
9996_ACEOF
9997rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009998if { (ac_try="$ac_link"
9999case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031 ac_cv_lib_dl_dlopen=yes
10032else
10033 echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
Reid Spencera773bd52006-08-04 18:18:08 +000010036 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037fi
Reid Spencera773bd52006-08-04 18:18:08 +000010038
Bill Wendlingebcceee2009-04-18 11:20:33 +000010039rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040 conftest$ac_exeext conftest.$ac_ext
10041LIBS=$ac_check_lib_save_LIBS
10042fi
Reid Spencera773bd52006-08-04 18:18:08 +000010043{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10044echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045if test $ac_cv_lib_dl_dlopen = yes; then
10046
10047cat >>confdefs.h <<\_ACEOF
10048#define HAVE_LIBDL 1
10049_ACEOF
10050
10051 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10052else
10053 cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
10059#if HAVE_DLFCN_H
10060# include <dlfcn.h>
10061#endif
10062
10063int
10064main ()
10065{
10066dlopen(0, 0);
10067 ;
10068 return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010072if { (ac_try="$ac_link"
10073case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105
10106cat >>confdefs.h <<\_ACEOF
10107#define HAVE_LIBDL 1
10108_ACEOF
10109 libltdl_cv_func_dlopen="yes"
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
Reid Spencera773bd52006-08-04 18:18:08 +000010114 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10115echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 ac_check_lib_save_LIBS=$LIBS
10120LIBS="-lsvld $LIBS"
10121cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h. */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h. */
10127
Reid Spencera773bd52006-08-04 18:18:08 +000010128/* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131#ifdef __cplusplus
10132extern "C"
10133#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134char dlopen ();
10135int
10136main ()
10137{
Reid Spencera773bd52006-08-04 18:18:08 +000010138return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177 ac_cv_lib_svld_dlopen=yes
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
Reid Spencera773bd52006-08-04 18:18:08 +000010182 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183fi
Reid Spencera773bd52006-08-04 18:18:08 +000010184
Bill Wendlingebcceee2009-04-18 11:20:33 +000010185rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 conftest$ac_exeext conftest.$ac_ext
10187LIBS=$ac_check_lib_save_LIBS
10188fi
Reid Spencera773bd52006-08-04 18:18:08 +000010189{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10190echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191if test $ac_cv_lib_svld_dlopen = yes; then
10192
10193cat >>confdefs.h <<\_ACEOF
10194#define HAVE_LIBDL 1
10195_ACEOF
10196
10197 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10198else
Reid Spencera773bd52006-08-04 18:18:08 +000010199 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203else
10204 ac_check_lib_save_LIBS=$LIBS
10205LIBS="-ldld $LIBS"
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212
Reid Spencera773bd52006-08-04 18:18:08 +000010213/* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216#ifdef __cplusplus
10217extern "C"
10218#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219char dld_link ();
10220int
10221main ()
10222{
Reid Spencera773bd52006-08-04 18:18:08 +000010223return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224 ;
10225 return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010229if { (ac_try="$ac_link"
10230case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233esac
10234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246esac
10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; } &&
10252 { ac_try='test -s conftest$ac_exeext'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256esac
10257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262 ac_cv_lib_dld_dld_link=yes
10263else
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
Reid Spencera773bd52006-08-04 18:18:08 +000010267 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268fi
Reid Spencera773bd52006-08-04 18:18:08 +000010269
Bill Wendlingebcceee2009-04-18 11:20:33 +000010270rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 conftest$ac_exeext conftest.$ac_ext
10272LIBS=$ac_check_lib_save_LIBS
10273fi
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10275echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test $ac_cv_lib_dld_dld_link = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_DLD 1
10280_ACEOF
10281
10282 LIBADD_DL="$LIBADD_DL -ldld"
10283else
Reid Spencera773bd52006-08-04 18:18:08 +000010284 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10285echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288else
10289 cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10297#define _dyld_func_lookup innocuous__dyld_func_lookup
10298
10299/* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char _dyld_func_lookup (); below.
10301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302 <limits.h> exists even on freestanding compilers. */
10303
10304#ifdef __STDC__
10305# include <limits.h>
10306#else
10307# include <assert.h>
10308#endif
10309
10310#undef _dyld_func_lookup
10311
Reid Spencera773bd52006-08-04 18:18:08 +000010312/* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010315#ifdef __cplusplus
10316extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318char _dyld_func_lookup ();
10319/* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010322#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324#endif
10325
10326int
10327main ()
10328{
Reid Spencera773bd52006-08-04 18:18:08 +000010329return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330 ;
10331 return 0;
10332}
10333_ACEOF
10334rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010335if { (ac_try="$ac_link"
10336case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10352esac
10353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 ac_cv_func__dyld_func_lookup=yes
10369else
10370 echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
Reid Spencera773bd52006-08-04 18:18:08 +000010373 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374fi
Reid Spencera773bd52006-08-04 18:18:08 +000010375
Bill Wendlingebcceee2009-04-18 11:20:33 +000010376rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377 conftest$ac_exeext conftest.$ac_ext
10378fi
Reid Spencera773bd52006-08-04 18:18:08 +000010379{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10380echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381if test $ac_cv_func__dyld_func_lookup = yes; then
10382
10383cat >>confdefs.h <<\_ACEOF
10384#define HAVE_DYLD 1
10385_ACEOF
10386
10387fi
10388
10389
10390fi
10391
10392
10393fi
10394
10395
10396fi
Reid Spencera773bd52006-08-04 18:18:08 +000010397
Bill Wendlingebcceee2009-04-18 11:20:33 +000010398rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399 conftest$ac_exeext conftest.$ac_ext
10400
10401fi
10402
10403
10404fi
10405
10406
10407fi
10408
10409
10410if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10411then
10412 lt_save_LIBS="$LIBS"
10413 LIBS="$LIBS $LIBADD_DL"
10414
10415for ac_func in dlerror
10416do
10417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010418{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10420if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423 cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h. */
10429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431#define $ac_func innocuous_$ac_func
10432
10433/* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10437
10438#ifdef __STDC__
10439# include <limits.h>
10440#else
10441# include <assert.h>
10442#endif
10443
10444#undef $ac_func
10445
Reid Spencera773bd52006-08-04 18:18:08 +000010446/* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449#ifdef __cplusplus
10450extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452char $ac_func ();
10453/* The GNU C library defines this for functions which it implements
10454 to always fail with ENOSYS. Some functions are actually named
10455 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010456#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458#endif
10459
10460int
10461main ()
10462{
Reid Spencera773bd52006-08-04 18:18:08 +000010463return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464 ;
10465 return 0;
10466}
10467_ACEOF
10468rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010469if { (ac_try="$ac_link"
10470case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_try") 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; } &&
10492 { ac_try='test -s conftest$ac_exeext'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502 eval "$as_ac_var=yes"
10503else
10504 echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
Reid Spencera773bd52006-08-04 18:18:08 +000010507 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508fi
Reid Spencera773bd52006-08-04 18:18:08 +000010509
Bill Wendlingebcceee2009-04-18 11:20:33 +000010510rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511 conftest$ac_exeext conftest.$ac_ext
10512fi
Reid Spencera773bd52006-08-04 18:18:08 +000010513ac_res=`eval echo '${'$as_ac_var'}'`
10514 { echo "$as_me:$LINENO: result: $ac_res" >&5
10515echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516if test `eval echo '${'$as_ac_var'}'` = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10519_ACEOF
10520
10521fi
10522done
10523
10524 LIBS="$lt_save_LIBS"
10525fi
10526ac_ext=c
10527ac_cpp='$CPP $CPPFLAGS'
10528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531
10532
10533
Reid Spencera773bd52006-08-04 18:18:08 +000010534{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10535echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 ac_cv_sys_symbol_underscore=no
10540 cat > conftest.$ac_ext <<EOF
10541void nm_test_func(){}
10542int main(){nm_test_func;return 0;}
10543EOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; then
10549 # Now try to grab the symbols.
10550 ac_nlist=conftest.nm
10551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s "$ac_nlist"; then
10556 # See whether the symbols have a leading underscore.
10557 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10558 ac_cv_sys_symbol_underscore=yes
10559 else
10560 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10561 :
10562 else
10563 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10564 fi
10565 fi
10566 else
10567 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10568 fi
10569 else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.c >&5
10572 fi
10573 rm -rf conftest*
10574
10575fi
Reid Spencera773bd52006-08-04 18:18:08 +000010576{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10577echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578
10579
10580if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10581 if test x"$libltdl_cv_func_dlopen" = xyes ||
10582 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010583 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10584echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585if test "${libltdl_cv_need_uscore+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587else
10588 libltdl_cv_need_uscore=unknown
10589 save_LIBS="$LIBS"
10590 LIBS="$LIBS $LIBADD_DL"
10591 if test "$cross_compiling" = yes; then :
10592 libltdl_cv_need_uscore=cross
10593else
10594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10595 lt_status=$lt_dlunknown
10596 cat > conftest.$ac_ext <<EOF
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000010597#line 10597 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598#include "confdefs.h"
10599
10600#if HAVE_DLFCN_H
10601#include <dlfcn.h>
10602#endif
10603
10604#include <stdio.h>
10605
10606#ifdef RTLD_GLOBAL
10607# define LT_DLGLOBAL RTLD_GLOBAL
10608#else
10609# ifdef DL_GLOBAL
10610# define LT_DLGLOBAL DL_GLOBAL
10611# else
10612# define LT_DLGLOBAL 0
10613# endif
10614#endif
10615
10616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10617 find out it does not work in some platform. */
10618#ifndef LT_DLLAZY_OR_NOW
10619# ifdef RTLD_LAZY
10620# define LT_DLLAZY_OR_NOW RTLD_LAZY
10621# else
10622# ifdef DL_LAZY
10623# define LT_DLLAZY_OR_NOW DL_LAZY
10624# else
10625# ifdef RTLD_NOW
10626# define LT_DLLAZY_OR_NOW RTLD_NOW
10627# else
10628# ifdef DL_NOW
10629# define LT_DLLAZY_OR_NOW DL_NOW
10630# else
10631# define LT_DLLAZY_OR_NOW 0
10632# endif
10633# endif
10634# endif
10635# endif
10636#endif
10637
10638#ifdef __cplusplus
10639extern "C" void exit (int);
10640#endif
10641
10642void fnord() { int i=42;}
10643int main ()
10644{
10645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10646 int status = $lt_dlunknown;
10647
10648 if (self)
10649 {
10650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10652 /* dlclose (self); */
10653 }
Reid Spencera773bd52006-08-04 18:18:08 +000010654 else
10655 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656
10657 exit (status);
10658}
10659EOF
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010665 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 lt_status=$?
10667 case x$lt_status in
10668 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10669 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010670 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 esac
10672 else :
10673 # compilation failed
10674
10675 fi
10676fi
10677rm -fr conftest*
10678
10679 LIBS="$save_LIBS"
10680
10681fi
Reid Spencera773bd52006-08-04 18:18:08 +000010682{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10683echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684 fi
10685fi
10686
10687if test x"$libltdl_cv_need_uscore" = xyes; then
10688
10689cat >>confdefs.h <<\_ACEOF
10690#define NEED_USCORE 1
10691_ACEOF
10692
10693fi
10694
10695
Reid Spencera773bd52006-08-04 18:18:08 +000010696{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10697echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010698if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701 # PORTME does your system automatically load deplibs for dlopen?
10702 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10703 # For now, we just catch OSes we know something about -- in the
10704 # future, we'll try test this programmatically.
10705 libltdl_cv_sys_dlopen_deplibs=unknown
10706 case "$host_os" in
10707 aix3*|aix4.1.*|aix4.2.*)
10708 # Unknown whether this is true for these versions of AIX, but
10709 # we want this `case' here to explicitly catch those versions.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10711 ;;
10712 aix[45]*)
10713 libltdl_cv_sys_dlopen_deplibs=yes
10714 ;;
10715 darwin*)
10716 # Assuming the user has installed a libdl from somewhere, this is true
10717 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10718 libltdl_cv_sys_dlopen_deplibs=yes
10719 ;;
10720 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10721 # GNU and its variants, using gnu ld.so (Glibc)
10722 libltdl_cv_sys_dlopen_deplibs=yes
10723 ;;
10724 hpux10*|hpux11*)
10725 libltdl_cv_sys_dlopen_deplibs=yes
10726 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010727 interix*)
10728 libltdl_cv_sys_dlopen_deplibs=yes
10729 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730 irix[12345]*|irix6.[01]*)
10731 # Catch all versions of IRIX before 6.2, and indicate that we don't
10732 # know how it worked for any of those versions.
10733 libltdl_cv_sys_dlopen_deplibs=unknown
10734 ;;
10735 irix*)
10736 # The case above catches anything before 6.2, and it's known that
10737 # at 6.2 and later dlopen does load deplibs.
10738 libltdl_cv_sys_dlopen_deplibs=yes
10739 ;;
10740 netbsd*)
10741 libltdl_cv_sys_dlopen_deplibs=yes
10742 ;;
10743 openbsd*)
10744 libltdl_cv_sys_dlopen_deplibs=yes
10745 ;;
10746 osf[1234]*)
10747 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10748 # it did *not* use an RPATH in a shared library to find objects the
10749 # library depends on, so we explictly say `no'.
10750 libltdl_cv_sys_dlopen_deplibs=no
10751 ;;
10752 osf5.0|osf5.0a|osf5.1)
10753 # dlopen *does* load deplibs and with the right loader patch applied
10754 # it even uses RPATH in a shared library to search for shared objects
10755 # that the library depends on, but there's no easy way to know if that
10756 # patch is installed. Since this is the case, all we can really
10757 # say is unknown -- it depends on the patch being installed. If
10758 # it is, this changes to `yes'. Without it, it would be `no'.
10759 libltdl_cv_sys_dlopen_deplibs=unknown
10760 ;;
10761 osf*)
10762 # the two cases above should catch all versions of osf <= 5.1. Read
10763 # the comments above for what we know about them.
10764 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10765 # is used to find them so we can finally say `yes'.
10766 libltdl_cv_sys_dlopen_deplibs=yes
10767 ;;
10768 solaris*)
10769 libltdl_cv_sys_dlopen_deplibs=yes
10770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10772 libltdl_cv_sys_dlopen_deplibs=yes
10773 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774 esac
10775
10776fi
Reid Spencera773bd52006-08-04 18:18:08 +000010777{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10778echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010779if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10780
10781cat >>confdefs.h <<\_ACEOF
10782#define LTDL_DLOPEN_DEPLIBS 1
10783_ACEOF
10784
10785fi
10786
10787
10788for ac_header in argz.h
10789do
10790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796fi
Reid Spencera773bd52006-08-04 18:18:08 +000010797ac_res=`eval echo '${'$as_ac_Header'}'`
10798 { echo "$as_me:$LINENO: result: $ac_res" >&5
10799echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800else
10801 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010802{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h. */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h. */
10810$ac_includes_default
10811#include <$ac_header>
10812_ACEOF
10813rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010814if { (ac_try="$ac_compile"
10815case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818esac
10819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821 ac_status=$?
10822 grep -v '^ *+' conftest.er1 >conftest.err
10823 rm -f conftest.er1
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010826 (exit $ac_status); } &&
10827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010847 ac_header_compiler=yes
10848else
10849 echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
10851
Reid Spencera773bd52006-08-04 18:18:08 +000010852 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853fi
Reid Spencera773bd52006-08-04 18:18:08 +000010854
10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858
10859# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010860{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868#include <$ac_header>
10869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010870if { (ac_try="$ac_cpp conftest.$ac_ext"
10871case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010882 (exit $ac_status); } >/dev/null; then
10883 if test -s conftest.err; then
10884 ac_cpp_err=$ac_c_preproc_warn_flag
10885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10886 else
10887 ac_cpp_err=
10888 fi
10889else
10890 ac_cpp_err=yes
10891fi
10892if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 ac_header_preproc=yes
10894else
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_header_preproc=no
10899fi
Reid Spencera773bd52006-08-04 18:18:08 +000010900
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010902{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10903echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904
10905# So? What about this header?
10906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10907 yes:no: )
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10912 ac_header_preproc=yes
10913 ;;
10914 no:yes:* )
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010927 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928## ----------------------------------- ##
10929## Report this to llvmbugs@cs.uiuc.edu ##
10930## ----------------------------------- ##
10931_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010932 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933 ;;
10934esac
Reid Spencera773bd52006-08-04 18:18:08 +000010935{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 eval "$as_ac_Header=\$ac_header_preproc"
10941fi
Reid Spencera773bd52006-08-04 18:18:08 +000010942ac_res=`eval echo '${'$as_ac_Header'}'`
10943 { echo "$as_me:$LINENO: result: $ac_res" >&5
10944echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945
10946fi
10947if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948 cat >>confdefs.h <<_ACEOF
10949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950_ACEOF
10951
10952fi
10953
10954done
10955
10956
Reid Spencera773bd52006-08-04 18:18:08 +000010957{ echo "$as_me:$LINENO: checking for error_t" >&5
10958echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959if test "${ac_cv_type_error_t+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968#if HAVE_ARGZ_H
10969# include <argz.h>
10970#endif
10971
Reid Spencera773bd52006-08-04 18:18:08 +000010972typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973int
10974main ()
10975{
Reid Spencera773bd52006-08-04 18:18:08 +000010976if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010978if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 return 0;
10980 ;
10981 return 0;
10982}
10983_ACEOF
10984rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010985if { (ac_try="$ac_compile"
10986case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989esac
10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018 ac_cv_type_error_t=yes
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
Reid Spencera773bd52006-08-04 18:18:08 +000011023 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024fi
Reid Spencera773bd52006-08-04 18:18:08 +000011025
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027fi
Reid Spencera773bd52006-08-04 18:18:08 +000011028{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11029echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030if test $ac_cv_type_error_t = yes; then
11031
11032cat >>confdefs.h <<_ACEOF
11033#define HAVE_ERROR_T 1
11034_ACEOF
11035
11036
11037else
11038
11039cat >>confdefs.h <<\_ACEOF
11040#define error_t int
11041_ACEOF
11042
11043fi
11044
11045
11046
11047
11048
11049
11050
11051for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11052do
11053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011054{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11056if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h. */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h. */
11065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11067#define $ac_func innocuous_$ac_func
11068
11069/* System header to define __stub macros and hopefully few prototypes,
11070 which can conflict with char $ac_func (); below.
11071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072 <limits.h> exists even on freestanding compilers. */
11073
11074#ifdef __STDC__
11075# include <limits.h>
11076#else
11077# include <assert.h>
11078#endif
11079
11080#undef $ac_func
11081
Reid Spencera773bd52006-08-04 18:18:08 +000011082/* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085#ifdef __cplusplus
11086extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088char $ac_func ();
11089/* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011092#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094#endif
11095
11096int
11097main ()
11098{
Reid Spencera773bd52006-08-04 18:18:08 +000011099return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest$ac_exeext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138 eval "$as_ac_var=yes"
11139else
11140 echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
Reid Spencera773bd52006-08-04 18:18:08 +000011143 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144fi
Reid Spencera773bd52006-08-04 18:18:08 +000011145
Bill Wendlingebcceee2009-04-18 11:20:33 +000011146rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 conftest$ac_exeext conftest.$ac_ext
11148fi
Reid Spencera773bd52006-08-04 18:18:08 +000011149ac_res=`eval echo '${'$as_ac_var'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152if test `eval echo '${'$as_ac_var'}'` = yes; then
11153 cat >>confdefs.h <<_ACEOF
11154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11155_ACEOF
11156
11157fi
11158done
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11188 stdio.h unistd.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
11357
11358
11359
11360for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11361do
11362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368fi
Reid Spencera773bd52006-08-04 18:18:08 +000011369ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372else
11373 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382$ac_includes_default
11383#include <$ac_header>
11384_ACEOF
11385rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011386if { (ac_try="$ac_compile"
11387case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413esac
11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 ac_header_compiler=yes
11420else
11421 echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
Reid Spencera773bd52006-08-04 18:18:08 +000011424 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425fi
Reid Spencera773bd52006-08-04 18:18:08 +000011426
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430
11431# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011432{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
11440#include <$ac_header>
11441_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011442if { (ac_try="$ac_cpp conftest.$ac_ext"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011454 (exit $ac_status); } >/dev/null; then
11455 if test -s conftest.err; then
11456 ac_cpp_err=$ac_c_preproc_warn_flag
11457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11458 else
11459 ac_cpp_err=
11460 fi
11461else
11462 ac_cpp_err=yes
11463fi
11464if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465 ac_header_preproc=yes
11466else
11467 echo "$as_me: failed program was:" >&5
11468sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_header_preproc=no
11471fi
Reid Spencera773bd52006-08-04 18:18:08 +000011472
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011474{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11475echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476
11477# So? What about this header?
11478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11479 yes:no: )
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11484 ac_header_preproc=yes
11485 ;;
11486 no:yes:* )
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011499 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500## ----------------------------------- ##
11501## Report this to llvmbugs@cs.uiuc.edu ##
11502## ----------------------------------- ##
11503_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011504 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505 ;;
11506esac
Reid Spencera773bd52006-08-04 18:18:08 +000011507{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 eval "$as_ac_Header=\$ac_header_preproc"
11513fi
Reid Spencera773bd52006-08-04 18:18:08 +000011514ac_res=`eval echo '${'$as_ac_Header'}'`
11515 { echo "$as_me:$LINENO: result: $ac_res" >&5
11516echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517
11518fi
11519if test `eval echo '${'$as_ac_Header'}'` = yes; then
11520 cat >>confdefs.h <<_ACEOF
11521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11522_ACEOF
11523
11524fi
11525
11526done
11527
11528
11529
11530for ac_header in string.h strings.h
11531do
11532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538fi
Reid Spencera773bd52006-08-04 18:18:08 +000011539ac_res=`eval echo '${'$as_ac_Header'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542else
11543 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011544{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552$ac_includes_default
11553#include <$ac_header>
11554_ACEOF
11555rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011556if { (ac_try="$ac_compile"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589 ac_header_compiler=yes
11590else
11591 echo "$as_me: failed program was:" >&5
11592sed 's/^/| /' conftest.$ac_ext >&5
11593
Reid Spencera773bd52006-08-04 18:18:08 +000011594 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595fi
Reid Spencera773bd52006-08-04 18:18:08 +000011596
11597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11599echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600
11601# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011602{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11603echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
11611_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011612if { (ac_try="$ac_cpp conftest.$ac_ext"
11613case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011624 (exit $ac_status); } >/dev/null; then
11625 if test -s conftest.err; then
11626 ac_cpp_err=$ac_c_preproc_warn_flag
11627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11628 else
11629 ac_cpp_err=
11630 fi
11631else
11632 ac_cpp_err=yes
11633fi
11634if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635 ac_header_preproc=yes
11636else
11637 echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 ac_header_preproc=no
11641fi
Reid Spencera773bd52006-08-04 18:18:08 +000011642
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11645echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646
11647# So? What about this header?
11648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11649 yes:no: )
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11654 ac_header_preproc=yes
11655 ;;
11656 no:yes:* )
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011669 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670## ----------------------------------- ##
11671## Report this to llvmbugs@cs.uiuc.edu ##
11672## ----------------------------------- ##
11673_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011674 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 ;;
11676esac
Reid Spencera773bd52006-08-04 18:18:08 +000011677{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 eval "$as_ac_Header=\$ac_header_preproc"
11683fi
Reid Spencera773bd52006-08-04 18:18:08 +000011684ac_res=`eval echo '${'$as_ac_Header'}'`
11685 { echo "$as_me:$LINENO: result: $ac_res" >&5
11686echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687
11688fi
11689if test `eval echo '${'$as_ac_Header'}'` = yes; then
11690 cat >>confdefs.h <<_ACEOF
11691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11692_ACEOF
11693 break
11694fi
11695
11696done
11697
11698
11699
11700
11701for ac_func in strchr index
11702do
11703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011704{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11706if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11717#define $ac_func innocuous_$ac_func
11718
11719/* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char $ac_func (); below.
11721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722 <limits.h> exists even on freestanding compilers. */
11723
11724#ifdef __STDC__
11725# include <limits.h>
11726#else
11727# include <assert.h>
11728#endif
11729
11730#undef $ac_func
11731
Reid Spencera773bd52006-08-04 18:18:08 +000011732/* Override any GCC internal prototype to avoid an error.
11733 Use char because int might match the return type of a GCC
11734 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735#ifdef __cplusplus
11736extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738char $ac_func ();
11739/* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011742#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744#endif
11745
11746int
11747main ()
11748{
Reid Spencera773bd52006-08-04 18:18:08 +000011749return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750 ;
11751 return 0;
11752}
11753_ACEOF
11754rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011755if { (ac_try="$ac_link"
11756case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
11773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782esac
11783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_try") 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788 eval "$as_ac_var=yes"
11789else
11790 echo "$as_me: failed program was:" >&5
11791sed 's/^/| /' conftest.$ac_ext >&5
11792
Reid Spencera773bd52006-08-04 18:18:08 +000011793 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794fi
Reid Spencera773bd52006-08-04 18:18:08 +000011795
Bill Wendlingebcceee2009-04-18 11:20:33 +000011796rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797 conftest$ac_exeext conftest.$ac_ext
11798fi
Reid Spencera773bd52006-08-04 18:18:08 +000011799ac_res=`eval echo '${'$as_ac_var'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805_ACEOF
11806 break
11807fi
11808done
11809
11810
11811
11812for ac_func in strrchr rindex
11813do
11814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
11826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11828#define $ac_func innocuous_$ac_func
11829
11830/* System header to define __stub macros and hopefully few prototypes,
11831 which can conflict with char $ac_func (); below.
11832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11833 <limits.h> exists even on freestanding compilers. */
11834
11835#ifdef __STDC__
11836# include <limits.h>
11837#else
11838# include <assert.h>
11839#endif
11840
11841#undef $ac_func
11842
Reid Spencera773bd52006-08-04 18:18:08 +000011843/* Override any GCC internal prototype to avoid an error.
11844 Use char because int might match the return type of a GCC
11845 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846#ifdef __cplusplus
11847extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849char $ac_func ();
11850/* The GNU C library defines this for functions which it implements
11851 to always fail with ENOSYS. Some functions are actually named
11852 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011853#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855#endif
11856
11857int
11858main ()
11859{
Reid Spencera773bd52006-08-04 18:18:08 +000011860return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861 ;
11862 return 0;
11863}
11864_ACEOF
11865rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011866if { (ac_try="$ac_link"
11867case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870esac
11871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873 ac_status=$?
11874 grep -v '^ *+' conftest.er1 >conftest.err
11875 rm -f conftest.er1
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011878 (exit $ac_status); } &&
11879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883esac
11884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899 eval "$as_ac_var=yes"
11900else
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
Reid Spencera773bd52006-08-04 18:18:08 +000011904 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905fi
Reid Spencera773bd52006-08-04 18:18:08 +000011906
Bill Wendlingebcceee2009-04-18 11:20:33 +000011907rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908 conftest$ac_exeext conftest.$ac_ext
11909fi
Reid Spencera773bd52006-08-04 18:18:08 +000011910ac_res=`eval echo '${'$as_ac_var'}'`
11911 { echo "$as_me:$LINENO: result: $ac_res" >&5
11912echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913if test `eval echo '${'$as_ac_var'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11916_ACEOF
11917 break
11918fi
11919done
11920
11921
11922
11923for ac_func in memcpy bcopy
11924do
11925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11939#define $ac_func innocuous_$ac_func
11940
11941/* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char $ac_func (); below.
11943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944 <limits.h> exists even on freestanding compilers. */
11945
11946#ifdef __STDC__
11947# include <limits.h>
11948#else
11949# include <assert.h>
11950#endif
11951
11952#undef $ac_func
11953
Reid Spencera773bd52006-08-04 18:18:08 +000011954/* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957#ifdef __cplusplus
11958extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960char $ac_func ();
11961/* The GNU C library defines this for functions which it implements
11962 to always fail with ENOSYS. Some functions are actually named
11963 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011964#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966#endif
11967
11968int
11969main ()
11970{
Reid Spencera773bd52006-08-04 18:18:08 +000011971return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011977if { (ac_try="$ac_link"
11978case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004esac
12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010 eval "$as_ac_var=yes"
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
Reid Spencera773bd52006-08-04 18:18:08 +000012015 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016fi
Reid Spencera773bd52006-08-04 18:18:08 +000012017
Bill Wendlingebcceee2009-04-18 11:20:33 +000012018rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019 conftest$ac_exeext conftest.$ac_ext
12020fi
Reid Spencera773bd52006-08-04 18:18:08 +000012021ac_res=`eval echo '${'$as_ac_var'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024if test `eval echo '${'$as_ac_var'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027_ACEOF
12028 break
12029fi
12030done
12031
12032
12033
12034for ac_func in memmove strcmp
12035do
12036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041else
12042 cat >conftest.$ac_ext <<_ACEOF
12043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
12048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050#define $ac_func innocuous_$ac_func
12051
12052/* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12056
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
12062
12063#undef $ac_func
12064
Reid Spencera773bd52006-08-04 18:18:08 +000012065/* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068#ifdef __cplusplus
12069extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071char $ac_func ();
12072/* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012075#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077#endif
12078
12079int
12080main ()
12081{
Reid Spencera773bd52006-08-04 18:18:08 +000012082return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012083 ;
12084 return 0;
12085}
12086_ACEOF
12087rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012088if { (ac_try="$ac_link"
12089case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092esac
12093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121 eval "$as_ac_var=yes"
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
Reid Spencera773bd52006-08-04 18:18:08 +000012126 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012127fi
Reid Spencera773bd52006-08-04 18:18:08 +000012128
Bill Wendlingebcceee2009-04-18 11:20:33 +000012129rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130 conftest$ac_exeext conftest.$ac_ext
12131fi
Reid Spencera773bd52006-08-04 18:18:08 +000012132ac_res=`eval echo '${'$as_ac_var'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135if test `eval echo '${'$as_ac_var'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138_ACEOF
12139
12140fi
12141done
12142
12143
12144
12145
12146for ac_func in closedir opendir readdir
12147do
12148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012149{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12151if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154 cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162#define $ac_func innocuous_$ac_func
12163
12164/* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char $ac_func (); below.
12166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167 <limits.h> exists even on freestanding compilers. */
12168
12169#ifdef __STDC__
12170# include <limits.h>
12171#else
12172# include <assert.h>
12173#endif
12174
12175#undef $ac_func
12176
Reid Spencera773bd52006-08-04 18:18:08 +000012177/* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180#ifdef __cplusplus
12181extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183char $ac_func ();
12184/* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012187#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189#endif
12190
12191int
12192main ()
12193{
Reid Spencera773bd52006-08-04 18:18:08 +000012194return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195 ;
12196 return 0;
12197}
12198_ACEOF
12199rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012200if { (ac_try="$ac_link"
12201case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204esac
12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217esac
12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227esac
12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233 eval "$as_ac_var=yes"
12234else
12235 echo "$as_me: failed program was:" >&5
12236sed 's/^/| /' conftest.$ac_ext >&5
12237
Reid Spencera773bd52006-08-04 18:18:08 +000012238 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239fi
Reid Spencera773bd52006-08-04 18:18:08 +000012240
Bill Wendlingebcceee2009-04-18 11:20:33 +000012241rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012242 conftest$ac_exeext conftest.$ac_ext
12243fi
Reid Spencera773bd52006-08-04 18:18:08 +000012244ac_res=`eval echo '${'$as_ac_var'}'`
12245 { echo "$as_me:$LINENO: result: $ac_res" >&5
12246echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247if test `eval echo '${'$as_ac_var'}'` = yes; then
12248 cat >>confdefs.h <<_ACEOF
12249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250_ACEOF
12251
12252fi
12253done
12254
12255
Reid Spencera773bd52006-08-04 18:18:08 +000012256# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012258 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259 case $enableval in
12260 yes) enable_shared=yes ;;
12261 no) enable_shared=no ;;
12262 *)
12263 enable_shared=no
12264 # Look at the argument we got. We use all the common list separators.
12265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266 for pkg in $enableval; do
12267 IFS="$lt_save_ifs"
12268 if test "X$pkg" = "X$p"; then
12269 enable_shared=yes
12270 fi
12271 done
12272 IFS="$lt_save_ifs"
12273 ;;
12274 esac
12275else
12276 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012277fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278
Reid Spencera773bd52006-08-04 18:18:08 +000012279
12280# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012282 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283 case $enableval in
12284 yes) enable_static=yes ;;
12285 no) enable_static=no ;;
12286 *)
12287 enable_static=no
12288 # Look at the argument we got. We use all the common list separators.
12289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290 for pkg in $enableval; do
12291 IFS="$lt_save_ifs"
12292 if test "X$pkg" = "X$p"; then
12293 enable_static=yes
12294 fi
12295 done
12296 IFS="$lt_save_ifs"
12297 ;;
12298 esac
12299else
12300 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012301fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012302
Reid Spencera773bd52006-08-04 18:18:08 +000012303
12304# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012306 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307 case $enableval in
12308 yes) enable_fast_install=yes ;;
12309 no) enable_fast_install=no ;;
12310 *)
12311 enable_fast_install=no
12312 # Look at the argument we got. We use all the common list separators.
12313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12314 for pkg in $enableval; do
12315 IFS="$lt_save_ifs"
12316 if test "X$pkg" = "X$p"; then
12317 enable_fast_install=yes
12318 fi
12319 done
12320 IFS="$lt_save_ifs"
12321 ;;
12322 esac
12323else
12324 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012325fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012326
Reid Spencera773bd52006-08-04 18:18:08 +000012327
12328{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12329echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330if test "${lt_cv_path_SED+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332else
12333 # Loop through the user's path and test for sed and gsed.
12334# Then use that list of sed's as ones to test for truncation.
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for lt_ac_prog in sed gsed; do
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12343 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12344 fi
12345 done
12346 done
12347done
12348lt_ac_max=0
12349lt_ac_count=0
12350# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12351# along with /bin/sed that truncates output.
12352for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012353 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354 cat /dev/null > conftest.in
12355 lt_ac_count=0
12356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12357 # Check for GNU sed and select it if it is found.
12358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12359 lt_cv_path_SED=$lt_ac_sed
12360 break
12361 fi
12362 while true; do
12363 cat conftest.in conftest.in >conftest.tmp
12364 mv conftest.tmp conftest.in
12365 cp conftest.in conftest.nl
12366 echo >>conftest.nl
12367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12368 cmp -s conftest.out conftest.nl || break
12369 # 10000 chars as input seems more than enough
12370 test $lt_ac_count -gt 10 && break
12371 lt_ac_count=`expr $lt_ac_count + 1`
12372 if test $lt_ac_count -gt $lt_ac_max; then
12373 lt_ac_max=$lt_ac_count
12374 lt_cv_path_SED=$lt_ac_sed
12375 fi
12376 done
12377done
12378
12379fi
12380
12381SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012382{ echo "$as_me:$LINENO: result: $SED" >&5
12383echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384
12385
Reid Spencera773bd52006-08-04 18:18:08 +000012386# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012387if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389else
12390 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012391fi
12392
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393ac_prog=ld
12394if test "$GCC" = yes; then
12395 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012396 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12397echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012398 case $host in
12399 *-*-mingw*)
12400 # gcc leaves a trailing carriage return which upsets mingw
12401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12402 *)
12403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12404 esac
12405 case $ac_prog in
12406 # Accept absolute paths.
12407 [\\/]* | ?:[\\/]*)
12408 re_direlt='/[^/][^/]*/\.\./'
12409 # Canonicalize the pathname of ld
12410 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12411 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12412 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12413 done
12414 test -z "$LD" && LD="$ac_prog"
12415 ;;
12416 "")
12417 # If it fails, then pretend we aren't using GCC.
12418 ac_prog=ld
12419 ;;
12420 *)
12421 # If it is relative, then search for the first ld in PATH.
12422 with_gnu_ld=unknown
12423 ;;
12424 esac
12425elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012426 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12427echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428else
Reid Spencera773bd52006-08-04 18:18:08 +000012429 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12430echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431fi
12432if test "${lt_cv_path_LD+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12434else
12435 if test -z "$LD"; then
12436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12437 for ac_dir in $PATH; do
12438 IFS="$lt_save_ifs"
12439 test -z "$ac_dir" && ac_dir=.
12440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12441 lt_cv_path_LD="$ac_dir/$ac_prog"
12442 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012443 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444 # Break only if it was the GNU/non-GNU ld that we prefer.
12445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12446 *GNU* | *'with BFD'*)
12447 test "$with_gnu_ld" != no && break
12448 ;;
12449 *)
12450 test "$with_gnu_ld" != yes && break
12451 ;;
12452 esac
12453 fi
12454 done
12455 IFS="$lt_save_ifs"
12456else
12457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12458fi
12459fi
12460
12461LD="$lt_cv_path_LD"
12462if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012463 { echo "$as_me:$LINENO: result: $LD" >&5
12464echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465else
Reid Spencera773bd52006-08-04 18:18:08 +000012466 { echo "$as_me:$LINENO: result: no" >&5
12467echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468fi
12469test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12470echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12471 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012472{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12473echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474if test "${lt_cv_prog_gnu_ld+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476else
Reid Spencera773bd52006-08-04 18:18:08 +000012477 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012478case `$LD -v 2>&1 </dev/null` in
12479*GNU* | *'with BFD'*)
12480 lt_cv_prog_gnu_ld=yes
12481 ;;
12482*)
12483 lt_cv_prog_gnu_ld=no
12484 ;;
12485esac
12486fi
Reid Spencera773bd52006-08-04 18:18:08 +000012487{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12488echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489with_gnu_ld=$lt_cv_prog_gnu_ld
12490
12491
Reid Spencera773bd52006-08-04 18:18:08 +000012492{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12493echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494if test "${lt_cv_ld_reload_flag+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497 lt_cv_ld_reload_flag='-r'
12498fi
Reid Spencera773bd52006-08-04 18:18:08 +000012499{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12500echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501reload_flag=$lt_cv_ld_reload_flag
12502case $reload_flag in
12503"" | " "*) ;;
12504*) reload_flag=" $reload_flag" ;;
12505esac
12506reload_cmds='$LD$reload_flag -o $output$reload_objs'
12507case $host_os in
12508 darwin*)
12509 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012510 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012511 else
12512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12513 fi
12514 ;;
12515esac
12516
Reid Spencera773bd52006-08-04 18:18:08 +000012517{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12518echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012519if test "${lt_cv_deplibs_check_method+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 lt_cv_file_magic_cmd='$MAGIC_CMD'
12523lt_cv_file_magic_test_file=
12524lt_cv_deplibs_check_method='unknown'
12525# Need to set the preceding variable on all platforms that support
12526# interlibrary dependencies.
12527# 'none' -- dependencies not supported.
12528# `unknown' -- same as none, but documents that we really don't know.
12529# 'pass_all' -- all dependencies passed with no checks.
12530# 'test_compile' -- check by making test program.
12531# 'file_magic [[regex]]' -- check by looking for files in library path
12532# which responds to the $file_magic_cmd with a given extended regex.
12533# If you have `file' or equivalent on your system and you're not sure
12534# whether `pass_all' will *always* work, you probably want this one.
12535
12536case $host_os in
12537aix4* | aix5*)
12538 lt_cv_deplibs_check_method=pass_all
12539 ;;
12540
12541beos*)
12542 lt_cv_deplibs_check_method=pass_all
12543 ;;
12544
12545bsdi[45]*)
12546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12547 lt_cv_file_magic_cmd='/usr/bin/file -L'
12548 lt_cv_file_magic_test_file=/shlib/libc.so
12549 ;;
12550
12551cygwin*)
12552 # func_win32_libid is a shell function defined in ltmain.sh
12553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12554 lt_cv_file_magic_cmd='func_win32_libid'
12555 ;;
12556
12557mingw* | pw32*)
12558 # Base MSYS/MinGW do not provide the 'file' command needed by
12559 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12560 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12561 lt_cv_file_magic_cmd='$OBJDUMP -f'
12562 ;;
12563
12564darwin* | rhapsody*)
12565 lt_cv_deplibs_check_method=pass_all
12566 ;;
12567
Reid Spencera773bd52006-08-04 18:18:08 +000012568freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012569 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12570 case $host_cpu in
12571 i*86 )
12572 # Not sure whether the presence of OpenBSD here was a mistake.
12573 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012574 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 +000012575 lt_cv_file_magic_cmd=/usr/bin/file
12576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12577 ;;
12578 esac
12579 else
12580 lt_cv_deplibs_check_method=pass_all
12581 fi
12582 ;;
12583
12584gnu*)
12585 lt_cv_deplibs_check_method=pass_all
12586 ;;
12587
12588hpux10.20* | hpux11*)
12589 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012590 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591 ia64*)
12592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12593 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12594 ;;
12595 hppa*64*)
12596 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]'
12597 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12598 ;;
12599 *)
12600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12601 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12602 ;;
12603 esac
12604 ;;
12605
Reid Spencera773bd52006-08-04 18:18:08 +000012606interix3*)
12607 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12609 ;;
12610
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611irix5* | irix6* | nonstopux*)
12612 case $LD in
12613 *-32|*"-32 ") libmagic=32-bit;;
12614 *-n32|*"-n32 ") libmagic=N32;;
12615 *-64|*"-64 ") libmagic=64-bit;;
12616 *) libmagic=never-match;;
12617 esac
12618 lt_cv_deplibs_check_method=pass_all
12619 ;;
12620
12621# This must be Linux ELF.
12622linux*)
12623 lt_cv_deplibs_check_method=pass_all
12624 ;;
12625
12626netbsd*)
12627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12629 else
12630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12631 fi
12632 ;;
12633
12634newos6*)
12635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12636 lt_cv_file_magic_cmd=/usr/bin/file
12637 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12638 ;;
12639
12640nto-qnx*)
12641 lt_cv_deplibs_check_method=unknown
12642 ;;
12643
12644openbsd*)
12645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12647 else
12648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12649 fi
12650 ;;
12651
12652osf3* | osf4* | osf5*)
12653 lt_cv_deplibs_check_method=pass_all
12654 ;;
12655
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656solaris*)
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
12659
Reid Spencera773bd52006-08-04 18:18:08 +000012660sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661 case $host_vendor in
12662 motorola)
12663 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]'
12664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12665 ;;
12666 ncr)
12667 lt_cv_deplibs_check_method=pass_all
12668 ;;
12669 sequent)
12670 lt_cv_file_magic_cmd='/bin/file'
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12672 ;;
12673 sni)
12674 lt_cv_file_magic_cmd='/bin/file'
12675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12676 lt_cv_file_magic_test_file=/lib/libc.so
12677 ;;
12678 siemens)
12679 lt_cv_deplibs_check_method=pass_all
12680 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012681 pc)
12682 lt_cv_deplibs_check_method=pass_all
12683 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684 esac
12685 ;;
12686
Reid Spencera773bd52006-08-04 18:18:08 +000012687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688 lt_cv_deplibs_check_method=pass_all
12689 ;;
12690esac
12691
12692fi
Reid Spencera773bd52006-08-04 18:18:08 +000012693{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12694echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695file_magic_cmd=$lt_cv_file_magic_cmd
12696deplibs_check_method=$lt_cv_deplibs_check_method
12697test -z "$deplibs_check_method" && deplibs_check_method=unknown
12698
12699
12700
12701# If no C compiler was specified, use CC.
12702LTCC=${LTCC-"$CC"}
12703
Reid Spencera773bd52006-08-04 18:18:08 +000012704# If no C compiler flags were specified, use CFLAGS.
12705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707# Allow CC to be a program name with arguments.
12708compiler=$CC
12709
Reid Spencera773bd52006-08-04 18:18:08 +000012710# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012712 enableval=$enable_libtool_lock;
12713fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12716
12717# Some flags need to be propagated to the compiler or linker for good
12718# libtool support.
12719case $host in
12720ia64-*-hpux*)
12721 # Find out which ABI we are using.
12722 echo 'int i;' > conftest.$ac_ext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; then
12728 case `/usr/bin/file conftest.$ac_objext` in
12729 *ELF-32*)
12730 HPUX_IA64_MODE="32"
12731 ;;
12732 *ELF-64*)
12733 HPUX_IA64_MODE="64"
12734 ;;
12735 esac
12736 fi
12737 rm -rf conftest*
12738 ;;
12739*-*-irix6*)
12740 # Find out which ABI we are using.
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012741 echo '#line 12741 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; then
12747 if test "$lt_cv_prog_gnu_ld" = yes; then
12748 case `/usr/bin/file conftest.$ac_objext` in
12749 *32-bit*)
12750 LD="${LD-ld} -melf32bsmip"
12751 ;;
12752 *N32*)
12753 LD="${LD-ld} -melf32bmipn32"
12754 ;;
12755 *64-bit*)
12756 LD="${LD-ld} -melf64bmip"
12757 ;;
12758 esac
12759 else
12760 case `/usr/bin/file conftest.$ac_objext` in
12761 *32-bit*)
12762 LD="${LD-ld} -32"
12763 ;;
12764 *N32*)
12765 LD="${LD-ld} -n32"
12766 ;;
12767 *64-bit*)
12768 LD="${LD-ld} -64"
12769 ;;
12770 esac
12771 fi
12772 fi
12773 rm -rf conftest*
12774 ;;
12775
12776x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12777 # Find out which ABI we are using.
12778 echo 'int i;' > conftest.$ac_ext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012784 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012785 *32-bit*)
12786 case $host in
12787 x86_64-*linux*)
12788 LD="${LD-ld} -m elf_i386"
12789 ;;
12790 ppc64-*linux*|powerpc64-*linux*)
12791 LD="${LD-ld} -m elf32ppclinux"
12792 ;;
12793 s390x-*linux*)
12794 LD="${LD-ld} -m elf_s390"
12795 ;;
12796 sparc64-*linux*)
12797 LD="${LD-ld} -m elf32_sparc"
12798 ;;
12799 esac
12800 ;;
12801 *64-bit*)
12802 case $host in
12803 x86_64-*linux*)
12804 LD="${LD-ld} -m elf_x86_64"
12805 ;;
12806 ppc*-*linux*|powerpc*-*linux*)
12807 LD="${LD-ld} -m elf64ppc"
12808 ;;
12809 s390*-*linux*)
12810 LD="${LD-ld} -m elf64_s390"
12811 ;;
12812 sparc*-*linux*)
12813 LD="${LD-ld} -m elf64_sparc"
12814 ;;
12815 esac
12816 ;;
12817 esac
12818 fi
12819 rm -rf conftest*
12820 ;;
12821
12822*-*-sco3.2v5*)
12823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12824 SAVE_CFLAGS="$CFLAGS"
12825 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012826 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12827echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012828if test "${lt_cv_cc_needs_belf+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831 ac_ext=c
12832ac_cpp='$CPP $CPPFLAGS'
12833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835ac_compiler_gnu=$ac_cv_c_compiler_gnu
12836
12837 cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844int
12845main ()
12846{
12847
12848 ;
12849 return 0;
12850}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012851_ACEOF
12852rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012853if { (ac_try="$ac_link"
12854case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857esac
12858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try='test -s conftest$ac_exeext'
12877 { (case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880esac
12881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_try") 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012886 lt_cv_cc_needs_belf=yes
12887else
12888 echo "$as_me: failed program was:" >&5
12889sed 's/^/| /' conftest.$ac_ext >&5
12890
Reid Spencera773bd52006-08-04 18:18:08 +000012891 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012892fi
Reid Spencera773bd52006-08-04 18:18:08 +000012893
Bill Wendlingebcceee2009-04-18 11:20:33 +000012894rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012895 conftest$ac_exeext conftest.$ac_ext
12896 ac_ext=c
12897ac_cpp='$CPP $CPPFLAGS'
12898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901
12902fi
Reid Spencera773bd52006-08-04 18:18:08 +000012903{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12904echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12906 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12907 CFLAGS="$SAVE_CFLAGS"
12908 fi
12909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012910sparc*-*solaris*)
12911 # Find out which ABI we are using.
12912 echo 'int i;' > conftest.$ac_ext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; then
12918 case `/usr/bin/file conftest.o` in
12919 *64-bit*)
12920 case $lt_cv_prog_gnu_ld in
12921 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12922 *) LD="${LD-ld} -64" ;;
12923 esac
12924 ;;
12925 esac
12926 fi
12927 rm -rf conftest*
12928 ;;
12929
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930
12931esac
12932
12933need_locks="$enable_libtool_lock"
12934
12935
Reid Spencer2706f8c2004-09-19 23:53:36 +000012936
12937
12938if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12939 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12940 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012941 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012942ac_cpp='$CXXCPP $CPPFLAGS'
12943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012946{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12947echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012948if test -z "$CXXCPP"; then
12949 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951else
John Criswell47fdd832003-07-14 16:52:07 +000012952 # Double quotes because CXXCPP needs to be expanded
12953 for CXXCPP in "$CXX -E" "/lib/cpp"
12954 do
12955 ac_preproc_ok=false
12956for ac_cxx_preproc_warn_flag in '' yes
12957do
12958 # Use a header file that comes with gcc, so configuring glibc
12959 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12961 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012962 # On the NeXT, cc -E runs the code through the compiler's parser,
12963 # not just through cpp. "Syntax error" is here to catch this case.
12964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970#ifdef __STDC__
12971# include <limits.h>
12972#else
12973# include <assert.h>
12974#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012975 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012976_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012977if { (ac_try="$ac_cpp conftest.$ac_ext"
12978case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012984 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012985 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012986 rm -f conftest.er1
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012989 (exit $ac_status); } >/dev/null; then
12990 if test -s conftest.err; then
12991 ac_cpp_err=$ac_cxx_preproc_warn_flag
12992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12993 else
12994 ac_cpp_err=
12995 fi
12996else
12997 ac_cpp_err=yes
12998fi
12999if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013000 :
13001else
13002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013003sed 's/^/| /' conftest.$ac_ext >&5
13004
John Criswell47fdd832003-07-14 16:52:07 +000013005 # Broken: fails on valid input.
13006continue
13007fi
Reid Spencera773bd52006-08-04 18:18:08 +000013008
John Criswell47fdd832003-07-14 16:52:07 +000013009rm -f conftest.err conftest.$ac_ext
13010
Reid Spencera773bd52006-08-04 18:18:08 +000013011 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013012 # can be detected and how.
13013 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013019#include <ac_nonexistent.h>
13020_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013021if { (ac_try="$ac_cpp conftest.$ac_ext"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013028 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013029 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013033 (exit $ac_status); } >/dev/null; then
13034 if test -s conftest.err; then
13035 ac_cpp_err=$ac_cxx_preproc_warn_flag
13036 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13037 else
13038 ac_cpp_err=
13039 fi
13040else
13041 ac_cpp_err=yes
13042fi
13043if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013044 # Broken: success on invalid input.
13045continue
13046else
13047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013048sed 's/^/| /' conftest.$ac_ext >&5
13049
John Criswell47fdd832003-07-14 16:52:07 +000013050 # Passes both tests.
13051ac_preproc_ok=:
13052break
13053fi
Reid Spencera773bd52006-08-04 18:18:08 +000013054
John Criswell47fdd832003-07-14 16:52:07 +000013055rm -f conftest.err conftest.$ac_ext
13056
13057done
13058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13059rm -f conftest.err conftest.$ac_ext
13060if $ac_preproc_ok; then
13061 break
John Criswell7a73b802003-06-30 21:59:07 +000013062fi
13063
John Criswell47fdd832003-07-14 16:52:07 +000013064 done
13065 ac_cv_prog_CXXCPP=$CXXCPP
13066
13067fi
13068 CXXCPP=$ac_cv_prog_CXXCPP
13069else
13070 ac_cv_prog_CXXCPP=$CXXCPP
13071fi
Reid Spencera773bd52006-08-04 18:18:08 +000013072{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13073echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013074ac_preproc_ok=false
13075for ac_cxx_preproc_warn_flag in '' yes
13076do
13077 # Use a header file that comes with gcc, so configuring glibc
13078 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13080 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013081 # On the NeXT, cc -E runs the code through the compiler's parser,
13082 # not just through cpp. "Syntax error" is here to catch this case.
13083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089#ifdef __STDC__
13090# include <limits.h>
13091#else
13092# include <assert.h>
13093#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013094 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013095_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013096if { (ac_try="$ac_cpp conftest.$ac_ext"
13097case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013103 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013104 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013108 (exit $ac_status); } >/dev/null; then
13109 if test -s conftest.err; then
13110 ac_cpp_err=$ac_cxx_preproc_warn_flag
13111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13112 else
13113 ac_cpp_err=
13114 fi
13115else
13116 ac_cpp_err=yes
13117fi
13118if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013119 :
13120else
13121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013122sed 's/^/| /' conftest.$ac_ext >&5
13123
John Criswell47fdd832003-07-14 16:52:07 +000013124 # Broken: fails on valid input.
13125continue
13126fi
Reid Spencera773bd52006-08-04 18:18:08 +000013127
John Criswell47fdd832003-07-14 16:52:07 +000013128rm -f conftest.err conftest.$ac_ext
13129
Reid Spencera773bd52006-08-04 18:18:08 +000013130 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013131 # can be detected and how.
13132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013133/* confdefs.h. */
13134_ACEOF
13135cat confdefs.h >>conftest.$ac_ext
13136cat >>conftest.$ac_ext <<_ACEOF
13137/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013138#include <ac_nonexistent.h>
13139_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013140if { (ac_try="$ac_cpp conftest.$ac_ext"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013147 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013148 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013152 (exit $ac_status); } >/dev/null; then
13153 if test -s conftest.err; then
13154 ac_cpp_err=$ac_cxx_preproc_warn_flag
13155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13156 else
13157 ac_cpp_err=
13158 fi
13159else
13160 ac_cpp_err=yes
13161fi
13162if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013163 # Broken: success on invalid input.
13164continue
13165else
13166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013167sed 's/^/| /' conftest.$ac_ext >&5
13168
John Criswell47fdd832003-07-14 16:52:07 +000013169 # Passes both tests.
13170ac_preproc_ok=:
13171break
13172fi
Reid Spencera773bd52006-08-04 18:18:08 +000013173
John Criswell47fdd832003-07-14 16:52:07 +000013174rm -f conftest.err conftest.$ac_ext
13175
13176done
13177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13178rm -f conftest.err conftest.$ac_ext
13179if $ac_preproc_ok; then
13180 :
13181else
John Criswell0c38eaf2003-09-10 15:17:25 +000013182 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13183See \`config.log' for more details." >&5
13184echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13185See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013186 { (exit 1); exit 1; }; }
13187fi
13188
Reid Spencera773bd52006-08-04 18:18:08 +000013189ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013190ac_cpp='$CXXCPP $CPPFLAGS'
13191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194
Reid Spencer2706f8c2004-09-19 23:53:36 +000013195fi
13196
John Criswell47fdd832003-07-14 16:52:07 +000013197
13198ac_ext=f
13199ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13200ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13202if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013203 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 +000013204 do
13205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013209if test "${ac_cv_prog_F77+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211else
13212 if test -n "$F77"; then
13213 ac_cv_prog_F77="$F77" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013221 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 +000013222 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226done
13227done
Reid Spencera773bd52006-08-04 18:18:08 +000013228IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013229
13230fi
13231fi
13232F77=$ac_cv_prog_F77
13233if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013234 { echo "$as_me:$LINENO: result: $F77" >&5
13235echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013236else
Reid Spencera773bd52006-08-04 18:18:08 +000013237 { echo "$as_me:$LINENO: result: no" >&5
13238echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013239fi
13240
Reid Spencera773bd52006-08-04 18:18:08 +000013241
John Criswell47fdd832003-07-14 16:52:07 +000013242 test -n "$F77" && break
13243 done
13244fi
13245if test -z "$F77"; then
13246 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013247 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 +000013248do
13249 # Extract the first word of "$ac_prog", so it can be a program name with args.
13250set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013253if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256 if test -n "$ac_ct_F77"; then
13257 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13258else
13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260for as_dir in $PATH
13261do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013265 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 +000013266 ac_cv_prog_ac_ct_F77="$ac_prog"
13267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13269 fi
13270done
13271done
Reid Spencera773bd52006-08-04 18:18:08 +000013272IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013273
13274fi
13275fi
13276ac_ct_F77=$ac_cv_prog_ac_ct_F77
13277if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013278 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13279echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013280else
Reid Spencera773bd52006-08-04 18:18:08 +000013281 { echo "$as_me:$LINENO: result: no" >&5
13282echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013283fi
13284
Reid Spencera773bd52006-08-04 18:18:08 +000013285
John Criswell47fdd832003-07-14 16:52:07 +000013286 test -n "$ac_ct_F77" && break
13287done
13288
Reid Spencera773bd52006-08-04 18:18:08 +000013289 if test "x$ac_ct_F77" = x; then
13290 F77=""
13291 else
13292 case $cross_compiling:$ac_tool_warned in
13293yes:)
13294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13295whose name does not start with the host triplet. If you think this
13296configuration is useful to you, please write to autoconf@gnu.org." >&5
13297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13298whose name does not start with the host triplet. If you think this
13299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13300ac_tool_warned=yes ;;
13301esac
13302 F77=$ac_ct_F77
13303 fi
John Criswell47fdd832003-07-14 16:52:07 +000013304fi
13305
13306
13307# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013308echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013309ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013310{ (ac_try="$ac_compiler --version >&5"
13311case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013320{ (ac_try="$ac_compiler -v >&5"
13321case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013330{ (ac_try="$ac_compiler -V >&5"
13331case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013340rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013341
13342# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013343# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013344ac_save_ext=$ac_ext
13345ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013346{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13347echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013348if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350else
13351 cat >conftest.$ac_ext <<_ACEOF
13352 program main
13353#ifndef __GNUC__
13354 choke me
13355#endif
13356
13357 end
13358_ACEOF
13359rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013360if { (ac_try="$ac_compile"
13361case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13364esac
13365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013367 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013372 (exit $ac_status); } &&
13373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013393 ac_compiler_gnu=yes
13394else
13395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013396sed 's/^/| /' conftest.$ac_ext >&5
13397
Reid Spencera773bd52006-08-04 18:18:08 +000013398 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013399fi
Reid Spencera773bd52006-08-04 18:18:08 +000013400
13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013402ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13403
13404fi
Reid Spencera773bd52006-08-04 18:18:08 +000013405{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13406echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013407ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013408ac_test_FFLAGS=${FFLAGS+set}
13409ac_save_FFLAGS=$FFLAGS
13410FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013411{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13412echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013413if test "${ac_cv_prog_f77_g+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 FFLAGS=-g
13417cat >conftest.$ac_ext <<_ACEOF
13418 program main
13419
13420 end
13421_ACEOF
13422rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013423if { (ac_try="$ac_compile"
13424case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013456 ac_cv_prog_f77_g=yes
13457else
13458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013459sed 's/^/| /' conftest.$ac_ext >&5
13460
Reid Spencera773bd52006-08-04 18:18:08 +000013461 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013462fi
Reid Spencera773bd52006-08-04 18:18:08 +000013463
13464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013465
13466fi
Reid Spencera773bd52006-08-04 18:18:08 +000013467{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13468echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013469if test "$ac_test_FFLAGS" = set; then
13470 FFLAGS=$ac_save_FFLAGS
13471elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013473 FFLAGS="-g -O2"
13474 else
13475 FFLAGS="-g"
13476 fi
13477else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013478 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013479 FFLAGS="-O2"
13480 else
13481 FFLAGS=
13482 fi
13483fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013484
13485G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013486ac_ext=c
13487ac_cpp='$CPP $CPPFLAGS'
13488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13490ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491
13492
13493
13494# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13495
13496# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013497{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13498echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013499if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501else
13502 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013503 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013504
13505 case $build_os in
13506 msdosdjgpp*)
13507 # On DJGPP, this test can blow up pretty badly due to problems in libc
13508 # (any single argument exceeding 2000 bytes causes a buffer overrun
13509 # during glob expansion). Even if it were fixed, the result of this
13510 # check would be larger than it should be.
13511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13512 ;;
13513
13514 gnu*)
13515 # Under GNU Hurd, this test is not required because there is
13516 # no limit to the length of command line arguments.
13517 # Libtool will interpret -1 as no limit whatsoever
13518 lt_cv_sys_max_cmd_len=-1;
13519 ;;
13520
13521 cygwin* | mingw*)
13522 # On Win9x/ME, this test blows up -- it succeeds, but takes
13523 # about 5 minutes as the teststring grows exponentially.
13524 # Worse, since 9x/ME are not pre-emptively multitasking,
13525 # you end up with a "frozen" computer, even though with patience
13526 # the test eventually succeeds (with a max line length of 256k).
13527 # Instead, let's just punt: use the minimum linelength reported by
13528 # all of the supported platforms: 8192 (on NT/2K/XP).
13529 lt_cv_sys_max_cmd_len=8192;
13530 ;;
13531
Reid Spencer2706f8c2004-09-19 23:53:36 +000013532 amigaos*)
13533 # On AmigaOS with pdksh, this test takes hours, literally.
13534 # So we just punt and use a minimum line length of 8192.
13535 lt_cv_sys_max_cmd_len=8192;
13536 ;;
13537
Reid Spencera773bd52006-08-04 18:18:08 +000013538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013539 # This has been around since 386BSD, at least. Likely further.
13540 if test -x /sbin/sysctl; then
13541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13542 elif test -x /usr/sbin/sysctl; then
13543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13544 else
Reid Spencera773bd52006-08-04 18:18:08 +000013545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013546 fi
13547 # And add a safety zone
13548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013550 ;;
13551
Reid Spencera773bd52006-08-04 18:18:08 +000013552 interix*)
13553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13554 lt_cv_sys_max_cmd_len=196608
13555 ;;
13556
13557 osf*)
13558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13560 # nice to cause kernel panics so lets avoid the loop below.
13561 # First set a reasonable default.
13562 lt_cv_sys_max_cmd_len=16384
13563 #
13564 if test -x /sbin/sysconfig; then
13565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13567 esac
13568 fi
13569 ;;
13570 sco3.2v5*)
13571 lt_cv_sys_max_cmd_len=102400
13572 ;;
13573 sysv5* | sco5v6* | sysv4.2uw2*)
13574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13575 if test -n "$kargmax"; then
13576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13577 else
13578 lt_cv_sys_max_cmd_len=32768
13579 fi
13580 ;;
13581 *)
John Criswell47fdd832003-07-14 16:52:07 +000013582 # If test is not a shell built-in, we'll probably end up computing a
13583 # maximum length that is only half of the actual maximum length, but
13584 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13586 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13587 = "XX$teststring") >/dev/null 2>&1 &&
13588 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013589 lt_cv_sys_max_cmd_len=$new_result &&
13590 test $i != 17 # 1/2 MB should be enough
13591 do
13592 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013593 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013594 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013595 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013596 # Add a significant safety factor because C++ compilers can tack on massive
13597 # amounts of additional arguments before passing them to the linker.
13598 # It appears as though 1/2 is a usable value.
13599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13600 ;;
13601 esac
13602
13603fi
13604
13605if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013606 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13607echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013608else
Reid Spencera773bd52006-08-04 18:18:08 +000013609 { echo "$as_me:$LINENO: result: none" >&5
13610echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013611fi
13612
13613
13614
13615
13616# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013617{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13618echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013619if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622
13623# These are sane defaults that work on at least a few old systems.
13624# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13625
13626# Character class describing NM global symbol codes.
13627symcode='[BCDEGRST]'
13628
13629# Regexp to match symbols that can be accessed directly from C.
13630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13631
John Criswell47fdd832003-07-14 16:52:07 +000013632# Transform an extracted symbol line into a proper C declaration
13633lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13634
13635# Transform an extracted symbol line into symbol name and symbol address
13636lt_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'"
13637
13638# Define system-specific variables.
13639case $host_os in
13640aix*)
13641 symcode='[BCDT]'
13642 ;;
13643cygwin* | mingw* | pw32*)
13644 symcode='[ABCDGISTW]'
13645 ;;
13646hpux*) # Its linker distinguishes data from code symbols
13647 if test "$host_cpu" = ia64; then
13648 symcode='[ABCDEGRST]'
13649 fi
13650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13651 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'"
13652 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013653linux*)
13654 if test "$host_cpu" = ia64; then
13655 symcode='[ABCDGIRSTW]'
13656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13657 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'"
13658 fi
13659 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013660irix* | nonstopux*)
13661 symcode='[BCDEGRST]'
13662 ;;
13663osf*)
13664 symcode='[BCDEGQRST]'
13665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013666solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013667 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013668 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013669sco3.2v5*)
13670 symcode='[DT]'
13671 ;;
13672sysv4.2uw2*)
13673 symcode='[DT]'
13674 ;;
13675sysv5* | sco5v6* | unixware* | OpenUNIX*)
13676 symcode='[ABDT]'
13677 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013678sysv4)
13679 symcode='[DFNSTU]'
13680 ;;
13681esac
13682
13683# Handle CRLF in mingw tool chain
13684opt_cr=
13685case $build_os in
13686mingw*)
13687 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13688 ;;
13689esac
13690
13691# If we're using GNU nm, then use its standard symbol codes.
13692case `$NM -V 2>&1` in
13693*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013694 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013695esac
13696
13697# Try without a prefix undercore, then with it.
13698for ac_symprfx in "" "_"; do
13699
Reid Spencera773bd52006-08-04 18:18:08 +000013700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13701 symxfrm="\\1 $ac_symprfx\\2 \\2"
13702
John Criswell47fdd832003-07-14 16:52:07 +000013703 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013704 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 +000013705
13706 # Check to see that the pipe works correctly.
13707 pipe_works=no
13708
13709 rm -f conftest*
13710 cat > conftest.$ac_ext <<EOF
13711#ifdef __cplusplus
13712extern "C" {
13713#endif
13714char nm_test_var;
13715void nm_test_func(){}
13716#ifdef __cplusplus
13717}
13718#endif
13719int main(){nm_test_var='a';nm_test_func();return(0);}
13720EOF
13721
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; then
13727 # Now try to grab the symbols.
13728 nlist=conftest.nm
13729 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13730 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && test -s "$nlist"; then
13734 # Try sorting and uniquifying the output.
13735 if sort "$nlist" | uniq > "$nlist"T; then
13736 mv -f "$nlist"T "$nlist"
13737 else
13738 rm -f "$nlist"T
13739 fi
13740
13741 # Make sure that we snagged all the symbols we need.
13742 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13743 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13744 cat <<EOF > conftest.$ac_ext
13745#ifdef __cplusplus
13746extern "C" {
13747#endif
13748
13749EOF
13750 # Now generate the symbol file.
13751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13752
13753 cat <<EOF >> conftest.$ac_ext
13754#if defined (__STDC__) && __STDC__
13755# define lt_ptr_t void *
13756#else
13757# define lt_ptr_t char *
13758# define const
13759#endif
13760
13761/* The mapping between symbol names and symbols. */
13762const struct {
13763 const char *name;
13764 lt_ptr_t address;
13765}
13766lt_preloaded_symbols[] =
13767{
13768EOF
13769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13770 cat <<\EOF >> conftest.$ac_ext
13771 {0, (lt_ptr_t) 0}
13772};
13773
13774#ifdef __cplusplus
13775}
13776#endif
13777EOF
13778 # Now try linking the two files.
13779 mv conftest.$ac_objext conftstm.$ac_objext
13780 lt_save_LIBS="$LIBS"
13781 lt_save_CFLAGS="$CFLAGS"
13782 LIBS="conftstm.$ac_objext"
13783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13785 (eval $ac_link) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13789 pipe_works=yes
13790 fi
13791 LIBS="$lt_save_LIBS"
13792 CFLAGS="$lt_save_CFLAGS"
13793 else
13794 echo "cannot find nm_test_func in $nlist" >&5
13795 fi
13796 else
13797 echo "cannot find nm_test_var in $nlist" >&5
13798 fi
13799 else
13800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13801 fi
13802 else
13803 echo "$progname: failed program was:" >&5
13804 cat conftest.$ac_ext >&5
13805 fi
13806 rm -f conftest* conftst*
13807
13808 # Do not use the global_symbol_pipe unless it works.
13809 if test "$pipe_works" = yes; then
13810 break
13811 else
13812 lt_cv_sys_global_symbol_pipe=
13813 fi
13814done
13815
13816fi
13817
13818if test -z "$lt_cv_sys_global_symbol_pipe"; then
13819 lt_cv_sys_global_symbol_to_cdecl=
13820fi
13821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013822 { echo "$as_me:$LINENO: result: failed" >&5
13823echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013824else
Reid Spencera773bd52006-08-04 18:18:08 +000013825 { echo "$as_me:$LINENO: result: ok" >&5
13826echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013827fi
13828
Reid Spencera773bd52006-08-04 18:18:08 +000013829{ echo "$as_me:$LINENO: checking for objdir" >&5
13830echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013831if test "${lt_cv_objdir+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13833else
13834 rm -f .libs 2>/dev/null
13835mkdir .libs 2>/dev/null
13836if test -d .libs; then
13837 lt_cv_objdir=.libs
13838else
13839 # MS-DOS does not allow filenames that begin with a dot.
13840 lt_cv_objdir=_libs
13841fi
13842rmdir .libs 2>/dev/null
13843fi
Reid Spencera773bd52006-08-04 18:18:08 +000013844{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13845echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013846objdir=$lt_cv_objdir
13847
13848
13849
13850
13851
13852case $host_os in
13853aix3*)
13854 # AIX sometimes has problems with the GCC collect2 program. For some
13855 # reason, if we set the COLLECT_NAMES environment variable, the problems
13856 # vanish in a puff of smoke.
13857 if test "X${COLLECT_NAMES+set}" != Xset; then
13858 COLLECT_NAMES=
13859 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013860 fi
13861 ;;
13862esac
13863
John Criswell47fdd832003-07-14 16:52:07 +000013864# Sed substitution that helps us do robust quoting. It backslashifies
13865# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013866Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013867sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13868
13869# Same as above, but do not quote variable references.
13870double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13871
13872# Sed substitution to delay expansion of an escaped shell variable in a
13873# double_quote_subst'ed string.
13874delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13875
13876# Sed substitution to avoid accidental globbing in evaled expressions
13877no_glob_subst='s/\*/\\\*/g'
13878
13879# Constants:
13880rm="rm -f"
13881
13882# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013883default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013884can_build_shared=yes
13885
Reid Spencera773bd52006-08-04 18:18:08 +000013886# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013887# which needs '.lib').
13888libext=a
13889ltmain="$ac_aux_dir/ltmain.sh"
13890ofile="$default_ofile"
13891with_gnu_ld="$lt_cv_prog_gnu_ld"
13892
13893if test -n "$ac_tool_prefix"; then
13894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13895set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013898if test "${ac_cv_prog_AR+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900else
13901 if test -n "$AR"; then
13902 ac_cv_prog_AR="$AR" # Let the user override the test.
13903else
13904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905for as_dir in $PATH
13906do
13907 IFS=$as_save_IFS
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013910 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 +000013911 ac_cv_prog_AR="${ac_tool_prefix}ar"
13912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 break 2
13914 fi
13915done
13916done
Reid Spencera773bd52006-08-04 18:18:08 +000013917IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013918
13919fi
13920fi
13921AR=$ac_cv_prog_AR
13922if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013923 { echo "$as_me:$LINENO: result: $AR" >&5
13924echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013925else
Reid Spencera773bd52006-08-04 18:18:08 +000013926 { echo "$as_me:$LINENO: result: no" >&5
13927echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013928fi
13929
Reid Spencera773bd52006-08-04 18:18:08 +000013930
John Criswell47fdd832003-07-14 16:52:07 +000013931fi
13932if test -z "$ac_cv_prog_AR"; then
13933 ac_ct_AR=$AR
13934 # Extract the first word of "ar", so it can be a program name with args.
13935set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013938if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940else
13941 if test -n "$ac_ct_AR"; then
13942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13943else
13944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945for as_dir in $PATH
13946do
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013950 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 +000013951 ac_cv_prog_ac_ct_AR="ar"
13952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13954 fi
13955done
13956done
Reid Spencera773bd52006-08-04 18:18:08 +000013957IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013958
John Criswell47fdd832003-07-14 16:52:07 +000013959fi
13960fi
13961ac_ct_AR=$ac_cv_prog_ac_ct_AR
13962if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013963 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13964echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013965else
Reid Spencera773bd52006-08-04 18:18:08 +000013966 { echo "$as_me:$LINENO: result: no" >&5
13967echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013968fi
13969
Reid Spencera773bd52006-08-04 18:18:08 +000013970 if test "x$ac_ct_AR" = x; then
13971 AR="false"
13972 else
13973 case $cross_compiling:$ac_tool_warned in
13974yes:)
13975{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13976whose name does not start with the host triplet. If you think this
13977configuration is useful to you, please write to autoconf@gnu.org." >&5
13978echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13979whose name does not start with the host triplet. If you think this
13980configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13981ac_tool_warned=yes ;;
13982esac
13983 AR=$ac_ct_AR
13984 fi
John Criswell47fdd832003-07-14 16:52:07 +000013985else
13986 AR="$ac_cv_prog_AR"
13987fi
13988
John Criswell7a73b802003-06-30 21:59:07 +000013989if test -n "$ac_tool_prefix"; then
13990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013994if test "${ac_cv_prog_RANLIB+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997 if test -n "$RANLIB"; then
13998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13999else
14000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001for as_dir in $PATH
14002do
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014006 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 +000014007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 break 2
14010 fi
14011done
14012done
Reid Spencera773bd52006-08-04 18:18:08 +000014013IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014014
14015fi
14016fi
14017RANLIB=$ac_cv_prog_RANLIB
14018if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14020echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014021else
Reid Spencera773bd52006-08-04 18:18:08 +000014022 { echo "$as_me:$LINENO: result: no" >&5
14023echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014024fi
14025
Reid Spencera773bd52006-08-04 18:18:08 +000014026
John Criswell7a73b802003-06-30 21:59:07 +000014027fi
14028if test -z "$ac_cv_prog_RANLIB"; then
14029 ac_ct_RANLIB=$RANLIB
14030 # Extract the first word of "ranlib", so it can be a program name with args.
14031set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014034if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036else
14037 if test -n "$ac_ct_RANLIB"; then
14038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14039else
14040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041for as_dir in $PATH
14042do
14043 IFS=$as_save_IFS
14044 test -z "$as_dir" && as_dir=.
14045 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014046 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 +000014047 ac_cv_prog_ac_ct_RANLIB="ranlib"
14048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14049 break 2
14050 fi
14051done
14052done
Reid Spencera773bd52006-08-04 18:18:08 +000014053IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014054
John Criswell7a73b802003-06-30 21:59:07 +000014055fi
14056fi
14057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14058if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14060echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014061else
Reid Spencera773bd52006-08-04 18:18:08 +000014062 { echo "$as_me:$LINENO: result: no" >&5
14063echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014064fi
14065
Reid Spencera773bd52006-08-04 18:18:08 +000014066 if test "x$ac_ct_RANLIB" = x; then
14067 RANLIB=":"
14068 else
14069 case $cross_compiling:$ac_tool_warned in
14070yes:)
14071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14072whose name does not start with the host triplet. If you think this
14073configuration is useful to you, please write to autoconf@gnu.org." >&5
14074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14075whose name does not start with the host triplet. If you think this
14076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14077ac_tool_warned=yes ;;
14078esac
14079 RANLIB=$ac_ct_RANLIB
14080 fi
John Criswell7a73b802003-06-30 21:59:07 +000014081else
14082 RANLIB="$ac_cv_prog_RANLIB"
14083fi
14084
14085if test -n "$ac_tool_prefix"; then
14086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14087set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014090if test "${ac_cv_prog_STRIP+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093 if test -n "$STRIP"; then
14094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14095else
14096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097for as_dir in $PATH
14098do
14099 IFS=$as_save_IFS
14100 test -z "$as_dir" && as_dir=.
14101 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014102 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 +000014103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14105 break 2
14106 fi
14107done
14108done
Reid Spencera773bd52006-08-04 18:18:08 +000014109IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014110
14111fi
14112fi
14113STRIP=$ac_cv_prog_STRIP
14114if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014115 { echo "$as_me:$LINENO: result: $STRIP" >&5
14116echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014117else
Reid Spencera773bd52006-08-04 18:18:08 +000014118 { echo "$as_me:$LINENO: result: no" >&5
14119echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014120fi
14121
Reid Spencera773bd52006-08-04 18:18:08 +000014122
John Criswell7a73b802003-06-30 21:59:07 +000014123fi
14124if test -z "$ac_cv_prog_STRIP"; then
14125 ac_ct_STRIP=$STRIP
14126 # Extract the first word of "strip", so it can be a program name with args.
14127set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 if test -n "$ac_ct_STRIP"; then
14134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14135else
14136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137for as_dir in $PATH
14138do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014142 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 +000014143 ac_cv_prog_ac_ct_STRIP="strip"
14144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147done
14148done
Reid Spencera773bd52006-08-04 18:18:08 +000014149IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014150
John Criswell7a73b802003-06-30 21:59:07 +000014151fi
14152fi
14153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14154if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014155 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14156echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014157else
Reid Spencera773bd52006-08-04 18:18:08 +000014158 { echo "$as_me:$LINENO: result: no" >&5
14159echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014160fi
14161
Reid Spencera773bd52006-08-04 18:18:08 +000014162 if test "x$ac_ct_STRIP" = x; then
14163 STRIP=":"
14164 else
14165 case $cross_compiling:$ac_tool_warned in
14166yes:)
14167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14168whose name does not start with the host triplet. If you think this
14169configuration is useful to you, please write to autoconf@gnu.org." >&5
14170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14171whose name does not start with the host triplet. If you think this
14172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14173ac_tool_warned=yes ;;
14174esac
14175 STRIP=$ac_ct_STRIP
14176 fi
John Criswell7a73b802003-06-30 21:59:07 +000014177else
14178 STRIP="$ac_cv_prog_STRIP"
14179fi
14180
14181
John Criswell7a73b802003-06-30 21:59:07 +000014182old_CC="$CC"
14183old_CFLAGS="$CFLAGS"
14184
14185# Set sane defaults for various variables
14186test -z "$AR" && AR=ar
14187test -z "$AR_FLAGS" && AR_FLAGS=cru
14188test -z "$AS" && AS=as
14189test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014190test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014191test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014192test -z "$DLLTOOL" && DLLTOOL=dlltool
14193test -z "$LD" && LD=ld
14194test -z "$LN_S" && LN_S="ln -s"
14195test -z "$MAGIC_CMD" && MAGIC_CMD=file
14196test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014197test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014198test -z "$OBJDUMP" && OBJDUMP=objdump
14199test -z "$RANLIB" && RANLIB=:
14200test -z "$STRIP" && STRIP=:
14201test -z "$ac_objext" && ac_objext=o
14202
John Criswell7a73b802003-06-30 21:59:07 +000014203# Determine commands to create old-style static archives.
14204old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14205old_postinstall_cmds='chmod 644 $oldlib'
14206old_postuninstall_cmds=
14207
14208if test -n "$RANLIB"; then
14209 case $host_os in
14210 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014212 ;;
14213 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014214 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014215 ;;
14216 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014217 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014218fi
14219
Reid Spencera773bd52006-08-04 18:18:08 +000014220for cc_temp in $compiler""; do
14221 case $cc_temp in
14222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14224 \-*) ;;
14225 *) break;;
14226 esac
14227done
14228cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14229
Reid Spencer2706f8c2004-09-19 23:53:36 +000014230
John Criswell47fdd832003-07-14 16:52:07 +000014231# Only perform the check for file, if the check method requires it
14232case $deplibs_check_method in
14233file_magic*)
14234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014235 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14236echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014239else
John Criswell47fdd832003-07-14 16:52:07 +000014240 case $MAGIC_CMD in
14241[\\/*] | ?:[\\/]*)
14242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14243 ;;
14244*)
14245 lt_save_MAGIC_CMD="$MAGIC_CMD"
14246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14248 for ac_dir in $ac_dummy; do
14249 IFS="$lt_save_ifs"
14250 test -z "$ac_dir" && ac_dir=.
14251 if test -f $ac_dir/${ac_tool_prefix}file; then
14252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14253 if test -n "$file_magic_test_file"; then
14254 case $deplibs_check_method in
14255 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14259 $EGREP "$file_magic_regex" > /dev/null; then
14260 :
14261 else
14262 cat <<EOF 1>&2
14263
14264*** Warning: the command libtool uses to detect shared libraries,
14265*** $file_magic_cmd, produces output that libtool cannot recognize.
14266*** The result is that libtool may fail to recognize shared libraries
14267*** as such. This will affect the creation of libtool libraries that
14268*** depend on shared libraries, but programs linked with such libtool
14269*** libraries will work regardless of this problem. Nevertheless, you
14270*** may want to report the problem to your system manager and/or to
14271*** bug-libtool@gnu.org
14272
14273EOF
14274 fi ;;
14275 esac
14276 fi
14277 break
14278 fi
14279 done
14280 IFS="$lt_save_ifs"
14281 MAGIC_CMD="$lt_save_MAGIC_CMD"
14282 ;;
14283esac
John Criswell7a73b802003-06-30 21:59:07 +000014284fi
John Criswell7a73b802003-06-30 21:59:07 +000014285
John Criswell47fdd832003-07-14 16:52:07 +000014286MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14287if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014288 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14289echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014290else
Reid Spencera773bd52006-08-04 18:18:08 +000014291 { echo "$as_me:$LINENO: result: no" >&5
14292echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014293fi
John Criswell7a73b802003-06-30 21:59:07 +000014294
John Criswell47fdd832003-07-14 16:52:07 +000014295if test -z "$lt_cv_path_MAGIC_CMD"; then
14296 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014297 { echo "$as_me:$LINENO: checking for file" >&5
14298echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014299if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 case $MAGIC_CMD in
14303[\\/*] | ?:[\\/]*)
14304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14305 ;;
14306*)
14307 lt_save_MAGIC_CMD="$MAGIC_CMD"
14308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14310 for ac_dir in $ac_dummy; do
14311 IFS="$lt_save_ifs"
14312 test -z "$ac_dir" && ac_dir=.
14313 if test -f $ac_dir/file; then
14314 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14315 if test -n "$file_magic_test_file"; then
14316 case $deplibs_check_method in
14317 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14321 $EGREP "$file_magic_regex" > /dev/null; then
14322 :
14323 else
14324 cat <<EOF 1>&2
14325
14326*** Warning: the command libtool uses to detect shared libraries,
14327*** $file_magic_cmd, produces output that libtool cannot recognize.
14328*** The result is that libtool may fail to recognize shared libraries
14329*** as such. This will affect the creation of libtool libraries that
14330*** depend on shared libraries, but programs linked with such libtool
14331*** libraries will work regardless of this problem. Nevertheless, you
14332*** may want to report the problem to your system manager and/or to
14333*** bug-libtool@gnu.org
14334
14335EOF
14336 fi ;;
14337 esac
14338 fi
14339 break
14340 fi
14341 done
14342 IFS="$lt_save_ifs"
14343 MAGIC_CMD="$lt_save_MAGIC_CMD"
14344 ;;
14345esac
14346fi
14347
14348MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14349if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014350 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14351echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014352else
Reid Spencera773bd52006-08-04 18:18:08 +000014353 { echo "$as_me:$LINENO: result: no" >&5
14354echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014355fi
14356
14357 else
14358 MAGIC_CMD=:
14359 fi
14360fi
14361
14362 fi
14363 ;;
14364esac
14365
Reid Spencer17795972004-11-18 09:47:37 +000014366enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014367enable_win32_dll=no
14368
Reid Spencera773bd52006-08-04 18:18:08 +000014369# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014370if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014371 enableval=$enable_libtool_lock;
14372fi
John Criswell47fdd832003-07-14 16:52:07 +000014373
John Criswell47fdd832003-07-14 16:52:07 +000014374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14375
John Criswell7a73b802003-06-30 21:59:07 +000014376
Reid Spencera773bd52006-08-04 18:18:08 +000014377# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014378if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014379 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014380else
14381 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014382fi
14383
John Criswell7a73b802003-06-30 21:59:07 +000014384test -z "$pic_mode" && pic_mode=default
14385
John Criswell47fdd832003-07-14 16:52:07 +000014386# Use C for the default configuration in the libtool script
14387tagname=
14388lt_save_CC="$CC"
14389ac_ext=c
14390ac_cpp='$CPP $CPPFLAGS'
14391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394
14395
14396# Source file extension for C test sources.
14397ac_ext=c
14398
14399# Object file extension for compiled C test sources.
14400objext=o
14401objext=$objext
14402
14403# Code to be used in simple compile tests
14404lt_simple_compile_test_code="int some_variable = 0;\n"
14405
14406# Code to be used in simple link tests
14407lt_simple_link_test_code='int main(){return(0);}\n'
14408
14409
14410# If no C compiler was specified, use CC.
14411LTCC=${LTCC-"$CC"}
14412
Reid Spencera773bd52006-08-04 18:18:08 +000014413# If no C compiler flags were specified, use CFLAGS.
14414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14415
John Criswell47fdd832003-07-14 16:52:07 +000014416# Allow CC to be a program name with arguments.
14417compiler=$CC
14418
14419
Reid Spencera773bd52006-08-04 18:18:08 +000014420# save warnings/boilerplate of simple test code
14421ac_outfile=conftest.$ac_objext
14422printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14424_lt_compiler_boilerplate=`cat conftest.err`
14425$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014426
Reid Spencera773bd52006-08-04 18:18:08 +000014427ac_outfile=conftest.$ac_objext
14428printf "$lt_simple_link_test_code" >conftest.$ac_ext
14429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14430_lt_linker_boilerplate=`cat conftest.err`
14431$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014432
14433
John Criswell47fdd832003-07-14 16:52:07 +000014434
14435lt_prog_compiler_no_builtin_flag=
14436
14437if test "$GCC" = yes; then
14438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14439
Reid Spencer2706f8c2004-09-19 23:53:36 +000014440
Reid Spencera773bd52006-08-04 18:18:08 +000014441{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14442echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014443if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446 lt_cv_prog_compiler_rtti_exceptions=no
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="-fno-rtti -fno-exceptions"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014459 (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014460 (eval "$lt_compile" 2>conftest.err)
14461 ac_status=$?
14462 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014463 echo "$as_me:14463: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014466 # So say no if there are warnings other than the usual output.
14467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014470 lt_cv_prog_compiler_rtti_exceptions=yes
14471 fi
14472 fi
14473 $rm conftest*
14474
14475fi
Reid Spencera773bd52006-08-04 18:18:08 +000014476{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14477echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014478
14479if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14481else
14482 :
14483fi
14484
14485fi
14486
14487lt_prog_compiler_wl=
14488lt_prog_compiler_pic=
14489lt_prog_compiler_static=
14490
Reid Spencera773bd52006-08-04 18:18:08 +000014491{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14492echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014493
14494 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014497
14498 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014499 aix*)
14500 # All AIX code is PIC.
14501 if test "$host_cpu" = ia64; then
14502 # AIX 5 now supports IA64 processor
14503 lt_prog_compiler_static='-Bstatic'
14504 fi
John Criswell7a73b802003-06-30 21:59:07 +000014505 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014506
John Criswell7a73b802003-06-30 21:59:07 +000014507 amigaos*)
14508 # FIXME: we need at least 68020 code to build shared libraries, but
14509 # adding the `-m68020' flag to GCC prevents building anything better,
14510 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014513
14514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014515 # PIC is the default for these OSes.
14516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014517
14518 mingw* | pw32* | os2*)
14519 # This hack is so that the source file can tell whether it is being
14520 # built for inclusion in a dll (and should export symbols for example).
14521 lt_prog_compiler_pic='-DDLL_EXPORT'
14522 ;;
14523
John Criswell7a73b802003-06-30 21:59:07 +000014524 darwin* | rhapsody*)
14525 # PIC is the default on this platform
14526 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014527 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014528 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014529
Reid Spencera773bd52006-08-04 18:18:08 +000014530 interix3*)
14531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14532 # Instead, we relocate shared libraries at runtime.
14533 ;;
14534
John Criswell47fdd832003-07-14 16:52:07 +000014535 msdosdjgpp*)
14536 # Just because we use GCC doesn't mean we suddenly get shared libraries
14537 # on systems that don't support them.
14538 lt_prog_compiler_can_build_shared=no
14539 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014541
John Criswell7a73b802003-06-30 21:59:07 +000014542 sysv4*MP*)
14543 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014544 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014545 fi
14546 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014547
14548 hpux*)
14549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14550 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014551 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014552 hppa*64*|ia64*)
14553 # +Z the default
14554 ;;
14555 *)
14556 lt_prog_compiler_pic='-fPIC'
14557 ;;
14558 esac
14559 ;;
14560
John Criswell7a73b802003-06-30 21:59:07 +000014561 *)
John Criswell47fdd832003-07-14 16:52:07 +000014562 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014563 ;;
14564 esac
14565 else
John Criswell47fdd832003-07-14 16:52:07 +000014566 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014567 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014568 aix*)
14569 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014570 if test "$host_cpu" = ia64; then
14571 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014572 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014573 else
John Criswell47fdd832003-07-14 16:52:07 +000014574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014575 fi
14576 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014577 darwin*)
14578 # PIC is the default on this platform
14579 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014580 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014581 xlc*)
14582 lt_prog_compiler_pic='-qnocommon'
14583 lt_prog_compiler_wl='-Wl,'
14584 ;;
14585 esac
14586 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014587
John Criswell47fdd832003-07-14 16:52:07 +000014588 mingw* | pw32* | os2*)
14589 # This hack is so that the source file can tell whether it is being
14590 # built for inclusion in a dll (and should export symbols for example).
14591 lt_prog_compiler_pic='-DDLL_EXPORT'
14592 ;;
14593
John Criswell7a73b802003-06-30 21:59:07 +000014594 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014595 lt_prog_compiler_wl='-Wl,'
14596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014598 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014599 hppa*64*|ia64*)
14600 # +Z the default
14601 ;;
14602 *)
14603 lt_prog_compiler_pic='+Z'
14604 ;;
14605 esac
14606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14607 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014608 ;;
14609
John Criswell47fdd832003-07-14 16:52:07 +000014610 irix5* | irix6* | nonstopux*)
14611 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014612 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014613 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014614 ;;
14615
14616 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014617 lt_prog_compiler_pic='-KPIC'
14618 lt_prog_compiler_static='-Bstatic'
14619 ;;
14620
14621 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014622 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014623 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014624 lt_prog_compiler_wl='-Wl,'
14625 lt_prog_compiler_pic='-KPIC'
14626 lt_prog_compiler_static='-static'
14627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014628 pgcc* | pgf77* | pgf90* | pgf95*)
14629 # Portland Group compilers (*not* the Pentium gcc compiler,
14630 # which looks to be a dead project)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-fpic'
14633 lt_prog_compiler_static='-Bstatic'
14634 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014635 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014636 lt_prog_compiler_wl='-Wl,'
14637 # All Alpha code is PIC.
14638 lt_prog_compiler_static='-non_shared'
14639 ;;
14640 esac
John Criswell7a73b802003-06-30 21:59:07 +000014641 ;;
14642
14643 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014644 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014645 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014646 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014647 ;;
14648
John Criswell7a73b802003-06-30 21:59:07 +000014649 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014650 lt_prog_compiler_pic='-KPIC'
14651 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014652 case $cc_basename in
14653 f77* | f90* | f95*)
14654 lt_prog_compiler_wl='-Qoption ld ';;
14655 *)
14656 lt_prog_compiler_wl='-Wl,';;
14657 esac
John Criswell7a73b802003-06-30 21:59:07 +000014658 ;;
14659
14660 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014661 lt_prog_compiler_wl='-Qoption ld '
14662 lt_prog_compiler_pic='-PIC'
14663 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014664 ;;
14665
Reid Spencera773bd52006-08-04 18:18:08 +000014666 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014667 lt_prog_compiler_wl='-Wl,'
14668 lt_prog_compiler_pic='-KPIC'
14669 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014670 ;;
14671
14672 sysv4*MP*)
14673 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014674 lt_prog_compiler_pic='-Kconform_pic'
14675 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014676 fi
14677 ;;
14678
Reid Spencera773bd52006-08-04 18:18:08 +000014679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14680 lt_prog_compiler_wl='-Wl,'
14681 lt_prog_compiler_pic='-KPIC'
14682 lt_prog_compiler_static='-Bstatic'
14683 ;;
14684
14685 unicos*)
14686 lt_prog_compiler_wl='-Wl,'
14687 lt_prog_compiler_can_build_shared=no
14688 ;;
14689
John Criswell47fdd832003-07-14 16:52:07 +000014690 uts4*)
14691 lt_prog_compiler_pic='-pic'
14692 lt_prog_compiler_static='-Bstatic'
14693 ;;
14694
John Criswell7a73b802003-06-30 21:59:07 +000014695 *)
John Criswell47fdd832003-07-14 16:52:07 +000014696 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014697 ;;
14698 esac
14699 fi
14700
Reid Spencera773bd52006-08-04 18:18:08 +000014701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14702echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014703
John Criswell47fdd832003-07-14 16:52:07 +000014704#
14705# Check to make sure the PIC flag actually works.
14706#
14707if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014708
Reid Spencera773bd52006-08-04 18:18:08 +000014709{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014711if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
John Criswell47fdd832003-07-14 16:52:07 +000014714 lt_prog_compiler_pic_works=no
14715 ac_outfile=conftest.$ac_objext
14716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014727 (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014728 (eval "$lt_compile" 2>conftest.err)
14729 ac_status=$?
14730 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014731 echo "$as_me:14731: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014734 # So say no if there are warnings other than the usual output.
14735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014738 lt_prog_compiler_pic_works=yes
14739 fi
14740 fi
14741 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014742
John Criswell47fdd832003-07-14 16:52:07 +000014743fi
Reid Spencera773bd52006-08-04 18:18:08 +000014744{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14745echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014746
John Criswell47fdd832003-07-14 16:52:07 +000014747if test x"$lt_prog_compiler_pic_works" = xyes; then
14748 case $lt_prog_compiler_pic in
14749 "" | " "*) ;;
14750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14751 esac
John Criswell7a73b802003-06-30 21:59:07 +000014752else
John Criswell47fdd832003-07-14 16:52:07 +000014753 lt_prog_compiler_pic=
14754 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014755fi
14756
John Criswell7a73b802003-06-30 21:59:07 +000014757fi
Reid Spencera773bd52006-08-04 18:18:08 +000014758case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014759 # For platforms which do not support PIC, -DPIC is meaningless:
14760 *djgpp*)
14761 lt_prog_compiler_pic=
14762 ;;
14763 *)
14764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14765 ;;
14766esac
John Criswell7a73b802003-06-30 21:59:07 +000014767
Reid Spencera773bd52006-08-04 18:18:08 +000014768#
14769# Check to make sure the static flag actually works.
14770#
14771wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14772{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14773echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14774if test "${lt_prog_compiler_static_works+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14776else
14777 lt_prog_compiler_static_works=no
14778 save_LDFLAGS="$LDFLAGS"
14779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14782 # The linker can only warn and ignore the option if not recognized
14783 # So say no if there are warnings
14784 if test -s conftest.err; then
14785 # Append any errors to the config.log.
14786 cat conftest.err 1>&5
14787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14789 if diff conftest.exp conftest.er2 >/dev/null; then
14790 lt_prog_compiler_static_works=yes
14791 fi
14792 else
14793 lt_prog_compiler_static_works=yes
14794 fi
14795 fi
14796 $rm conftest*
14797 LDFLAGS="$save_LDFLAGS"
14798
14799fi
14800{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14801echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14802
14803if test x"$lt_prog_compiler_static_works" = xyes; then
14804 :
14805else
14806 lt_prog_compiler_static=
14807fi
14808
14809
14810{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014812if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
John Criswell47fdd832003-07-14 16:52:07 +000014815 lt_cv_prog_compiler_c_o=no
14816 $rm -r conftest 2>/dev/null
14817 mkdir conftest
14818 cd conftest
14819 mkdir out
14820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014821
John Criswell47fdd832003-07-14 16:52:07 +000014822 lt_compiler_flag="-o out/conftest2.$ac_objext"
14823 # Insert the option either (1) after the last *FLAGS variable, or
14824 # (2) before a word containing "conftest.", or (3) at the end.
14825 # Note that $ac_compile itself does not contain backslashes and begins
14826 # with a dollar sign (not a hyphen), so the echo should work correctly.
14827 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14830 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014831 (eval echo "\"\$as_me:14831: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014832 (eval "$lt_compile" 2>out/conftest.err)
14833 ac_status=$?
14834 cat out/conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000014835 echo "$as_me:14835: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14837 then
14838 # The compiler can only warn and ignore the option if not recognized
14839 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014843 lt_cv_prog_compiler_c_o=yes
14844 fi
14845 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014846 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014847 $rm conftest*
14848 # SGI C++ compiler will create directory out/ii_files/ for
14849 # template instantiation
14850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14851 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014852 cd ..
14853 rmdir conftest
14854 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014855
14856fi
Reid Spencera773bd52006-08-04 18:18:08 +000014857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14858echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014859
John Criswell7a73b802003-06-30 21:59:07 +000014860
John Criswell7a73b802003-06-30 21:59:07 +000014861hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014863 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14865echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014866 hard_links=yes
14867 $rm conftest*
14868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14869 touch conftest.a
14870 ln conftest.a conftest.b 2>&5 || hard_links=no
14871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014872 { echo "$as_me:$LINENO: result: $hard_links" >&5
14873echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014874 if test "$hard_links" = no; then
14875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14876echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14877 need_locks=warn
14878 fi
14879else
14880 need_locks=no
14881fi
John Criswell7a73b802003-06-30 21:59:07 +000014882
Reid Spencera773bd52006-08-04 18:18:08 +000014883{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14884echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014885
14886 runpath_var=
14887 allow_undefined_flag=
14888 enable_shared_with_static_runtimes=no
14889 archive_cmds=
14890 archive_expsym_cmds=
14891 old_archive_From_new_cmds=
14892 old_archive_from_expsyms_cmds=
14893 export_dynamic_flag_spec=
14894 whole_archive_flag_spec=
14895 thread_safe_flag_spec=
14896 hardcode_libdir_flag_spec=
14897 hardcode_libdir_flag_spec_ld=
14898 hardcode_libdir_separator=
14899 hardcode_direct=no
14900 hardcode_minus_L=no
14901 hardcode_shlibpath_var=unsupported
14902 link_all_deplibs=unknown
14903 hardcode_automatic=no
14904 module_cmds=
14905 module_expsym_cmds=
14906 always_export_symbols=no
14907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14908 # include_expsyms should be a list of space-separated symbols to be *always*
14909 # included in the symbol list
14910 include_expsyms=
14911 # exclude_expsyms can be an extended regexp of symbols to exclude
14912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14914 # as well as any symbol that contains `d'.
14915 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14917 # platforms (ab)use it in PIC code, but their linkers get confused if
14918 # the symbol is explicitly referenced. Since portable code cannot
14919 # rely on this symbol name, it's probably fine to never include it in
14920 # preloaded symbol tables.
14921 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014922 # Just being paranoid about ensuring that cc_basename is set.
14923 for cc_temp in $compiler""; do
14924 case $cc_temp in
14925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14927 \-*) ;;
14928 *) break;;
14929 esac
14930done
14931cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014932
14933 case $host_os in
14934 cygwin* | mingw* | pw32*)
14935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14936 # When not using gcc, we currently assume that we are using
14937 # Microsoft Visual C++.
14938 if test "$GCC" != yes; then
14939 with_gnu_ld=no
14940 fi
14941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014942 interix*)
14943 # we just hope/assume this is gcc and not c89 (= MSVC++)
14944 with_gnu_ld=yes
14945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014946 openbsd*)
14947 with_gnu_ld=no
14948 ;;
14949 esac
14950
14951 ld_shlibs=yes
14952 if test "$with_gnu_ld" = yes; then
14953 # If archive_cmds runs LD, not CC, wlarc should be empty
14954 wlarc='${wl}'
14955
Reid Spencera773bd52006-08-04 18:18:08 +000014956 # Set some defaults for GNU ld with shared library support. These
14957 # are reset later if shared libraries are not supported. Putting them
14958 # here allows them to be overridden if necessary.
14959 runpath_var=LD_RUN_PATH
14960 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14961 export_dynamic_flag_spec='${wl}--export-dynamic'
14962 # ancient GNU ld didn't support --whole-archive et. al.
14963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14965 else
14966 whole_archive_flag_spec=
14967 fi
14968 supports_anon_versioning=no
14969 case `$LD -v 2>/dev/null` in
14970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14973 *\ 2.11.*) ;; # other 2.11 versions
14974 *) supports_anon_versioning=yes ;;
14975 esac
14976
John Criswell47fdd832003-07-14 16:52:07 +000014977 # See if GNU ld supports shared libraries.
14978 case $host_os in
14979 aix3* | aix4* | aix5*)
14980 # On AIX/PPC, the GNU linker is very broken
14981 if test "$host_cpu" != ia64; then
14982 ld_shlibs=no
14983 cat <<EOF 1>&2
14984
14985*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14986*** to be unable to reliably create shared libraries on AIX.
14987*** Therefore, libtool is disabling shared libraries support. If you
14988*** really care for shared libraries, you may want to modify your PATH
14989*** so that a non-GNU linker is found, and then restart.
14990
14991EOF
14992 fi
14993 ;;
14994
14995 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014996 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 +000014997 hardcode_libdir_flag_spec='-L$libdir'
14998 hardcode_minus_L=yes
14999
15000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15001 # that the semantics of dynamic libraries on AmigaOS, at least up
15002 # to version 4, is to share data among multiple programs linked
15003 # with the same dynamic library. Since this doesn't match the
15004 # behavior of shared libraries on other platforms, we can't use
15005 # them.
15006 ld_shlibs=no
15007 ;;
15008
15009 beos*)
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 allow_undefined_flag=unsupported
15012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15013 # support --undefined. This deserves some investigation. FIXME
15014 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015 else
15016 ld_shlibs=no
15017 fi
15018 ;;
15019
15020 cygwin* | mingw* | pw32*)
15021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15022 # as there is no search path for DLLs.
15023 hardcode_libdir_flag_spec='-L$libdir'
15024 allow_undefined_flag=unsupported
15025 always_export_symbols=no
15026 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015027 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 +000015028
15029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015030 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 +000015031 # If the export-symbols file already is a .def file (1st line
15032 # is EXPORTS), use it as is; otherwise, prepend...
15033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15034 cp $export_symbols $output_objdir/$soname.def;
15035 else
15036 echo EXPORTS > $output_objdir/$soname.def;
15037 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015038 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15040 else
15041 ld_shlibs=no
15042 fi
15043 ;;
15044
15045 interix3*)
15046 hardcode_direct=no
15047 hardcode_shlibpath_var=no
15048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15049 export_dynamic_flag_spec='${wl}-E'
15050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15051 # Instead, shared libraries are loaded at an image base (0x10000000 by
15052 # default) and relocated if they conflict, which is a slow very memory
15053 # consuming and fragmenting process. To avoid this, we pick a random,
15054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15057 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'
15058 ;;
15059
15060 linux*)
15061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15062 tmp_addflag=
15063 case $cc_basename,$host_cpu in
15064 pgcc*) # Portland Group C compiler
15065 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'
15066 tmp_addflag=' $pic_flag'
15067 ;;
15068 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15069 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'
15070 tmp_addflag=' $pic_flag -Mnomain' ;;
15071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15072 tmp_addflag=' -i_dynamic' ;;
15073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15074 tmp_addflag=' -i_dynamic -nofor_main' ;;
15075 ifc* | ifort*) # Intel Fortran compiler
15076 tmp_addflag=' -nofor_main' ;;
15077 esac
15078 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15079
15080 if test $supports_anon_versioning = yes; then
15081 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15083 $echo "local: *; };" >> $output_objdir/$libname.ver~
15084 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15085 fi
John Criswell47fdd832003-07-14 16:52:07 +000015086 else
15087 ld_shlibs=no
15088 fi
15089 ;;
15090
15091 netbsd*)
15092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15094 wlarc=
15095 else
15096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098 fi
15099 ;;
15100
Reid Spencera773bd52006-08-04 18:18:08 +000015101 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015102 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15103 ld_shlibs=no
15104 cat <<EOF 1>&2
15105
15106*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15107*** create shared libraries on Solaris systems. Therefore, libtool
15108*** is disabling shared libraries support. We urge you to upgrade GNU
15109*** binutils to release 2.9.1 or newer. Another option is to modify
15110*** your PATH or compiler configuration so that the native linker is
15111*** used, and then restart.
15112
15113EOF
15114 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117 else
15118 ld_shlibs=no
15119 fi
15120 ;;
15121
Reid Spencera773bd52006-08-04 18:18:08 +000015122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15123 case `$LD -v 2>&1` in
15124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15125 ld_shlibs=no
15126 cat <<_LT_EOF 1>&2
15127
15128*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15129*** reliably create shared libraries on SCO systems. Therefore, libtool
15130*** is disabling shared libraries support. We urge you to upgrade GNU
15131*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15132*** your PATH or compiler configuration so that the native linker is
15133*** used, and then restart.
15134
15135_LT_EOF
15136 ;;
15137 *)
15138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15142 else
15143 ld_shlibs=no
15144 fi
15145 ;;
15146 esac
15147 ;;
15148
John Criswell47fdd832003-07-14 16:52:07 +000015149 sunos4*)
15150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15151 wlarc=
15152 hardcode_direct=yes
15153 hardcode_shlibpath_var=no
15154 ;;
15155
15156 *)
15157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15160 else
15161 ld_shlibs=no
15162 fi
15163 ;;
15164 esac
15165
Reid Spencera773bd52006-08-04 18:18:08 +000015166 if test "$ld_shlibs" = no; then
15167 runpath_var=
15168 hardcode_libdir_flag_spec=
15169 export_dynamic_flag_spec=
15170 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015171 fi
15172 else
15173 # PORTME fill in a description of your system's linker (not GNU ld)
15174 case $host_os in
15175 aix3*)
15176 allow_undefined_flag=unsupported
15177 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015178 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 +000015179 # Note: this linker hardcodes the directories in LIBPATH if there
15180 # are no directories specified by -L.
15181 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015182 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015183 # Neither direct hardcoding nor static linking is supported with a
15184 # broken collect2.
15185 hardcode_direct=unsupported
15186 fi
15187 ;;
15188
15189 aix4* | aix5*)
15190 if test "$host_cpu" = ia64; then
15191 # On IA64, the linker does run time linking by default, so we don't
15192 # have to do anything special.
15193 aix_use_runtimelinking=no
15194 exp_sym_flag='-Bexport'
15195 no_entry_flag=""
15196 else
15197 # If we're using GNU nm, then we don't want the "-C" option.
15198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15200 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'
15201 else
15202 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'
15203 fi
15204 aix_use_runtimelinking=no
15205
15206 # Test if we are trying to use run time linking or normal
15207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15208 # need to do runtime linking.
15209 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15210 for ld_flag in $LDFLAGS; do
15211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15212 aix_use_runtimelinking=yes
15213 break
15214 fi
15215 done
Reid Spencera773bd52006-08-04 18:18:08 +000015216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015217 esac
15218
15219 exp_sym_flag='-bexport'
15220 no_entry_flag='-bnoentry'
15221 fi
15222
15223 # When large executables or shared objects are built, AIX ld can
15224 # have problems creating the table of contents. If linking a library
15225 # or program results in "error TOC overflow" add -mminimal-toc to
15226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15228
15229 archive_cmds=''
15230 hardcode_direct=yes
15231 hardcode_libdir_separator=':'
15232 link_all_deplibs=yes
15233
15234 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015235 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015236 # We only want to do this on AIX 4.2 and lower, the check
15237 # below for broken collect2 doesn't work under 4.3+
15238 collect2name=`${CC} -print-prog-name=collect2`
15239 if test -f "$collect2name" && \
15240 strings "$collect2name" | grep resolve_lib_name >/dev/null
15241 then
15242 # We have reworked collect2
15243 hardcode_direct=yes
15244 else
15245 # We have old collect2
15246 hardcode_direct=unsupported
15247 # It fails to find uninstalled libraries when the uninstalled
15248 # path is not listed in the libpath. Setting hardcode_minus_L
15249 # to unsupported forces relinking
15250 hardcode_minus_L=yes
15251 hardcode_libdir_flag_spec='-L$libdir'
15252 hardcode_libdir_separator=
15253 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015255 esac
15256 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015257 if test "$aix_use_runtimelinking" = yes; then
15258 shared_flag="$shared_flag "'${wl}-G'
15259 fi
John Criswell47fdd832003-07-14 16:52:07 +000015260 else
15261 # not using gcc
15262 if test "$host_cpu" = ia64; then
15263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15264 # chokes on -Wl,-G. The following line is correct:
15265 shared_flag='-G'
15266 else
Reid Spencera773bd52006-08-04 18:18:08 +000015267 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015268 shared_flag='${wl}-G'
15269 else
15270 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015271 fi
John Criswell47fdd832003-07-14 16:52:07 +000015272 fi
15273 fi
15274
15275 # It seems that -bexpall does not export symbols beginning with
15276 # underscore (_), so it is better to generate a list of symbols to export.
15277 always_export_symbols=yes
15278 if test "$aix_use_runtimelinking" = yes; then
15279 # Warning - without using the other runtime loading flags (-brtl),
15280 # -berok will link without error, but may produce a broken library.
15281 allow_undefined_flag='-berok'
15282 # Determine the default libpath from the value encoded in an empty executable.
15283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015289
John Criswell7a73b802003-06-30 21:59:07 +000015290int
15291main ()
15292{
John Criswell47fdd832003-07-14 16:52:07 +000015293
John Criswell7a73b802003-06-30 21:59:07 +000015294 ;
15295 return 0;
15296}
15297_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015298rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015299if { (ac_try="$ac_link"
15300case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015306 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313 { (case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316esac
15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_try") 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest$ac_exeext'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015332
John Criswell47fdd832003-07-14 16:52:07 +000015333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15334}'`
15335# Check for a 64-bit object if we didn't find anything.
15336if 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; }
15337}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015338else
15339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015340sed 's/^/| /' conftest.$ac_ext >&5
15341
Reid Spencera773bd52006-08-04 18:18:08 +000015342
John Criswell7a73b802003-06-30 21:59:07 +000015343fi
Reid Spencera773bd52006-08-04 18:18:08 +000015344
Bill Wendlingebcceee2009-04-18 11:20:33 +000015345rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015346 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015348
John Criswell47fdd832003-07-14 16:52:07 +000015349 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015350 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 +000015351 else
15352 if test "$host_cpu" = ia64; then
15353 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15354 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015355 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 +000015356 else
15357 # Determine the default libpath from the value encoded in an empty executable.
15358 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015364
John Criswell47fdd832003-07-14 16:52:07 +000015365int
15366main ()
15367{
John Criswell7a73b802003-06-30 21:59:07 +000015368
John Criswell47fdd832003-07-14 16:52:07 +000015369 ;
15370 return 0;
15371}
15372_ACEOF
15373rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015374if { (ac_try="$ac_link"
15375case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391esac
15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest$ac_exeext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015407
John Criswell47fdd832003-07-14 16:52:07 +000015408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15409}'`
15410# Check for a 64-bit object if we didn't find anything.
15411if 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; }
15412}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015413else
John Criswell47fdd832003-07-14 16:52:07 +000015414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015415sed 's/^/| /' conftest.$ac_ext >&5
15416
Reid Spencera773bd52006-08-04 18:18:08 +000015417
John Criswell47fdd832003-07-14 16:52:07 +000015418fi
Reid Spencera773bd52006-08-04 18:18:08 +000015419
Bill Wendlingebcceee2009-04-18 11:20:33 +000015420rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015421 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015423
John Criswell47fdd832003-07-14 16:52:07 +000015424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15425 # Warning - without using the other run time loading flags,
15426 # -berok will link without error, but may produce a broken library.
15427 no_undefined_flag=' ${wl}-bernotok'
15428 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015429 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015430 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015431 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015432 # This is similar to how AIX traditionally builds its shared libraries.
15433 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 +000015434 fi
15435 fi
John Criswell7a73b802003-06-30 21:59:07 +000015436 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015437
15438 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015439 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 +000015440 hardcode_libdir_flag_spec='-L$libdir'
15441 hardcode_minus_L=yes
15442 # see comment about different semantics on the GNU ld section
15443 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015444 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015445
Reid Spencer2706f8c2004-09-19 23:53:36 +000015446 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015447 export_dynamic_flag_spec=-rdynamic
15448 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015449
John Criswell47fdd832003-07-14 16:52:07 +000015450 cygwin* | mingw* | pw32*)
15451 # When not using gcc, we currently assume that we are using
15452 # Microsoft Visual C++.
15453 # hardcode_libdir_flag_spec is actually meaningless, as there is
15454 # no search path for DLLs.
15455 hardcode_libdir_flag_spec=' '
15456 allow_undefined_flag=unsupported
15457 # Tell ltmain to make .lib files, not .a files.
15458 libext=lib
15459 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015460 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015461 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015463 # The linker will automatically build a .lib file if we build a DLL.
15464 old_archive_From_new_cmds='true'
15465 # FIXME: Should let the user specify the lib program.
15466 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15467 fix_srcfile_path='`cygpath -w "$srcfile"`'
15468 enable_shared_with_static_runtimes=yes
15469 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015470
John Criswell47fdd832003-07-14 16:52:07 +000015471 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015472 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015473 rhapsody* | darwin1.[012])
15474 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15475 ;;
15476 *) # Darwin 1.3 on
15477 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15478 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15479 else
15480 case ${MACOSX_DEPLOYMENT_TARGET} in
15481 10.[012])
15482 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15483 ;;
15484 10.*)
15485 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15486 ;;
15487 esac
15488 fi
15489 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015490 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015491 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015492 hardcode_direct=no
15493 hardcode_automatic=yes
15494 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015496 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015497 if test "$GCC" = yes ; then
15498 output_verbose_link_cmd='echo'
15499 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15500 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015501 # 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 +000015502 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}'
15503 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 +000015504 else
Reid Spencera773bd52006-08-04 18:18:08 +000015505 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015506 xlc*)
15507 output_verbose_link_cmd='echo'
15508 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15509 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015510 # 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 +000015511 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}'
15512 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 +000015513 ;;
15514 *)
15515 ld_shlibs=no
15516 ;;
15517 esac
John Criswell7a73b802003-06-30 21:59:07 +000015518 fi
John Criswell47fdd832003-07-14 16:52:07 +000015519 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015520
John Criswell47fdd832003-07-14 16:52:07 +000015521 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_shlibpath_var=no
15525 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015526
John Criswell47fdd832003-07-14 16:52:07 +000015527 freebsd1*)
15528 ld_shlibs=no
15529 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015530
John Criswell47fdd832003-07-14 16:52:07 +000015531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15532 # support. Future versions do this automatically, but an explicit c++rt0.o
15533 # does not break anything, and helps significantly (at the cost of a little
15534 # extra space).
15535 freebsd2.2*)
15536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15537 hardcode_libdir_flag_spec='-R$libdir'
15538 hardcode_direct=yes
15539 hardcode_shlibpath_var=no
15540 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015541
John Criswell47fdd832003-07-14 16:52:07 +000015542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15543 freebsd2*)
15544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct=yes
15546 hardcode_minus_L=yes
15547 hardcode_shlibpath_var=no
15548 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015549
John Criswell47fdd832003-07-14 16:52:07 +000015550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015551 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015552 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15553 hardcode_libdir_flag_spec='-R$libdir'
15554 hardcode_direct=yes
15555 hardcode_shlibpath_var=no
15556 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015557
John Criswell47fdd832003-07-14 16:52:07 +000015558 hpux9*)
15559 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015560 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 +000015561 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015562 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 +000015563 fi
15564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_separator=:
15566 hardcode_direct=yes
15567
15568 # hardcode_minus_L: Not really in the search PATH,
15569 # but as the default location of the library.
15570 hardcode_minus_L=yes
15571 export_dynamic_flag_spec='${wl}-E'
15572 ;;
15573
Reid Spencera773bd52006-08-04 18:18:08 +000015574 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15577 else
15578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15579 fi
15580 if test "$with_gnu_ld" = no; then
15581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator=:
15583
15584 hardcode_direct=yes
15585 export_dynamic_flag_spec='${wl}-E'
15586
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L=yes
15590 fi
15591 ;;
15592
15593 hpux11*)
15594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15595 case $host_cpu in
15596 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015599 ia64*)
15600 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15601 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015602 *)
15603 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604 ;;
15605 esac
15606 else
Reid Spencera773bd52006-08-04 18:18:08 +000015607 case $host_cpu in
15608 hppa*64*)
15609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 ;;
15611 ia64*)
15612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015613 ;;
15614 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015615 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 +000015616 ;;
15617 esac
15618 fi
15619 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015622
Reid Spencera773bd52006-08-04 18:18:08 +000015623 case $host_cpu in
15624 hppa*64*|ia64*)
15625 hardcode_libdir_flag_spec_ld='+b $libdir'
15626 hardcode_direct=no
15627 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015628 ;;
15629 *)
John Criswell47fdd832003-07-14 16:52:07 +000015630 hardcode_direct=yes
15631 export_dynamic_flag_spec='${wl}-E'
15632
15633 # hardcode_minus_L: Not really in the search PATH,
15634 # but as the default location of the library.
15635 hardcode_minus_L=yes
15636 ;;
15637 esac
15638 fi
15639 ;;
15640
15641 irix5* | irix6* | nonstopux*)
15642 if test "$GCC" = yes; then
15643 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'
15644 else
15645 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'
15646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15647 fi
15648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15649 hardcode_libdir_separator=:
15650 link_all_deplibs=yes
15651 ;;
15652
15653 netbsd*)
15654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15656 else
15657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15658 fi
15659 hardcode_libdir_flag_spec='-R$libdir'
15660 hardcode_direct=yes
15661 hardcode_shlibpath_var=no
15662 ;;
15663
15664 newsos6)
15665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_direct=yes
15667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668 hardcode_libdir_separator=:
15669 hardcode_shlibpath_var=no
15670 ;;
15671
15672 openbsd*)
15673 hardcode_direct=yes
15674 hardcode_shlibpath_var=no
15675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015677 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 +000015678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679 export_dynamic_flag_spec='${wl}-E'
15680 else
15681 case $host_os in
15682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_libdir_flag_spec='-R$libdir'
15685 ;;
15686 *)
15687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15689 ;;
15690 esac
15691 fi
15692 ;;
15693
15694 os2*)
15695 hardcode_libdir_flag_spec='-L$libdir'
15696 hardcode_minus_L=yes
15697 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015698 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 +000015699 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15700 ;;
15701
15702 osf3*)
15703 if test "$GCC" = yes; then
15704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15705 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'
15706 else
15707 allow_undefined_flag=' -expect_unresolved \*'
15708 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'
15709 fi
15710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711 hardcode_libdir_separator=:
15712 ;;
15713
15714 osf4* | osf5*) # as osf3* with the addition of -msym flag
15715 if test "$GCC" = yes; then
15716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15717 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'
15718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15719 else
15720 allow_undefined_flag=' -expect_unresolved \*'
15721 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 +000015722 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 +000015723 $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 +000015724
John Criswell47fdd832003-07-14 16:52:07 +000015725 # Both c and cxx compiler support -rpath directly
15726 hardcode_libdir_flag_spec='-rpath $libdir'
15727 fi
15728 hardcode_libdir_separator=:
15729 ;;
15730
John Criswell47fdd832003-07-14 16:52:07 +000015731 solaris*)
15732 no_undefined_flag=' -z text'
15733 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015734 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015735 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015736 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15737 $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 +000015738 else
Reid Spencera773bd52006-08-04 18:18:08 +000015739 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015741 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15742 $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 +000015743 fi
15744 hardcode_libdir_flag_spec='-R$libdir'
15745 hardcode_shlibpath_var=no
15746 case $host_os in
15747 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015748 *)
15749 # The compiler driver will combine linker options so we
15750 # cannot just pass the convience library names through
15751 # without $wl, iff we do not link with $LD.
15752 # Luckily, gcc supports the same syntax we need for Sun Studio.
15753 # Supported since Solaris 2.6 (maybe 2.5.1?)
15754 case $wlarc in
15755 '')
15756 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15757 *)
15758 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' ;;
15759 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015760 esac
15761 link_all_deplibs=yes
15762 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015763
John Criswell47fdd832003-07-14 16:52:07 +000015764 sunos4*)
15765 if test "x$host_vendor" = xsequent; then
15766 # Use $CC to link under sequent, because it throws in some extra .o
15767 # files that make .init and .fini sections work.
15768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15769 else
15770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15771 fi
15772 hardcode_libdir_flag_spec='-L$libdir'
15773 hardcode_direct=yes
15774 hardcode_minus_L=yes
15775 hardcode_shlibpath_var=no
15776 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015777
John Criswell47fdd832003-07-14 16:52:07 +000015778 sysv4)
15779 case $host_vendor in
15780 sni)
15781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_direct=yes # is this really true???
15783 ;;
15784 siemens)
15785 ## LD is ld it makes a PLAMLIB
15786 ## CC just makes a GrossModule.
15787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15788 reload_cmds='$CC -r -o $output$reload_objs'
15789 hardcode_direct=no
15790 ;;
15791 motorola)
15792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15794 ;;
15795 esac
15796 runpath_var='LD_RUN_PATH'
15797 hardcode_shlibpath_var=no
15798 ;;
15799
15800 sysv4.3*)
15801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_shlibpath_var=no
15803 export_dynamic_flag_spec='-Bexport'
15804 ;;
15805
15806 sysv4*MP*)
15807 if test -d /usr/nec; then
15808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_shlibpath_var=no
15810 runpath_var=LD_RUN_PATH
15811 hardcode_runpath_var=yes
15812 ld_shlibs=yes
15813 fi
15814 ;;
15815
Reid Spencera773bd52006-08-04 18:18:08 +000015816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15817 no_undefined_flag='${wl}-z,text'
15818 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015819 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015820 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015821
John Criswell47fdd832003-07-14 16:52:07 +000015822 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15824 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 +000015825 else
Reid Spencera773bd52006-08-04 18:18:08 +000015826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 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 +000015828 fi
John Criswell47fdd832003-07-14 16:52:07 +000015829 ;;
15830
Reid Spencera773bd52006-08-04 18:18:08 +000015831 sysv5* | sco3.2v5* | sco5v6*)
15832 # Note: We can NOT use -z defs as we might desire, because we do not
15833 # link with -lc, and that would cause any symbols used from libc to
15834 # always be unresolved, which means just about no library would
15835 # ever link correctly. If we're not using GNU ld we use -z text
15836 # though, which does catch some bad symbols but isn't as heavy-handed
15837 # as -z defs.
15838 no_undefined_flag='${wl}-z,text'
15839 allow_undefined_flag='${wl}-z,nodefs'
15840 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015841 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015842 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15843 hardcode_libdir_separator=':'
15844 link_all_deplibs=yes
15845 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015846 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015847
15848 if test "$GCC" = yes; then
15849 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15851 else
15852 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15854 fi
John Criswell47fdd832003-07-14 16:52:07 +000015855 ;;
15856
15857 uts4*)
15858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_libdir_flag_spec='-L$libdir'
15860 hardcode_shlibpath_var=no
15861 ;;
15862
15863 *)
15864 ld_shlibs=no
15865 ;;
15866 esac
15867 fi
15868
Reid Spencera773bd52006-08-04 18:18:08 +000015869{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15870echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015871test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015872
John Criswell47fdd832003-07-14 16:52:07 +000015873#
15874# Do we need to explicitly link libc?
15875#
15876case "x$archive_cmds_need_lc" in
15877x|xyes)
15878 # Assume -lc should be added
15879 archive_cmds_need_lc=yes
15880
15881 if test "$enable_shared" = yes && test "$GCC" = yes; then
15882 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015883 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015884 # FIXME: we may have to deal with multi-command sequences.
15885 ;;
15886 '$CC '*)
15887 # Test whether the compiler implicitly links with -lc since on some
15888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15889 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015890 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15891echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015892 $rm conftest*
15893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15894
15895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } 2>conftest.err; then
15900 soname=conftest
15901 lib=conftest
15902 libobjs=conftest.$ac_objext
15903 deplibs=
15904 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015905 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015906 compiler_flags=-v
15907 linker_flags=-v
15908 verstring=
15909 output_objdir=.
15910 libname=conftest
15911 lt_save_allow_undefined_flag=$allow_undefined_flag
15912 allow_undefined_flag=
15913 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15914 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }
15918 then
15919 archive_cmds_need_lc=no
15920 else
15921 archive_cmds_need_lc=yes
15922 fi
15923 allow_undefined_flag=$lt_save_allow_undefined_flag
15924 else
15925 cat conftest.err 1>&5
15926 fi
15927 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015928 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15929echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015930 ;;
15931 esac
15932 fi
15933 ;;
15934esac
15935
Reid Spencera773bd52006-08-04 18:18:08 +000015936{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15937echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015938library_names_spec=
15939libname_spec='lib$name'
15940soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015941shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015942postinstall_cmds=
15943postuninstall_cmds=
15944finish_cmds=
15945finish_eval=
15946shlibpath_var=
15947shlibpath_overrides_runpath=unknown
15948version_type=none
15949dynamic_linker="$host_os ld.so"
15950sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015951if test "$GCC" = yes; then
15952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15953 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15954 # if the path contains ";" then we assume it to be the separator
15955 # otherwise default to the standard path separator (i.e. ":") - it is
15956 # assumed that no part of a normal pathname contains ";" but that should
15957 # okay in the real world where ";" in dirpaths is itself problematic.
15958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15959 else
15960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15961 fi
15962else
15963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15964fi
15965need_lib_prefix=unknown
15966hardcode_into_libs=no
15967
15968# when you set need_version to no, make sure it does not cause -set_version
15969# flags to be left without arguments
15970need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015971
15972case $host_os in
15973aix3*)
15974 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015976 shlibpath_var=LIBPATH
15977
John Criswell47fdd832003-07-14 16:52:07 +000015978 # AIX 3 has no versioning support, so we append a major version to the name.
15979 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015980 ;;
15981
15982aix4* | aix5*)
15983 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015984 need_lib_prefix=no
15985 need_version=no
15986 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015987 if test "$host_cpu" = ia64; then
15988 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015990 shlibpath_var=LD_LIBRARY_PATH
15991 else
15992 # With GCC up to 2.95.x, collect2 would create an import file
15993 # for dependence libraries. The import file would start with
15994 # the line `#! .'. This would cause the generated library to
15995 # depend on `.', always an invalid library. This was fixed in
15996 # development snapshots of GCC prior to 3.0.
15997 case $host_os in
15998 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16000 echo ' yes '
16001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16002 :
16003 else
16004 can_build_shared=no
16005 fi
16006 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016007 esac
John Criswell47fdd832003-07-14 16:52:07 +000016008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16009 # soname into executable. Probably we can add versioning support to
16010 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016011 if test "$aix_use_runtimelinking" = yes; then
16012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16013 # instead of lib<name>.a to let people know that these are not
16014 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016016 else
16017 # We preserve .a as extension for shared libraries through AIX4.2
16018 # and later when we are not doing run time linking.
16019 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016020 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016021 fi
16022 shlibpath_var=LIBPATH
16023 fi
16024 ;;
16025
16026amigaos*)
16027 library_names_spec='$libname.ixlibrary $libname.a'
16028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016029 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 +000016030 ;;
16031
16032beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016033 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016034 dynamic_linker="$host_os ld.so"
16035 shlibpath_var=LIBRARY_PATH
16036 ;;
16037
Reid Spencer2706f8c2004-09-19 23:53:36 +000016038bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016039 version_type=linux
16040 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016047 # the default ld.so.conf also contains /usr/contrib/lib and
16048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16049 # libtool to hard-code these into programs
16050 ;;
16051
16052cygwin* | mingw* | pw32*)
16053 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016054 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016055 need_version=no
16056 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016057
John Criswell7a73b802003-06-30 21:59:07 +000016058 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016059 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016060 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016062 postinstall_cmds='base_file=`basename \${file}`~
16063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16064 dldir=$destdir/`dirname \$dlpath`~
16065 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016066 $install_prog $dir/$dlname \$dldir/$dlname~
16067 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016070 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016071 shlibpath_overrides_runpath=yes
16072
16073 case $host_os in
16074 cygwin*)
16075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16076 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 +000016077 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016078 ;;
16079 mingw*)
16080 # MinGW DLLs use traditional 'lib' prefix
16081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16083 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16084 # It is most probably a Windows format PATH printed by
16085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16086 # path with ; separators, and with drive letters. We can handle the
16087 # drive letters (cygwin fileutils understands them), so leave them,
16088 # especially as we might pass files found there to a mingw objdump,
16089 # which wouldn't understand a cygwinified path. Ahh.
16090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16091 else
16092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16093 fi
16094 ;;
16095 pw32*)
16096 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016097 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 +000016098 ;;
16099 esac
John Criswell7a73b802003-06-30 21:59:07 +000016100 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016101
John Criswell7a73b802003-06-30 21:59:07 +000016102 *)
John Criswell47fdd832003-07-14 16:52:07 +000016103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016104 ;;
16105 esac
16106 dynamic_linker='Win32 ld.exe'
16107 # FIXME: first we should search . and the directory the executable is in
16108 shlibpath_var=PATH
16109 ;;
16110
16111darwin* | rhapsody*)
16112 dynamic_linker="$host_os dyld"
16113 version_type=darwin
16114 need_lib_prefix=no
16115 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016116 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016117 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016118 shlibpath_overrides_runpath=yes
16119 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016120 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016121 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016122 if test "$GCC" = yes; then
16123 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"`
16124 else
16125 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016126 fi
16127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16128 ;;
16129
16130dgux*)
16131 version_type=linux
16132 need_lib_prefix=no
16133 need_version=no
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016137 ;;
16138
16139freebsd1*)
16140 dynamic_linker=no
16141 ;;
16142
Reid Spencer2706f8c2004-09-19 23:53:36 +000016143kfreebsd*-gnu)
16144 version_type=linux
16145 need_lib_prefix=no
16146 need_version=no
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=no
16151 hardcode_into_libs=yes
16152 dynamic_linker='GNU ld.so'
16153 ;;
16154
Reid Spencera773bd52006-08-04 18:18:08 +000016155freebsd* | dragonfly*)
16156 # DragonFly does not have aout. When/if they implement a new
16157 # versioning mechanism, adjust this.
16158 if test -x /usr/bin/objformat; then
16159 objformat=`/usr/bin/objformat`
16160 else
16161 case $host_os in
16162 freebsd[123]*) objformat=aout ;;
16163 *) objformat=elf ;;
16164 esac
16165 fi
John Criswell7a73b802003-06-30 21:59:07 +000016166 version_type=freebsd-$objformat
16167 case $version_type in
16168 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016170 need_version=no
16171 need_lib_prefix=no
16172 ;;
16173 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016175 need_version=yes
16176 ;;
16177 esac
16178 shlibpath_var=LD_LIBRARY_PATH
16179 case $host_os in
16180 freebsd2*)
16181 shlibpath_overrides_runpath=yes
16182 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016183 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016192 freebsd*) # from 4.6 on
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016196 esac
16197 ;;
16198
16199gnu*)
16200 version_type=linux
16201 need_lib_prefix=no
16202 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016205 shlibpath_var=LD_LIBRARY_PATH
16206 hardcode_into_libs=yes
16207 ;;
16208
16209hpux9* | hpux10* | hpux11*)
16210 # Give a soname corresponding to the major version so that dld.sl refuses to
16211 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016212 version_type=sunos
16213 need_lib_prefix=no
16214 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016215 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016216 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016217 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016218 hardcode_into_libs=yes
16219 dynamic_linker="$host_os dld.so"
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 if test "X$HPUX_IA64_MODE" = X32; then
16225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16226 else
16227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16228 fi
16229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16230 ;;
16231 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016232 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016233 hardcode_into_libs=yes
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241 ;;
16242 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016243 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016244 dynamic_linker="$host_os dld.sl"
16245 shlibpath_var=SHLIB_PATH
16246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 ;;
16250 esac
John Criswell7a73b802003-06-30 21:59:07 +000016251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16252 postinstall_cmds='chmod 555 $lib'
16253 ;;
16254
Reid Spencera773bd52006-08-04 18:18:08 +000016255interix3*)
16256 version_type=linux
16257 need_lib_prefix=no
16258 need_version=no
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16262 shlibpath_var=LD_LIBRARY_PATH
16263 shlibpath_overrides_runpath=no
16264 hardcode_into_libs=yes
16265 ;;
16266
John Criswell47fdd832003-07-14 16:52:07 +000016267irix5* | irix6* | nonstopux*)
16268 case $host_os in
16269 nonstopux*) version_type=nonstopux ;;
16270 *)
16271 if test "$lt_cv_prog_gnu_ld" = yes; then
16272 version_type=linux
16273 else
16274 version_type=irix
16275 fi ;;
16276 esac
John Criswell7a73b802003-06-30 21:59:07 +000016277 need_lib_prefix=no
16278 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016279 soname_spec='${libname}${release}${shared_ext}$major'
16280 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 +000016281 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016282 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016283 libsuff= shlibsuff=
16284 ;;
16285 *)
16286 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16288 libsuff= shlibsuff= libmagic=32-bit;;
16289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16290 libsuff=32 shlibsuff=N32 libmagic=N32;;
16291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016293 *) libsuff= shlibsuff= libmagic=never-match;;
16294 esac
16295 ;;
16296 esac
16297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16298 shlibpath_overrides_runpath=no
16299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016301 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016302 ;;
16303
16304# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016305linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016306 dynamic_linker=no
16307 ;;
16308
16309# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016310linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016311 version_type=linux
16312 need_lib_prefix=no
16313 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=no
16319 # This implies no fast_install, which is unacceptable.
16320 # Some rework will be needed to allow for fast_install
16321 # before this can be enabled.
16322 hardcode_into_libs=yes
16323
Reid Spencer2706f8c2004-09-19 23:53:36 +000016324 # Append ld.so.conf contents to the search path
16325 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016326 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 +000016327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16328 fi
16329
John Criswell7a73b802003-06-30 21:59:07 +000016330 # We used to test for /lib/ld.so.1 and disable shared libraries on
16331 # powerpc, because MkLinux only supported shared libraries with the
16332 # GNU dynamic linker. Since this was broken with cross compilers,
16333 # most powerpc-linux boxes support dynamic linking these days and
16334 # people can always --disable-shared, the test was removed, and we
16335 # assume the GNU/Linux dynamic linker is in use.
16336 dynamic_linker='GNU/Linux ld.so'
16337 ;;
16338
Reid Spencer2706f8c2004-09-19 23:53:36 +000016339knetbsd*-gnu)
16340 version_type=linux
16341 need_lib_prefix=no
16342 need_version=no
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
16347 hardcode_into_libs=yes
16348 dynamic_linker='GNU ld.so'
16349 ;;
16350
John Criswell7a73b802003-06-30 21:59:07 +000016351netbsd*)
16352 version_type=sunos
16353 need_lib_prefix=no
16354 need_version=no
16355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358 dynamic_linker='NetBSD (a.out) ld.so'
16359 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016361 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016362 dynamic_linker='NetBSD ld.elf_so'
16363 fi
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=yes
16366 hardcode_into_libs=yes
16367 ;;
16368
16369newsos6)
16370 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 ;;
16375
Reid Spencer2706f8c2004-09-19 23:53:36 +000016376nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=yes
16384 ;;
16385
16386openbsd*)
16387 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016388 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016389 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16391 case $host_os in
16392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16393 *) need_version=no ;;
16394 esac
John Criswell47fdd832003-07-14 16:52:07 +000016395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016398 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 +000016399 case $host_os in
16400 openbsd2.[89] | openbsd2.[89].*)
16401 shlibpath_overrides_runpath=no
16402 ;;
16403 *)
16404 shlibpath_overrides_runpath=yes
16405 ;;
16406 esac
John Criswell7a73b802003-06-30 21:59:07 +000016407 else
16408 shlibpath_overrides_runpath=yes
16409 fi
John Criswell7a73b802003-06-30 21:59:07 +000016410 ;;
16411
16412os2*)
16413 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016414 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016415 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016416 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016417 dynamic_linker='OS/2 ld.exe'
16418 shlibpath_var=LIBPATH
16419 ;;
16420
16421osf3* | osf4* | osf5*)
16422 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016423 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016424 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016425 soname_spec='${libname}${release}${shared_ext}$major'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016427 shlibpath_var=LD_LIBRARY_PATH
16428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16430 ;;
16431
John Criswell7a73b802003-06-30 21:59:07 +000016432solaris*)
16433 version_type=linux
16434 need_lib_prefix=no
16435 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16440 hardcode_into_libs=yes
16441 # ldd complains unless libraries are executable
16442 postinstall_cmds='chmod +x $lib'
16443 ;;
16444
16445sunos4*)
16446 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16451 if test "$with_gnu_ld" = yes; then
16452 need_lib_prefix=no
16453 fi
16454 need_version=yes
16455 ;;
16456
Reid Spencera773bd52006-08-04 18:18:08 +000016457sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016458 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016461 shlibpath_var=LD_LIBRARY_PATH
16462 case $host_vendor in
16463 sni)
16464 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016465 need_lib_prefix=no
16466 export_dynamic_flag_spec='${wl}-Blargedynsym'
16467 runpath_var=LD_RUN_PATH
16468 ;;
16469 siemens)
16470 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016471 ;;
16472 motorola)
16473 need_lib_prefix=no
16474 need_version=no
16475 shlibpath_overrides_runpath=no
16476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16477 ;;
16478 esac
16479 ;;
16480
John Criswell7a73b802003-06-30 21:59:07 +000016481sysv4*MP*)
16482 if test -d /usr/nec ;then
16483 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16485 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016486 shlibpath_var=LD_LIBRARY_PATH
16487 fi
16488 ;;
16489
Reid Spencera773bd52006-08-04 18:18:08 +000016490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16491 version_type=freebsd-elf
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 hardcode_into_libs=yes
16498 if test "$with_gnu_ld" = yes; then
16499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16500 shlibpath_overrides_runpath=no
16501 else
16502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16503 shlibpath_overrides_runpath=yes
16504 case $host_os in
16505 sco3.2v5*)
16506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16507 ;;
16508 esac
16509 fi
16510 sys_lib_dlsearch_path_spec='/usr/lib'
16511 ;;
16512
John Criswell47fdd832003-07-14 16:52:07 +000016513uts4*)
16514 version_type=linux
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 ;;
16519
John Criswell7a73b802003-06-30 21:59:07 +000016520*)
16521 dynamic_linker=no
16522 ;;
16523esac
Reid Spencera773bd52006-08-04 18:18:08 +000016524{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16525echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016526test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016527
Reid Spencera773bd52006-08-04 18:18:08 +000016528variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529if test "$GCC" = yes; then
16530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16531fi
16532
16533{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16534echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016535hardcode_action=
16536if test -n "$hardcode_libdir_flag_spec" || \
16537 test -n "$runpath_var" || \
16538 test "X$hardcode_automatic" = "Xyes" ; then
16539
16540 # We can hardcode non-existant directories.
16541 if test "$hardcode_direct" != no &&
16542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16543 # have to relink, otherwise we might link with an installed library
16544 # when we should be linking with a yet-to-be-installed one
16545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16546 test "$hardcode_minus_L" != no; then
16547 # Linking always hardcodes the temporary library directory.
16548 hardcode_action=relink
16549 else
16550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16551 hardcode_action=immediate
16552 fi
16553else
16554 # We cannot hardcode anything, or else we can only hardcode existing
16555 # directories.
16556 hardcode_action=unsupported
16557fi
Reid Spencera773bd52006-08-04 18:18:08 +000016558{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16559echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016560
16561if test "$hardcode_action" = relink; then
16562 # Fast installation is not supported
16563 enable_fast_install=no
16564elif test "$shlibpath_overrides_runpath" = yes ||
16565 test "$enable_shared" = no; then
16566 # Fast installation is not necessary
16567 enable_fast_install=needless
16568fi
16569
16570striplib=
16571old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016572{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16573echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016574if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016577 { echo "$as_me:$LINENO: result: yes" >&5
16578echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016579else
16580# FIXME - insert some real tests, host_os isn't really good enough
16581 case $host_os in
16582 darwin*)
16583 if test -n "$STRIP" ; then
16584 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016585 { echo "$as_me:$LINENO: result: yes" >&5
16586echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016587 else
Reid Spencera773bd52006-08-04 18:18:08 +000016588 { echo "$as_me:$LINENO: result: no" >&5
16589echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016590fi
16591 ;;
16592 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016593 { echo "$as_me:$LINENO: result: no" >&5
16594echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016595 ;;
16596 esac
16597fi
16598
John Criswell7a73b802003-06-30 21:59:07 +000016599if test "x$enable_dlopen" != xyes; then
16600 enable_dlopen=unknown
16601 enable_dlopen_self=unknown
16602 enable_dlopen_self_static=unknown
16603else
16604 lt_cv_dlopen=no
16605 lt_cv_dlopen_libs=
16606
16607 case $host_os in
16608 beos*)
16609 lt_cv_dlopen="load_add_on"
16610 lt_cv_dlopen_libs=
16611 lt_cv_dlopen_self=yes
16612 ;;
16613
John Criswell47fdd832003-07-14 16:52:07 +000016614 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016615 lt_cv_dlopen="LoadLibrary"
16616 lt_cv_dlopen_libs=
16617 ;;
16618
John Criswell47fdd832003-07-14 16:52:07 +000016619 cygwin*)
16620 lt_cv_dlopen="dlopen"
16621 lt_cv_dlopen_libs=
16622 ;;
16623
16624 darwin*)
16625 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016626 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16627echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 ac_check_lib_save_LIBS=$LIBS
16632LIBS="-ldl $LIBS"
16633cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016634/* confdefs.h. */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016639
Reid Spencera773bd52006-08-04 18:18:08 +000016640/* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016643#ifdef __cplusplus
16644extern "C"
16645#endif
John Criswell47fdd832003-07-14 16:52:07 +000016646char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016647int
16648main ()
16649{
Reid Spencera773bd52006-08-04 18:18:08 +000016650return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016656if { (ac_try="$ac_link"
16657case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest$ac_exeext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016689 ac_cv_lib_dl_dlopen=yes
16690else
16691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016692sed 's/^/| /' conftest.$ac_ext >&5
16693
Reid Spencera773bd52006-08-04 18:18:08 +000016694 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016695fi
Reid Spencera773bd52006-08-04 18:18:08 +000016696
Bill Wendlingebcceee2009-04-18 11:20:33 +000016697rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016698 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016699LIBS=$ac_check_lib_save_LIBS
16700fi
Reid Spencera773bd52006-08-04 18:18:08 +000016701{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16702echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016703if test $ac_cv_lib_dl_dlopen = yes; then
16704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16705else
16706
16707 lt_cv_dlopen="dyld"
16708 lt_cv_dlopen_libs=
16709 lt_cv_dlopen_self=yes
16710
16711fi
16712
16713 ;;
16714
John Criswell7a73b802003-06-30 21:59:07 +000016715 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016716 { echo "$as_me:$LINENO: checking for shl_load" >&5
16717echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016718if test "${ac_cv_func_shl_load+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720else
16721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016727/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16729#define shl_load innocuous_shl_load
16730
John Criswell7a73b802003-06-30 21:59:07 +000016731/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016732 which can conflict with char shl_load (); below.
16733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016735
John Criswell0c38eaf2003-09-10 15:17:25 +000016736#ifdef __STDC__
16737# include <limits.h>
16738#else
16739# include <assert.h>
16740#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016741
16742#undef shl_load
16743
Reid Spencera773bd52006-08-04 18:18:08 +000016744/* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016747#ifdef __cplusplus
16748extern "C"
16749#endif
John Criswell7a73b802003-06-30 21:59:07 +000016750char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016751/* The GNU C library defines this for functions which it implements
16752 to always fail with ENOSYS. Some functions are actually named
16753 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016754#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016755choke me
John Criswell7a73b802003-06-30 21:59:07 +000016756#endif
16757
John Criswell0c38eaf2003-09-10 15:17:25 +000016758int
16759main ()
16760{
Reid Spencera773bd52006-08-04 18:18:08 +000016761return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016762 ;
16763 return 0;
16764}
16765_ACEOF
16766rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016767if { (ac_try="$ac_link"
16768case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794esac
16795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_try") 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016800 ac_cv_func_shl_load=yes
16801else
16802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016803sed 's/^/| /' conftest.$ac_ext >&5
16804
Reid Spencera773bd52006-08-04 18:18:08 +000016805 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016806fi
Reid Spencera773bd52006-08-04 18:18:08 +000016807
Bill Wendlingebcceee2009-04-18 11:20:33 +000016808rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016810fi
Reid Spencera773bd52006-08-04 18:18:08 +000016811{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16812echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016813if test $ac_cv_func_shl_load = yes; then
16814 lt_cv_dlopen="shl_load"
16815else
Reid Spencera773bd52006-08-04 18:18:08 +000016816 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16817echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016818if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 ac_check_lib_save_LIBS=$LIBS
16822LIBS="-ldld $LIBS"
16823cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016824/* confdefs.h. */
16825_ACEOF
16826cat confdefs.h >>conftest.$ac_ext
16827cat >>conftest.$ac_ext <<_ACEOF
16828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016829
Reid Spencera773bd52006-08-04 18:18:08 +000016830/* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016833#ifdef __cplusplus
16834extern "C"
16835#endif
John Criswell7a73b802003-06-30 21:59:07 +000016836char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016837int
16838main ()
16839{
Reid Spencera773bd52006-08-04 18:18:08 +000016840return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016841 ;
16842 return 0;
16843}
16844_ACEOF
16845rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016846if { (ac_try="$ac_link"
16847case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850esac
16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16873esac
16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_try") 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016879 ac_cv_lib_dld_shl_load=yes
16880else
16881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016882sed 's/^/| /' conftest.$ac_ext >&5
16883
Reid Spencera773bd52006-08-04 18:18:08 +000016884 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016885fi
Reid Spencera773bd52006-08-04 18:18:08 +000016886
Bill Wendlingebcceee2009-04-18 11:20:33 +000016887rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016888 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016889LIBS=$ac_check_lib_save_LIBS
16890fi
Reid Spencera773bd52006-08-04 18:18:08 +000016891{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16892echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016893if test $ac_cv_lib_dld_shl_load = yes; then
16894 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16895else
Reid Spencera773bd52006-08-04 18:18:08 +000016896 { echo "$as_me:$LINENO: checking for dlopen" >&5
16897echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016898if test "${ac_cv_func_dlopen+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900else
16901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016907/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16909#define dlopen innocuous_dlopen
16910
John Criswell7a73b802003-06-30 21:59:07 +000016911/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016912 which can conflict with char dlopen (); below.
16913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016915
John Criswell0c38eaf2003-09-10 15:17:25 +000016916#ifdef __STDC__
16917# include <limits.h>
16918#else
16919# include <assert.h>
16920#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921
16922#undef dlopen
16923
Reid Spencera773bd52006-08-04 18:18:08 +000016924/* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016927#ifdef __cplusplus
16928extern "C"
16929#endif
John Criswell7a73b802003-06-30 21:59:07 +000016930char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016931/* The GNU C library defines this for functions which it implements
16932 to always fail with ENOSYS. Some functions are actually named
16933 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016934#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016935choke me
John Criswell7a73b802003-06-30 21:59:07 +000016936#endif
16937
John Criswell0c38eaf2003-09-10 15:17:25 +000016938int
16939main ()
16940{
Reid Spencera773bd52006-08-04 18:18:08 +000016941return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016947if { (ac_try="$ac_link"
16948case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16951esac
16952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964esac
16965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016980 ac_cv_func_dlopen=yes
16981else
16982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016983sed 's/^/| /' conftest.$ac_ext >&5
16984
Reid Spencera773bd52006-08-04 18:18:08 +000016985 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016986fi
Reid Spencera773bd52006-08-04 18:18:08 +000016987
Bill Wendlingebcceee2009-04-18 11:20:33 +000016988rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016989 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016990fi
Reid Spencera773bd52006-08-04 18:18:08 +000016991{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16992echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016993if test $ac_cv_func_dlopen = yes; then
16994 lt_cv_dlopen="dlopen"
16995else
Reid Spencera773bd52006-08-04 18:18:08 +000016996 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16997echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016998if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001 ac_check_lib_save_LIBS=$LIBS
17002LIBS="-ldl $LIBS"
17003cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017009
Reid Spencera773bd52006-08-04 18:18:08 +000017010/* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017013#ifdef __cplusplus
17014extern "C"
17015#endif
John Criswell7a73b802003-06-30 21:59:07 +000017016char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017017int
17018main ()
17019{
Reid Spencera773bd52006-08-04 18:18:08 +000017020return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017026if { (ac_try="$ac_link"
17027case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053esac
17054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017059 ac_cv_lib_dl_dlopen=yes
17060else
17061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017062sed 's/^/| /' conftest.$ac_ext >&5
17063
Reid Spencera773bd52006-08-04 18:18:08 +000017064 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017065fi
Reid Spencera773bd52006-08-04 18:18:08 +000017066
Bill Wendlingebcceee2009-04-18 11:20:33 +000017067rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017068 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017069LIBS=$ac_check_lib_save_LIBS
17070fi
Reid Spencera773bd52006-08-04 18:18:08 +000017071{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17072echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017073if test $ac_cv_lib_dl_dlopen = yes; then
17074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17075else
Reid Spencera773bd52006-08-04 18:18:08 +000017076 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17077echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017078if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080else
17081 ac_check_lib_save_LIBS=$LIBS
17082LIBS="-lsvld $LIBS"
17083cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017089
Reid Spencera773bd52006-08-04 18:18:08 +000017090/* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017093#ifdef __cplusplus
17094extern "C"
17095#endif
John Criswell7a73b802003-06-30 21:59:07 +000017096char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017097int
17098main ()
17099{
Reid Spencera773bd52006-08-04 18:18:08 +000017100return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017106if { (ac_try="$ac_link"
17107case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17133esac
17134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017139 ac_cv_lib_svld_dlopen=yes
17140else
17141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017142sed 's/^/| /' conftest.$ac_ext >&5
17143
Reid Spencera773bd52006-08-04 18:18:08 +000017144 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017145fi
Reid Spencera773bd52006-08-04 18:18:08 +000017146
Bill Wendlingebcceee2009-04-18 11:20:33 +000017147rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017148 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017149LIBS=$ac_check_lib_save_LIBS
17150fi
Reid Spencera773bd52006-08-04 18:18:08 +000017151{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17152echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017153if test $ac_cv_lib_svld_dlopen = yes; then
17154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17155else
Reid Spencera773bd52006-08-04 18:18:08 +000017156 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17157echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017158if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161 ac_check_lib_save_LIBS=$LIBS
17162LIBS="-ldld $LIBS"
17163cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017169
Reid Spencera773bd52006-08-04 18:18:08 +000017170/* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017173#ifdef __cplusplus
17174extern "C"
17175#endif
John Criswell7a73b802003-06-30 21:59:07 +000017176char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017177int
17178main ()
17179{
Reid Spencera773bd52006-08-04 18:18:08 +000017180return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017186if { (ac_try="$ac_link"
17187case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17190esac
17191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest$ac_exeext'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017219 ac_cv_lib_dld_dld_link=yes
17220else
17221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017222sed 's/^/| /' conftest.$ac_ext >&5
17223
Reid Spencera773bd52006-08-04 18:18:08 +000017224 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017225fi
Reid Spencera773bd52006-08-04 18:18:08 +000017226
Bill Wendlingebcceee2009-04-18 11:20:33 +000017227rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017228 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017229LIBS=$ac_check_lib_save_LIBS
17230fi
Reid Spencera773bd52006-08-04 18:18:08 +000017231{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17232echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017233if test $ac_cv_lib_dld_dld_link = yes; then
17234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17235fi
17236
17237
17238fi
17239
17240
17241fi
17242
17243
17244fi
17245
17246
17247fi
17248
17249
17250fi
17251
17252 ;;
17253 esac
17254
17255 if test "x$lt_cv_dlopen" != xno; then
17256 enable_dlopen=yes
17257 else
17258 enable_dlopen=no
17259 fi
17260
17261 case $lt_cv_dlopen in
17262 dlopen)
17263 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017265
17266 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017268
17269 save_LIBS="$LIBS"
17270 LIBS="$lt_cv_dlopen_libs $LIBS"
17271
Reid Spencera773bd52006-08-04 18:18:08 +000017272 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17273echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017274if test "${lt_cv_dlopen_self+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276else
17277 if test "$cross_compiling" = yes; then :
17278 lt_cv_dlopen_self=cross
17279else
John Criswell47fdd832003-07-14 16:52:07 +000017280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017281 lt_status=$lt_dlunknown
17282 cat > conftest.$ac_ext <<EOF
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017283#line 17283 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017284#include "confdefs.h"
17285
17286#if HAVE_DLFCN_H
17287#include <dlfcn.h>
17288#endif
17289
17290#include <stdio.h>
17291
17292#ifdef RTLD_GLOBAL
17293# define LT_DLGLOBAL RTLD_GLOBAL
17294#else
17295# ifdef DL_GLOBAL
17296# define LT_DLGLOBAL DL_GLOBAL
17297# else
17298# define LT_DLGLOBAL 0
17299# endif
17300#endif
17301
17302/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17303 find out it does not work in some platform. */
17304#ifndef LT_DLLAZY_OR_NOW
17305# ifdef RTLD_LAZY
17306# define LT_DLLAZY_OR_NOW RTLD_LAZY
17307# else
17308# ifdef DL_LAZY
17309# define LT_DLLAZY_OR_NOW DL_LAZY
17310# else
17311# ifdef RTLD_NOW
17312# define LT_DLLAZY_OR_NOW RTLD_NOW
17313# else
17314# ifdef DL_NOW
17315# define LT_DLLAZY_OR_NOW DL_NOW
17316# else
17317# define LT_DLLAZY_OR_NOW 0
17318# endif
17319# endif
17320# endif
17321# endif
17322#endif
17323
17324#ifdef __cplusplus
17325extern "C" void exit (int);
17326#endif
17327
17328void fnord() { int i=42;}
17329int main ()
17330{
17331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17332 int status = $lt_dlunknown;
17333
17334 if (self)
17335 {
17336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17338 /* dlclose (self); */
17339 }
Reid Spencera773bd52006-08-04 18:18:08 +000017340 else
17341 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017342
17343 exit (status);
17344}
17345EOF
17346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17347 (eval $ac_link) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017351 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017352 lt_status=$?
17353 case x$lt_status in
17354 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17355 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017356 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017357 esac
17358 else :
17359 # compilation failed
17360 lt_cv_dlopen_self=no
17361 fi
17362fi
17363rm -fr conftest*
17364
17365
17366fi
Reid Spencera773bd52006-08-04 18:18:08 +000017367{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17368echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017369
17370 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17372 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17373echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017374if test "${lt_cv_dlopen_self_static+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 if test "$cross_compiling" = yes; then :
17378 lt_cv_dlopen_self_static=cross
17379else
John Criswell47fdd832003-07-14 16:52:07 +000017380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017381 lt_status=$lt_dlunknown
17382 cat > conftest.$ac_ext <<EOF
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017383#line 17383 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017384#include "confdefs.h"
17385
17386#if HAVE_DLFCN_H
17387#include <dlfcn.h>
17388#endif
17389
17390#include <stdio.h>
17391
17392#ifdef RTLD_GLOBAL
17393# define LT_DLGLOBAL RTLD_GLOBAL
17394#else
17395# ifdef DL_GLOBAL
17396# define LT_DLGLOBAL DL_GLOBAL
17397# else
17398# define LT_DLGLOBAL 0
17399# endif
17400#endif
17401
17402/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17403 find out it does not work in some platform. */
17404#ifndef LT_DLLAZY_OR_NOW
17405# ifdef RTLD_LAZY
17406# define LT_DLLAZY_OR_NOW RTLD_LAZY
17407# else
17408# ifdef DL_LAZY
17409# define LT_DLLAZY_OR_NOW DL_LAZY
17410# else
17411# ifdef RTLD_NOW
17412# define LT_DLLAZY_OR_NOW RTLD_NOW
17413# else
17414# ifdef DL_NOW
17415# define LT_DLLAZY_OR_NOW DL_NOW
17416# else
17417# define LT_DLLAZY_OR_NOW 0
17418# endif
17419# endif
17420# endif
17421# endif
17422#endif
17423
17424#ifdef __cplusplus
17425extern "C" void exit (int);
17426#endif
17427
17428void fnord() { int i=42;}
17429int main ()
17430{
17431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17432 int status = $lt_dlunknown;
17433
17434 if (self)
17435 {
17436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17438 /* dlclose (self); */
17439 }
Reid Spencera773bd52006-08-04 18:18:08 +000017440 else
17441 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017442
17443 exit (status);
17444}
17445EOF
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017451 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017452 lt_status=$?
17453 case x$lt_status in
17454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017457 esac
17458 else :
17459 # compilation failed
17460 lt_cv_dlopen_self_static=no
17461 fi
17462fi
17463rm -fr conftest*
17464
17465
17466fi
Reid Spencera773bd52006-08-04 18:18:08 +000017467{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17468echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017469 fi
17470
17471 CPPFLAGS="$save_CPPFLAGS"
17472 LDFLAGS="$save_LDFLAGS"
17473 LIBS="$save_LIBS"
17474 ;;
17475 esac
17476
17477 case $lt_cv_dlopen_self in
17478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17479 *) enable_dlopen_self=unknown ;;
17480 esac
17481
17482 case $lt_cv_dlopen_self_static in
17483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17484 *) enable_dlopen_self_static=unknown ;;
17485 esac
17486fi
17487
17488
Reid Spencera773bd52006-08-04 18:18:08 +000017489# Report which library types will actually be built
17490{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17491echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17492{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17493echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017494
Reid Spencera773bd52006-08-04 18:18:08 +000017495{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17496echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017497test "$can_build_shared" = "no" && enable_shared=no
17498
17499# On AIX, shared libraries and static libraries use the same namespace, and
17500# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017501case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017502aix3*)
17503 test "$enable_shared" = yes && enable_static=no
17504 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017506 postinstall_cmds='$RANLIB $lib'
17507 fi
17508 ;;
17509
Reid Spencer2706f8c2004-09-19 23:53:36 +000017510aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17512 test "$enable_shared" = yes && enable_static=no
17513 fi
John Criswell7a73b802003-06-30 21:59:07 +000017514 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017515esac
Reid Spencera773bd52006-08-04 18:18:08 +000017516{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17517echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017518
Reid Spencera773bd52006-08-04 18:18:08 +000017519{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17520echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017521# Make sure either enable_shared or enable_static is yes.
17522test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017523{ echo "$as_me:$LINENO: result: $enable_static" >&5
17524echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017525
17526# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017527# libtool distribution, otherwise you forgot to ship ltmain.sh
17528# with your package, and you will get complaints that there are
17529# no rules to generate ltmain.sh.
17530if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017531 # See if we are running on zsh, and set the options which allow our commands through
17532 # without removal of \ escapes.
17533 if test -n "${ZSH_VERSION+set}" ; then
17534 setopt NO_GLOB_SUBST
17535 fi
John Criswell7a73b802003-06-30 21:59:07 +000017536 # Now quote all the things that may contain metacharacters while being
17537 # careful not to overquote the AC_SUBSTed values. We take copies of the
17538 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017539 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 +000017540 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17543 deplibs_check_method reload_flag reload_cmds need_locks \
17544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17545 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017547 old_postinstall_cmds old_postuninstall_cmds \
17548 compiler \
17549 CC \
17550 LD \
17551 lt_prog_compiler_wl \
17552 lt_prog_compiler_pic \
17553 lt_prog_compiler_static \
17554 lt_prog_compiler_no_builtin_flag \
17555 export_dynamic_flag_spec \
17556 thread_safe_flag_spec \
17557 whole_archive_flag_spec \
17558 enable_shared_with_static_runtimes \
17559 old_archive_cmds \
17560 old_archive_from_new_cmds \
17561 predep_objects \
17562 postdep_objects \
17563 predeps \
17564 postdeps \
17565 compiler_lib_search_path \
17566 archive_cmds \
17567 archive_expsym_cmds \
17568 postinstall_cmds \
17569 postuninstall_cmds \
17570 old_archive_from_expsyms_cmds \
17571 allow_undefined_flag \
17572 no_undefined_flag \
17573 export_symbols_cmds \
17574 hardcode_libdir_flag_spec \
17575 hardcode_libdir_flag_spec_ld \
17576 hardcode_libdir_separator \
17577 hardcode_automatic \
17578 module_cmds \
17579 module_expsym_cmds \
17580 lt_cv_prog_compiler_c_o \
17581 exclude_expsyms \
17582 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017583
17584 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017585 old_archive_cmds | \
17586 old_archive_from_new_cmds | \
17587 archive_cmds | \
17588 archive_expsym_cmds | \
17589 module_cmds | \
17590 module_expsym_cmds | \
17591 old_archive_from_expsyms_cmds | \
17592 export_symbols_cmds | \
17593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017594 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017595 old_postinstall_cmds | old_postuninstall_cmds | \
17596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017597 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017598 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 +000017599 ;;
17600 *)
17601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17602 ;;
17603 esac
17604 done
17605
John Criswell47fdd832003-07-14 16:52:07 +000017606 case $lt_echo in
17607 *'\$0 --fallback-echo"')
17608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17609 ;;
17610 esac
17611
17612cfgfile="${ofile}T"
17613 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17614 $rm -f "$cfgfile"
17615 { echo "$as_me:$LINENO: creating $ofile" >&5
17616echo "$as_me: creating $ofile" >&6;}
17617
17618 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017619#! $SHELL
17620
John Criswell47fdd832003-07-14 16:52:07 +000017621# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017622# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17623# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17624#
John Criswell47fdd832003-07-14 16:52:07 +000017625# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17626# Free Software Foundation, Inc.
17627#
17628# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017629# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17630#
17631# This program is free software; you can redistribute it and/or modify
17632# it under the terms of the GNU General Public License as published by
17633# the Free Software Foundation; either version 2 of the License, or
17634# (at your option) any later version.
17635#
17636# This program is distributed in the hope that it will be useful, but
17637# WITHOUT ANY WARRANTY; without even the implied warranty of
17638# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17639# General Public License for more details.
17640#
17641# You should have received a copy of the GNU General Public License
17642# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017643# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017644#
17645# As a special exception to the GNU General Public License, if you
17646# distribute this file as part of a program that contains a
17647# configuration script generated by Autoconf, you may include it under
17648# the same distribution terms that you use for the rest of that program.
17649
John Criswell47fdd832003-07-14 16:52:07 +000017650# A sed program that does not truncate output.
17651SED=$lt_SED
17652
John Criswell7a73b802003-06-30 21:59:07 +000017653# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017654Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017655
17656# The HP-UX ksh and POSIX shell print the target directory to stdout
17657# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017659
John Criswell47fdd832003-07-14 16:52:07 +000017660# The names of the tagged configurations supported by this script.
17661available_tags=
17662
John Criswell7a73b802003-06-30 21:59:07 +000017663# ### BEGIN LIBTOOL CONFIG
17664
17665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17666
17667# Shell to use when invoking shell scripts.
17668SHELL=$lt_SHELL
17669
17670# Whether or not to build shared libraries.
17671build_libtool_libs=$enable_shared
17672
17673# Whether or not to build static libraries.
17674build_old_libs=$enable_static
17675
17676# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017677build_libtool_need_lc=$archive_cmds_need_lc
17678
17679# Whether or not to disallow shared libs when runtime libs are static
17680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017681
17682# Whether or not to optimize for fast installation.
17683fast_install=$enable_fast_install
17684
17685# The host system.
17686host_alias=$host_alias
17687host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017688host_os=$host_os
17689
17690# The build system.
17691build_alias=$build_alias
17692build=$build
17693build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017694
17695# An echo program that does not interpret backslashes.
17696echo=$lt_echo
17697
17698# The archiver.
17699AR=$lt_AR
17700AR_FLAGS=$lt_AR_FLAGS
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702# A C compiler.
17703LTCC=$lt_LTCC
17704
Reid Spencera773bd52006-08-04 18:18:08 +000017705# LTCC compiler flags.
17706LTCFLAGS=$lt_LTCFLAGS
17707
John Criswell47fdd832003-07-14 16:52:07 +000017708# A language-specific compiler.
17709CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017710
17711# Is the compiler the GNU C compiler?
17712with_gcc=$GCC
17713
John Criswell47fdd832003-07-14 16:52:07 +000017714# An ERE matcher.
17715EGREP=$lt_EGREP
17716
John Criswell7a73b802003-06-30 21:59:07 +000017717# The linker used to build libraries.
17718LD=$lt_LD
17719
17720# Whether we need hard or soft links.
17721LN_S=$lt_LN_S
17722
17723# A BSD-compatible nm program.
17724NM=$lt_NM
17725
17726# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017728
17729# Used to examine libraries when file_magic_cmd begins "file"
17730MAGIC_CMD=$MAGIC_CMD
17731
17732# Used on cygwin: DLL creation program.
17733DLLTOOL="$DLLTOOL"
17734
17735# Used on cygwin: object dumper.
17736OBJDUMP="$OBJDUMP"
17737
17738# Used on cygwin: assembler.
17739AS="$AS"
17740
17741# The name of the directory that contains temporary libtool files.
17742objdir=$objdir
17743
17744# How to create reloadable object files.
17745reload_flag=$lt_reload_flag
17746reload_cmds=$lt_reload_cmds
17747
17748# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017749wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017750
17751# Object file suffix (normally "o").
17752objext="$ac_objext"
17753
17754# Old archive suffix (normally "a").
17755libext="$libext"
17756
John Criswell47fdd832003-07-14 16:52:07 +000017757# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017759
John Criswell7a73b802003-06-30 21:59:07 +000017760# Executable file suffix (normally "").
17761exeext="$exeext"
17762
17763# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017764pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017765pic_mode=$pic_mode
17766
John Criswell47fdd832003-07-14 16:52:07 +000017767# What is the maximum length of a command?
17768max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017769
John Criswell47fdd832003-07-14 16:52:07 +000017770# Does compiler simultaneously support -c and -o options?
17771compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017772
Reid Spencera773bd52006-08-04 18:18:08 +000017773# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017774need_locks=$lt_need_locks
17775
17776# Do we need the lib prefix for modules?
17777need_lib_prefix=$need_lib_prefix
17778
17779# Do we need a version for libraries?
17780need_version=$need_version
17781
17782# Whether dlopen is supported.
17783dlopen_support=$enable_dlopen
17784
17785# Whether dlopen of programs is supported.
17786dlopen_self=$enable_dlopen_self
17787
17788# Whether dlopen of statically linked programs is supported.
17789dlopen_self_static=$enable_dlopen_self_static
17790
17791# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017792link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017793
17794# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017796
17797# Compiler flag to allow reflexive dlopens.
17798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17799
17800# Compiler flag to generate shared objects directly from archives.
17801whole_archive_flag_spec=$lt_whole_archive_flag_spec
17802
17803# Compiler flag to generate thread-safe objects.
17804thread_safe_flag_spec=$lt_thread_safe_flag_spec
17805
17806# Library versioning type.
17807version_type=$version_type
17808
17809# Format of library name prefix.
17810libname_spec=$lt_libname_spec
17811
17812# List of archive names. First name is the real one, the rest are links.
17813# The last name is the one that the linker finds with -lNAME.
17814library_names_spec=$lt_library_names_spec
17815
17816# The coded name of the library, if different from the real name.
17817soname_spec=$lt_soname_spec
17818
17819# Commands used to build and install an old-style archive.
17820RANLIB=$lt_RANLIB
17821old_archive_cmds=$lt_old_archive_cmds
17822old_postinstall_cmds=$lt_old_postinstall_cmds
17823old_postuninstall_cmds=$lt_old_postuninstall_cmds
17824
17825# Create an old-style archive from a shared archive.
17826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17827
17828# Create a temporary old-style archive to link instead of a shared archive.
17829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17830
17831# Commands used to build and install a shared archive.
17832archive_cmds=$lt_archive_cmds
17833archive_expsym_cmds=$lt_archive_expsym_cmds
17834postinstall_cmds=$lt_postinstall_cmds
17835postuninstall_cmds=$lt_postuninstall_cmds
17836
John Criswell47fdd832003-07-14 16:52:07 +000017837# Commands used to build a loadable module (assumed same as above if empty)
17838module_cmds=$lt_module_cmds
17839module_expsym_cmds=$lt_module_expsym_cmds
17840
John Criswell7a73b802003-06-30 21:59:07 +000017841# Commands to strip libraries.
17842old_striplib=$lt_old_striplib
17843striplib=$lt_striplib
17844
John Criswell47fdd832003-07-14 16:52:07 +000017845# Dependencies to place before the objects being linked to create a
17846# shared library.
17847predep_objects=$lt_predep_objects
17848
17849# Dependencies to place after the objects being linked to create a
17850# shared library.
17851postdep_objects=$lt_postdep_objects
17852
17853# Dependencies to place before the objects being linked to create a
17854# shared library.
17855predeps=$lt_predeps
17856
17857# Dependencies to place after the objects being linked to create a
17858# shared library.
17859postdeps=$lt_postdeps
17860
17861# The library search path used internally by the compiler when linking
17862# a shared library.
17863compiler_lib_search_path=$lt_compiler_lib_search_path
17864
John Criswell7a73b802003-06-30 21:59:07 +000017865# Method to check whether dependent libraries are shared objects.
17866deplibs_check_method=$lt_deplibs_check_method
17867
17868# Command to use when deplibs_check_method == file_magic.
17869file_magic_cmd=$lt_file_magic_cmd
17870
17871# Flag that allows shared libraries with undefined symbols to be built.
17872allow_undefined_flag=$lt_allow_undefined_flag
17873
17874# Flag that forces no undefined symbols.
17875no_undefined_flag=$lt_no_undefined_flag
17876
17877# Commands used to finish a libtool library installation in a directory.
17878finish_cmds=$lt_finish_cmds
17879
17880# Same as above, but a single script fragment to be evaled but not shown.
17881finish_eval=$lt_finish_eval
17882
17883# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017885
17886# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017888
17889# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017891
17892# This is the shared library runtime path variable.
17893runpath_var=$runpath_var
17894
17895# This is the shared library path variable.
17896shlibpath_var=$shlibpath_var
17897
17898# Is shlibpath searched before the hard-coded library search path?
17899shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17900
17901# How to hardcode a shared library path into an executable.
17902hardcode_action=$hardcode_action
17903
17904# Whether we should hardcode library paths into libraries.
17905hardcode_into_libs=$hardcode_into_libs
17906
17907# Flag to hardcode \$libdir into a binary during linking.
17908# This must work even if \$libdir does not exist.
17909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17910
John Criswell47fdd832003-07-14 16:52:07 +000017911# If ld is used when linking, flag to hardcode \$libdir into
17912# a binary during linking. This must work even if \$libdir does
17913# not exist.
17914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17915
John Criswell7a73b802003-06-30 21:59:07 +000017916# Whether we need a single -rpath flag with a separated argument.
17917hardcode_libdir_separator=$lt_hardcode_libdir_separator
17918
John Criswell47fdd832003-07-14 16:52:07 +000017919# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017920# resulting binary.
17921hardcode_direct=$hardcode_direct
17922
17923# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17924# resulting binary.
17925hardcode_minus_L=$hardcode_minus_L
17926
17927# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17928# the resulting binary.
17929hardcode_shlibpath_var=$hardcode_shlibpath_var
17930
John Criswell47fdd832003-07-14 16:52:07 +000017931# Set to yes if building a shared library automatically hardcodes DIR into the library
17932# and all subsequent libraries and executables linked against it.
17933hardcode_automatic=$hardcode_automatic
17934
John Criswell7a73b802003-06-30 21:59:07 +000017935# Variables whose values should be saved in libtool wrapper scripts and
17936# restored at relink time.
17937variables_saved_for_relink="$variables_saved_for_relink"
17938
17939# Whether libtool must link a program against all its dependency libraries.
17940link_all_deplibs=$link_all_deplibs
17941
17942# Compile-time system search path for libraries
17943sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17944
17945# Run-time system search path for libraries
17946sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17947
17948# Fix the shell variable \$srcfile for the compiler.
17949fix_srcfile_path="$fix_srcfile_path"
17950
17951# Set to yes if exported symbols are required.
17952always_export_symbols=$always_export_symbols
17953
17954# The commands to list exported symbols.
17955export_symbols_cmds=$lt_export_symbols_cmds
17956
17957# The commands to extract the exported symbol list from a shared archive.
17958extract_expsyms_cmds=$lt_extract_expsyms_cmds
17959
17960# Symbols that should not be listed in the preloaded symbols.
17961exclude_expsyms=$lt_exclude_expsyms
17962
17963# Symbols that must always be exported.
17964include_expsyms=$lt_include_expsyms
17965
17966# ### END LIBTOOL CONFIG
17967
17968__EOF__
17969
John Criswell47fdd832003-07-14 16:52:07 +000017970
John Criswell7a73b802003-06-30 21:59:07 +000017971 case $host_os in
17972 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017973 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017974
17975# AIX sometimes has problems with the GCC collect2 program. For some
17976# reason, if we set the COLLECT_NAMES environment variable, the problems
17977# vanish in a puff of smoke.
17978if test "X${COLLECT_NAMES+set}" != Xset; then
17979 COLLECT_NAMES=
17980 export COLLECT_NAMES
17981fi
17982EOF
17983 ;;
17984 esac
17985
John Criswell7a73b802003-06-30 21:59:07 +000017986 # We use sed instead of cat because bash on DJGPP gets confused if
17987 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17988 # text mode, it properly converts lines to CR/LF. This bash problem
17989 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017990 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017991
John Criswell47fdd832003-07-14 16:52:07 +000017992 mv -f "$cfgfile" "$ofile" || \
17993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017994 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017995
17996else
17997 # If there is no Makefile yet, we rely on a make rule to execute
17998 # `config.status --recheck' to rerun these tests and create the
17999 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18001 if test -f "$ltmain_in"; then
18002 test -f Makefile && make "$ltmain"
18003 fi
John Criswell7a73b802003-06-30 21:59:07 +000018004fi
John Criswell7a73b802003-06-30 21:59:07 +000018005
18006
John Criswell47fdd832003-07-14 16:52:07 +000018007ac_ext=c
18008ac_cpp='$CPP $CPPFLAGS'
18009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011ac_compiler_gnu=$ac_cv_c_compiler_gnu
18012
18013CC="$lt_save_CC"
18014
18015
Reid Spencera773bd52006-08-04 18:18:08 +000018016# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018017if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018018 withval=$with_tags; tagnames="$withval"
18019fi
18020
John Criswell47fdd832003-07-14 16:52:07 +000018021
18022if test -f "$ltmain" && test -n "$tagnames"; then
18023 if test ! -f "${ofile}"; then
18024 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18025echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18026 fi
18027
18028 if test -z "$LTCC"; then
18029 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18030 if test -z "$LTCC"; then
18031 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18032echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18033 else
18034 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18035echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18036 fi
18037 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018038 if test -z "$LTCFLAGS"; then
18039 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18040 fi
John Criswell47fdd832003-07-14 16:52:07 +000018041
18042 # Extract list of available tagged configurations in $ofile.
18043 # Note that this assumes the entire list is on one line.
18044 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18045
18046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18047 for tagname in $tagnames; do
18048 IFS="$lt_save_ifs"
18049 # Check whether tagname contains only valid characters
18050 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18051 "") ;;
18052 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18053echo "$as_me: error: invalid tag name: $tagname" >&2;}
18054 { (exit 1); exit 1; }; }
18055 ;;
18056 esac
18057
18058 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18059 then
18060 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18061echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18062 { (exit 1); exit 1; }; }
18063 fi
18064
18065 # Update the list of available tags.
18066 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018067 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018068
18069 case $tagname in
18070 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018071 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18072 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18073 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018074 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018075ac_cpp='$CXXCPP $CPPFLAGS'
18076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18079
18080
18081
18082
18083archive_cmds_need_lc_CXX=no
18084allow_undefined_flag_CXX=
18085always_export_symbols_CXX=no
18086archive_expsym_cmds_CXX=
18087export_dynamic_flag_spec_CXX=
18088hardcode_direct_CXX=no
18089hardcode_libdir_flag_spec_CXX=
18090hardcode_libdir_flag_spec_ld_CXX=
18091hardcode_libdir_separator_CXX=
18092hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018093hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018094hardcode_automatic_CXX=no
18095module_cmds_CXX=
18096module_expsym_cmds_CXX=
18097link_all_deplibs_CXX=unknown
18098old_archive_cmds_CXX=$old_archive_cmds
18099no_undefined_flag_CXX=
18100whole_archive_flag_spec_CXX=
18101enable_shared_with_static_runtimes_CXX=no
18102
18103# Dependencies to place before and after the object being linked:
18104predep_objects_CXX=
18105postdep_objects_CXX=
18106predeps_CXX=
18107postdeps_CXX=
18108compiler_lib_search_path_CXX=
18109
18110# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018111ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018112
18113# Object file extension for compiled C++ test sources.
18114objext=o
18115objext_CXX=$objext
18116
18117# Code to be used in simple compile tests
18118lt_simple_compile_test_code="int some_variable = 0;\n"
18119
18120# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018121lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018122
18123# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124
18125# If no C compiler was specified, use CC.
18126LTCC=${LTCC-"$CC"}
18127
Reid Spencera773bd52006-08-04 18:18:08 +000018128# If no C compiler flags were specified, use CFLAGS.
18129LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18130
John Criswell47fdd832003-07-14 16:52:07 +000018131# Allow CC to be a program name with arguments.
18132compiler=$CC
18133
18134
Reid Spencera773bd52006-08-04 18:18:08 +000018135# save warnings/boilerplate of simple test code
18136ac_outfile=conftest.$ac_objext
18137printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18139_lt_compiler_boilerplate=`cat conftest.err`
18140$rm conftest*
18141
18142ac_outfile=conftest.$ac_objext
18143printf "$lt_simple_link_test_code" >conftest.$ac_ext
18144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18145_lt_linker_boilerplate=`cat conftest.err`
18146$rm conftest*
18147
18148
John Criswell47fdd832003-07-14 16:52:07 +000018149# Allow CC to be a program name with arguments.
18150lt_save_CC=$CC
18151lt_save_LD=$LD
18152lt_save_GCC=$GCC
18153GCC=$GXX
18154lt_save_with_gnu_ld=$with_gnu_ld
18155lt_save_path_LD=$lt_cv_path_LD
18156if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18157 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18158else
Reid Spencera773bd52006-08-04 18:18:08 +000018159 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018160fi
18161if test -n "${lt_cv_path_LDCXX+set}"; then
18162 lt_cv_path_LD=$lt_cv_path_LDCXX
18163else
Reid Spencera773bd52006-08-04 18:18:08 +000018164 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018165fi
18166test -z "${LDCXX+set}" || LD=$LDCXX
18167CC=${CXX-"c++"}
18168compiler=$CC
18169compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018170for cc_temp in $compiler""; do
18171 case $cc_temp in
18172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18174 \-*) ;;
18175 *) break;;
18176 esac
18177done
18178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18179
John Criswell47fdd832003-07-14 16:52:07 +000018180
18181# We don't want -fno-exception wen compiling C++ code, so set the
18182# no_builtin_flag separately
18183if test "$GXX" = yes; then
18184 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18185else
18186 lt_prog_compiler_no_builtin_flag_CXX=
18187fi
18188
18189if test "$GXX" = yes; then
18190 # Set up default GNU C++ configuration
18191
18192
Reid Spencera773bd52006-08-04 18:18:08 +000018193# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018194if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018196else
18197 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018198fi
18199
John Criswell47fdd832003-07-14 16:52:07 +000018200ac_prog=ld
18201if test "$GCC" = yes; then
18202 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018203 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18204echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018205 case $host in
18206 *-*-mingw*)
18207 # gcc leaves a trailing carriage return which upsets mingw
18208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18209 *)
18210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18211 esac
18212 case $ac_prog in
18213 # Accept absolute paths.
18214 [\\/]* | ?:[\\/]*)
18215 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018216 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018217 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18219 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18220 done
18221 test -z "$LD" && LD="$ac_prog"
18222 ;;
18223 "")
18224 # If it fails, then pretend we aren't using GCC.
18225 ac_prog=ld
18226 ;;
18227 *)
18228 # If it is relative, then search for the first ld in PATH.
18229 with_gnu_ld=unknown
18230 ;;
18231 esac
18232elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018233 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18234echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018235else
Reid Spencera773bd52006-08-04 18:18:08 +000018236 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18237echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018238fi
18239if test "${lt_cv_path_LD+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242 if test -z "$LD"; then
18243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18244 for ac_dir in $PATH; do
18245 IFS="$lt_save_ifs"
18246 test -z "$ac_dir" && ac_dir=.
18247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18248 lt_cv_path_LD="$ac_dir/$ac_prog"
18249 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018250 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018251 # Break only if it was the GNU/non-GNU ld that we prefer.
18252 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18253 *GNU* | *'with BFD'*)
18254 test "$with_gnu_ld" != no && break
18255 ;;
18256 *)
18257 test "$with_gnu_ld" != yes && break
18258 ;;
18259 esac
18260 fi
18261 done
18262 IFS="$lt_save_ifs"
18263else
18264 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18265fi
18266fi
18267
18268LD="$lt_cv_path_LD"
18269if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018270 { echo "$as_me:$LINENO: result: $LD" >&5
18271echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018272else
Reid Spencera773bd52006-08-04 18:18:08 +000018273 { echo "$as_me:$LINENO: result: no" >&5
18274echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018275fi
18276test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18277echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18278 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018279{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18280echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018281if test "${lt_cv_prog_gnu_ld+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18283else
Reid Spencera773bd52006-08-04 18:18:08 +000018284 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018285case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018286*GNU* | *'with BFD'*)
18287 lt_cv_prog_gnu_ld=yes
18288 ;;
18289*)
18290 lt_cv_prog_gnu_ld=no
18291 ;;
18292esac
18293fi
Reid Spencera773bd52006-08-04 18:18:08 +000018294{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18295echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018296with_gnu_ld=$lt_cv_prog_gnu_ld
18297
18298
18299
18300 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18301 # archiving commands below assume that GNU ld is being used.
18302 if test "$with_gnu_ld" = yes; then
18303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304 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'
18305
18306 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18308
18309 # If archive_cmds runs LD, not CC, wlarc should be empty
18310 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18311 # investigate it a little bit more. (MM)
18312 wlarc='${wl}'
18313
18314 # ancient GNU ld didn't support --whole-archive et. al.
18315 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18316 grep 'no-whole-archive' > /dev/null; then
18317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18318 else
18319 whole_archive_flag_spec_CXX=
18320 fi
18321 else
18322 with_gnu_ld=no
18323 wlarc=
18324
18325 # A generic and very simple default shared library creation
18326 # command for GNU C++ for the case where it uses the native
18327 # linker, instead of GNU ld. If possible, this setting should
18328 # overridden to take advantage of the native linker features on
18329 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018331 fi
18332
18333 # Commands to make compiler produce verbose output that lists
18334 # what "hidden" libraries, object files and flags are used when
18335 # linking a shared library.
18336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18337
18338else
18339 GXX=no
18340 with_gnu_ld=no
18341 wlarc=
18342fi
18343
18344# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018345{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18346echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018347ld_shlibs_CXX=yes
18348case $host_os in
18349 aix3*)
18350 # FIXME: insert proper C++ library support
18351 ld_shlibs_CXX=no
18352 ;;
18353 aix4* | aix5*)
18354 if test "$host_cpu" = ia64; then
18355 # On IA64, the linker does run time linking by default, so we don't
18356 # have to do anything special.
18357 aix_use_runtimelinking=no
18358 exp_sym_flag='-Bexport'
18359 no_entry_flag=""
18360 else
18361 aix_use_runtimelinking=no
18362
18363 # Test if we are trying to use run time linking or normal
18364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18365 # need to do runtime linking.
18366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18367 for ld_flag in $LDFLAGS; do
18368 case $ld_flag in
18369 *-brtl*)
18370 aix_use_runtimelinking=yes
18371 break
18372 ;;
18373 esac
18374 done
Reid Spencera773bd52006-08-04 18:18:08 +000018375 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018376 esac
18377
18378 exp_sym_flag='-bexport'
18379 no_entry_flag='-bnoentry'
18380 fi
18381
18382 # When large executables or shared objects are built, AIX ld can
18383 # have problems creating the table of contents. If linking a library
18384 # or program results in "error TOC overflow" add -mminimal-toc to
18385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18387
18388 archive_cmds_CXX=''
18389 hardcode_direct_CXX=yes
18390 hardcode_libdir_separator_CXX=':'
18391 link_all_deplibs_CXX=yes
18392
18393 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018394 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018395 # We only want to do this on AIX 4.2 and lower, the check
18396 # below for broken collect2 doesn't work under 4.3+
18397 collect2name=`${CC} -print-prog-name=collect2`
18398 if test -f "$collect2name" && \
18399 strings "$collect2name" | grep resolve_lib_name >/dev/null
18400 then
18401 # We have reworked collect2
18402 hardcode_direct_CXX=yes
18403 else
18404 # We have old collect2
18405 hardcode_direct_CXX=unsupported
18406 # It fails to find uninstalled libraries when the uninstalled
18407 # path is not listed in the libpath. Setting hardcode_minus_L
18408 # to unsupported forces relinking
18409 hardcode_minus_L_CXX=yes
18410 hardcode_libdir_flag_spec_CXX='-L$libdir'
18411 hardcode_libdir_separator_CXX=
18412 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018413 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018414 esac
18415 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018416 if test "$aix_use_runtimelinking" = yes; then
18417 shared_flag="$shared_flag "'${wl}-G'
18418 fi
John Criswell47fdd832003-07-14 16:52:07 +000018419 else
18420 # not using gcc
18421 if test "$host_cpu" = ia64; then
18422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18423 # chokes on -Wl,-G. The following line is correct:
18424 shared_flag='-G'
18425 else
18426 if test "$aix_use_runtimelinking" = yes; then
18427 shared_flag='${wl}-G'
18428 else
18429 shared_flag='${wl}-bM:SRE'
18430 fi
18431 fi
18432 fi
18433
18434 # It seems that -bexpall does not export symbols beginning with
18435 # underscore (_), so it is better to generate a list of symbols to export.
18436 always_export_symbols_CXX=yes
18437 if test "$aix_use_runtimelinking" = yes; then
18438 # Warning - without using the other runtime loading flags (-brtl),
18439 # -berok will link without error, but may produce a broken library.
18440 allow_undefined_flag_CXX='-berok'
18441 # Determine the default libpath from the value encoded in an empty executable.
18442 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018448
John Criswell47fdd832003-07-14 16:52:07 +000018449int
18450main ()
18451{
18452
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018458if { (ac_try="$ac_link"
18459case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462esac
18463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018491
18492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18493}'`
18494# Check for a 64-bit object if we didn't find anything.
18495if 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; }
18496}'`; fi
18497else
18498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018499sed 's/^/| /' conftest.$ac_ext >&5
18500
Reid Spencera773bd52006-08-04 18:18:08 +000018501
John Criswell47fdd832003-07-14 16:52:07 +000018502fi
Reid Spencera773bd52006-08-04 18:18:08 +000018503
Bill Wendlingebcceee2009-04-18 11:20:33 +000018504rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018505 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18507
18508 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18509
Reid Spencera773bd52006-08-04 18:18:08 +000018510 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 +000018511 else
18512 if test "$host_cpu" = ia64; then
18513 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18514 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018515 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 +000018516 else
18517 # Determine the default libpath from the value encoded in an empty executable.
18518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018519/* confdefs.h. */
18520_ACEOF
18521cat confdefs.h >>conftest.$ac_ext
18522cat >>conftest.$ac_ext <<_ACEOF
18523/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018524
John Criswell47fdd832003-07-14 16:52:07 +000018525int
18526main ()
18527{
18528
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018534if { (ac_try="$ac_link"
18535case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538esac
18539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018546 (exit $ac_status); } &&
18547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018567
18568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18569}'`
18570# Check for a 64-bit object if we didn't find anything.
18571if 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; }
18572}'`; fi
18573else
18574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018575sed 's/^/| /' conftest.$ac_ext >&5
18576
Reid Spencera773bd52006-08-04 18:18:08 +000018577
John Criswell47fdd832003-07-14 16:52:07 +000018578fi
Reid Spencera773bd52006-08-04 18:18:08 +000018579
Bill Wendlingebcceee2009-04-18 11:20:33 +000018580rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018581 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18583
18584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18585 # Warning - without using the other run time loading flags,
18586 # -berok will link without error, but may produce a broken library.
18587 no_undefined_flag_CXX=' ${wl}-bernotok'
18588 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018589 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018590 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018591 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018592 # This is similar to how AIX traditionally builds its shared libraries.
18593 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 +000018594 fi
18595 fi
18596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018597
18598 beos*)
18599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18600 allow_undefined_flag_CXX=unsupported
18601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18602 # support --undefined. This deserves some investigation. FIXME
18603 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18604 else
18605 ld_shlibs_CXX=no
18606 fi
18607 ;;
18608
John Criswell47fdd832003-07-14 16:52:07 +000018609 chorus*)
18610 case $cc_basename in
18611 *)
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18614 ;;
18615 esac
18616 ;;
18617
18618 cygwin* | mingw* | pw32*)
18619 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18620 # as there is no search path for DLLs.
18621 hardcode_libdir_flag_spec_CXX='-L$libdir'
18622 allow_undefined_flag_CXX=unsupported
18623 always_export_symbols_CXX=no
18624 enable_shared_with_static_runtimes_CXX=yes
18625
18626 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018627 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 +000018628 # If the export-symbols file already is a .def file (1st line
18629 # is EXPORTS), use it as is; otherwise, prepend...
18630 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18631 cp $export_symbols $output_objdir/$soname.def;
18632 else
18633 echo EXPORTS > $output_objdir/$soname.def;
18634 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018635 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018636 $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 +000018637 else
18638 ld_shlibs_CXX=no
18639 fi
18640 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018641 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018642 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018643 rhapsody* | darwin1.[012])
18644 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18645 ;;
18646 *) # Darwin 1.3 on
18647 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18648 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18649 else
18650 case ${MACOSX_DEPLOYMENT_TARGET} in
18651 10.[012])
18652 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18653 ;;
18654 10.*)
18655 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18656 ;;
18657 esac
18658 fi
18659 ;;
18660 esac
18661 archive_cmds_need_lc_CXX=no
18662 hardcode_direct_CXX=no
18663 hardcode_automatic_CXX=yes
18664 hardcode_shlibpath_var_CXX=unsupported
18665 whole_archive_flag_spec_CXX=''
18666 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018667
Reid Spencer2706f8c2004-09-19 23:53:36 +000018668 if test "$GXX" = yes ; then
18669 lt_int_apple_cc_single_mod=no
18670 output_verbose_link_cmd='echo'
18671 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18672 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018673 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018674 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018675 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 +000018676 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018677 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 +000018678 fi
18679 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018680 # 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 +000018681 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018682 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 +000018683 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018684 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000018685 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018686 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 +000018687 else
Reid Spencera773bd52006-08-04 18:18:08 +000018688 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018689 xlc*)
18690 output_verbose_link_cmd='echo'
18691 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'
18692 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018693 # 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 +000018694 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}'
18695 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 +000018696 ;;
18697 *)
18698 ld_shlibs_CXX=no
18699 ;;
18700 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018701 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018702 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018703
18704 dgux*)
18705 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018706 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018707 # FIXME: insert proper C++ library support
18708 ld_shlibs_CXX=no
18709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018710 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018711 # Green Hills C++ Compiler
18712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18714 ;;
18715 *)
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 ;;
18719 esac
18720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018721 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018722 # C++ shared libraries reported to be fairly broken before switch to ELF
18723 ld_shlibs_CXX=no
18724 ;;
18725 freebsd-elf*)
18726 archive_cmds_need_lc_CXX=no
18727 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018728 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018729 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18730 # conventions
18731 ld_shlibs_CXX=yes
18732 ;;
18733 gnu*)
18734 ;;
18735 hpux9*)
18736 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18737 hardcode_libdir_separator_CXX=:
18738 export_dynamic_flag_spec_CXX='${wl}-E'
18739 hardcode_direct_CXX=yes
18740 hardcode_minus_L_CXX=yes # Not in the search PATH,
18741 # but as the default
18742 # location of the library.
18743
18744 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018745 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018749 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018750 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 +000018751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18754 #
18755 # There doesn't appear to be a way to prevent this compiler from
18756 # explicitly linking system object files so we need to strip them
18757 # from the output so that they don't get included in the library
18758 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018759 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 +000018760 ;;
18761 *)
18762 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018763 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 +000018764 else
18765 # FIXME: insert proper C++ library support
18766 ld_shlibs_CXX=no
18767 fi
18768 ;;
18769 esac
18770 ;;
18771 hpux10*|hpux11*)
18772 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18775
18776 case $host_cpu in
18777 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018778 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018779 ;;
18780 *)
John Criswell47fdd832003-07-14 16:52:07 +000018781 export_dynamic_flag_spec_CXX='${wl}-E'
18782 ;;
18783 esac
18784 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018785 case $host_cpu in
18786 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018787 hardcode_direct_CXX=no
18788 hardcode_shlibpath_var_CXX=no
18789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018790 *)
18791 hardcode_direct_CXX=yes
18792 hardcode_minus_L_CXX=yes # Not in the search PATH,
18793 # but as the default
18794 # location of the library.
18795 ;;
18796 esac
18797
18798 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018799 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018803 aCC*)
18804 case $host_cpu in
18805 hppa*64*)
18806 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807 ;;
18808 ia64*)
18809 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 +000018810 ;;
18811 *)
18812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18813 ;;
18814 esac
18815 # Commands to make compiler produce verbose output that lists
18816 # what "hidden" libraries, object files and flags are used when
18817 # linking a shared library.
18818 #
18819 # There doesn't appear to be a way to prevent this compiler from
18820 # explicitly linking system object files so we need to strip them
18821 # from the output so that they don't get included in the library
18822 # dependencies.
18823 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'
18824 ;;
18825 *)
18826 if test "$GXX" = yes; then
18827 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018828 case $host_cpu in
18829 hppa*64*)
18830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18831 ;;
18832 ia64*)
18833 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 +000018834 ;;
18835 *)
18836 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'
18837 ;;
18838 esac
18839 fi
18840 else
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18843 fi
18844 ;;
18845 esac
18846 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018847 interix3*)
18848 hardcode_direct_CXX=no
18849 hardcode_shlibpath_var_CXX=no
18850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18851 export_dynamic_flag_spec_CXX='${wl}-E'
18852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18853 # Instead, shared libraries are loaded at an image base (0x10000000 by
18854 # default) and relocated if they conflict, which is a slow very memory
18855 # consuming and fragmenting process. To avoid this, we pick a random,
18856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18858 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'
18859 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'
18860 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018861 irix5* | irix6*)
18862 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018863 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018864 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018865 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 +000018866
18867 # Archives containing C++ object files must be created using
18868 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18869 # necessary to make sure instantiated templates are included
18870 # in the archive.
18871 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18872 ;;
18873 *)
18874 if test "$GXX" = yes; then
18875 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018876 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 +000018877 else
18878 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'
18879 fi
18880 fi
18881 link_all_deplibs_CXX=yes
18882 ;;
18883 esac
18884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18885 hardcode_libdir_separator_CXX=:
18886 ;;
18887 linux*)
18888 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018889 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018890 # Kuck and Associates, Inc. (KAI) C++ Compiler
18891
18892 # KCC will only create a shared library if the output file
18893 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18894 # to its proper name (with version) after linking.
18895 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'
18896 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'
18897 # Commands to make compiler produce verbose output that lists
18898 # what "hidden" libraries, object files and flags are used when
18899 # linking a shared library.
18900 #
18901 # There doesn't appear to be a way to prevent this compiler from
18902 # explicitly linking system object files so we need to strip them
18903 # from the output so that they don't get included in the library
18904 # dependencies.
18905 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'
18906
18907 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18909
18910 # Archives containing C++ object files must be created using
18911 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18912 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018914 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018915 # Intel C++
18916 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018917 # version 8.0 and above of icpc choke on multiply defined symbols
18918 # if we add $predep_objects and $postdep_objects, however 7.1 and
18919 # earlier do not add the objects themselves.
18920 case `$CC -V 2>&1` in
18921 *"Version 7."*)
18922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923 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'
18924 ;;
18925 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018926 tmp_idyn=
18927 case $host_cpu in
18928 ia64*) tmp_idyn=' -i_dynamic';;
18929 esac
18930 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931 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 +000018932 ;;
18933 esac
John Criswell47fdd832003-07-14 16:52:07 +000018934 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18936 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18937 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18938 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018939 pgCC*)
18940 # Portland Group C++ compiler
18941 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18942 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'
18943
18944 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946 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'
18947 ;;
18948 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018949 # Compaq C++
18950 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18951 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'
18952
18953 runpath_var=LD_RUN_PATH
18954 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18955 hardcode_libdir_separator_CXX=:
18956
18957 # Commands to make compiler produce verbose output that lists
18958 # what "hidden" libraries, object files and flags are used when
18959 # linking a shared library.
18960 #
18961 # There doesn't appear to be a way to prevent this compiler from
18962 # explicitly linking system object files so we need to strip them
18963 # from the output so that they don't get included in the library
18964 # dependencies.
18965 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'
18966 ;;
18967 esac
18968 ;;
18969 lynxos*)
18970 # FIXME: insert proper C++ library support
18971 ld_shlibs_CXX=no
18972 ;;
18973 m88k*)
18974 # FIXME: insert proper C++ library support
18975 ld_shlibs_CXX=no
18976 ;;
18977 mvs*)
18978 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018979 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018980 # FIXME: insert proper C++ library support
18981 ld_shlibs_CXX=no
18982 ;;
18983 *)
18984 # FIXME: insert proper C++ library support
18985 ld_shlibs_CXX=no
18986 ;;
18987 esac
18988 ;;
18989 netbsd*)
18990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18991 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18992 wlarc=
18993 hardcode_libdir_flag_spec_CXX='-R$libdir'
18994 hardcode_direct_CXX=yes
18995 hardcode_shlibpath_var_CXX=no
18996 fi
18997 # Workaround some broken pre-1.5 toolchains
18998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18999 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019000 openbsd2*)
19001 # C++ shared libraries are fairly broken
19002 ld_shlibs_CXX=no
19003 ;;
19004 openbsd*)
19005 hardcode_direct_CXX=yes
19006 hardcode_shlibpath_var_CXX=no
19007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19010 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19011 export_dynamic_flag_spec_CXX='${wl}-E'
19012 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19013 fi
19014 output_verbose_link_cmd='echo'
19015 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019016 osf3*)
19017 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019018 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019019 # Kuck and Associates, Inc. (KAI) C++ Compiler
19020
19021 # KCC will only create a shared library if the output file
19022 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19023 # to its proper name (with version) after linking.
19024 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'
19025
19026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19027 hardcode_libdir_separator_CXX=:
19028
19029 # Archives containing C++ object files must be created using
19030 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19032
19033 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019034 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019035 # Rational C++ 2.4.1
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019039 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019040 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019041 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 +000019042
19043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19044 hardcode_libdir_separator_CXX=:
19045
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19049 #
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19053 # dependencies.
19054 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'
19055 ;;
19056 *)
19057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19058 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019059 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 +000019060
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19062 hardcode_libdir_separator_CXX=:
19063
19064 # Commands to make compiler produce verbose output that lists
19065 # what "hidden" libraries, object files and flags are used when
19066 # linking a shared library.
19067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19068
19069 else
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 fi
19073 ;;
19074 esac
19075 ;;
19076 osf4* | osf5*)
19077 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019078 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019079 # Kuck and Associates, Inc. (KAI) C++ Compiler
19080
19081 # KCC will only create a shared library if the output file
19082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19083 # to its proper name (with version) after linking.
19084 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'
19085
19086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19087 hardcode_libdir_separator_CXX=:
19088
19089 # Archives containing C++ object files must be created using
19090 # the KAI C++ compiler.
19091 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19092 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019093 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019094 # Rational C++ 2.4.1
19095 # FIXME: insert proper C++ library support
19096 ld_shlibs_CXX=no
19097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019098 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019099 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019100 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 +000019101 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19102 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019103 $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 +000019104 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019105
19106 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19107 hardcode_libdir_separator_CXX=:
19108
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19112 #
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19116 # dependencies.
19117 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'
19118 ;;
19119 *)
19120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019122 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 +000019123
19124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19125 hardcode_libdir_separator_CXX=:
19126
19127 # Commands to make compiler produce verbose output that lists
19128 # what "hidden" libraries, object files and flags are used when
19129 # linking a shared library.
19130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19131
19132 else
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 fi
19136 ;;
19137 esac
19138 ;;
19139 psos*)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019143 sunos4*)
19144 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019145 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019146 # Sun C++ 4.x
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019150 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019151 # Lucid
19152 # FIXME: insert proper C++ library support
19153 ld_shlibs_CXX=no
19154 ;;
19155 *)
19156 # FIXME: insert proper C++ library support
19157 ld_shlibs_CXX=no
19158 ;;
19159 esac
19160 ;;
19161 solaris*)
19162 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019163 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019164 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019165 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019166 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019167 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 +000019168 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 +000019169 $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 +000019170
19171 hardcode_libdir_flag_spec_CXX='-R$libdir'
19172 hardcode_shlibpath_var_CXX=no
19173 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019174 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019175 *)
19176 # The C++ compiler is used as linker so we must use $wl
19177 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019178 # linker. We must also pass each convience library through
19179 # to the system linker between allextract/defaultextract.
19180 # The C++ compiler will combine linker options so we
19181 # cannot just pass the convience library names through
19182 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019183 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019184 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 +000019185 ;;
19186 esac
19187 link_all_deplibs_CXX=yes
19188
Reid Spencera773bd52006-08-04 18:18:08 +000019189 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019190
19191 # Archives containing C++ object files must be created using
19192 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19193 # necessary to make sure instantiated templates are included
19194 # in the archive.
19195 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19196 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019197 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019198 # Green Hills C++ Compiler
19199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19200
19201 # The C++ compiler must be used to create the archive.
19202 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19203 ;;
19204 *)
19205 # GNU C++ compiler with Solaris linker
19206 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19207 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19208 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019209 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 +000019210 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19212
John Criswell47fdd832003-07-14 16:52:07 +000019213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019216 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019217 else
19218 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19219 # platform.
19220 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 +000019221 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19222 $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 +000019223
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19227 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19228 fi
19229
19230 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19231 fi
19232 ;;
19233 esac
19234 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19236 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019237 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019238 hardcode_shlibpath_var_CXX=no
19239 runpath_var='LD_RUN_PATH'
19240
19241 case $cc_basename in
19242 CC*)
19243 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19244 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19245 ;;
19246 *)
19247 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19248 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19249 ;;
19250 esac
19251 ;;
19252 sysv5* | sco3.2v5* | sco5v6*)
19253 # Note: We can NOT use -z defs as we might desire, because we do not
19254 # link with -lc, and that would cause any symbols used from libc to
19255 # always be unresolved, which means just about no library would
19256 # ever link correctly. If we're not using GNU ld we use -z text
19257 # though, which does catch some bad symbols but isn't as heavy-handed
19258 # as -z defs.
19259 # For security reasons, it is highly recommended that you always
19260 # use absolute paths for naming shared libraries, and exclude the
19261 # DT_RUNPATH tag from executables and libraries. But doing so
19262 # requires that you compile everything twice, which is a pain.
19263 # So that behaviour is only enabled if SCOABSPATH is set to a
19264 # non-empty value in the environment. Most likely only useful for
19265 # creating official distributions of packages.
19266 # This is a hack until libtool officially supports absolute path
19267 # names for shared libraries.
19268 no_undefined_flag_CXX='${wl}-z,text'
19269 allow_undefined_flag_CXX='${wl}-z,nodefs'
19270 archive_cmds_need_lc_CXX=no
19271 hardcode_shlibpath_var_CXX=no
19272 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19273 hardcode_libdir_separator_CXX=':'
19274 link_all_deplibs_CXX=yes
19275 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19276 runpath_var='LD_RUN_PATH'
19277
19278 case $cc_basename in
19279 CC*)
19280 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19282 ;;
19283 *)
19284 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 ;;
19287 esac
John Criswell47fdd832003-07-14 16:52:07 +000019288 ;;
19289 tandem*)
19290 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019291 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019292 # NonStop-UX NCC 3.20
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19295 ;;
19296 *)
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300 esac
19301 ;;
19302 vxworks*)
19303 # FIXME: insert proper C++ library support
19304 ld_shlibs_CXX=no
19305 ;;
19306 *)
19307 # FIXME: insert proper C++ library support
19308 ld_shlibs_CXX=no
19309 ;;
19310esac
Reid Spencera773bd52006-08-04 18:18:08 +000019311{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19312echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019313test "$ld_shlibs_CXX" = no && can_build_shared=no
19314
19315GCC_CXX="$GXX"
19316LD_CXX="$LD"
19317
John Criswell47fdd832003-07-14 16:52:07 +000019318
19319cat > conftest.$ac_ext <<EOF
19320class Foo
19321{
19322public:
19323 Foo (void) { a = 0; }
19324private:
19325 int a;
19326};
19327EOF
19328
19329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330 (eval $ac_compile) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; then
19334 # Parse the compiler output and extract the necessary
19335 # objects, libraries and library flags.
19336
19337 # Sentinel used to keep track of whether or not we are before
19338 # the conftest object file.
19339 pre_test_object_deps_done=no
19340
19341 # The `*' in the case matches for architectures that use `case' in
19342 # $output_verbose_cmd can trigger glob expansion during the loop
19343 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019344 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019345
19346 for p in `eval $output_verbose_link_cmd`; do
19347 case $p in
19348
19349 -L* | -R* | -l*)
19350 # Some compilers place space between "-{L,R}" and the path.
19351 # Remove the space.
19352 if test $p = "-L" \
19353 || test $p = "-R"; then
19354 prev=$p
19355 continue
19356 else
19357 prev=
19358 fi
19359
19360 if test "$pre_test_object_deps_done" = no; then
19361 case $p in
19362 -L* | -R*)
19363 # Internal compiler library paths should come after those
19364 # provided the user. The postdeps already come after the
19365 # user supplied libs so there is no need to process them.
19366 if test -z "$compiler_lib_search_path_CXX"; then
19367 compiler_lib_search_path_CXX="${prev}${p}"
19368 else
19369 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19370 fi
19371 ;;
19372 # The "-l" case would never come before the object being
19373 # linked, so don't bother handling this case.
19374 esac
19375 else
19376 if test -z "$postdeps_CXX"; then
19377 postdeps_CXX="${prev}${p}"
19378 else
19379 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19380 fi
19381 fi
19382 ;;
19383
19384 *.$objext)
19385 # This assumes that the test object file only shows up
19386 # once in the compiler output.
19387 if test "$p" = "conftest.$objext"; then
19388 pre_test_object_deps_done=yes
19389 continue
19390 fi
19391
19392 if test "$pre_test_object_deps_done" = no; then
19393 if test -z "$predep_objects_CXX"; then
19394 predep_objects_CXX="$p"
19395 else
19396 predep_objects_CXX="$predep_objects_CXX $p"
19397 fi
19398 else
19399 if test -z "$postdep_objects_CXX"; then
19400 postdep_objects_CXX="$p"
19401 else
19402 postdep_objects_CXX="$postdep_objects_CXX $p"
19403 fi
19404 fi
19405 ;;
19406
19407 *) ;; # Ignore the rest.
19408
19409 esac
19410 done
19411
19412 # Clean up.
19413 rm -f a.out a.exe
19414else
19415 echo "libtool.m4: error: problem compiling CXX test program"
19416fi
19417
19418$rm -f confest.$objext
19419
Reid Spencera773bd52006-08-04 18:18:08 +000019420# PORTME: override above test on systems where it is broken
19421case $host_os in
19422interix3*)
19423 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19424 # hack all around it, let's just trust "g++" to DTRT.
19425 predep_objects_CXX=
19426 postdep_objects_CXX=
19427 postdeps_CXX=
19428 ;;
19429
19430solaris*)
19431 case $cc_basename in
19432 CC*)
19433 # Adding this requires a known-good setup of shared libraries for
19434 # Sun compiler versions before 5.6, else PIC objects from an old
19435 # archive will be linked into the output, leading to subtle bugs.
19436 postdeps_CXX='-lCstd -lCrun'
19437 ;;
19438 esac
19439 ;;
19440esac
19441
19442
John Criswell47fdd832003-07-14 16:52:07 +000019443case " $postdeps_CXX " in
19444*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19445esac
19446
19447lt_prog_compiler_wl_CXX=
19448lt_prog_compiler_pic_CXX=
19449lt_prog_compiler_static_CXX=
19450
Reid Spencera773bd52006-08-04 18:18:08 +000019451{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19452echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019453
19454 # C++ specific cases for pic, static, wl, etc.
19455 if test "$GXX" = yes; then
19456 lt_prog_compiler_wl_CXX='-Wl,'
19457 lt_prog_compiler_static_CXX='-static'
19458
19459 case $host_os in
19460 aix*)
19461 # All AIX code is PIC.
19462 if test "$host_cpu" = ia64; then
19463 # AIX 5 now supports IA64 processor
19464 lt_prog_compiler_static_CXX='-Bstatic'
19465 fi
19466 ;;
19467 amigaos*)
19468 # FIXME: we need at least 68020 code to build shared libraries, but
19469 # adding the `-m68020' flag to GCC prevents building anything better,
19470 # like `-m68040'.
19471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19472 ;;
19473 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19474 # PIC is the default for these OSes.
19475 ;;
19476 mingw* | os2* | pw32*)
19477 # This hack is so that the source file can tell whether it is being
19478 # built for inclusion in a dll (and should export symbols for example).
19479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19480 ;;
19481 darwin* | rhapsody*)
19482 # PIC is the default on this platform
19483 # Common symbols not allowed in MH_DYLIB files
19484 lt_prog_compiler_pic_CXX='-fno-common'
19485 ;;
19486 *djgpp*)
19487 # DJGPP does not support shared libraries at all
19488 lt_prog_compiler_pic_CXX=
19489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019490 interix3*)
19491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19492 # Instead, we relocate shared libraries at runtime.
19493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019494 sysv4*MP*)
19495 if test -d /usr/nec; then
19496 lt_prog_compiler_pic_CXX=-Kconform_pic
19497 fi
19498 ;;
19499 hpux*)
19500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19501 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019502 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019503 hppa*64*|ia64*)
19504 ;;
19505 *)
19506 lt_prog_compiler_pic_CXX='-fPIC'
19507 ;;
19508 esac
19509 ;;
19510 *)
19511 lt_prog_compiler_pic_CXX='-fPIC'
19512 ;;
19513 esac
19514 else
19515 case $host_os in
19516 aix4* | aix5*)
19517 # All AIX code is PIC.
19518 if test "$host_cpu" = ia64; then
19519 # AIX 5 now supports IA64 processor
19520 lt_prog_compiler_static_CXX='-Bstatic'
19521 else
19522 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19523 fi
19524 ;;
19525 chorus*)
19526 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019527 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019528 # Green Hills C++ Compiler
19529 # _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"
19530 ;;
19531 esac
19532 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019533 darwin*)
19534 # PIC is the default on this platform
19535 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019536 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019537 xlc*)
19538 lt_prog_compiler_pic_CXX='-qnocommon'
19539 lt_prog_compiler_wl_CXX='-Wl,'
19540 ;;
19541 esac
19542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019543 dgux*)
19544 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019545 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019546 lt_prog_compiler_pic_CXX='-KPIC'
19547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019548 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019549 # Green Hills C++ Compiler
19550 lt_prog_compiler_pic_CXX='-pic'
19551 ;;
19552 *)
19553 ;;
19554 esac
19555 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019556 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019557 # FreeBSD uses GNU C++
19558 ;;
19559 hpux9* | hpux10* | hpux11*)
19560 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019561 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019562 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019563 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019564 if test "$host_cpu" != ia64; then
19565 lt_prog_compiler_pic_CXX='+Z'
19566 fi
19567 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019568 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019569 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19571 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019572 hppa*64*|ia64*)
19573 # +Z the default
19574 ;;
19575 *)
19576 lt_prog_compiler_pic_CXX='+Z'
19577 ;;
19578 esac
19579 ;;
19580 *)
19581 ;;
19582 esac
19583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019584 interix*)
19585 # This is c89, which is MS Visual C++ (no shared libs)
19586 # Anyone wants to do a port?
19587 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019588 irix5* | irix6* | nonstopux*)
19589 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019590 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019591 lt_prog_compiler_wl_CXX='-Wl,'
19592 lt_prog_compiler_static_CXX='-non_shared'
19593 # CC pic flag -KPIC is the default.
19594 ;;
19595 *)
19596 ;;
19597 esac
19598 ;;
19599 linux*)
19600 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019601 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 # KAI C++ Compiler
19603 lt_prog_compiler_wl_CXX='--backend -Wl,'
19604 lt_prog_compiler_pic_CXX='-fPIC'
19605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019606 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019607 # Intel C++
19608 lt_prog_compiler_wl_CXX='-Wl,'
19609 lt_prog_compiler_pic_CXX='-KPIC'
19610 lt_prog_compiler_static_CXX='-static'
19611 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019612 pgCC*)
19613 # Portland Group C++ compiler.
19614 lt_prog_compiler_wl_CXX='-Wl,'
19615 lt_prog_compiler_pic_CXX='-fpic'
19616 lt_prog_compiler_static_CXX='-Bstatic'
19617 ;;
19618 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019619 # Compaq C++
19620 # Make sure the PIC flag is empty. It appears that all Alpha
19621 # Linux and Compaq Tru64 Unix objects are PIC.
19622 lt_prog_compiler_pic_CXX=
19623 lt_prog_compiler_static_CXX='-non_shared'
19624 ;;
19625 *)
19626 ;;
19627 esac
19628 ;;
19629 lynxos*)
19630 ;;
19631 m88k*)
19632 ;;
19633 mvs*)
19634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019635 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019636 lt_prog_compiler_pic_CXX='-W c,exportall'
19637 ;;
19638 *)
19639 ;;
19640 esac
19641 ;;
19642 netbsd*)
19643 ;;
19644 osf3* | osf4* | osf5*)
19645 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019646 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019647 lt_prog_compiler_wl_CXX='--backend -Wl,'
19648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019649 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019650 # Rational C++ 2.4.1
19651 lt_prog_compiler_pic_CXX='-pic'
19652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019653 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019654 # Digital/Compaq C++
19655 lt_prog_compiler_wl_CXX='-Wl,'
19656 # Make sure the PIC flag is empty. It appears that all Alpha
19657 # Linux and Compaq Tru64 Unix objects are PIC.
19658 lt_prog_compiler_pic_CXX=
19659 lt_prog_compiler_static_CXX='-non_shared'
19660 ;;
19661 *)
19662 ;;
19663 esac
19664 ;;
19665 psos*)
19666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019667 solaris*)
19668 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019669 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019670 # Sun C++ 4.2, 5.x and Centerline C++
19671 lt_prog_compiler_pic_CXX='-KPIC'
19672 lt_prog_compiler_static_CXX='-Bstatic'
19673 lt_prog_compiler_wl_CXX='-Qoption ld '
19674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019675 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019676 # Green Hills C++ Compiler
19677 lt_prog_compiler_pic_CXX='-PIC'
19678 ;;
19679 *)
19680 ;;
19681 esac
19682 ;;
19683 sunos4*)
19684 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019685 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019686 # Sun C++ 4.x
19687 lt_prog_compiler_pic_CXX='-pic'
19688 lt_prog_compiler_static_CXX='-Bstatic'
19689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019690 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019691 # Lucid
19692 lt_prog_compiler_pic_CXX='-pic'
19693 ;;
19694 *)
19695 ;;
19696 esac
19697 ;;
19698 tandem*)
19699 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019700 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019701 # NonStop-UX NCC 3.20
19702 lt_prog_compiler_pic_CXX='-KPIC'
19703 ;;
19704 *)
19705 ;;
19706 esac
19707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19709 case $cc_basename in
19710 CC*)
19711 lt_prog_compiler_wl_CXX='-Wl,'
19712 lt_prog_compiler_pic_CXX='-KPIC'
19713 lt_prog_compiler_static_CXX='-Bstatic'
19714 ;;
19715 esac
John Criswell47fdd832003-07-14 16:52:07 +000019716 ;;
19717 vxworks*)
19718 ;;
19719 *)
19720 lt_prog_compiler_can_build_shared_CXX=no
19721 ;;
19722 esac
19723 fi
19724
Reid Spencera773bd52006-08-04 18:18:08 +000019725{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19726echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019727
19728#
19729# Check to make sure the PIC flag actually works.
19730#
19731if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019732
Reid Spencera773bd52006-08-04 18:18:08 +000019733{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19734echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019735if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737else
19738 lt_prog_compiler_pic_works_CXX=no
19739 ac_outfile=conftest.$ac_objext
19740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19742 # Insert the option either (1) after the last *FLAGS variable, or
19743 # (2) before a word containing "conftest.", or (3) at the end.
19744 # Note that $ac_compile itself does not contain backslashes and begins
19745 # with a dollar sign (not a hyphen), so the echo should work correctly.
19746 # The option is referenced via a variable to avoid confusing sed.
19747 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19750 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000019751 (eval echo "\"\$as_me:19751: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019752 (eval "$lt_compile" 2>conftest.err)
19753 ac_status=$?
19754 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000019755 echo "$as_me:19755: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019756 if (exit $ac_status) && test -s "$ac_outfile"; then
19757 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019758 # So say no if there are warnings other than the usual output.
19759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019762 lt_prog_compiler_pic_works_CXX=yes
19763 fi
19764 fi
19765 $rm conftest*
19766
19767fi
Reid Spencera773bd52006-08-04 18:18:08 +000019768{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19769echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019770
19771if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19772 case $lt_prog_compiler_pic_CXX in
19773 "" | " "*) ;;
19774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19775 esac
19776else
19777 lt_prog_compiler_pic_CXX=
19778 lt_prog_compiler_can_build_shared_CXX=no
19779fi
19780
19781fi
Reid Spencera773bd52006-08-04 18:18:08 +000019782case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019783 # For platforms which do not support PIC, -DPIC is meaningless:
19784 *djgpp*)
19785 lt_prog_compiler_pic_CXX=
19786 ;;
19787 *)
19788 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19789 ;;
19790esac
19791
Reid Spencera773bd52006-08-04 18:18:08 +000019792#
19793# Check to make sure the static flag actually works.
19794#
19795wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19796{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19797echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19798if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801 lt_prog_compiler_static_works_CXX=no
19802 save_LDFLAGS="$LDFLAGS"
19803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19804 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19806 # The linker can only warn and ignore the option if not recognized
19807 # So say no if there are warnings
19808 if test -s conftest.err; then
19809 # Append any errors to the config.log.
19810 cat conftest.err 1>&5
19811 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19813 if diff conftest.exp conftest.er2 >/dev/null; then
19814 lt_prog_compiler_static_works_CXX=yes
19815 fi
19816 else
19817 lt_prog_compiler_static_works_CXX=yes
19818 fi
19819 fi
19820 $rm conftest*
19821 LDFLAGS="$save_LDFLAGS"
19822
19823fi
19824{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19825echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19826
19827if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19828 :
19829else
19830 lt_prog_compiler_static_CXX=
19831fi
19832
19833
19834{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19835echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019836if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839 lt_cv_prog_compiler_c_o_CXX=no
19840 $rm -r conftest 2>/dev/null
19841 mkdir conftest
19842 cd conftest
19843 mkdir out
19844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19845
John Criswell47fdd832003-07-14 16:52:07 +000019846 lt_compiler_flag="-o out/conftest2.$ac_objext"
19847 # Insert the option either (1) after the last *FLAGS variable, or
19848 # (2) before a word containing "conftest.", or (3) at the end.
19849 # Note that $ac_compile itself does not contain backslashes and begins
19850 # with a dollar sign (not a hyphen), so the echo should work correctly.
19851 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19854 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000019855 (eval echo "\"\$as_me:19855: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019856 (eval "$lt_compile" 2>out/conftest.err)
19857 ac_status=$?
19858 cat out/conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000019859 echo "$as_me:19859: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19861 then
19862 # The compiler can only warn and ignore the option if not recognized
19863 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019864 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019867 lt_cv_prog_compiler_c_o_CXX=yes
19868 fi
19869 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019870 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019871 $rm conftest*
19872 # SGI C++ compiler will create directory out/ii_files/ for
19873 # template instantiation
19874 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19875 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019876 cd ..
19877 rmdir conftest
19878 $rm conftest*
19879
19880fi
Reid Spencera773bd52006-08-04 18:18:08 +000019881{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19882echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019883
19884
19885hard_links="nottested"
19886if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19887 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019888 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19889echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019890 hard_links=yes
19891 $rm conftest*
19892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19893 touch conftest.a
19894 ln conftest.a conftest.b 2>&5 || hard_links=no
19895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019896 { echo "$as_me:$LINENO: result: $hard_links" >&5
19897echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019898 if test "$hard_links" = no; then
19899 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19900echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19901 need_locks=warn
19902 fi
19903else
19904 need_locks=no
19905fi
19906
Reid Spencera773bd52006-08-04 18:18:08 +000019907{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19908echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019909
19910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19911 case $host_os in
19912 aix4* | aix5*)
19913 # If we're using GNU nm, then we don't want the "-C" option.
19914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19915 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19916 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'
19917 else
19918 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'
19919 fi
19920 ;;
19921 pw32*)
19922 export_symbols_cmds_CXX="$ltdll_cmds"
19923 ;;
19924 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019925 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 +000019926 ;;
19927 *)
19928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19929 ;;
19930 esac
19931
Reid Spencera773bd52006-08-04 18:18:08 +000019932{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19933echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019934test "$ld_shlibs_CXX" = no && can_build_shared=no
19935
John Criswell47fdd832003-07-14 16:52:07 +000019936#
19937# Do we need to explicitly link libc?
19938#
19939case "x$archive_cmds_need_lc_CXX" in
19940x|xyes)
19941 # Assume -lc should be added
19942 archive_cmds_need_lc_CXX=yes
19943
19944 if test "$enable_shared" = yes && test "$GCC" = yes; then
19945 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019946 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019947 # FIXME: we may have to deal with multi-command sequences.
19948 ;;
19949 '$CC '*)
19950 # Test whether the compiler implicitly links with -lc since on some
19951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19952 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019953 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19954echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019955 $rm conftest*
19956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19957
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } 2>conftest.err; then
19963 soname=conftest
19964 lib=conftest
19965 libobjs=conftest.$ac_objext
19966 deplibs=
19967 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019968 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019969 compiler_flags=-v
19970 linker_flags=-v
19971 verstring=
19972 output_objdir=.
19973 libname=conftest
19974 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19975 allow_undefined_flag_CXX=
19976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19977 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }
19981 then
19982 archive_cmds_need_lc_CXX=no
19983 else
19984 archive_cmds_need_lc_CXX=yes
19985 fi
19986 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19987 else
19988 cat conftest.err 1>&5
19989 fi
19990 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019991 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19992echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019993 ;;
19994 esac
19995 fi
19996 ;;
19997esac
19998
Reid Spencera773bd52006-08-04 18:18:08 +000019999{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20000echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020001library_names_spec=
20002libname_spec='lib$name'
20003soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020004shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020005postinstall_cmds=
20006postuninstall_cmds=
20007finish_cmds=
20008finish_eval=
20009shlibpath_var=
20010shlibpath_overrides_runpath=unknown
20011version_type=none
20012dynamic_linker="$host_os ld.so"
20013sys_lib_dlsearch_path_spec="/lib /usr/lib"
20014if test "$GCC" = yes; then
20015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20016 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20017 # if the path contains ";" then we assume it to be the separator
20018 # otherwise default to the standard path separator (i.e. ":") - it is
20019 # assumed that no part of a normal pathname contains ";" but that should
20020 # okay in the real world where ";" in dirpaths is itself problematic.
20021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022 else
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20024 fi
20025else
20026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20027fi
20028need_lib_prefix=unknown
20029hardcode_into_libs=no
20030
20031# when you set need_version to no, make sure it does not cause -set_version
20032# flags to be left without arguments
20033need_version=unknown
20034
20035case $host_os in
20036aix3*)
20037 version_type=linux
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20039 shlibpath_var=LIBPATH
20040
20041 # AIX 3 has no versioning support, so we append a major version to the name.
20042 soname_spec='${libname}${release}${shared_ext}$major'
20043 ;;
20044
20045aix4* | aix5*)
20046 version_type=linux
20047 need_lib_prefix=no
20048 need_version=no
20049 hardcode_into_libs=yes
20050 if test "$host_cpu" = ia64; then
20051 # AIX 5 supports IA64
20052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20053 shlibpath_var=LD_LIBRARY_PATH
20054 else
20055 # With GCC up to 2.95.x, collect2 would create an import file
20056 # for dependence libraries. The import file would start with
20057 # the line `#! .'. This would cause the generated library to
20058 # depend on `.', always an invalid library. This was fixed in
20059 # development snapshots of GCC prior to 3.0.
20060 case $host_os in
20061 aix4 | aix4.[01] | aix4.[01].*)
20062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20063 echo ' yes '
20064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20065 :
20066 else
20067 can_build_shared=no
20068 fi
20069 ;;
20070 esac
20071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20072 # soname into executable. Probably we can add versioning support to
20073 # collect2, so additional links can be useful in future.
20074 if test "$aix_use_runtimelinking" = yes; then
20075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20076 # instead of lib<name>.a to let people know that these are not
20077 # typical AIX shared libraries.
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20079 else
20080 # We preserve .a as extension for shared libraries through AIX4.2
20081 # and later when we are not doing run time linking.
20082 library_names_spec='${libname}${release}.a $libname.a'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 fi
20085 shlibpath_var=LIBPATH
20086 fi
20087 ;;
20088
20089amigaos*)
20090 library_names_spec='$libname.ixlibrary $libname.a'
20091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020092 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 +000020093 ;;
20094
20095beos*)
20096 library_names_spec='${libname}${shared_ext}'
20097 dynamic_linker="$host_os ld.so"
20098 shlibpath_var=LIBRARY_PATH
20099 ;;
20100
Reid Spencer2706f8c2004-09-19 23:53:36 +000020101bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020102 version_type=linux
20103 need_version=no
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20105 soname_spec='${libname}${release}${shared_ext}$major'
20106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20107 shlibpath_var=LD_LIBRARY_PATH
20108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20110 # the default ld.so.conf also contains /usr/contrib/lib and
20111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20112 # libtool to hard-code these into programs
20113 ;;
20114
20115cygwin* | mingw* | pw32*)
20116 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020117 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020118 need_version=no
20119 need_lib_prefix=no
20120
20121 case $GCC,$host_os in
20122 yes,cygwin* | yes,mingw* | yes,pw32*)
20123 library_names_spec='$libname.dll.a'
20124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020125 postinstall_cmds='base_file=`basename \${file}`~
20126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20127 dldir=$destdir/`dirname \$dlpath`~
20128 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020129 $install_prog $dir/$dlname \$dldir/$dlname~
20130 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20132 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020133 $rm \$dlpath'
20134 shlibpath_overrides_runpath=yes
20135
20136 case $host_os in
20137 cygwin*)
20138 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20139 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 +000020140 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020141 ;;
20142 mingw*)
20143 # MinGW DLLs use traditional 'lib' prefix
20144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20146 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20147 # It is most probably a Windows format PATH printed by
20148 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20149 # path with ; separators, and with drive letters. We can handle the
20150 # drive letters (cygwin fileutils understands them), so leave them,
20151 # especially as we might pass files found there to a mingw objdump,
20152 # which wouldn't understand a cygwinified path. Ahh.
20153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20154 else
20155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20156 fi
20157 ;;
20158 pw32*)
20159 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020160 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 +000020161 ;;
20162 esac
20163 ;;
20164
20165 *)
20166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20167 ;;
20168 esac
20169 dynamic_linker='Win32 ld.exe'
20170 # FIXME: first we should search . and the directory the executable is in
20171 shlibpath_var=PATH
20172 ;;
20173
20174darwin* | rhapsody*)
20175 dynamic_linker="$host_os dyld"
20176 version_type=darwin
20177 need_lib_prefix=no
20178 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020180 soname_spec='${libname}${release}${major}$shared_ext'
20181 shlibpath_overrides_runpath=yes
20182 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020183 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020184 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020185 if test "$GCC" = yes; then
20186 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"`
20187 else
20188 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020189 fi
20190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20191 ;;
20192
20193dgux*)
20194 version_type=linux
20195 need_lib_prefix=no
20196 need_version=no
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 ;;
20201
20202freebsd1*)
20203 dynamic_linker=no
20204 ;;
20205
Reid Spencer2706f8c2004-09-19 23:53:36 +000020206kfreebsd*-gnu)
20207 version_type=linux
20208 need_lib_prefix=no
20209 need_version=no
20210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20211 soname_spec='${libname}${release}${shared_ext}$major'
20212 shlibpath_var=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath=no
20214 hardcode_into_libs=yes
20215 dynamic_linker='GNU ld.so'
20216 ;;
20217
Reid Spencera773bd52006-08-04 18:18:08 +000020218freebsd* | dragonfly*)
20219 # DragonFly does not have aout. When/if they implement a new
20220 # versioning mechanism, adjust this.
20221 if test -x /usr/bin/objformat; then
20222 objformat=`/usr/bin/objformat`
20223 else
20224 case $host_os in
20225 freebsd[123]*) objformat=aout ;;
20226 *) objformat=elf ;;
20227 esac
20228 fi
John Criswell47fdd832003-07-14 16:52:07 +000020229 version_type=freebsd-$objformat
20230 case $version_type in
20231 freebsd-elf*)
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20233 need_version=no
20234 need_lib_prefix=no
20235 ;;
20236 freebsd-*)
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20238 need_version=yes
20239 ;;
20240 esac
20241 shlibpath_var=LD_LIBRARY_PATH
20242 case $host_os in
20243 freebsd2*)
20244 shlibpath_overrides_runpath=yes
20245 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020246 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020247 shlibpath_overrides_runpath=yes
20248 hardcode_into_libs=yes
20249 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020252 shlibpath_overrides_runpath=no
20253 hardcode_into_libs=yes
20254 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020255 freebsd*) # from 4.6 on
20256 shlibpath_overrides_runpath=yes
20257 hardcode_into_libs=yes
20258 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020259 esac
20260 ;;
20261
20262gnu*)
20263 version_type=linux
20264 need_lib_prefix=no
20265 need_version=no
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 hardcode_into_libs=yes
20270 ;;
20271
20272hpux9* | hpux10* | hpux11*)
20273 # Give a soname corresponding to the major version so that dld.sl refuses to
20274 # link against other versions.
20275 version_type=sunos
20276 need_lib_prefix=no
20277 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020278 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020279 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020280 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020281 hardcode_into_libs=yes
20282 dynamic_linker="$host_os dld.so"
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 if test "X$HPUX_IA64_MODE" = X32; then
20288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20289 else
20290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20291 fi
20292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20293 ;;
20294 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20304 ;;
20305 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020306 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020307 dynamic_linker="$host_os dld.sl"
20308 shlibpath_var=SHLIB_PATH
20309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 ;;
20313 esac
20314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315 postinstall_cmds='chmod 555 $lib'
20316 ;;
20317
Reid Spencera773bd52006-08-04 18:18:08 +000020318interix3*)
20319 version_type=linux
20320 need_lib_prefix=no
20321 need_version=no
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=no
20327 hardcode_into_libs=yes
20328 ;;
20329
John Criswell47fdd832003-07-14 16:52:07 +000020330irix5* | irix6* | nonstopux*)
20331 case $host_os in
20332 nonstopux*) version_type=nonstopux ;;
20333 *)
20334 if test "$lt_cv_prog_gnu_ld" = yes; then
20335 version_type=linux
20336 else
20337 version_type=irix
20338 fi ;;
20339 esac
20340 need_lib_prefix=no
20341 need_version=no
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20344 case $host_os in
20345 irix5* | nonstopux*)
20346 libsuff= shlibsuff=
20347 ;;
20348 *)
20349 case $LD in # libtool.m4 will add one of these switches to LD
20350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20351 libsuff= shlibsuff= libmagic=32-bit;;
20352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20353 libsuff=32 shlibsuff=N32 libmagic=N32;;
20354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20356 *) libsuff= shlibsuff= libmagic=never-match;;
20357 esac
20358 ;;
20359 esac
20360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20361 shlibpath_overrides_runpath=no
20362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20364 hardcode_into_libs=yes
20365 ;;
20366
20367# No shared lib support for Linux oldld, aout, or coff.
20368linux*oldld* | linux*aout* | linux*coff*)
20369 dynamic_linker=no
20370 ;;
20371
20372# This must be Linux ELF.
20373linux*)
20374 version_type=linux
20375 need_lib_prefix=no
20376 need_version=no
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 shlibpath_overrides_runpath=no
20382 # This implies no fast_install, which is unacceptable.
20383 # Some rework will be needed to allow for fast_install
20384 # before this can be enabled.
20385 hardcode_into_libs=yes
20386
Reid Spencer2706f8c2004-09-19 23:53:36 +000020387 # Append ld.so.conf contents to the search path
20388 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020389 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 +000020390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20391 fi
20392
John Criswell47fdd832003-07-14 16:52:07 +000020393 # We used to test for /lib/ld.so.1 and disable shared libraries on
20394 # powerpc, because MkLinux only supported shared libraries with the
20395 # GNU dynamic linker. Since this was broken with cross compilers,
20396 # most powerpc-linux boxes support dynamic linking these days and
20397 # people can always --disable-shared, the test was removed, and we
20398 # assume the GNU/Linux dynamic linker is in use.
20399 dynamic_linker='GNU/Linux ld.so'
20400 ;;
20401
Reid Spencer2706f8c2004-09-19 23:53:36 +000020402knetbsd*-gnu)
20403 version_type=linux
20404 need_lib_prefix=no
20405 need_version=no
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=no
20410 hardcode_into_libs=yes
20411 dynamic_linker='GNU ld.so'
20412 ;;
20413
John Criswell47fdd832003-07-14 16:52:07 +000020414netbsd*)
20415 version_type=sunos
20416 need_lib_prefix=no
20417 need_version=no
20418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20421 dynamic_linker='NetBSD (a.out) ld.so'
20422 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020424 soname_spec='${libname}${release}${shared_ext}$major'
20425 dynamic_linker='NetBSD ld.elf_so'
20426 fi
20427 shlibpath_var=LD_LIBRARY_PATH
20428 shlibpath_overrides_runpath=yes
20429 hardcode_into_libs=yes
20430 ;;
20431
20432newsos6)
20433 version_type=linux
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 shlibpath_overrides_runpath=yes
20437 ;;
20438
Reid Spencer2706f8c2004-09-19 23:53:36 +000020439nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020440 version_type=linux
20441 need_lib_prefix=no
20442 need_version=no
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=yes
20447 ;;
20448
20449openbsd*)
20450 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020451 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020452 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20454 case $host_os in
20455 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20456 *) need_version=no ;;
20457 esac
John Criswell47fdd832003-07-14 16:52:07 +000020458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20462 case $host_os in
20463 openbsd2.[89] | openbsd2.[89].*)
20464 shlibpath_overrides_runpath=no
20465 ;;
20466 *)
20467 shlibpath_overrides_runpath=yes
20468 ;;
20469 esac
20470 else
20471 shlibpath_overrides_runpath=yes
20472 fi
20473 ;;
20474
20475os2*)
20476 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020477 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020478 need_lib_prefix=no
20479 library_names_spec='$libname${shared_ext} $libname.a'
20480 dynamic_linker='OS/2 ld.exe'
20481 shlibpath_var=LIBPATH
20482 ;;
20483
20484osf3* | osf4* | osf5*)
20485 version_type=osf
20486 need_lib_prefix=no
20487 need_version=no
20488 soname_spec='${libname}${release}${shared_ext}$major'
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20493 ;;
20494
John Criswell47fdd832003-07-14 16:52:07 +000020495solaris*)
20496 version_type=linux
20497 need_lib_prefix=no
20498 need_version=no
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 shlibpath_overrides_runpath=yes
20503 hardcode_into_libs=yes
20504 # ldd complains unless libraries are executable
20505 postinstall_cmds='chmod +x $lib'
20506 ;;
20507
20508sunos4*)
20509 version_type=sunos
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=yes
20514 if test "$with_gnu_ld" = yes; then
20515 need_lib_prefix=no
20516 fi
20517 need_version=yes
20518 ;;
20519
Reid Spencera773bd52006-08-04 18:18:08 +000020520sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020521 version_type=linux
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 case $host_vendor in
20526 sni)
20527 shlibpath_overrides_runpath=no
20528 need_lib_prefix=no
20529 export_dynamic_flag_spec='${wl}-Blargedynsym'
20530 runpath_var=LD_RUN_PATH
20531 ;;
20532 siemens)
20533 need_lib_prefix=no
20534 ;;
20535 motorola)
20536 need_lib_prefix=no
20537 need_version=no
20538 shlibpath_overrides_runpath=no
20539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20540 ;;
20541 esac
20542 ;;
20543
20544sysv4*MP*)
20545 if test -d /usr/nec ;then
20546 version_type=linux
20547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20548 soname_spec='$libname${shared_ext}.$major'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 fi
20551 ;;
20552
Reid Spencera773bd52006-08-04 18:18:08 +000020553sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20554 version_type=freebsd-elf
20555 need_lib_prefix=no
20556 need_version=no
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20558 soname_spec='${libname}${release}${shared_ext}$major'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 hardcode_into_libs=yes
20561 if test "$with_gnu_ld" = yes; then
20562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20563 shlibpath_overrides_runpath=no
20564 else
20565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20566 shlibpath_overrides_runpath=yes
20567 case $host_os in
20568 sco3.2v5*)
20569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20570 ;;
20571 esac
20572 fi
20573 sys_lib_dlsearch_path_spec='/usr/lib'
20574 ;;
20575
John Criswell47fdd832003-07-14 16:52:07 +000020576uts4*)
20577 version_type=linux
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 soname_spec='${libname}${release}${shared_ext}$major'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 ;;
20582
20583*)
20584 dynamic_linker=no
20585 ;;
20586esac
Reid Spencera773bd52006-08-04 18:18:08 +000020587{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20588echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020589test "$dynamic_linker" = no && can_build_shared=no
20590
Reid Spencera773bd52006-08-04 18:18:08 +000020591variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20592if test "$GCC" = yes; then
20593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20594fi
20595
20596{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20597echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020598hardcode_action_CXX=
20599if test -n "$hardcode_libdir_flag_spec_CXX" || \
20600 test -n "$runpath_var_CXX" || \
20601 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20602
20603 # We can hardcode non-existant directories.
20604 if test "$hardcode_direct_CXX" != no &&
20605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20606 # have to relink, otherwise we might link with an installed library
20607 # when we should be linking with a yet-to-be-installed one
20608 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20609 test "$hardcode_minus_L_CXX" != no; then
20610 # Linking always hardcodes the temporary library directory.
20611 hardcode_action_CXX=relink
20612 else
20613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20614 hardcode_action_CXX=immediate
20615 fi
20616else
20617 # We cannot hardcode anything, or else we can only hardcode existing
20618 # directories.
20619 hardcode_action_CXX=unsupported
20620fi
Reid Spencera773bd52006-08-04 18:18:08 +000020621{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20622echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020623
20624if test "$hardcode_action_CXX" = relink; then
20625 # Fast installation is not supported
20626 enable_fast_install=no
20627elif test "$shlibpath_overrides_runpath" = yes ||
20628 test "$enable_shared" = no; then
20629 # Fast installation is not necessary
20630 enable_fast_install=needless
20631fi
20632
John Criswell47fdd832003-07-14 16:52:07 +000020633
20634# The else clause should only fire when bootstrapping the
20635# libtool distribution, otherwise you forgot to ship ltmain.sh
20636# with your package, and you will get complaints that there are
20637# no rules to generate ltmain.sh.
20638if test -f "$ltmain"; then
20639 # See if we are running on zsh, and set the options which allow our commands through
20640 # without removal of \ escapes.
20641 if test -n "${ZSH_VERSION+set}" ; then
20642 setopt NO_GLOB_SUBST
20643 fi
20644 # Now quote all the things that may contain metacharacters while being
20645 # careful not to overquote the AC_SUBSTed values. We take copies of the
20646 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020647 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 +000020648 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20651 deplibs_check_method reload_flag reload_cmds need_locks \
20652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20653 lt_cv_sys_global_symbol_to_c_name_address \
20654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20655 old_postinstall_cmds old_postuninstall_cmds \
20656 compiler_CXX \
20657 CC_CXX \
20658 LD_CXX \
20659 lt_prog_compiler_wl_CXX \
20660 lt_prog_compiler_pic_CXX \
20661 lt_prog_compiler_static_CXX \
20662 lt_prog_compiler_no_builtin_flag_CXX \
20663 export_dynamic_flag_spec_CXX \
20664 thread_safe_flag_spec_CXX \
20665 whole_archive_flag_spec_CXX \
20666 enable_shared_with_static_runtimes_CXX \
20667 old_archive_cmds_CXX \
20668 old_archive_from_new_cmds_CXX \
20669 predep_objects_CXX \
20670 postdep_objects_CXX \
20671 predeps_CXX \
20672 postdeps_CXX \
20673 compiler_lib_search_path_CXX \
20674 archive_cmds_CXX \
20675 archive_expsym_cmds_CXX \
20676 postinstall_cmds_CXX \
20677 postuninstall_cmds_CXX \
20678 old_archive_from_expsyms_cmds_CXX \
20679 allow_undefined_flag_CXX \
20680 no_undefined_flag_CXX \
20681 export_symbols_cmds_CXX \
20682 hardcode_libdir_flag_spec_CXX \
20683 hardcode_libdir_flag_spec_ld_CXX \
20684 hardcode_libdir_separator_CXX \
20685 hardcode_automatic_CXX \
20686 module_cmds_CXX \
20687 module_expsym_cmds_CXX \
20688 lt_cv_prog_compiler_c_o_CXX \
20689 exclude_expsyms_CXX \
20690 include_expsyms_CXX; do
20691
20692 case $var in
20693 old_archive_cmds_CXX | \
20694 old_archive_from_new_cmds_CXX | \
20695 archive_cmds_CXX | \
20696 archive_expsym_cmds_CXX | \
20697 module_cmds_CXX | \
20698 module_expsym_cmds_CXX | \
20699 old_archive_from_expsyms_cmds_CXX | \
20700 export_symbols_cmds_CXX | \
20701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20702 postinstall_cmds | postuninstall_cmds | \
20703 old_postinstall_cmds | old_postuninstall_cmds | \
20704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20705 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 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 +000020707 ;;
20708 *)
20709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20710 ;;
20711 esac
20712 done
20713
20714 case $lt_echo in
20715 *'\$0 --fallback-echo"')
20716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20717 ;;
20718 esac
20719
20720cfgfile="$ofile"
20721
20722 cat <<__EOF__ >> "$cfgfile"
20723# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20724
20725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20726
20727# Shell to use when invoking shell scripts.
20728SHELL=$lt_SHELL
20729
20730# Whether or not to build shared libraries.
20731build_libtool_libs=$enable_shared
20732
20733# Whether or not to build static libraries.
20734build_old_libs=$enable_static
20735
20736# Whether or not to add -lc for building shared libraries.
20737build_libtool_need_lc=$archive_cmds_need_lc_CXX
20738
20739# Whether or not to disallow shared libs when runtime libs are static
20740allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20741
20742# Whether or not to optimize for fast installation.
20743fast_install=$enable_fast_install
20744
20745# The host system.
20746host_alias=$host_alias
20747host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020748host_os=$host_os
20749
20750# The build system.
20751build_alias=$build_alias
20752build=$build
20753build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020754
20755# An echo program that does not interpret backslashes.
20756echo=$lt_echo
20757
20758# The archiver.
20759AR=$lt_AR
20760AR_FLAGS=$lt_AR_FLAGS
20761
20762# A C compiler.
20763LTCC=$lt_LTCC
20764
Reid Spencera773bd52006-08-04 18:18:08 +000020765# LTCC compiler flags.
20766LTCFLAGS=$lt_LTCFLAGS
20767
John Criswell47fdd832003-07-14 16:52:07 +000020768# A language-specific compiler.
20769CC=$lt_compiler_CXX
20770
20771# Is the compiler the GNU C compiler?
20772with_gcc=$GCC_CXX
20773
20774# An ERE matcher.
20775EGREP=$lt_EGREP
20776
20777# The linker used to build libraries.
20778LD=$lt_LD_CXX
20779
20780# Whether we need hard or soft links.
20781LN_S=$lt_LN_S
20782
20783# A BSD-compatible nm program.
20784NM=$lt_NM
20785
20786# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020787STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020788
20789# Used to examine libraries when file_magic_cmd begins "file"
20790MAGIC_CMD=$MAGIC_CMD
20791
20792# Used on cygwin: DLL creation program.
20793DLLTOOL="$DLLTOOL"
20794
20795# Used on cygwin: object dumper.
20796OBJDUMP="$OBJDUMP"
20797
20798# Used on cygwin: assembler.
20799AS="$AS"
20800
20801# The name of the directory that contains temporary libtool files.
20802objdir=$objdir
20803
20804# How to create reloadable object files.
20805reload_flag=$lt_reload_flag
20806reload_cmds=$lt_reload_cmds
20807
20808# How to pass a linker flag through the compiler.
20809wl=$lt_lt_prog_compiler_wl_CXX
20810
20811# Object file suffix (normally "o").
20812objext="$ac_objext"
20813
20814# Old archive suffix (normally "a").
20815libext="$libext"
20816
20817# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020818shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020819
20820# Executable file suffix (normally "").
20821exeext="$exeext"
20822
20823# Additional compiler flags for building library objects.
20824pic_flag=$lt_lt_prog_compiler_pic_CXX
20825pic_mode=$pic_mode
20826
20827# What is the maximum length of a command?
20828max_cmd_len=$lt_cv_sys_max_cmd_len
20829
20830# Does compiler simultaneously support -c and -o options?
20831compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20832
Reid Spencera773bd52006-08-04 18:18:08 +000020833# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020834need_locks=$lt_need_locks
20835
20836# Do we need the lib prefix for modules?
20837need_lib_prefix=$need_lib_prefix
20838
20839# Do we need a version for libraries?
20840need_version=$need_version
20841
20842# Whether dlopen is supported.
20843dlopen_support=$enable_dlopen
20844
20845# Whether dlopen of programs is supported.
20846dlopen_self=$enable_dlopen_self
20847
20848# Whether dlopen of statically linked programs is supported.
20849dlopen_self_static=$enable_dlopen_self_static
20850
20851# Compiler flag to prevent dynamic linking.
20852link_static_flag=$lt_lt_prog_compiler_static_CXX
20853
20854# Compiler flag to turn off builtin functions.
20855no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20856
20857# Compiler flag to allow reflexive dlopens.
20858export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20859
20860# Compiler flag to generate shared objects directly from archives.
20861whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20862
20863# Compiler flag to generate thread-safe objects.
20864thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20865
20866# Library versioning type.
20867version_type=$version_type
20868
20869# Format of library name prefix.
20870libname_spec=$lt_libname_spec
20871
20872# List of archive names. First name is the real one, the rest are links.
20873# The last name is the one that the linker finds with -lNAME.
20874library_names_spec=$lt_library_names_spec
20875
20876# The coded name of the library, if different from the real name.
20877soname_spec=$lt_soname_spec
20878
20879# Commands used to build and install an old-style archive.
20880RANLIB=$lt_RANLIB
20881old_archive_cmds=$lt_old_archive_cmds_CXX
20882old_postinstall_cmds=$lt_old_postinstall_cmds
20883old_postuninstall_cmds=$lt_old_postuninstall_cmds
20884
20885# Create an old-style archive from a shared archive.
20886old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20887
20888# Create a temporary old-style archive to link instead of a shared archive.
20889old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20890
20891# Commands used to build and install a shared archive.
20892archive_cmds=$lt_archive_cmds_CXX
20893archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20894postinstall_cmds=$lt_postinstall_cmds
20895postuninstall_cmds=$lt_postuninstall_cmds
20896
20897# Commands used to build a loadable module (assumed same as above if empty)
20898module_cmds=$lt_module_cmds_CXX
20899module_expsym_cmds=$lt_module_expsym_cmds_CXX
20900
20901# Commands to strip libraries.
20902old_striplib=$lt_old_striplib
20903striplib=$lt_striplib
20904
20905# Dependencies to place before the objects being linked to create a
20906# shared library.
20907predep_objects=$lt_predep_objects_CXX
20908
20909# Dependencies to place after the objects being linked to create a
20910# shared library.
20911postdep_objects=$lt_postdep_objects_CXX
20912
20913# Dependencies to place before the objects being linked to create a
20914# shared library.
20915predeps=$lt_predeps_CXX
20916
20917# Dependencies to place after the objects being linked to create a
20918# shared library.
20919postdeps=$lt_postdeps_CXX
20920
20921# The library search path used internally by the compiler when linking
20922# a shared library.
20923compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20924
20925# Method to check whether dependent libraries are shared objects.
20926deplibs_check_method=$lt_deplibs_check_method
20927
20928# Command to use when deplibs_check_method == file_magic.
20929file_magic_cmd=$lt_file_magic_cmd
20930
20931# Flag that allows shared libraries with undefined symbols to be built.
20932allow_undefined_flag=$lt_allow_undefined_flag_CXX
20933
20934# Flag that forces no undefined symbols.
20935no_undefined_flag=$lt_no_undefined_flag_CXX
20936
20937# Commands used to finish a libtool library installation in a directory.
20938finish_cmds=$lt_finish_cmds
20939
20940# Same as above, but a single script fragment to be evaled but not shown.
20941finish_eval=$lt_finish_eval
20942
20943# Take the output of nm and produce a listing of raw symbols and C names.
20944global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20945
20946# Transform the output of nm in a proper C declaration
20947global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20948
20949# Transform the output of nm in a C name address pair
20950global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20951
20952# This is the shared library runtime path variable.
20953runpath_var=$runpath_var
20954
20955# This is the shared library path variable.
20956shlibpath_var=$shlibpath_var
20957
20958# Is shlibpath searched before the hard-coded library search path?
20959shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20960
20961# How to hardcode a shared library path into an executable.
20962hardcode_action=$hardcode_action_CXX
20963
20964# Whether we should hardcode library paths into libraries.
20965hardcode_into_libs=$hardcode_into_libs
20966
20967# Flag to hardcode \$libdir into a binary during linking.
20968# This must work even if \$libdir does not exist.
20969hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20970
20971# If ld is used when linking, flag to hardcode \$libdir into
20972# a binary during linking. This must work even if \$libdir does
20973# not exist.
20974hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20975
20976# Whether we need a single -rpath flag with a separated argument.
20977hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20978
20979# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20980# resulting binary.
20981hardcode_direct=$hardcode_direct_CXX
20982
20983# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20984# resulting binary.
20985hardcode_minus_L=$hardcode_minus_L_CXX
20986
20987# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20988# the resulting binary.
20989hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20990
20991# Set to yes if building a shared library automatically hardcodes DIR into the library
20992# and all subsequent libraries and executables linked against it.
20993hardcode_automatic=$hardcode_automatic_CXX
20994
20995# Variables whose values should be saved in libtool wrapper scripts and
20996# restored at relink time.
20997variables_saved_for_relink="$variables_saved_for_relink"
20998
20999# Whether libtool must link a program against all its dependency libraries.
21000link_all_deplibs=$link_all_deplibs_CXX
21001
21002# Compile-time system search path for libraries
21003sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21004
21005# Run-time system search path for libraries
21006sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21007
21008# Fix the shell variable \$srcfile for the compiler.
21009fix_srcfile_path="$fix_srcfile_path_CXX"
21010
21011# Set to yes if exported symbols are required.
21012always_export_symbols=$always_export_symbols_CXX
21013
21014# The commands to list exported symbols.
21015export_symbols_cmds=$lt_export_symbols_cmds_CXX
21016
21017# The commands to extract the exported symbol list from a shared archive.
21018extract_expsyms_cmds=$lt_extract_expsyms_cmds
21019
21020# Symbols that should not be listed in the preloaded symbols.
21021exclude_expsyms=$lt_exclude_expsyms_CXX
21022
21023# Symbols that must always be exported.
21024include_expsyms=$lt_include_expsyms_CXX
21025
21026# ### END LIBTOOL TAG CONFIG: $tagname
21027
21028__EOF__
21029
21030
21031else
21032 # If there is no Makefile yet, we rely on a make rule to execute
21033 # `config.status --recheck' to rerun these tests and create the
21034 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21036 if test -f "$ltmain_in"; then
21037 test -f Makefile && make "$ltmain"
21038 fi
John Criswell47fdd832003-07-14 16:52:07 +000021039fi
21040
21041
21042ac_ext=c
21043ac_cpp='$CPP $CPPFLAGS'
21044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047
21048CC=$lt_save_CC
21049LDCXX=$LD
21050LD=$lt_save_LD
21051GCC=$lt_save_GCC
21052with_gnu_ldcxx=$with_gnu_ld
21053with_gnu_ld=$lt_save_with_gnu_ld
21054lt_cv_path_LDCXX=$lt_cv_path_LD
21055lt_cv_path_LD=$lt_save_path_LD
21056lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21057lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21058
21059 else
21060 tagname=""
21061 fi
21062 ;;
21063
21064 F77)
21065 if test -n "$F77" && test "X$F77" != "Xno"; then
21066
21067ac_ext=f
21068ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21069ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21071
21072
21073archive_cmds_need_lc_F77=no
21074allow_undefined_flag_F77=
21075always_export_symbols_F77=no
21076archive_expsym_cmds_F77=
21077export_dynamic_flag_spec_F77=
21078hardcode_direct_F77=no
21079hardcode_libdir_flag_spec_F77=
21080hardcode_libdir_flag_spec_ld_F77=
21081hardcode_libdir_separator_F77=
21082hardcode_minus_L_F77=no
21083hardcode_automatic_F77=no
21084module_cmds_F77=
21085module_expsym_cmds_F77=
21086link_all_deplibs_F77=unknown
21087old_archive_cmds_F77=$old_archive_cmds
21088no_undefined_flag_F77=
21089whole_archive_flag_spec_F77=
21090enable_shared_with_static_runtimes_F77=no
21091
21092# Source file extension for f77 test sources.
21093ac_ext=f
21094
21095# Object file extension for compiled f77 test sources.
21096objext=o
21097objext_F77=$objext
21098
21099# Code to be used in simple compile tests
21100lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21101
21102# Code to be used in simple link tests
21103lt_simple_link_test_code=" program t\n end\n"
21104
21105# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21106
21107# If no C compiler was specified, use CC.
21108LTCC=${LTCC-"$CC"}
21109
Reid Spencera773bd52006-08-04 18:18:08 +000021110# If no C compiler flags were specified, use CFLAGS.
21111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21112
John Criswell47fdd832003-07-14 16:52:07 +000021113# Allow CC to be a program name with arguments.
21114compiler=$CC
21115
21116
Reid Spencera773bd52006-08-04 18:18:08 +000021117# save warnings/boilerplate of simple test code
21118ac_outfile=conftest.$ac_objext
21119printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21120eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21121_lt_compiler_boilerplate=`cat conftest.err`
21122$rm conftest*
21123
21124ac_outfile=conftest.$ac_objext
21125printf "$lt_simple_link_test_code" >conftest.$ac_ext
21126eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21127_lt_linker_boilerplate=`cat conftest.err`
21128$rm conftest*
21129
21130
John Criswell47fdd832003-07-14 16:52:07 +000021131# Allow CC to be a program name with arguments.
21132lt_save_CC="$CC"
21133CC=${F77-"f77"}
21134compiler=$CC
21135compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021136for cc_temp in $compiler""; do
21137 case $cc_temp in
21138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21140 \-*) ;;
21141 *) break;;
21142 esac
21143done
21144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021145
John Criswell47fdd832003-07-14 16:52:07 +000021146
Reid Spencera773bd52006-08-04 18:18:08 +000021147{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21148echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21149{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21150echo "${ECHO_T}$can_build_shared" >&6; }
21151
21152{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21153echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021154test "$can_build_shared" = "no" && enable_shared=no
21155
21156# On AIX, shared libraries and static libraries use the same namespace, and
21157# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021158case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021159aix3*)
21160 test "$enable_shared" = yes && enable_static=no
21161 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021163 postinstall_cmds='$RANLIB $lib'
21164 fi
21165 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021166aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21168 test "$enable_shared" = yes && enable_static=no
21169 fi
John Criswell47fdd832003-07-14 16:52:07 +000021170 ;;
21171esac
Reid Spencera773bd52006-08-04 18:18:08 +000021172{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21173echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021174
Reid Spencera773bd52006-08-04 18:18:08 +000021175{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21176echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021177# Make sure either enable_shared or enable_static is yes.
21178test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021179{ echo "$as_me:$LINENO: result: $enable_static" >&5
21180echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021181
21182GCC_F77="$G77"
21183LD_F77="$LD"
21184
21185lt_prog_compiler_wl_F77=
21186lt_prog_compiler_pic_F77=
21187lt_prog_compiler_static_F77=
21188
Reid Spencera773bd52006-08-04 18:18:08 +000021189{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021191
21192 if test "$GCC" = yes; then
21193 lt_prog_compiler_wl_F77='-Wl,'
21194 lt_prog_compiler_static_F77='-static'
21195
21196 case $host_os in
21197 aix*)
21198 # All AIX code is PIC.
21199 if test "$host_cpu" = ia64; then
21200 # AIX 5 now supports IA64 processor
21201 lt_prog_compiler_static_F77='-Bstatic'
21202 fi
21203 ;;
21204
21205 amigaos*)
21206 # FIXME: we need at least 68020 code to build shared libraries, but
21207 # adding the `-m68020' flag to GCC prevents building anything better,
21208 # like `-m68040'.
21209 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21210 ;;
21211
21212 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21213 # PIC is the default for these OSes.
21214 ;;
21215
21216 mingw* | pw32* | os2*)
21217 # This hack is so that the source file can tell whether it is being
21218 # built for inclusion in a dll (and should export symbols for example).
21219 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21220 ;;
21221
21222 darwin* | rhapsody*)
21223 # PIC is the default on this platform
21224 # Common symbols not allowed in MH_DYLIB files
21225 lt_prog_compiler_pic_F77='-fno-common'
21226 ;;
21227
Reid Spencera773bd52006-08-04 18:18:08 +000021228 interix3*)
21229 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21230 # Instead, we relocate shared libraries at runtime.
21231 ;;
21232
John Criswell47fdd832003-07-14 16:52:07 +000021233 msdosdjgpp*)
21234 # Just because we use GCC doesn't mean we suddenly get shared libraries
21235 # on systems that don't support them.
21236 lt_prog_compiler_can_build_shared_F77=no
21237 enable_shared=no
21238 ;;
21239
21240 sysv4*MP*)
21241 if test -d /usr/nec; then
21242 lt_prog_compiler_pic_F77=-Kconform_pic
21243 fi
21244 ;;
21245
21246 hpux*)
21247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21248 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021249 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021250 hppa*64*|ia64*)
21251 # +Z the default
21252 ;;
21253 *)
21254 lt_prog_compiler_pic_F77='-fPIC'
21255 ;;
21256 esac
21257 ;;
21258
21259 *)
21260 lt_prog_compiler_pic_F77='-fPIC'
21261 ;;
21262 esac
21263 else
21264 # PORTME Check for flag to pass linker flags through the system compiler.
21265 case $host_os in
21266 aix*)
21267 lt_prog_compiler_wl_F77='-Wl,'
21268 if test "$host_cpu" = ia64; then
21269 # AIX 5 now supports IA64 processor
21270 lt_prog_compiler_static_F77='-Bstatic'
21271 else
21272 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21273 fi
21274 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021275 darwin*)
21276 # PIC is the default on this platform
21277 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021278 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021279 xlc*)
21280 lt_prog_compiler_pic_F77='-qnocommon'
21281 lt_prog_compiler_wl_F77='-Wl,'
21282 ;;
21283 esac
21284 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021285
21286 mingw* | pw32* | os2*)
21287 # This hack is so that the source file can tell whether it is being
21288 # built for inclusion in a dll (and should export symbols for example).
21289 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21290 ;;
21291
21292 hpux9* | hpux10* | hpux11*)
21293 lt_prog_compiler_wl_F77='-Wl,'
21294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21295 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021296 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021297 hppa*64*|ia64*)
21298 # +Z the default
21299 ;;
21300 *)
21301 lt_prog_compiler_pic_F77='+Z'
21302 ;;
21303 esac
21304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21305 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21306 ;;
21307
21308 irix5* | irix6* | nonstopux*)
21309 lt_prog_compiler_wl_F77='-Wl,'
21310 # PIC (with -KPIC) is the default.
21311 lt_prog_compiler_static_F77='-non_shared'
21312 ;;
21313
21314 newsos6)
21315 lt_prog_compiler_pic_F77='-KPIC'
21316 lt_prog_compiler_static_F77='-Bstatic'
21317 ;;
21318
21319 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021320 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021321 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021322 lt_prog_compiler_wl_F77='-Wl,'
21323 lt_prog_compiler_pic_F77='-KPIC'
21324 lt_prog_compiler_static_F77='-static'
21325 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021326 pgcc* | pgf77* | pgf90* | pgf95*)
21327 # Portland Group compilers (*not* the Pentium gcc compiler,
21328 # which looks to be a dead project)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 lt_prog_compiler_pic_F77='-fpic'
21331 lt_prog_compiler_static_F77='-Bstatic'
21332 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021333 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021334 lt_prog_compiler_wl_F77='-Wl,'
21335 # All Alpha code is PIC.
21336 lt_prog_compiler_static_F77='-non_shared'
21337 ;;
21338 esac
21339 ;;
21340
21341 osf3* | osf4* | osf5*)
21342 lt_prog_compiler_wl_F77='-Wl,'
21343 # All OSF/1 code is PIC.
21344 lt_prog_compiler_static_F77='-non_shared'
21345 ;;
21346
John Criswell47fdd832003-07-14 16:52:07 +000021347 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021348 lt_prog_compiler_pic_F77='-KPIC'
21349 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021350 case $cc_basename in
21351 f77* | f90* | f95*)
21352 lt_prog_compiler_wl_F77='-Qoption ld ';;
21353 *)
21354 lt_prog_compiler_wl_F77='-Wl,';;
21355 esac
John Criswell47fdd832003-07-14 16:52:07 +000021356 ;;
21357
21358 sunos4*)
21359 lt_prog_compiler_wl_F77='-Qoption ld '
21360 lt_prog_compiler_pic_F77='-PIC'
21361 lt_prog_compiler_static_F77='-Bstatic'
21362 ;;
21363
Reid Spencera773bd52006-08-04 18:18:08 +000021364 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021365 lt_prog_compiler_wl_F77='-Wl,'
21366 lt_prog_compiler_pic_F77='-KPIC'
21367 lt_prog_compiler_static_F77='-Bstatic'
21368 ;;
21369
21370 sysv4*MP*)
21371 if test -d /usr/nec ;then
21372 lt_prog_compiler_pic_F77='-Kconform_pic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21374 fi
21375 ;;
21376
Reid Spencera773bd52006-08-04 18:18:08 +000021377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21378 lt_prog_compiler_wl_F77='-Wl,'
21379 lt_prog_compiler_pic_F77='-KPIC'
21380 lt_prog_compiler_static_F77='-Bstatic'
21381 ;;
21382
21383 unicos*)
21384 lt_prog_compiler_wl_F77='-Wl,'
21385 lt_prog_compiler_can_build_shared_F77=no
21386 ;;
21387
John Criswell47fdd832003-07-14 16:52:07 +000021388 uts4*)
21389 lt_prog_compiler_pic_F77='-pic'
21390 lt_prog_compiler_static_F77='-Bstatic'
21391 ;;
21392
21393 *)
21394 lt_prog_compiler_can_build_shared_F77=no
21395 ;;
21396 esac
21397 fi
21398
Reid Spencera773bd52006-08-04 18:18:08 +000021399{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21400echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021401
21402#
21403# Check to make sure the PIC flag actually works.
21404#
21405if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021406
Reid Spencera773bd52006-08-04 18:18:08 +000021407{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21408echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021409if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411else
21412 lt_prog_compiler_pic_works_F77=no
21413 ac_outfile=conftest.$ac_objext
21414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21415 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21416 # Insert the option either (1) after the last *FLAGS variable, or
21417 # (2) before a word containing "conftest.", or (3) at the end.
21418 # Note that $ac_compile itself does not contain backslashes and begins
21419 # with a dollar sign (not a hyphen), so the echo should work correctly.
21420 # The option is referenced via a variable to avoid confusing sed.
21421 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21424 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000021425 (eval echo "\"\$as_me:21425: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021426 (eval "$lt_compile" 2>conftest.err)
21427 ac_status=$?
21428 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000021429 echo "$as_me:21429: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021430 if (exit $ac_status) && test -s "$ac_outfile"; then
21431 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021432 # So say no if there are warnings other than the usual output.
21433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021436 lt_prog_compiler_pic_works_F77=yes
21437 fi
21438 fi
21439 $rm conftest*
21440
21441fi
Reid Spencera773bd52006-08-04 18:18:08 +000021442{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21443echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021444
21445if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21446 case $lt_prog_compiler_pic_F77 in
21447 "" | " "*) ;;
21448 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21449 esac
21450else
21451 lt_prog_compiler_pic_F77=
21452 lt_prog_compiler_can_build_shared_F77=no
21453fi
21454
21455fi
Reid Spencera773bd52006-08-04 18:18:08 +000021456case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021457 # For platforms which do not support PIC, -DPIC is meaningless:
21458 *djgpp*)
21459 lt_prog_compiler_pic_F77=
21460 ;;
21461 *)
21462 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21463 ;;
21464esac
21465
Reid Spencera773bd52006-08-04 18:18:08 +000021466#
21467# Check to make sure the static flag actually works.
21468#
21469wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21470{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21471echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21472if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474else
21475 lt_prog_compiler_static_works_F77=no
21476 save_LDFLAGS="$LDFLAGS"
21477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21478 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21480 # The linker can only warn and ignore the option if not recognized
21481 # So say no if there are warnings
21482 if test -s conftest.err; then
21483 # Append any errors to the config.log.
21484 cat conftest.err 1>&5
21485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21487 if diff conftest.exp conftest.er2 >/dev/null; then
21488 lt_prog_compiler_static_works_F77=yes
21489 fi
21490 else
21491 lt_prog_compiler_static_works_F77=yes
21492 fi
21493 fi
21494 $rm conftest*
21495 LDFLAGS="$save_LDFLAGS"
21496
21497fi
21498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21499echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21500
21501if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21502 :
21503else
21504 lt_prog_compiler_static_F77=
21505fi
21506
21507
21508{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21509echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021510if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513 lt_cv_prog_compiler_c_o_F77=no
21514 $rm -r conftest 2>/dev/null
21515 mkdir conftest
21516 cd conftest
21517 mkdir out
21518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21519
John Criswell47fdd832003-07-14 16:52:07 +000021520 lt_compiler_flag="-o out/conftest2.$ac_objext"
21521 # Insert the option either (1) after the last *FLAGS variable, or
21522 # (2) before a word containing "conftest.", or (3) at the end.
21523 # Note that $ac_compile itself does not contain backslashes and begins
21524 # with a dollar sign (not a hyphen), so the echo should work correctly.
21525 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21528 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000021529 (eval echo "\"\$as_me:21529: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021530 (eval "$lt_compile" 2>out/conftest.err)
21531 ac_status=$?
21532 cat out/conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000021533 echo "$as_me:21533: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21535 then
21536 # The compiler can only warn and ignore the option if not recognized
21537 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021541 lt_cv_prog_compiler_c_o_F77=yes
21542 fi
21543 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021544 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021545 $rm conftest*
21546 # SGI C++ compiler will create directory out/ii_files/ for
21547 # template instantiation
21548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21549 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021550 cd ..
21551 rmdir conftest
21552 $rm conftest*
21553
21554fi
Reid Spencera773bd52006-08-04 18:18:08 +000021555{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21556echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021557
21558
21559hard_links="nottested"
21560if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21561 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21563echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021564 hard_links=yes
21565 $rm conftest*
21566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21567 touch conftest.a
21568 ln conftest.a conftest.b 2>&5 || hard_links=no
21569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021570 { echo "$as_me:$LINENO: result: $hard_links" >&5
21571echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021572 if test "$hard_links" = no; then
21573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21574echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21575 need_locks=warn
21576 fi
21577else
21578 need_locks=no
21579fi
21580
Reid Spencera773bd52006-08-04 18:18:08 +000021581{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21582echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021583
21584 runpath_var=
21585 allow_undefined_flag_F77=
21586 enable_shared_with_static_runtimes_F77=no
21587 archive_cmds_F77=
21588 archive_expsym_cmds_F77=
21589 old_archive_From_new_cmds_F77=
21590 old_archive_from_expsyms_cmds_F77=
21591 export_dynamic_flag_spec_F77=
21592 whole_archive_flag_spec_F77=
21593 thread_safe_flag_spec_F77=
21594 hardcode_libdir_flag_spec_F77=
21595 hardcode_libdir_flag_spec_ld_F77=
21596 hardcode_libdir_separator_F77=
21597 hardcode_direct_F77=no
21598 hardcode_minus_L_F77=no
21599 hardcode_shlibpath_var_F77=unsupported
21600 link_all_deplibs_F77=unknown
21601 hardcode_automatic_F77=no
21602 module_cmds_F77=
21603 module_expsym_cmds_F77=
21604 always_export_symbols_F77=no
21605 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21606 # include_expsyms should be a list of space-separated symbols to be *always*
21607 # included in the symbol list
21608 include_expsyms_F77=
21609 # exclude_expsyms can be an extended regexp of symbols to exclude
21610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21612 # as well as any symbol that contains `d'.
21613 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21615 # platforms (ab)use it in PIC code, but their linkers get confused if
21616 # the symbol is explicitly referenced. Since portable code cannot
21617 # rely on this symbol name, it's probably fine to never include it in
21618 # preloaded symbol tables.
21619 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021620 # Just being paranoid about ensuring that cc_basename is set.
21621 for cc_temp in $compiler""; do
21622 case $cc_temp in
21623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21625 \-*) ;;
21626 *) break;;
21627 esac
21628done
21629cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021630
21631 case $host_os in
21632 cygwin* | mingw* | pw32*)
21633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634 # When not using gcc, we currently assume that we are using
21635 # Microsoft Visual C++.
21636 if test "$GCC" != yes; then
21637 with_gnu_ld=no
21638 fi
21639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021640 interix*)
21641 # we just hope/assume this is gcc and not c89 (= MSVC++)
21642 with_gnu_ld=yes
21643 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021644 openbsd*)
21645 with_gnu_ld=no
21646 ;;
21647 esac
21648
21649 ld_shlibs_F77=yes
21650 if test "$with_gnu_ld" = yes; then
21651 # If archive_cmds runs LD, not CC, wlarc should be empty
21652 wlarc='${wl}'
21653
Reid Spencera773bd52006-08-04 18:18:08 +000021654 # Set some defaults for GNU ld with shared library support. These
21655 # are reset later if shared libraries are not supported. Putting them
21656 # here allows them to be overridden if necessary.
21657 runpath_var=LD_RUN_PATH
21658 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21659 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21660 # ancient GNU ld didn't support --whole-archive et. al.
21661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21663 else
21664 whole_archive_flag_spec_F77=
21665 fi
21666 supports_anon_versioning=no
21667 case `$LD -v 2>/dev/null` in
21668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21671 *\ 2.11.*) ;; # other 2.11 versions
21672 *) supports_anon_versioning=yes ;;
21673 esac
21674
John Criswell47fdd832003-07-14 16:52:07 +000021675 # See if GNU ld supports shared libraries.
21676 case $host_os in
21677 aix3* | aix4* | aix5*)
21678 # On AIX/PPC, the GNU linker is very broken
21679 if test "$host_cpu" != ia64; then
21680 ld_shlibs_F77=no
21681 cat <<EOF 1>&2
21682
21683*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21684*** to be unable to reliably create shared libraries on AIX.
21685*** Therefore, libtool is disabling shared libraries support. If you
21686*** really care for shared libraries, you may want to modify your PATH
21687*** so that a non-GNU linker is found, and then restart.
21688
21689EOF
21690 fi
21691 ;;
21692
21693 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021694 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 +000021695 hardcode_libdir_flag_spec_F77='-L$libdir'
21696 hardcode_minus_L_F77=yes
21697
21698 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21699 # that the semantics of dynamic libraries on AmigaOS, at least up
21700 # to version 4, is to share data among multiple programs linked
21701 # with the same dynamic library. Since this doesn't match the
21702 # behavior of shared libraries on other platforms, we can't use
21703 # them.
21704 ld_shlibs_F77=no
21705 ;;
21706
21707 beos*)
21708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709 allow_undefined_flag_F77=unsupported
21710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21711 # support --undefined. This deserves some investigation. FIXME
21712 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21713 else
21714 ld_shlibs_F77=no
21715 fi
21716 ;;
21717
21718 cygwin* | mingw* | pw32*)
21719 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21720 # as there is no search path for DLLs.
21721 hardcode_libdir_flag_spec_F77='-L$libdir'
21722 allow_undefined_flag_F77=unsupported
21723 always_export_symbols_F77=no
21724 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021725 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 +000021726
21727 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021728 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 +000021729 # If the export-symbols file already is a .def file (1st line
21730 # is EXPORTS), use it as is; otherwise, prepend...
21731 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21732 cp $export_symbols $output_objdir/$soname.def;
21733 else
21734 echo EXPORTS > $output_objdir/$soname.def;
21735 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021736 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021737 $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 +000021738 else
Reid Spencera773bd52006-08-04 18:18:08 +000021739 ld_shlibs_F77=no
21740 fi
21741 ;;
21742
21743 interix3*)
21744 hardcode_direct_F77=no
21745 hardcode_shlibpath_var_F77=no
21746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21747 export_dynamic_flag_spec_F77='${wl}-E'
21748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21749 # Instead, shared libraries are loaded at an image base (0x10000000 by
21750 # default) and relocated if they conflict, which is a slow very memory
21751 # consuming and fragmenting process. To avoid this, we pick a random,
21752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21754 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'
21755 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'
21756 ;;
21757
21758 linux*)
21759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21760 tmp_addflag=
21761 case $cc_basename,$host_cpu in
21762 pgcc*) # Portland Group C compiler
21763 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'
21764 tmp_addflag=' $pic_flag'
21765 ;;
21766 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21767 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'
21768 tmp_addflag=' $pic_flag -Mnomain' ;;
21769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21770 tmp_addflag=' -i_dynamic' ;;
21771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21772 tmp_addflag=' -i_dynamic -nofor_main' ;;
21773 ifc* | ifort*) # Intel Fortran compiler
21774 tmp_addflag=' -nofor_main' ;;
21775 esac
21776 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21777
21778 if test $supports_anon_versioning = yes; then
21779 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21781 $echo "local: *; };" >> $output_objdir/$libname.ver~
21782 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21783 fi
21784 else
21785 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021786 fi
21787 ;;
21788
21789 netbsd*)
21790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21791 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21792 wlarc=
21793 else
21794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796 fi
21797 ;;
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021800 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21801 ld_shlibs_F77=no
21802 cat <<EOF 1>&2
21803
21804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21805*** create shared libraries on Solaris systems. Therefore, libtool
21806*** is disabling shared libraries support. We urge you to upgrade GNU
21807*** binutils to release 2.9.1 or newer. Another option is to modify
21808*** your PATH or compiler configuration so that the native linker is
21809*** used, and then restart.
21810
21811EOF
21812 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21815 else
21816 ld_shlibs_F77=no
21817 fi
21818 ;;
21819
Reid Spencera773bd52006-08-04 18:18:08 +000021820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21821 case `$LD -v 2>&1` in
21822 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21823 ld_shlibs_F77=no
21824 cat <<_LT_EOF 1>&2
21825
21826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21827*** reliably create shared libraries on SCO systems. Therefore, libtool
21828*** is disabling shared libraries support. We urge you to upgrade GNU
21829*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21830*** your PATH or compiler configuration so that the native linker is
21831*** used, and then restart.
21832
21833_LT_EOF
21834 ;;
21835 *)
21836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21838 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21839 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21840 else
21841 ld_shlibs_F77=no
21842 fi
21843 ;;
21844 esac
21845 ;;
21846
John Criswell47fdd832003-07-14 16:52:07 +000021847 sunos4*)
21848 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21849 wlarc=
21850 hardcode_direct_F77=yes
21851 hardcode_shlibpath_var_F77=no
21852 ;;
21853
21854 *)
21855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21858 else
21859 ld_shlibs_F77=no
21860 fi
21861 ;;
21862 esac
21863
Reid Spencera773bd52006-08-04 18:18:08 +000021864 if test "$ld_shlibs_F77" = no; then
21865 runpath_var=
21866 hardcode_libdir_flag_spec_F77=
21867 export_dynamic_flag_spec_F77=
21868 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021869 fi
21870 else
21871 # PORTME fill in a description of your system's linker (not GNU ld)
21872 case $host_os in
21873 aix3*)
21874 allow_undefined_flag_F77=unsupported
21875 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021876 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 +000021877 # Note: this linker hardcodes the directories in LIBPATH if there
21878 # are no directories specified by -L.
21879 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021881 # Neither direct hardcoding nor static linking is supported with a
21882 # broken collect2.
21883 hardcode_direct_F77=unsupported
21884 fi
21885 ;;
21886
21887 aix4* | aix5*)
21888 if test "$host_cpu" = ia64; then
21889 # On IA64, the linker does run time linking by default, so we don't
21890 # have to do anything special.
21891 aix_use_runtimelinking=no
21892 exp_sym_flag='-Bexport'
21893 no_entry_flag=""
21894 else
21895 # If we're using GNU nm, then we don't want the "-C" option.
21896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21897 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21898 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'
21899 else
21900 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'
21901 fi
21902 aix_use_runtimelinking=no
21903
21904 # Test if we are trying to use run time linking or normal
21905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21906 # need to do runtime linking.
21907 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21908 for ld_flag in $LDFLAGS; do
21909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21910 aix_use_runtimelinking=yes
21911 break
21912 fi
21913 done
Reid Spencera773bd52006-08-04 18:18:08 +000021914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021915 esac
21916
21917 exp_sym_flag='-bexport'
21918 no_entry_flag='-bnoentry'
21919 fi
21920
21921 # When large executables or shared objects are built, AIX ld can
21922 # have problems creating the table of contents. If linking a library
21923 # or program results in "error TOC overflow" add -mminimal-toc to
21924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21926
21927 archive_cmds_F77=''
21928 hardcode_direct_F77=yes
21929 hardcode_libdir_separator_F77=':'
21930 link_all_deplibs_F77=yes
21931
21932 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021933 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021934 # We only want to do this on AIX 4.2 and lower, the check
21935 # below for broken collect2 doesn't work under 4.3+
21936 collect2name=`${CC} -print-prog-name=collect2`
21937 if test -f "$collect2name" && \
21938 strings "$collect2name" | grep resolve_lib_name >/dev/null
21939 then
21940 # We have reworked collect2
21941 hardcode_direct_F77=yes
21942 else
21943 # We have old collect2
21944 hardcode_direct_F77=unsupported
21945 # It fails to find uninstalled libraries when the uninstalled
21946 # path is not listed in the libpath. Setting hardcode_minus_L
21947 # to unsupported forces relinking
21948 hardcode_minus_L_F77=yes
21949 hardcode_libdir_flag_spec_F77='-L$libdir'
21950 hardcode_libdir_separator_F77=
21951 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021952 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021953 esac
21954 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021955 if test "$aix_use_runtimelinking" = yes; then
21956 shared_flag="$shared_flag "'${wl}-G'
21957 fi
John Criswell47fdd832003-07-14 16:52:07 +000021958 else
21959 # not using gcc
21960 if test "$host_cpu" = ia64; then
21961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21962 # chokes on -Wl,-G. The following line is correct:
21963 shared_flag='-G'
21964 else
Reid Spencera773bd52006-08-04 18:18:08 +000021965 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021966 shared_flag='${wl}-G'
21967 else
21968 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021969 fi
John Criswell47fdd832003-07-14 16:52:07 +000021970 fi
21971 fi
21972
21973 # It seems that -bexpall does not export symbols beginning with
21974 # underscore (_), so it is better to generate a list of symbols to export.
21975 always_export_symbols_F77=yes
21976 if test "$aix_use_runtimelinking" = yes; then
21977 # Warning - without using the other runtime loading flags (-brtl),
21978 # -berok will link without error, but may produce a broken library.
21979 allow_undefined_flag_F77='-berok'
21980 # Determine the default libpath from the value encoded in an empty executable.
21981 cat >conftest.$ac_ext <<_ACEOF
21982 program main
21983
21984 end
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021987if { (ac_try="$ac_link"
21988case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991esac
21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest$ac_exeext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014esac
22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022020
22021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22022}'`
22023# Check for a 64-bit object if we didn't find anything.
22024if 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; }
22025}'`; fi
22026else
22027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022028sed 's/^/| /' conftest.$ac_ext >&5
22029
Reid Spencera773bd52006-08-04 18:18:08 +000022030
John Criswell47fdd832003-07-14 16:52:07 +000022031fi
Reid Spencera773bd52006-08-04 18:18:08 +000022032
Bill Wendlingebcceee2009-04-18 11:20:33 +000022033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022034 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22036
22037 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022038 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 +000022039 else
22040 if test "$host_cpu" = ia64; then
22041 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22042 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022043 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 +000022044 else
22045 # Determine the default libpath from the value encoded in an empty executable.
22046 cat >conftest.$ac_ext <<_ACEOF
22047 program main
22048
22049 end
22050_ACEOF
22051rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022052if { (ac_try="$ac_link"
22053case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056esac
22057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022064 (exit $ac_status); } &&
22065 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069esac
22070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest$ac_exeext'
22076 { (case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079esac
22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_try") 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022085
22086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22087}'`
22088# Check for a 64-bit object if we didn't find anything.
22089if 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; }
22090}'`; fi
22091else
22092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022093sed 's/^/| /' conftest.$ac_ext >&5
22094
Reid Spencera773bd52006-08-04 18:18:08 +000022095
John Criswell47fdd832003-07-14 16:52:07 +000022096fi
Reid Spencera773bd52006-08-04 18:18:08 +000022097
Bill Wendlingebcceee2009-04-18 11:20:33 +000022098rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022099 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22101
22102 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22103 # Warning - without using the other run time loading flags,
22104 # -berok will link without error, but may produce a broken library.
22105 no_undefined_flag_F77=' ${wl}-bernotok'
22106 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022107 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022108 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022109 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022110 # This is similar to how AIX traditionally builds its shared libraries.
22111 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 +000022112 fi
22113 fi
22114 ;;
22115
22116 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022117 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 +000022118 hardcode_libdir_flag_spec_F77='-L$libdir'
22119 hardcode_minus_L_F77=yes
22120 # see comment about different semantics on the GNU ld section
22121 ld_shlibs_F77=no
22122 ;;
22123
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022125 export_dynamic_flag_spec_F77=-rdynamic
22126 ;;
22127
22128 cygwin* | mingw* | pw32*)
22129 # When not using gcc, we currently assume that we are using
22130 # Microsoft Visual C++.
22131 # hardcode_libdir_flag_spec is actually meaningless, as there is
22132 # no search path for DLLs.
22133 hardcode_libdir_flag_spec_F77=' '
22134 allow_undefined_flag_F77=unsupported
22135 # Tell ltmain to make .lib files, not .a files.
22136 libext=lib
22137 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022138 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022139 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022140 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 +000022141 # The linker will automatically build a .lib file if we build a DLL.
22142 old_archive_From_new_cmds_F77='true'
22143 # FIXME: Should let the user specify the lib program.
22144 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022145 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022146 enable_shared_with_static_runtimes_F77=yes
22147 ;;
22148
22149 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022150 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022151 rhapsody* | darwin1.[012])
22152 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22153 ;;
22154 *) # Darwin 1.3 on
22155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22156 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22157 else
22158 case ${MACOSX_DEPLOYMENT_TARGET} in
22159 10.[012])
22160 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22161 ;;
22162 10.*)
22163 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22164 ;;
22165 esac
22166 fi
22167 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022168 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022169 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022170 hardcode_direct_F77=no
22171 hardcode_automatic_F77=yes
22172 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022173 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022174 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022175 if test "$GCC" = yes ; then
22176 output_verbose_link_cmd='echo'
22177 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22178 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022179 # 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 +000022180 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}'
22181 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 +000022182 else
Reid Spencera773bd52006-08-04 18:18:08 +000022183 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022184 xlc*)
22185 output_verbose_link_cmd='echo'
22186 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22187 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022188 # 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 +000022189 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}'
22190 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 +000022191 ;;
22192 *)
22193 ld_shlibs_F77=no
22194 ;;
22195 esac
John Criswell47fdd832003-07-14 16:52:07 +000022196 fi
22197 ;;
22198
22199 dgux*)
22200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201 hardcode_libdir_flag_spec_F77='-L$libdir'
22202 hardcode_shlibpath_var_F77=no
22203 ;;
22204
22205 freebsd1*)
22206 ld_shlibs_F77=no
22207 ;;
22208
22209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22210 # support. Future versions do this automatically, but an explicit c++rt0.o
22211 # does not break anything, and helps significantly (at the cost of a little
22212 # extra space).
22213 freebsd2.2*)
22214 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22215 hardcode_libdir_flag_spec_F77='-R$libdir'
22216 hardcode_direct_F77=yes
22217 hardcode_shlibpath_var_F77=no
22218 ;;
22219
22220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22221 freebsd2*)
22222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22223 hardcode_direct_F77=yes
22224 hardcode_minus_L_F77=yes
22225 hardcode_shlibpath_var_F77=no
22226 ;;
22227
22228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022229 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022230 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22231 hardcode_libdir_flag_spec_F77='-R$libdir'
22232 hardcode_direct_F77=yes
22233 hardcode_shlibpath_var_F77=no
22234 ;;
22235
22236 hpux9*)
22237 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022238 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 +000022239 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022240 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 +000022241 fi
22242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243 hardcode_libdir_separator_F77=:
22244 hardcode_direct_F77=yes
22245
22246 # hardcode_minus_L: Not really in the search PATH,
22247 # but as the default location of the library.
22248 hardcode_minus_L_F77=yes
22249 export_dynamic_flag_spec_F77='${wl}-E'
22250 ;;
22251
Reid Spencera773bd52006-08-04 18:18:08 +000022252 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22255 else
22256 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22257 fi
22258 if test "$with_gnu_ld" = no; then
22259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22260 hardcode_libdir_separator_F77=:
22261
22262 hardcode_direct_F77=yes
22263 export_dynamic_flag_spec_F77='${wl}-E'
22264
22265 # hardcode_minus_L: Not really in the search PATH,
22266 # but as the default location of the library.
22267 hardcode_minus_L_F77=yes
22268 fi
22269 ;;
22270
22271 hpux11*)
22272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22273 case $host_cpu in
22274 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022275 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022277 ia64*)
22278 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22279 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022280 *)
22281 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22282 ;;
22283 esac
22284 else
Reid Spencera773bd52006-08-04 18:18:08 +000022285 case $host_cpu in
22286 hppa*64*)
22287 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22288 ;;
22289 ia64*)
22290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022291 ;;
22292 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022293 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 +000022294 ;;
22295 esac
22296 fi
22297 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022300
Reid Spencera773bd52006-08-04 18:18:08 +000022301 case $host_cpu in
22302 hppa*64*|ia64*)
22303 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22304 hardcode_direct_F77=no
22305 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022306 ;;
22307 *)
John Criswell47fdd832003-07-14 16:52:07 +000022308 hardcode_direct_F77=yes
22309 export_dynamic_flag_spec_F77='${wl}-E'
22310
22311 # hardcode_minus_L: Not really in the search PATH,
22312 # but as the default location of the library.
22313 hardcode_minus_L_F77=yes
22314 ;;
22315 esac
22316 fi
22317 ;;
22318
22319 irix5* | irix6* | nonstopux*)
22320 if test "$GCC" = yes; then
22321 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'
22322 else
22323 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'
22324 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22325 fi
22326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22327 hardcode_libdir_separator_F77=:
22328 link_all_deplibs_F77=yes
22329 ;;
22330
22331 netbsd*)
22332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22334 else
22335 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22336 fi
22337 hardcode_libdir_flag_spec_F77='-R$libdir'
22338 hardcode_direct_F77=yes
22339 hardcode_shlibpath_var_F77=no
22340 ;;
22341
22342 newsos6)
22343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_direct_F77=yes
22345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346 hardcode_libdir_separator_F77=:
22347 hardcode_shlibpath_var_F77=no
22348 ;;
22349
22350 openbsd*)
22351 hardcode_direct_F77=yes
22352 hardcode_shlibpath_var_F77=no
22353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22354 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022355 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 +000022356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22357 export_dynamic_flag_spec_F77='${wl}-E'
22358 else
22359 case $host_os in
22360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22362 hardcode_libdir_flag_spec_F77='-R$libdir'
22363 ;;
22364 *)
22365 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22366 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22367 ;;
22368 esac
22369 fi
22370 ;;
22371
22372 os2*)
22373 hardcode_libdir_flag_spec_F77='-L$libdir'
22374 hardcode_minus_L_F77=yes
22375 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022376 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 +000022377 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22378 ;;
22379
22380 osf3*)
22381 if test "$GCC" = yes; then
22382 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22383 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'
22384 else
22385 allow_undefined_flag_F77=' -expect_unresolved \*'
22386 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'
22387 fi
22388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22389 hardcode_libdir_separator_F77=:
22390 ;;
22391
22392 osf4* | osf5*) # as osf3* with the addition of -msym flag
22393 if test "$GCC" = yes; then
22394 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22395 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'
22396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22397 else
22398 allow_undefined_flag_F77=' -expect_unresolved \*'
22399 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 +000022400 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 +000022401 $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 +000022402
John Criswell47fdd832003-07-14 16:52:07 +000022403 # Both c and cxx compiler support -rpath directly
22404 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22405 fi
22406 hardcode_libdir_separator_F77=:
22407 ;;
22408
John Criswell47fdd832003-07-14 16:52:07 +000022409 solaris*)
22410 no_undefined_flag_F77=' -z text'
22411 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022412 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022413 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022414 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415 $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 +000022416 else
Reid Spencera773bd52006-08-04 18:18:08 +000022417 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022418 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022419 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22420 $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 +000022421 fi
22422 hardcode_libdir_flag_spec_F77='-R$libdir'
22423 hardcode_shlibpath_var_F77=no
22424 case $host_os in
22425 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022426 *)
22427 # The compiler driver will combine linker options so we
22428 # cannot just pass the convience library names through
22429 # without $wl, iff we do not link with $LD.
22430 # Luckily, gcc supports the same syntax we need for Sun Studio.
22431 # Supported since Solaris 2.6 (maybe 2.5.1?)
22432 case $wlarc in
22433 '')
22434 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22435 *)
22436 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' ;;
22437 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022438 esac
22439 link_all_deplibs_F77=yes
22440 ;;
22441
22442 sunos4*)
22443 if test "x$host_vendor" = xsequent; then
22444 # Use $CC to link under sequent, because it throws in some extra .o
22445 # files that make .init and .fini sections work.
22446 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22447 else
22448 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22449 fi
22450 hardcode_libdir_flag_spec_F77='-L$libdir'
22451 hardcode_direct_F77=yes
22452 hardcode_minus_L_F77=yes
22453 hardcode_shlibpath_var_F77=no
22454 ;;
22455
22456 sysv4)
22457 case $host_vendor in
22458 sni)
22459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460 hardcode_direct_F77=yes # is this really true???
22461 ;;
22462 siemens)
22463 ## LD is ld it makes a PLAMLIB
22464 ## CC just makes a GrossModule.
22465 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22466 reload_cmds_F77='$CC -r -o $output$reload_objs'
22467 hardcode_direct_F77=no
22468 ;;
22469 motorola)
22470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22472 ;;
22473 esac
22474 runpath_var='LD_RUN_PATH'
22475 hardcode_shlibpath_var_F77=no
22476 ;;
22477
22478 sysv4.3*)
22479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22480 hardcode_shlibpath_var_F77=no
22481 export_dynamic_flag_spec_F77='-Bexport'
22482 ;;
22483
22484 sysv4*MP*)
22485 if test -d /usr/nec; then
22486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487 hardcode_shlibpath_var_F77=no
22488 runpath_var=LD_RUN_PATH
22489 hardcode_runpath_var=yes
22490 ld_shlibs_F77=yes
22491 fi
22492 ;;
22493
Reid Spencera773bd52006-08-04 18:18:08 +000022494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22495 no_undefined_flag_F77='${wl}-z,text'
22496 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022497 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022498 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022499
John Criswell47fdd832003-07-14 16:52:07 +000022500 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022501 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22502 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 +000022503 else
Reid Spencera773bd52006-08-04 18:18:08 +000022504 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22505 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 +000022506 fi
John Criswell47fdd832003-07-14 16:52:07 +000022507 ;;
22508
Reid Spencera773bd52006-08-04 18:18:08 +000022509 sysv5* | sco3.2v5* | sco5v6*)
22510 # Note: We can NOT use -z defs as we might desire, because we do not
22511 # link with -lc, and that would cause any symbols used from libc to
22512 # always be unresolved, which means just about no library would
22513 # ever link correctly. If we're not using GNU ld we use -z text
22514 # though, which does catch some bad symbols but isn't as heavy-handed
22515 # as -z defs.
22516 no_undefined_flag_F77='${wl}-z,text'
22517 allow_undefined_flag_F77='${wl}-z,nodefs'
22518 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022519 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022520 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22521 hardcode_libdir_separator_F77=':'
22522 link_all_deplibs_F77=yes
22523 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022524 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022525
22526 if test "$GCC" = yes; then
22527 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22528 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22529 else
22530 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22531 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22532 fi
John Criswell47fdd832003-07-14 16:52:07 +000022533 ;;
22534
22535 uts4*)
22536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_libdir_flag_spec_F77='-L$libdir'
22538 hardcode_shlibpath_var_F77=no
22539 ;;
22540
22541 *)
22542 ld_shlibs_F77=no
22543 ;;
22544 esac
22545 fi
22546
Reid Spencera773bd52006-08-04 18:18:08 +000022547{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22548echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022549test "$ld_shlibs_F77" = no && can_build_shared=no
22550
John Criswell47fdd832003-07-14 16:52:07 +000022551#
22552# Do we need to explicitly link libc?
22553#
22554case "x$archive_cmds_need_lc_F77" in
22555x|xyes)
22556 # Assume -lc should be added
22557 archive_cmds_need_lc_F77=yes
22558
22559 if test "$enable_shared" = yes && test "$GCC" = yes; then
22560 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022561 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022562 # FIXME: we may have to deal with multi-command sequences.
22563 ;;
22564 '$CC '*)
22565 # Test whether the compiler implicitly links with -lc since on some
22566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22567 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022568 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022570 $rm conftest*
22571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22572
22573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574 (eval $ac_compile) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } 2>conftest.err; then
22578 soname=conftest
22579 lib=conftest
22580 libobjs=conftest.$ac_objext
22581 deplibs=
22582 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022583 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022584 compiler_flags=-v
22585 linker_flags=-v
22586 verstring=
22587 output_objdir=.
22588 libname=conftest
22589 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22590 allow_undefined_flag_F77=
22591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }
22596 then
22597 archive_cmds_need_lc_F77=no
22598 else
22599 archive_cmds_need_lc_F77=yes
22600 fi
22601 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22602 else
22603 cat conftest.err 1>&5
22604 fi
22605 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022606 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22607echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022608 ;;
22609 esac
22610 fi
22611 ;;
22612esac
22613
Reid Spencera773bd52006-08-04 18:18:08 +000022614{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022616library_names_spec=
22617libname_spec='lib$name'
22618soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022619shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022620postinstall_cmds=
22621postuninstall_cmds=
22622finish_cmds=
22623finish_eval=
22624shlibpath_var=
22625shlibpath_overrides_runpath=unknown
22626version_type=none
22627dynamic_linker="$host_os ld.so"
22628sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629if test "$GCC" = yes; then
22630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632 # if the path contains ";" then we assume it to be the separator
22633 # otherwise default to the standard path separator (i.e. ":") - it is
22634 # assumed that no part of a normal pathname contains ";" but that should
22635 # okay in the real world where ";" in dirpaths is itself problematic.
22636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22637 else
22638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22639 fi
22640else
22641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22642fi
22643need_lib_prefix=unknown
22644hardcode_into_libs=no
22645
22646# when you set need_version to no, make sure it does not cause -set_version
22647# flags to be left without arguments
22648need_version=unknown
22649
22650case $host_os in
22651aix3*)
22652 version_type=linux
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654 shlibpath_var=LIBPATH
22655
22656 # AIX 3 has no versioning support, so we append a major version to the name.
22657 soname_spec='${libname}${release}${shared_ext}$major'
22658 ;;
22659
22660aix4* | aix5*)
22661 version_type=linux
22662 need_lib_prefix=no
22663 need_version=no
22664 hardcode_into_libs=yes
22665 if test "$host_cpu" = ia64; then
22666 # AIX 5 supports IA64
22667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668 shlibpath_var=LD_LIBRARY_PATH
22669 else
22670 # With GCC up to 2.95.x, collect2 would create an import file
22671 # for dependence libraries. The import file would start with
22672 # the line `#! .'. This would cause the generated library to
22673 # depend on `.', always an invalid library. This was fixed in
22674 # development snapshots of GCC prior to 3.0.
22675 case $host_os in
22676 aix4 | aix4.[01] | aix4.[01].*)
22677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22678 echo ' yes '
22679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22680 :
22681 else
22682 can_build_shared=no
22683 fi
22684 ;;
22685 esac
22686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687 # soname into executable. Probably we can add versioning support to
22688 # collect2, so additional links can be useful in future.
22689 if test "$aix_use_runtimelinking" = yes; then
22690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691 # instead of lib<name>.a to let people know that these are not
22692 # typical AIX shared libraries.
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694 else
22695 # We preserve .a as extension for shared libraries through AIX4.2
22696 # and later when we are not doing run time linking.
22697 library_names_spec='${libname}${release}.a $libname.a'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 fi
22700 shlibpath_var=LIBPATH
22701 fi
22702 ;;
22703
22704amigaos*)
22705 library_names_spec='$libname.ixlibrary $libname.a'
22706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022707 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 +000022708 ;;
22709
22710beos*)
22711 library_names_spec='${libname}${shared_ext}'
22712 dynamic_linker="$host_os ld.so"
22713 shlibpath_var=LIBRARY_PATH
22714 ;;
22715
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022717 version_type=linux
22718 need_version=no
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725 # the default ld.so.conf also contains /usr/contrib/lib and
22726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727 # libtool to hard-code these into programs
22728 ;;
22729
22730cygwin* | mingw* | pw32*)
22731 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022732 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022733 need_version=no
22734 need_lib_prefix=no
22735
22736 case $GCC,$host_os in
22737 yes,cygwin* | yes,mingw* | yes,pw32*)
22738 library_names_spec='$libname.dll.a'
22739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022740 postinstall_cmds='base_file=`basename \${file}`~
22741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742 dldir=$destdir/`dirname \$dlpath`~
22743 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022744 $install_prog $dir/$dlname \$dldir/$dlname~
22745 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22747 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022748 $rm \$dlpath'
22749 shlibpath_overrides_runpath=yes
22750
22751 case $host_os in
22752 cygwin*)
22753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22754 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 +000022755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022756 ;;
22757 mingw*)
22758 # MinGW DLLs use traditional 'lib' prefix
22759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22762 # It is most probably a Windows format PATH printed by
22763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22764 # path with ; separators, and with drive letters. We can handle the
22765 # drive letters (cygwin fileutils understands them), so leave them,
22766 # especially as we might pass files found there to a mingw objdump,
22767 # which wouldn't understand a cygwinified path. Ahh.
22768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22769 else
22770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22771 fi
22772 ;;
22773 pw32*)
22774 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022775 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 +000022776 ;;
22777 esac
22778 ;;
22779
22780 *)
22781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22782 ;;
22783 esac
22784 dynamic_linker='Win32 ld.exe'
22785 # FIXME: first we should search . and the directory the executable is in
22786 shlibpath_var=PATH
22787 ;;
22788
22789darwin* | rhapsody*)
22790 dynamic_linker="$host_os dyld"
22791 version_type=darwin
22792 need_lib_prefix=no
22793 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022795 soname_spec='${libname}${release}${major}$shared_ext'
22796 shlibpath_overrides_runpath=yes
22797 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022798 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022800 if test "$GCC" = yes; then
22801 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"`
22802 else
22803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022804 fi
22805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22806 ;;
22807
22808dgux*)
22809 version_type=linux
22810 need_lib_prefix=no
22811 need_version=no
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 ;;
22816
22817freebsd1*)
22818 dynamic_linker=no
22819 ;;
22820
Reid Spencer2706f8c2004-09-19 23:53:36 +000022821kfreebsd*-gnu)
22822 version_type=linux
22823 need_lib_prefix=no
22824 need_version=no
22825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22826 soname_spec='${libname}${release}${shared_ext}$major'
22827 shlibpath_var=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath=no
22829 hardcode_into_libs=yes
22830 dynamic_linker='GNU ld.so'
22831 ;;
22832
Reid Spencera773bd52006-08-04 18:18:08 +000022833freebsd* | dragonfly*)
22834 # DragonFly does not have aout. When/if they implement a new
22835 # versioning mechanism, adjust this.
22836 if test -x /usr/bin/objformat; then
22837 objformat=`/usr/bin/objformat`
22838 else
22839 case $host_os in
22840 freebsd[123]*) objformat=aout ;;
22841 *) objformat=elf ;;
22842 esac
22843 fi
John Criswell47fdd832003-07-14 16:52:07 +000022844 version_type=freebsd-$objformat
22845 case $version_type in
22846 freebsd-elf*)
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22848 need_version=no
22849 need_lib_prefix=no
22850 ;;
22851 freebsd-*)
22852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22853 need_version=yes
22854 ;;
22855 esac
22856 shlibpath_var=LD_LIBRARY_PATH
22857 case $host_os in
22858 freebsd2*)
22859 shlibpath_overrides_runpath=yes
22860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022861 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022862 shlibpath_overrides_runpath=yes
22863 hardcode_into_libs=yes
22864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022867 shlibpath_overrides_runpath=no
22868 hardcode_into_libs=yes
22869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022870 freebsd*) # from 4.6 on
22871 shlibpath_overrides_runpath=yes
22872 hardcode_into_libs=yes
22873 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022874 esac
22875 ;;
22876
22877gnu*)
22878 version_type=linux
22879 need_lib_prefix=no
22880 need_version=no
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22882 soname_spec='${libname}${release}${shared_ext}$major'
22883 shlibpath_var=LD_LIBRARY_PATH
22884 hardcode_into_libs=yes
22885 ;;
22886
22887hpux9* | hpux10* | hpux11*)
22888 # Give a soname corresponding to the major version so that dld.sl refuses to
22889 # link against other versions.
22890 version_type=sunos
22891 need_lib_prefix=no
22892 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022893 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022894 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022895 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022896 hardcode_into_libs=yes
22897 dynamic_linker="$host_os dld.so"
22898 shlibpath_var=LD_LIBRARY_PATH
22899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901 soname_spec='${libname}${release}${shared_ext}$major'
22902 if test "X$HPUX_IA64_MODE" = X32; then
22903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22904 else
22905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22906 fi
22907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22908 ;;
22909 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022910 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022911 hardcode_into_libs=yes
22912 dynamic_linker="$host_os dld.sl"
22913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22919 ;;
22920 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022921 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022922 dynamic_linker="$host_os dld.sl"
22923 shlibpath_var=SHLIB_PATH
22924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 ;;
22928 esac
22929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22930 postinstall_cmds='chmod 555 $lib'
22931 ;;
22932
Reid Spencera773bd52006-08-04 18:18:08 +000022933interix3*)
22934 version_type=linux
22935 need_lib_prefix=no
22936 need_version=no
22937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22938 soname_spec='${libname}${release}${shared_ext}$major'
22939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22940 shlibpath_var=LD_LIBRARY_PATH
22941 shlibpath_overrides_runpath=no
22942 hardcode_into_libs=yes
22943 ;;
22944
John Criswell47fdd832003-07-14 16:52:07 +000022945irix5* | irix6* | nonstopux*)
22946 case $host_os in
22947 nonstopux*) version_type=nonstopux ;;
22948 *)
22949 if test "$lt_cv_prog_gnu_ld" = yes; then
22950 version_type=linux
22951 else
22952 version_type=irix
22953 fi ;;
22954 esac
22955 need_lib_prefix=no
22956 need_version=no
22957 soname_spec='${libname}${release}${shared_ext}$major'
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22959 case $host_os in
22960 irix5* | nonstopux*)
22961 libsuff= shlibsuff=
22962 ;;
22963 *)
22964 case $LD in # libtool.m4 will add one of these switches to LD
22965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22966 libsuff= shlibsuff= libmagic=32-bit;;
22967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22968 libsuff=32 shlibsuff=N32 libmagic=N32;;
22969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22971 *) libsuff= shlibsuff= libmagic=never-match;;
22972 esac
22973 ;;
22974 esac
22975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22976 shlibpath_overrides_runpath=no
22977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22979 hardcode_into_libs=yes
22980 ;;
22981
22982# No shared lib support for Linux oldld, aout, or coff.
22983linux*oldld* | linux*aout* | linux*coff*)
22984 dynamic_linker=no
22985 ;;
22986
22987# This must be Linux ELF.
22988linux*)
22989 version_type=linux
22990 need_lib_prefix=no
22991 need_version=no
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22995 shlibpath_var=LD_LIBRARY_PATH
22996 shlibpath_overrides_runpath=no
22997 # This implies no fast_install, which is unacceptable.
22998 # Some rework will be needed to allow for fast_install
22999 # before this can be enabled.
23000 hardcode_into_libs=yes
23001
Reid Spencer2706f8c2004-09-19 23:53:36 +000023002 # Append ld.so.conf contents to the search path
23003 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023004 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 +000023005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23006 fi
23007
John Criswell47fdd832003-07-14 16:52:07 +000023008 # We used to test for /lib/ld.so.1 and disable shared libraries on
23009 # powerpc, because MkLinux only supported shared libraries with the
23010 # GNU dynamic linker. Since this was broken with cross compilers,
23011 # most powerpc-linux boxes support dynamic linking these days and
23012 # people can always --disable-shared, the test was removed, and we
23013 # assume the GNU/Linux dynamic linker is in use.
23014 dynamic_linker='GNU/Linux ld.so'
23015 ;;
23016
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017knetbsd*-gnu)
23018 version_type=linux
23019 need_lib_prefix=no
23020 need_version=no
23021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022 soname_spec='${libname}${release}${shared_ext}$major'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 shlibpath_overrides_runpath=no
23025 hardcode_into_libs=yes
23026 dynamic_linker='GNU ld.so'
23027 ;;
23028
John Criswell47fdd832003-07-14 16:52:07 +000023029netbsd*)
23030 version_type=sunos
23031 need_lib_prefix=no
23032 need_version=no
23033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23036 dynamic_linker='NetBSD (a.out) ld.so'
23037 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023039 soname_spec='${libname}${release}${shared_ext}$major'
23040 dynamic_linker='NetBSD ld.elf_so'
23041 fi
23042 shlibpath_var=LD_LIBRARY_PATH
23043 shlibpath_overrides_runpath=yes
23044 hardcode_into_libs=yes
23045 ;;
23046
23047newsos6)
23048 version_type=linux
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath=yes
23052 ;;
23053
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023055 version_type=linux
23056 need_lib_prefix=no
23057 need_version=no
23058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23059 soname_spec='${libname}${release}${shared_ext}$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23061 shlibpath_overrides_runpath=yes
23062 ;;
23063
23064openbsd*)
23065 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023066 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023067 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23069 case $host_os in
23070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23071 *) need_version=no ;;
23072 esac
John Criswell47fdd832003-07-14 16:52:07 +000023073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23077 case $host_os in
23078 openbsd2.[89] | openbsd2.[89].*)
23079 shlibpath_overrides_runpath=no
23080 ;;
23081 *)
23082 shlibpath_overrides_runpath=yes
23083 ;;
23084 esac
23085 else
23086 shlibpath_overrides_runpath=yes
23087 fi
23088 ;;
23089
23090os2*)
23091 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023092 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023093 need_lib_prefix=no
23094 library_names_spec='$libname${shared_ext} $libname.a'
23095 dynamic_linker='OS/2 ld.exe'
23096 shlibpath_var=LIBPATH
23097 ;;
23098
23099osf3* | osf4* | osf5*)
23100 version_type=osf
23101 need_lib_prefix=no
23102 need_version=no
23103 soname_spec='${libname}${release}${shared_ext}$major'
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23108 ;;
23109
John Criswell47fdd832003-07-14 16:52:07 +000023110solaris*)
23111 version_type=linux
23112 need_lib_prefix=no
23113 need_version=no
23114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23115 soname_spec='${libname}${release}${shared_ext}$major'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 shlibpath_overrides_runpath=yes
23118 hardcode_into_libs=yes
23119 # ldd complains unless libraries are executable
23120 postinstall_cmds='chmod +x $lib'
23121 ;;
23122
23123sunos4*)
23124 version_type=sunos
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=yes
23129 if test "$with_gnu_ld" = yes; then
23130 need_lib_prefix=no
23131 fi
23132 need_version=yes
23133 ;;
23134
Reid Spencera773bd52006-08-04 18:18:08 +000023135sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023136 version_type=linux
23137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23138 soname_spec='${libname}${release}${shared_ext}$major'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 case $host_vendor in
23141 sni)
23142 shlibpath_overrides_runpath=no
23143 need_lib_prefix=no
23144 export_dynamic_flag_spec='${wl}-Blargedynsym'
23145 runpath_var=LD_RUN_PATH
23146 ;;
23147 siemens)
23148 need_lib_prefix=no
23149 ;;
23150 motorola)
23151 need_lib_prefix=no
23152 need_version=no
23153 shlibpath_overrides_runpath=no
23154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23155 ;;
23156 esac
23157 ;;
23158
23159sysv4*MP*)
23160 if test -d /usr/nec ;then
23161 version_type=linux
23162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23163 soname_spec='$libname${shared_ext}.$major'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 fi
23166 ;;
23167
Reid Spencera773bd52006-08-04 18:18:08 +000023168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23169 version_type=freebsd-elf
23170 need_lib_prefix=no
23171 need_version=no
23172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23173 soname_spec='${libname}${release}${shared_ext}$major'
23174 shlibpath_var=LD_LIBRARY_PATH
23175 hardcode_into_libs=yes
23176 if test "$with_gnu_ld" = yes; then
23177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23178 shlibpath_overrides_runpath=no
23179 else
23180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23181 shlibpath_overrides_runpath=yes
23182 case $host_os in
23183 sco3.2v5*)
23184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23185 ;;
23186 esac
23187 fi
23188 sys_lib_dlsearch_path_spec='/usr/lib'
23189 ;;
23190
John Criswell47fdd832003-07-14 16:52:07 +000023191uts4*)
23192 version_type=linux
23193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194 soname_spec='${libname}${release}${shared_ext}$major'
23195 shlibpath_var=LD_LIBRARY_PATH
23196 ;;
23197
23198*)
23199 dynamic_linker=no
23200 ;;
23201esac
Reid Spencera773bd52006-08-04 18:18:08 +000023202{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23203echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023204test "$dynamic_linker" = no && can_build_shared=no
23205
Reid Spencera773bd52006-08-04 18:18:08 +000023206variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23207if test "$GCC" = yes; then
23208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23209fi
23210
23211{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23212echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023213hardcode_action_F77=
23214if test -n "$hardcode_libdir_flag_spec_F77" || \
23215 test -n "$runpath_var_F77" || \
23216 test "X$hardcode_automatic_F77" = "Xyes" ; then
23217
23218 # We can hardcode non-existant directories.
23219 if test "$hardcode_direct_F77" != no &&
23220 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23221 # have to relink, otherwise we might link with an installed library
23222 # when we should be linking with a yet-to-be-installed one
23223 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23224 test "$hardcode_minus_L_F77" != no; then
23225 # Linking always hardcodes the temporary library directory.
23226 hardcode_action_F77=relink
23227 else
23228 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23229 hardcode_action_F77=immediate
23230 fi
23231else
23232 # We cannot hardcode anything, or else we can only hardcode existing
23233 # directories.
23234 hardcode_action_F77=unsupported
23235fi
Reid Spencera773bd52006-08-04 18:18:08 +000023236{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23237echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023238
23239if test "$hardcode_action_F77" = relink; then
23240 # Fast installation is not supported
23241 enable_fast_install=no
23242elif test "$shlibpath_overrides_runpath" = yes ||
23243 test "$enable_shared" = no; then
23244 # Fast installation is not necessary
23245 enable_fast_install=needless
23246fi
23247
John Criswell47fdd832003-07-14 16:52:07 +000023248
23249# The else clause should only fire when bootstrapping the
23250# libtool distribution, otherwise you forgot to ship ltmain.sh
23251# with your package, and you will get complaints that there are
23252# no rules to generate ltmain.sh.
23253if test -f "$ltmain"; then
23254 # See if we are running on zsh, and set the options which allow our commands through
23255 # without removal of \ escapes.
23256 if test -n "${ZSH_VERSION+set}" ; then
23257 setopt NO_GLOB_SUBST
23258 fi
23259 # Now quote all the things that may contain metacharacters while being
23260 # careful not to overquote the AC_SUBSTed values. We take copies of the
23261 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023262 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 +000023263 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023264 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23265 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23266 deplibs_check_method reload_flag reload_cmds need_locks \
23267 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23268 lt_cv_sys_global_symbol_to_c_name_address \
23269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23270 old_postinstall_cmds old_postuninstall_cmds \
23271 compiler_F77 \
23272 CC_F77 \
23273 LD_F77 \
23274 lt_prog_compiler_wl_F77 \
23275 lt_prog_compiler_pic_F77 \
23276 lt_prog_compiler_static_F77 \
23277 lt_prog_compiler_no_builtin_flag_F77 \
23278 export_dynamic_flag_spec_F77 \
23279 thread_safe_flag_spec_F77 \
23280 whole_archive_flag_spec_F77 \
23281 enable_shared_with_static_runtimes_F77 \
23282 old_archive_cmds_F77 \
23283 old_archive_from_new_cmds_F77 \
23284 predep_objects_F77 \
23285 postdep_objects_F77 \
23286 predeps_F77 \
23287 postdeps_F77 \
23288 compiler_lib_search_path_F77 \
23289 archive_cmds_F77 \
23290 archive_expsym_cmds_F77 \
23291 postinstall_cmds_F77 \
23292 postuninstall_cmds_F77 \
23293 old_archive_from_expsyms_cmds_F77 \
23294 allow_undefined_flag_F77 \
23295 no_undefined_flag_F77 \
23296 export_symbols_cmds_F77 \
23297 hardcode_libdir_flag_spec_F77 \
23298 hardcode_libdir_flag_spec_ld_F77 \
23299 hardcode_libdir_separator_F77 \
23300 hardcode_automatic_F77 \
23301 module_cmds_F77 \
23302 module_expsym_cmds_F77 \
23303 lt_cv_prog_compiler_c_o_F77 \
23304 exclude_expsyms_F77 \
23305 include_expsyms_F77; do
23306
23307 case $var in
23308 old_archive_cmds_F77 | \
23309 old_archive_from_new_cmds_F77 | \
23310 archive_cmds_F77 | \
23311 archive_expsym_cmds_F77 | \
23312 module_cmds_F77 | \
23313 module_expsym_cmds_F77 | \
23314 old_archive_from_expsyms_cmds_F77 | \
23315 export_symbols_cmds_F77 | \
23316 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23317 postinstall_cmds | postuninstall_cmds | \
23318 old_postinstall_cmds | old_postuninstall_cmds | \
23319 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23320 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321 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 +000023322 ;;
23323 *)
23324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23325 ;;
23326 esac
23327 done
23328
23329 case $lt_echo in
23330 *'\$0 --fallback-echo"')
23331 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23332 ;;
23333 esac
23334
23335cfgfile="$ofile"
23336
23337 cat <<__EOF__ >> "$cfgfile"
23338# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23339
23340# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23341
23342# Shell to use when invoking shell scripts.
23343SHELL=$lt_SHELL
23344
23345# Whether or not to build shared libraries.
23346build_libtool_libs=$enable_shared
23347
23348# Whether or not to build static libraries.
23349build_old_libs=$enable_static
23350
23351# Whether or not to add -lc for building shared libraries.
23352build_libtool_need_lc=$archive_cmds_need_lc_F77
23353
23354# Whether or not to disallow shared libs when runtime libs are static
23355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23356
23357# Whether or not to optimize for fast installation.
23358fast_install=$enable_fast_install
23359
23360# The host system.
23361host_alias=$host_alias
23362host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023363host_os=$host_os
23364
23365# The build system.
23366build_alias=$build_alias
23367build=$build
23368build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023369
23370# An echo program that does not interpret backslashes.
23371echo=$lt_echo
23372
23373# The archiver.
23374AR=$lt_AR
23375AR_FLAGS=$lt_AR_FLAGS
23376
23377# A C compiler.
23378LTCC=$lt_LTCC
23379
Reid Spencera773bd52006-08-04 18:18:08 +000023380# LTCC compiler flags.
23381LTCFLAGS=$lt_LTCFLAGS
23382
John Criswell47fdd832003-07-14 16:52:07 +000023383# A language-specific compiler.
23384CC=$lt_compiler_F77
23385
23386# Is the compiler the GNU C compiler?
23387with_gcc=$GCC_F77
23388
23389# An ERE matcher.
23390EGREP=$lt_EGREP
23391
23392# The linker used to build libraries.
23393LD=$lt_LD_F77
23394
23395# Whether we need hard or soft links.
23396LN_S=$lt_LN_S
23397
23398# A BSD-compatible nm program.
23399NM=$lt_NM
23400
23401# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023403
23404# Used to examine libraries when file_magic_cmd begins "file"
23405MAGIC_CMD=$MAGIC_CMD
23406
23407# Used on cygwin: DLL creation program.
23408DLLTOOL="$DLLTOOL"
23409
23410# Used on cygwin: object dumper.
23411OBJDUMP="$OBJDUMP"
23412
23413# Used on cygwin: assembler.
23414AS="$AS"
23415
23416# The name of the directory that contains temporary libtool files.
23417objdir=$objdir
23418
23419# How to create reloadable object files.
23420reload_flag=$lt_reload_flag
23421reload_cmds=$lt_reload_cmds
23422
23423# How to pass a linker flag through the compiler.
23424wl=$lt_lt_prog_compiler_wl_F77
23425
23426# Object file suffix (normally "o").
23427objext="$ac_objext"
23428
23429# Old archive suffix (normally "a").
23430libext="$libext"
23431
23432# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023433shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023434
23435# Executable file suffix (normally "").
23436exeext="$exeext"
23437
23438# Additional compiler flags for building library objects.
23439pic_flag=$lt_lt_prog_compiler_pic_F77
23440pic_mode=$pic_mode
23441
23442# What is the maximum length of a command?
23443max_cmd_len=$lt_cv_sys_max_cmd_len
23444
23445# Does compiler simultaneously support -c and -o options?
23446compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23447
Reid Spencera773bd52006-08-04 18:18:08 +000023448# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023449need_locks=$lt_need_locks
23450
23451# Do we need the lib prefix for modules?
23452need_lib_prefix=$need_lib_prefix
23453
23454# Do we need a version for libraries?
23455need_version=$need_version
23456
23457# Whether dlopen is supported.
23458dlopen_support=$enable_dlopen
23459
23460# Whether dlopen of programs is supported.
23461dlopen_self=$enable_dlopen_self
23462
23463# Whether dlopen of statically linked programs is supported.
23464dlopen_self_static=$enable_dlopen_self_static
23465
23466# Compiler flag to prevent dynamic linking.
23467link_static_flag=$lt_lt_prog_compiler_static_F77
23468
23469# Compiler flag to turn off builtin functions.
23470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23471
23472# Compiler flag to allow reflexive dlopens.
23473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23474
23475# Compiler flag to generate shared objects directly from archives.
23476whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23477
23478# Compiler flag to generate thread-safe objects.
23479thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23480
23481# Library versioning type.
23482version_type=$version_type
23483
23484# Format of library name prefix.
23485libname_spec=$lt_libname_spec
23486
23487# List of archive names. First name is the real one, the rest are links.
23488# The last name is the one that the linker finds with -lNAME.
23489library_names_spec=$lt_library_names_spec
23490
23491# The coded name of the library, if different from the real name.
23492soname_spec=$lt_soname_spec
23493
23494# Commands used to build and install an old-style archive.
23495RANLIB=$lt_RANLIB
23496old_archive_cmds=$lt_old_archive_cmds_F77
23497old_postinstall_cmds=$lt_old_postinstall_cmds
23498old_postuninstall_cmds=$lt_old_postuninstall_cmds
23499
23500# Create an old-style archive from a shared archive.
23501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23502
23503# Create a temporary old-style archive to link instead of a shared archive.
23504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23505
23506# Commands used to build and install a shared archive.
23507archive_cmds=$lt_archive_cmds_F77
23508archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23509postinstall_cmds=$lt_postinstall_cmds
23510postuninstall_cmds=$lt_postuninstall_cmds
23511
23512# Commands used to build a loadable module (assumed same as above if empty)
23513module_cmds=$lt_module_cmds_F77
23514module_expsym_cmds=$lt_module_expsym_cmds_F77
23515
23516# Commands to strip libraries.
23517old_striplib=$lt_old_striplib
23518striplib=$lt_striplib
23519
23520# Dependencies to place before the objects being linked to create a
23521# shared library.
23522predep_objects=$lt_predep_objects_F77
23523
23524# Dependencies to place after the objects being linked to create a
23525# shared library.
23526postdep_objects=$lt_postdep_objects_F77
23527
23528# Dependencies to place before the objects being linked to create a
23529# shared library.
23530predeps=$lt_predeps_F77
23531
23532# Dependencies to place after the objects being linked to create a
23533# shared library.
23534postdeps=$lt_postdeps_F77
23535
23536# The library search path used internally by the compiler when linking
23537# a shared library.
23538compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23539
23540# Method to check whether dependent libraries are shared objects.
23541deplibs_check_method=$lt_deplibs_check_method
23542
23543# Command to use when deplibs_check_method == file_magic.
23544file_magic_cmd=$lt_file_magic_cmd
23545
23546# Flag that allows shared libraries with undefined symbols to be built.
23547allow_undefined_flag=$lt_allow_undefined_flag_F77
23548
23549# Flag that forces no undefined symbols.
23550no_undefined_flag=$lt_no_undefined_flag_F77
23551
23552# Commands used to finish a libtool library installation in a directory.
23553finish_cmds=$lt_finish_cmds
23554
23555# Same as above, but a single script fragment to be evaled but not shown.
23556finish_eval=$lt_finish_eval
23557
23558# Take the output of nm and produce a listing of raw symbols and C names.
23559global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23560
23561# Transform the output of nm in a proper C declaration
23562global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23563
23564# Transform the output of nm in a C name address pair
23565global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23566
23567# This is the shared library runtime path variable.
23568runpath_var=$runpath_var
23569
23570# This is the shared library path variable.
23571shlibpath_var=$shlibpath_var
23572
23573# Is shlibpath searched before the hard-coded library search path?
23574shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23575
23576# How to hardcode a shared library path into an executable.
23577hardcode_action=$hardcode_action_F77
23578
23579# Whether we should hardcode library paths into libraries.
23580hardcode_into_libs=$hardcode_into_libs
23581
23582# Flag to hardcode \$libdir into a binary during linking.
23583# This must work even if \$libdir does not exist.
23584hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23585
23586# If ld is used when linking, flag to hardcode \$libdir into
23587# a binary during linking. This must work even if \$libdir does
23588# not exist.
23589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23590
23591# Whether we need a single -rpath flag with a separated argument.
23592hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23593
23594# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23595# resulting binary.
23596hardcode_direct=$hardcode_direct_F77
23597
23598# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23599# resulting binary.
23600hardcode_minus_L=$hardcode_minus_L_F77
23601
23602# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23603# the resulting binary.
23604hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23605
23606# Set to yes if building a shared library automatically hardcodes DIR into the library
23607# and all subsequent libraries and executables linked against it.
23608hardcode_automatic=$hardcode_automatic_F77
23609
23610# Variables whose values should be saved in libtool wrapper scripts and
23611# restored at relink time.
23612variables_saved_for_relink="$variables_saved_for_relink"
23613
23614# Whether libtool must link a program against all its dependency libraries.
23615link_all_deplibs=$link_all_deplibs_F77
23616
23617# Compile-time system search path for libraries
23618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23619
23620# Run-time system search path for libraries
23621sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23622
23623# Fix the shell variable \$srcfile for the compiler.
23624fix_srcfile_path="$fix_srcfile_path_F77"
23625
23626# Set to yes if exported symbols are required.
23627always_export_symbols=$always_export_symbols_F77
23628
23629# The commands to list exported symbols.
23630export_symbols_cmds=$lt_export_symbols_cmds_F77
23631
23632# The commands to extract the exported symbol list from a shared archive.
23633extract_expsyms_cmds=$lt_extract_expsyms_cmds
23634
23635# Symbols that should not be listed in the preloaded symbols.
23636exclude_expsyms=$lt_exclude_expsyms_F77
23637
23638# Symbols that must always be exported.
23639include_expsyms=$lt_include_expsyms_F77
23640
23641# ### END LIBTOOL TAG CONFIG: $tagname
23642
23643__EOF__
23644
23645
23646else
23647 # If there is no Makefile yet, we rely on a make rule to execute
23648 # `config.status --recheck' to rerun these tests and create the
23649 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023650 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23651 if test -f "$ltmain_in"; then
23652 test -f Makefile && make "$ltmain"
23653 fi
John Criswell47fdd832003-07-14 16:52:07 +000023654fi
23655
23656
23657ac_ext=c
23658ac_cpp='$CPP $CPPFLAGS'
23659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23661ac_compiler_gnu=$ac_cv_c_compiler_gnu
23662
23663CC="$lt_save_CC"
23664
23665 else
23666 tagname=""
23667 fi
23668 ;;
23669
23670 GCJ)
23671 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023672 ac_ext=c
23673ac_cpp='$CPP $CPPFLAGS'
23674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023677
23678
23679# Source file extension for Java test sources.
23680ac_ext=java
23681
23682# Object file extension for compiled Java test sources.
23683objext=o
23684objext_GCJ=$objext
23685
23686# Code to be used in simple compile tests
23687lt_simple_compile_test_code="class foo {}\n"
23688
23689# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023690lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023691
23692# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23693
23694# If no C compiler was specified, use CC.
23695LTCC=${LTCC-"$CC"}
23696
Reid Spencera773bd52006-08-04 18:18:08 +000023697# If no C compiler flags were specified, use CFLAGS.
23698LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23699
John Criswell47fdd832003-07-14 16:52:07 +000023700# Allow CC to be a program name with arguments.
23701compiler=$CC
23702
23703
Reid Spencera773bd52006-08-04 18:18:08 +000023704# save warnings/boilerplate of simple test code
23705ac_outfile=conftest.$ac_objext
23706printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23707eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23708_lt_compiler_boilerplate=`cat conftest.err`
23709$rm conftest*
23710
23711ac_outfile=conftest.$ac_objext
23712printf "$lt_simple_link_test_code" >conftest.$ac_ext
23713eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23714_lt_linker_boilerplate=`cat conftest.err`
23715$rm conftest*
23716
23717
John Criswell47fdd832003-07-14 16:52:07 +000023718# Allow CC to be a program name with arguments.
23719lt_save_CC="$CC"
23720CC=${GCJ-"gcj"}
23721compiler=$CC
23722compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023723for cc_temp in $compiler""; do
23724 case $cc_temp in
23725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23727 \-*) ;;
23728 *) break;;
23729 esac
23730done
23731cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23732
John Criswell47fdd832003-07-14 16:52:07 +000023733
23734# GCJ did not exist at the time GCC didn't implicitly link libc in.
23735archive_cmds_need_lc_GCJ=no
23736
Reid Spencera773bd52006-08-04 18:18:08 +000023737old_archive_cmds_GCJ=$old_archive_cmds
23738
John Criswell47fdd832003-07-14 16:52:07 +000023739
23740lt_prog_compiler_no_builtin_flag_GCJ=
23741
23742if test "$GCC" = yes; then
23743 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23744
Reid Spencer2706f8c2004-09-19 23:53:36 +000023745
Reid Spencera773bd52006-08-04 18:18:08 +000023746{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23747echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023748if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750else
23751 lt_cv_prog_compiler_rtti_exceptions=no
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754 lt_compiler_flag="-fno-rtti -fno-exceptions"
23755 # Insert the option either (1) after the last *FLAGS variable, or
23756 # (2) before a word containing "conftest.", or (3) at the end.
23757 # Note that $ac_compile itself does not contain backslashes and begins
23758 # with a dollar sign (not a hyphen), so the echo should work correctly.
23759 # The option is referenced via a variable to avoid confusing sed.
23760 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000023764 (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023765 (eval "$lt_compile" 2>conftest.err)
23766 ac_status=$?
23767 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000023768 echo "$as_me:23768: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023769 if (exit $ac_status) && test -s "$ac_outfile"; then
23770 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023771 # So say no if there are warnings other than the usual output.
23772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023775 lt_cv_prog_compiler_rtti_exceptions=yes
23776 fi
23777 fi
23778 $rm conftest*
23779
23780fi
Reid Spencera773bd52006-08-04 18:18:08 +000023781{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23782echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023783
23784if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23785 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23786else
23787 :
23788fi
23789
23790fi
23791
23792lt_prog_compiler_wl_GCJ=
23793lt_prog_compiler_pic_GCJ=
23794lt_prog_compiler_static_GCJ=
23795
Reid Spencera773bd52006-08-04 18:18:08 +000023796{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23797echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023798
23799 if test "$GCC" = yes; then
23800 lt_prog_compiler_wl_GCJ='-Wl,'
23801 lt_prog_compiler_static_GCJ='-static'
23802
23803 case $host_os in
23804 aix*)
23805 # All AIX code is PIC.
23806 if test "$host_cpu" = ia64; then
23807 # AIX 5 now supports IA64 processor
23808 lt_prog_compiler_static_GCJ='-Bstatic'
23809 fi
23810 ;;
23811
23812 amigaos*)
23813 # FIXME: we need at least 68020 code to build shared libraries, but
23814 # adding the `-m68020' flag to GCC prevents building anything better,
23815 # like `-m68040'.
23816 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23817 ;;
23818
23819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23820 # PIC is the default for these OSes.
23821 ;;
23822
23823 mingw* | pw32* | os2*)
23824 # This hack is so that the source file can tell whether it is being
23825 # built for inclusion in a dll (and should export symbols for example).
23826 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23827 ;;
23828
23829 darwin* | rhapsody*)
23830 # PIC is the default on this platform
23831 # Common symbols not allowed in MH_DYLIB files
23832 lt_prog_compiler_pic_GCJ='-fno-common'
23833 ;;
23834
Reid Spencera773bd52006-08-04 18:18:08 +000023835 interix3*)
23836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23837 # Instead, we relocate shared libraries at runtime.
23838 ;;
23839
John Criswell47fdd832003-07-14 16:52:07 +000023840 msdosdjgpp*)
23841 # Just because we use GCC doesn't mean we suddenly get shared libraries
23842 # on systems that don't support them.
23843 lt_prog_compiler_can_build_shared_GCJ=no
23844 enable_shared=no
23845 ;;
23846
23847 sysv4*MP*)
23848 if test -d /usr/nec; then
23849 lt_prog_compiler_pic_GCJ=-Kconform_pic
23850 fi
23851 ;;
23852
23853 hpux*)
23854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23855 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023856 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023857 hppa*64*|ia64*)
23858 # +Z the default
23859 ;;
23860 *)
23861 lt_prog_compiler_pic_GCJ='-fPIC'
23862 ;;
23863 esac
23864 ;;
23865
23866 *)
23867 lt_prog_compiler_pic_GCJ='-fPIC'
23868 ;;
23869 esac
23870 else
23871 # PORTME Check for flag to pass linker flags through the system compiler.
23872 case $host_os in
23873 aix*)
23874 lt_prog_compiler_wl_GCJ='-Wl,'
23875 if test "$host_cpu" = ia64; then
23876 # AIX 5 now supports IA64 processor
23877 lt_prog_compiler_static_GCJ='-Bstatic'
23878 else
23879 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23880 fi
23881 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023882 darwin*)
23883 # PIC is the default on this platform
23884 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023885 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023886 xlc*)
23887 lt_prog_compiler_pic_GCJ='-qnocommon'
23888 lt_prog_compiler_wl_GCJ='-Wl,'
23889 ;;
23890 esac
23891 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023892
23893 mingw* | pw32* | os2*)
23894 # This hack is so that the source file can tell whether it is being
23895 # built for inclusion in a dll (and should export symbols for example).
23896 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23897 ;;
23898
23899 hpux9* | hpux10* | hpux11*)
23900 lt_prog_compiler_wl_GCJ='-Wl,'
23901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23902 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023903 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023904 hppa*64*|ia64*)
23905 # +Z the default
23906 ;;
23907 *)
23908 lt_prog_compiler_pic_GCJ='+Z'
23909 ;;
23910 esac
23911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23912 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23913 ;;
23914
23915 irix5* | irix6* | nonstopux*)
23916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 # PIC (with -KPIC) is the default.
23918 lt_prog_compiler_static_GCJ='-non_shared'
23919 ;;
23920
23921 newsos6)
23922 lt_prog_compiler_pic_GCJ='-KPIC'
23923 lt_prog_compiler_static_GCJ='-Bstatic'
23924 ;;
23925
23926 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023927 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023928 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023929 lt_prog_compiler_wl_GCJ='-Wl,'
23930 lt_prog_compiler_pic_GCJ='-KPIC'
23931 lt_prog_compiler_static_GCJ='-static'
23932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023933 pgcc* | pgf77* | pgf90* | pgf95*)
23934 # Portland Group compilers (*not* the Pentium gcc compiler,
23935 # which looks to be a dead project)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 lt_prog_compiler_pic_GCJ='-fpic'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23939 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023940 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023941 lt_prog_compiler_wl_GCJ='-Wl,'
23942 # All Alpha code is PIC.
23943 lt_prog_compiler_static_GCJ='-non_shared'
23944 ;;
23945 esac
23946 ;;
23947
23948 osf3* | osf4* | osf5*)
23949 lt_prog_compiler_wl_GCJ='-Wl,'
23950 # All OSF/1 code is PIC.
23951 lt_prog_compiler_static_GCJ='-non_shared'
23952 ;;
23953
John Criswell47fdd832003-07-14 16:52:07 +000023954 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023955 lt_prog_compiler_pic_GCJ='-KPIC'
23956 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023957 case $cc_basename in
23958 f77* | f90* | f95*)
23959 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23960 *)
23961 lt_prog_compiler_wl_GCJ='-Wl,';;
23962 esac
John Criswell47fdd832003-07-14 16:52:07 +000023963 ;;
23964
23965 sunos4*)
23966 lt_prog_compiler_wl_GCJ='-Qoption ld '
23967 lt_prog_compiler_pic_GCJ='-PIC'
23968 lt_prog_compiler_static_GCJ='-Bstatic'
23969 ;;
23970
Reid Spencera773bd52006-08-04 18:18:08 +000023971 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023972 lt_prog_compiler_wl_GCJ='-Wl,'
23973 lt_prog_compiler_pic_GCJ='-KPIC'
23974 lt_prog_compiler_static_GCJ='-Bstatic'
23975 ;;
23976
23977 sysv4*MP*)
23978 if test -d /usr/nec ;then
23979 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23981 fi
23982 ;;
23983
Reid Spencera773bd52006-08-04 18:18:08 +000023984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23985 lt_prog_compiler_wl_GCJ='-Wl,'
23986 lt_prog_compiler_pic_GCJ='-KPIC'
23987 lt_prog_compiler_static_GCJ='-Bstatic'
23988 ;;
23989
23990 unicos*)
23991 lt_prog_compiler_wl_GCJ='-Wl,'
23992 lt_prog_compiler_can_build_shared_GCJ=no
23993 ;;
23994
John Criswell47fdd832003-07-14 16:52:07 +000023995 uts4*)
23996 lt_prog_compiler_pic_GCJ='-pic'
23997 lt_prog_compiler_static_GCJ='-Bstatic'
23998 ;;
23999
24000 *)
24001 lt_prog_compiler_can_build_shared_GCJ=no
24002 ;;
24003 esac
24004 fi
24005
Reid Spencera773bd52006-08-04 18:18:08 +000024006{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24007echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024008
24009#
24010# Check to make sure the PIC flag actually works.
24011#
24012if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024013
Reid Spencera773bd52006-08-04 18:18:08 +000024014{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024016if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24018else
24019 lt_prog_compiler_pic_works_GCJ=no
24020 ac_outfile=conftest.$ac_objext
24021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24023 # Insert the option either (1) after the last *FLAGS variable, or
24024 # (2) before a word containing "conftest.", or (3) at the end.
24025 # Note that $ac_compile itself does not contain backslashes and begins
24026 # with a dollar sign (not a hyphen), so the echo should work correctly.
24027 # The option is referenced via a variable to avoid confusing sed.
24028 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000024032 (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024033 (eval "$lt_compile" 2>conftest.err)
24034 ac_status=$?
24035 cat conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000024036 echo "$as_me:24036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024037 if (exit $ac_status) && test -s "$ac_outfile"; then
24038 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024039 # So say no if there are warnings other than the usual output.
24040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024043 lt_prog_compiler_pic_works_GCJ=yes
24044 fi
24045 fi
24046 $rm conftest*
24047
24048fi
Reid Spencera773bd52006-08-04 18:18:08 +000024049{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24050echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024051
24052if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24053 case $lt_prog_compiler_pic_GCJ in
24054 "" | " "*) ;;
24055 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24056 esac
24057else
24058 lt_prog_compiler_pic_GCJ=
24059 lt_prog_compiler_can_build_shared_GCJ=no
24060fi
24061
24062fi
Reid Spencera773bd52006-08-04 18:18:08 +000024063case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024064 # For platforms which do not support PIC, -DPIC is meaningless:
24065 *djgpp*)
24066 lt_prog_compiler_pic_GCJ=
24067 ;;
24068 *)
24069 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24070 ;;
24071esac
24072
Reid Spencera773bd52006-08-04 18:18:08 +000024073#
24074# Check to make sure the static flag actually works.
24075#
24076wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24077{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24078echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24079if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081else
24082 lt_prog_compiler_static_works_GCJ=no
24083 save_LDFLAGS="$LDFLAGS"
24084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24085 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24087 # The linker can only warn and ignore the option if not recognized
24088 # So say no if there are warnings
24089 if test -s conftest.err; then
24090 # Append any errors to the config.log.
24091 cat conftest.err 1>&5
24092 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24094 if diff conftest.exp conftest.er2 >/dev/null; then
24095 lt_prog_compiler_static_works_GCJ=yes
24096 fi
24097 else
24098 lt_prog_compiler_static_works_GCJ=yes
24099 fi
24100 fi
24101 $rm conftest*
24102 LDFLAGS="$save_LDFLAGS"
24103
24104fi
24105{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24106echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24107
24108if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24109 :
24110else
24111 lt_prog_compiler_static_GCJ=
24112fi
24113
24114
24115{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24116echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024117if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24119else
24120 lt_cv_prog_compiler_c_o_GCJ=no
24121 $rm -r conftest 2>/dev/null
24122 mkdir conftest
24123 cd conftest
24124 mkdir out
24125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24126
John Criswell47fdd832003-07-14 16:52:07 +000024127 lt_compiler_flag="-o out/conftest2.$ac_objext"
24128 # Insert the option either (1) after the last *FLAGS variable, or
24129 # (2) before a word containing "conftest.", or (3) at the end.
24130 # Note that $ac_compile itself does not contain backslashes and begins
24131 # with a dollar sign (not a hyphen), so the echo should work correctly.
24132 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24135 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000024136 (eval echo "\"\$as_me:24136: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024137 (eval "$lt_compile" 2>out/conftest.err)
24138 ac_status=$?
24139 cat out/conftest.err >&5
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000024140 echo "$as_me:24140: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24142 then
24143 # The compiler can only warn and ignore the option if not recognized
24144 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024148 lt_cv_prog_compiler_c_o_GCJ=yes
24149 fi
24150 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024151 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024152 $rm conftest*
24153 # SGI C++ compiler will create directory out/ii_files/ for
24154 # template instantiation
24155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24156 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024157 cd ..
24158 rmdir conftest
24159 $rm conftest*
24160
24161fi
Reid Spencera773bd52006-08-04 18:18:08 +000024162{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24163echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024164
24165
24166hard_links="nottested"
24167if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24168 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024169 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24170echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024171 hard_links=yes
24172 $rm conftest*
24173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24174 touch conftest.a
24175 ln conftest.a conftest.b 2>&5 || hard_links=no
24176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024177 { echo "$as_me:$LINENO: result: $hard_links" >&5
24178echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024179 if test "$hard_links" = no; then
24180 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24181echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24182 need_locks=warn
24183 fi
24184else
24185 need_locks=no
24186fi
24187
Reid Spencera773bd52006-08-04 18:18:08 +000024188{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24189echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024190
24191 runpath_var=
24192 allow_undefined_flag_GCJ=
24193 enable_shared_with_static_runtimes_GCJ=no
24194 archive_cmds_GCJ=
24195 archive_expsym_cmds_GCJ=
24196 old_archive_From_new_cmds_GCJ=
24197 old_archive_from_expsyms_cmds_GCJ=
24198 export_dynamic_flag_spec_GCJ=
24199 whole_archive_flag_spec_GCJ=
24200 thread_safe_flag_spec_GCJ=
24201 hardcode_libdir_flag_spec_GCJ=
24202 hardcode_libdir_flag_spec_ld_GCJ=
24203 hardcode_libdir_separator_GCJ=
24204 hardcode_direct_GCJ=no
24205 hardcode_minus_L_GCJ=no
24206 hardcode_shlibpath_var_GCJ=unsupported
24207 link_all_deplibs_GCJ=unknown
24208 hardcode_automatic_GCJ=no
24209 module_cmds_GCJ=
24210 module_expsym_cmds_GCJ=
24211 always_export_symbols_GCJ=no
24212 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24213 # include_expsyms should be a list of space-separated symbols to be *always*
24214 # included in the symbol list
24215 include_expsyms_GCJ=
24216 # exclude_expsyms can be an extended regexp of symbols to exclude
24217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24219 # as well as any symbol that contains `d'.
24220 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24222 # platforms (ab)use it in PIC code, but their linkers get confused if
24223 # the symbol is explicitly referenced. Since portable code cannot
24224 # rely on this symbol name, it's probably fine to never include it in
24225 # preloaded symbol tables.
24226 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024227 # Just being paranoid about ensuring that cc_basename is set.
24228 for cc_temp in $compiler""; do
24229 case $cc_temp in
24230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24232 \-*) ;;
24233 *) break;;
24234 esac
24235done
24236cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024237
24238 case $host_os in
24239 cygwin* | mingw* | pw32*)
24240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24241 # When not using gcc, we currently assume that we are using
24242 # Microsoft Visual C++.
24243 if test "$GCC" != yes; then
24244 with_gnu_ld=no
24245 fi
24246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024247 interix*)
24248 # we just hope/assume this is gcc and not c89 (= MSVC++)
24249 with_gnu_ld=yes
24250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024251 openbsd*)
24252 with_gnu_ld=no
24253 ;;
24254 esac
24255
24256 ld_shlibs_GCJ=yes
24257 if test "$with_gnu_ld" = yes; then
24258 # If archive_cmds runs LD, not CC, wlarc should be empty
24259 wlarc='${wl}'
24260
Reid Spencera773bd52006-08-04 18:18:08 +000024261 # Set some defaults for GNU ld with shared library support. These
24262 # are reset later if shared libraries are not supported. Putting them
24263 # here allows them to be overridden if necessary.
24264 runpath_var=LD_RUN_PATH
24265 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24266 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24267 # ancient GNU ld didn't support --whole-archive et. al.
24268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24269 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24270 else
24271 whole_archive_flag_spec_GCJ=
24272 fi
24273 supports_anon_versioning=no
24274 case `$LD -v 2>/dev/null` in
24275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24278 *\ 2.11.*) ;; # other 2.11 versions
24279 *) supports_anon_versioning=yes ;;
24280 esac
24281
John Criswell47fdd832003-07-14 16:52:07 +000024282 # See if GNU ld supports shared libraries.
24283 case $host_os in
24284 aix3* | aix4* | aix5*)
24285 # On AIX/PPC, the GNU linker is very broken
24286 if test "$host_cpu" != ia64; then
24287 ld_shlibs_GCJ=no
24288 cat <<EOF 1>&2
24289
24290*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24291*** to be unable to reliably create shared libraries on AIX.
24292*** Therefore, libtool is disabling shared libraries support. If you
24293*** really care for shared libraries, you may want to modify your PATH
24294*** so that a non-GNU linker is found, and then restart.
24295
24296EOF
24297 fi
24298 ;;
24299
24300 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024301 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 +000024302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303 hardcode_minus_L_GCJ=yes
24304
24305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24306 # that the semantics of dynamic libraries on AmigaOS, at least up
24307 # to version 4, is to share data among multiple programs linked
24308 # with the same dynamic library. Since this doesn't match the
24309 # behavior of shared libraries on other platforms, we can't use
24310 # them.
24311 ld_shlibs_GCJ=no
24312 ;;
24313
24314 beos*)
24315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316 allow_undefined_flag_GCJ=unsupported
24317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24318 # support --undefined. This deserves some investigation. FIXME
24319 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24320 else
24321 ld_shlibs_GCJ=no
24322 fi
24323 ;;
24324
24325 cygwin* | mingw* | pw32*)
24326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24327 # as there is no search path for DLLs.
24328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329 allow_undefined_flag_GCJ=unsupported
24330 always_export_symbols_GCJ=no
24331 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024332 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 +000024333
24334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024335 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 +000024336 # If the export-symbols file already is a .def file (1st line
24337 # is EXPORTS), use it as is; otherwise, prepend...
24338 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24339 cp $export_symbols $output_objdir/$soname.def;
24340 else
24341 echo EXPORTS > $output_objdir/$soname.def;
24342 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024343 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024344 $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 +000024345 else
Reid Spencera773bd52006-08-04 18:18:08 +000024346 ld_shlibs_GCJ=no
24347 fi
24348 ;;
24349
24350 interix3*)
24351 hardcode_direct_GCJ=no
24352 hardcode_shlibpath_var_GCJ=no
24353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24354 export_dynamic_flag_spec_GCJ='${wl}-E'
24355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24356 # Instead, shared libraries are loaded at an image base (0x10000000 by
24357 # default) and relocated if they conflict, which is a slow very memory
24358 # consuming and fragmenting process. To avoid this, we pick a random,
24359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24361 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'
24362 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'
24363 ;;
24364
24365 linux*)
24366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24367 tmp_addflag=
24368 case $cc_basename,$host_cpu in
24369 pgcc*) # Portland Group C compiler
24370 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'
24371 tmp_addflag=' $pic_flag'
24372 ;;
24373 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24374 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'
24375 tmp_addflag=' $pic_flag -Mnomain' ;;
24376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24377 tmp_addflag=' -i_dynamic' ;;
24378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24379 tmp_addflag=' -i_dynamic -nofor_main' ;;
24380 ifc* | ifort*) # Intel Fortran compiler
24381 tmp_addflag=' -nofor_main' ;;
24382 esac
24383 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24384
24385 if test $supports_anon_versioning = yes; then
24386 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24388 $echo "local: *; };" >> $output_objdir/$libname.ver~
24389 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24390 fi
24391 else
24392 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024393 fi
24394 ;;
24395
24396 netbsd*)
24397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24398 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24399 wlarc=
24400 else
24401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403 fi
24404 ;;
24405
Reid Spencera773bd52006-08-04 18:18:08 +000024406 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24408 ld_shlibs_GCJ=no
24409 cat <<EOF 1>&2
24410
24411*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24412*** create shared libraries on Solaris systems. Therefore, libtool
24413*** is disabling shared libraries support. We urge you to upgrade GNU
24414*** binutils to release 2.9.1 or newer. Another option is to modify
24415*** your PATH or compiler configuration so that the native linker is
24416*** used, and then restart.
24417
24418EOF
24419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24422 else
24423 ld_shlibs_GCJ=no
24424 fi
24425 ;;
24426
Reid Spencera773bd52006-08-04 18:18:08 +000024427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24428 case `$LD -v 2>&1` in
24429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24430 ld_shlibs_GCJ=no
24431 cat <<_LT_EOF 1>&2
24432
24433*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24434*** reliably create shared libraries on SCO systems. Therefore, libtool
24435*** is disabling shared libraries support. We urge you to upgrade GNU
24436*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24437*** your PATH or compiler configuration so that the native linker is
24438*** used, and then restart.
24439
24440_LT_EOF
24441 ;;
24442 *)
24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24445 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24446 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24447 else
24448 ld_shlibs_GCJ=no
24449 fi
24450 ;;
24451 esac
24452 ;;
24453
John Criswell47fdd832003-07-14 16:52:07 +000024454 sunos4*)
24455 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24456 wlarc=
24457 hardcode_direct_GCJ=yes
24458 hardcode_shlibpath_var_GCJ=no
24459 ;;
24460
24461 *)
24462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24463 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24464 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24465 else
24466 ld_shlibs_GCJ=no
24467 fi
24468 ;;
24469 esac
24470
Reid Spencera773bd52006-08-04 18:18:08 +000024471 if test "$ld_shlibs_GCJ" = no; then
24472 runpath_var=
24473 hardcode_libdir_flag_spec_GCJ=
24474 export_dynamic_flag_spec_GCJ=
24475 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024476 fi
24477 else
24478 # PORTME fill in a description of your system's linker (not GNU ld)
24479 case $host_os in
24480 aix3*)
24481 allow_undefined_flag_GCJ=unsupported
24482 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024483 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 +000024484 # Note: this linker hardcodes the directories in LIBPATH if there
24485 # are no directories specified by -L.
24486 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024488 # Neither direct hardcoding nor static linking is supported with a
24489 # broken collect2.
24490 hardcode_direct_GCJ=unsupported
24491 fi
24492 ;;
24493
24494 aix4* | aix5*)
24495 if test "$host_cpu" = ia64; then
24496 # On IA64, the linker does run time linking by default, so we don't
24497 # have to do anything special.
24498 aix_use_runtimelinking=no
24499 exp_sym_flag='-Bexport'
24500 no_entry_flag=""
24501 else
24502 # If we're using GNU nm, then we don't want the "-C" option.
24503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24505 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'
24506 else
24507 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'
24508 fi
24509 aix_use_runtimelinking=no
24510
24511 # Test if we are trying to use run time linking or normal
24512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24513 # need to do runtime linking.
24514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24515 for ld_flag in $LDFLAGS; do
24516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24517 aix_use_runtimelinking=yes
24518 break
24519 fi
24520 done
Reid Spencera773bd52006-08-04 18:18:08 +000024521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024522 esac
24523
24524 exp_sym_flag='-bexport'
24525 no_entry_flag='-bnoentry'
24526 fi
24527
24528 # When large executables or shared objects are built, AIX ld can
24529 # have problems creating the table of contents. If linking a library
24530 # or program results in "error TOC overflow" add -mminimal-toc to
24531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24533
24534 archive_cmds_GCJ=''
24535 hardcode_direct_GCJ=yes
24536 hardcode_libdir_separator_GCJ=':'
24537 link_all_deplibs_GCJ=yes
24538
24539 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024540 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024541 # We only want to do this on AIX 4.2 and lower, the check
24542 # below for broken collect2 doesn't work under 4.3+
24543 collect2name=`${CC} -print-prog-name=collect2`
24544 if test -f "$collect2name" && \
24545 strings "$collect2name" | grep resolve_lib_name >/dev/null
24546 then
24547 # We have reworked collect2
24548 hardcode_direct_GCJ=yes
24549 else
24550 # We have old collect2
24551 hardcode_direct_GCJ=unsupported
24552 # It fails to find uninstalled libraries when the uninstalled
24553 # path is not listed in the libpath. Setting hardcode_minus_L
24554 # to unsupported forces relinking
24555 hardcode_minus_L_GCJ=yes
24556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24557 hardcode_libdir_separator_GCJ=
24558 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024560 esac
24561 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024562 if test "$aix_use_runtimelinking" = yes; then
24563 shared_flag="$shared_flag "'${wl}-G'
24564 fi
John Criswell47fdd832003-07-14 16:52:07 +000024565 else
24566 # not using gcc
24567 if test "$host_cpu" = ia64; then
24568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24569 # chokes on -Wl,-G. The following line is correct:
24570 shared_flag='-G'
24571 else
Reid Spencera773bd52006-08-04 18:18:08 +000024572 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024573 shared_flag='${wl}-G'
24574 else
24575 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024576 fi
John Criswell47fdd832003-07-14 16:52:07 +000024577 fi
24578 fi
24579
24580 # It seems that -bexpall does not export symbols beginning with
24581 # underscore (_), so it is better to generate a list of symbols to export.
24582 always_export_symbols_GCJ=yes
24583 if test "$aix_use_runtimelinking" = yes; then
24584 # Warning - without using the other runtime loading flags (-brtl),
24585 # -berok will link without error, but may produce a broken library.
24586 allow_undefined_flag_GCJ='-berok'
24587 # Determine the default libpath from the value encoded in an empty executable.
24588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024589/* confdefs.h. */
24590_ACEOF
24591cat confdefs.h >>conftest.$ac_ext
24592cat >>conftest.$ac_ext <<_ACEOF
24593/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024594
John Criswell47fdd832003-07-14 16:52:07 +000024595int
24596main ()
24597{
24598
24599 ;
24600 return 0;
24601}
24602_ACEOF
24603rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024604if { (ac_try="$ac_link"
24605case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608esac
24609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024616 (exit $ac_status); } &&
24617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24618 { (case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24621esac
24622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_try") 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; } &&
24627 { ac_try='test -s conftest$ac_exeext'
24628 { (case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24631esac
24632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_try") 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024637
24638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24639}'`
24640# Check for a 64-bit object if we didn't find anything.
24641if 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; }
24642}'`; fi
24643else
24644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024645sed 's/^/| /' conftest.$ac_ext >&5
24646
Reid Spencera773bd52006-08-04 18:18:08 +000024647
John Criswell47fdd832003-07-14 16:52:07 +000024648fi
Reid Spencera773bd52006-08-04 18:18:08 +000024649
Bill Wendlingebcceee2009-04-18 11:20:33 +000024650rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024651 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24653
24654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024655 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 +000024656 else
24657 if test "$host_cpu" = ia64; then
24658 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24659 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024660 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 +000024661 else
24662 # Determine the default libpath from the value encoded in an empty executable.
24663 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024664/* confdefs.h. */
24665_ACEOF
24666cat confdefs.h >>conftest.$ac_ext
24667cat >>conftest.$ac_ext <<_ACEOF
24668/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024669
John Criswell47fdd832003-07-14 16:52:07 +000024670int
24671main ()
24672{
24673
24674 ;
24675 return 0;
24676}
24677_ACEOF
24678rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024679if { (ac_try="$ac_link"
24680case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683esac
24684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024687 grep -v '^ *+' conftest.er1 >conftest.err
24688 rm -f conftest.er1
24689 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024691 (exit $ac_status); } &&
24692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24693 { (case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696esac
24697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_try") 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } &&
24702 { ac_try='test -s conftest$ac_exeext'
24703 { (case "(($ac_try" in
24704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705 *) ac_try_echo=$ac_try;;
24706esac
24707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708 (eval "$ac_try") 2>&5
24709 ac_status=$?
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024712
24713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24714}'`
24715# Check for a 64-bit object if we didn't find anything.
24716if 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; }
24717}'`; fi
24718else
24719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024720sed 's/^/| /' conftest.$ac_ext >&5
24721
Reid Spencera773bd52006-08-04 18:18:08 +000024722
John Criswell47fdd832003-07-14 16:52:07 +000024723fi
Reid Spencera773bd52006-08-04 18:18:08 +000024724
Bill Wendlingebcceee2009-04-18 11:20:33 +000024725rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024726 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24728
24729 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24730 # Warning - without using the other run time loading flags,
24731 # -berok will link without error, but may produce a broken library.
24732 no_undefined_flag_GCJ=' ${wl}-bernotok'
24733 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024734 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024735 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024736 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024737 # This is similar to how AIX traditionally builds its shared libraries.
24738 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 +000024739 fi
24740 fi
24741 ;;
24742
24743 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024744 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 +000024745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24746 hardcode_minus_L_GCJ=yes
24747 # see comment about different semantics on the GNU ld section
24748 ld_shlibs_GCJ=no
24749 ;;
24750
Reid Spencer2706f8c2004-09-19 23:53:36 +000024751 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024752 export_dynamic_flag_spec_GCJ=-rdynamic
24753 ;;
24754
24755 cygwin* | mingw* | pw32*)
24756 # When not using gcc, we currently assume that we are using
24757 # Microsoft Visual C++.
24758 # hardcode_libdir_flag_spec is actually meaningless, as there is
24759 # no search path for DLLs.
24760 hardcode_libdir_flag_spec_GCJ=' '
24761 allow_undefined_flag_GCJ=unsupported
24762 # Tell ltmain to make .lib files, not .a files.
24763 libext=lib
24764 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024765 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024766 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024767 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 +000024768 # The linker will automatically build a .lib file if we build a DLL.
24769 old_archive_From_new_cmds_GCJ='true'
24770 # FIXME: Should let the user specify the lib program.
24771 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024772 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024773 enable_shared_with_static_runtimes_GCJ=yes
24774 ;;
24775
24776 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024777 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778 rhapsody* | darwin1.[012])
24779 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24780 ;;
24781 *) # Darwin 1.3 on
24782 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24783 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24784 else
24785 case ${MACOSX_DEPLOYMENT_TARGET} in
24786 10.[012])
24787 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24788 ;;
24789 10.*)
24790 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24791 ;;
24792 esac
24793 fi
24794 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024795 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024796 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024797 hardcode_direct_GCJ=no
24798 hardcode_automatic_GCJ=yes
24799 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024800 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024801 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024802 if test "$GCC" = yes ; then
24803 output_verbose_link_cmd='echo'
24804 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24805 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024806 # 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 +000024807 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}'
24808 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 +000024809 else
Reid Spencera773bd52006-08-04 18:18:08 +000024810 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024811 xlc*)
24812 output_verbose_link_cmd='echo'
24813 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24814 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024815 # 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 +000024816 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}'
24817 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 +000024818 ;;
24819 *)
24820 ld_shlibs_GCJ=no
24821 ;;
24822 esac
John Criswell47fdd832003-07-14 16:52:07 +000024823 fi
24824 ;;
24825
24826 dgux*)
24827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829 hardcode_shlibpath_var_GCJ=no
24830 ;;
24831
24832 freebsd1*)
24833 ld_shlibs_GCJ=no
24834 ;;
24835
24836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24837 # support. Future versions do this automatically, but an explicit c++rt0.o
24838 # does not break anything, and helps significantly (at the cost of a little
24839 # extra space).
24840 freebsd2.2*)
24841 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24842 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24843 hardcode_direct_GCJ=yes
24844 hardcode_shlibpath_var_GCJ=no
24845 ;;
24846
24847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24848 freebsd2*)
24849 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24850 hardcode_direct_GCJ=yes
24851 hardcode_minus_L_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24853 ;;
24854
24855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024856 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024857 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24858 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24859 hardcode_direct_GCJ=yes
24860 hardcode_shlibpath_var_GCJ=no
24861 ;;
24862
24863 hpux9*)
24864 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024865 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 +000024866 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024867 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 +000024868 fi
24869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870 hardcode_libdir_separator_GCJ=:
24871 hardcode_direct_GCJ=yes
24872
24873 # hardcode_minus_L: Not really in the search PATH,
24874 # but as the default location of the library.
24875 hardcode_minus_L_GCJ=yes
24876 export_dynamic_flag_spec_GCJ='${wl}-E'
24877 ;;
24878
Reid Spencera773bd52006-08-04 18:18:08 +000024879 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024881 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24882 else
24883 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24884 fi
24885 if test "$with_gnu_ld" = no; then
24886 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24887 hardcode_libdir_separator_GCJ=:
24888
24889 hardcode_direct_GCJ=yes
24890 export_dynamic_flag_spec_GCJ='${wl}-E'
24891
24892 # hardcode_minus_L: Not really in the search PATH,
24893 # but as the default location of the library.
24894 hardcode_minus_L_GCJ=yes
24895 fi
24896 ;;
24897
24898 hpux11*)
24899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24900 case $host_cpu in
24901 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024902 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024904 ia64*)
24905 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24906 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024907 *)
24908 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24909 ;;
24910 esac
24911 else
Reid Spencera773bd52006-08-04 18:18:08 +000024912 case $host_cpu in
24913 hppa*64*)
24914 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24915 ;;
24916 ia64*)
24917 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024918 ;;
24919 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024920 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 +000024921 ;;
24922 esac
24923 fi
24924 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024927
Reid Spencera773bd52006-08-04 18:18:08 +000024928 case $host_cpu in
24929 hppa*64*|ia64*)
24930 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24931 hardcode_direct_GCJ=no
24932 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024933 ;;
24934 *)
John Criswell47fdd832003-07-14 16:52:07 +000024935 hardcode_direct_GCJ=yes
24936 export_dynamic_flag_spec_GCJ='${wl}-E'
24937
24938 # hardcode_minus_L: Not really in the search PATH,
24939 # but as the default location of the library.
24940 hardcode_minus_L_GCJ=yes
24941 ;;
24942 esac
24943 fi
24944 ;;
24945
24946 irix5* | irix6* | nonstopux*)
24947 if test "$GCC" = yes; then
24948 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'
24949 else
24950 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'
24951 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24952 fi
24953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24954 hardcode_libdir_separator_GCJ=:
24955 link_all_deplibs_GCJ=yes
24956 ;;
24957
24958 netbsd*)
24959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24961 else
24962 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24963 fi
24964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24965 hardcode_direct_GCJ=yes
24966 hardcode_shlibpath_var_GCJ=no
24967 ;;
24968
24969 newsos6)
24970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971 hardcode_direct_GCJ=yes
24972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973 hardcode_libdir_separator_GCJ=:
24974 hardcode_shlibpath_var_GCJ=no
24975 ;;
24976
24977 openbsd*)
24978 hardcode_direct_GCJ=yes
24979 hardcode_shlibpath_var_GCJ=no
24980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24981 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024982 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 +000024983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24984 export_dynamic_flag_spec_GCJ='${wl}-E'
24985 else
24986 case $host_os in
24987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24989 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24990 ;;
24991 *)
24992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24994 ;;
24995 esac
24996 fi
24997 ;;
24998
24999 os2*)
25000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25001 hardcode_minus_L_GCJ=yes
25002 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025003 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 +000025004 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25005 ;;
25006
25007 osf3*)
25008 if test "$GCC" = yes; then
25009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25010 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'
25011 else
25012 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25013 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'
25014 fi
25015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25016 hardcode_libdir_separator_GCJ=:
25017 ;;
25018
25019 osf4* | osf5*) # as osf3* with the addition of -msym flag
25020 if test "$GCC" = yes; then
25021 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25022 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'
25023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25024 else
25025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25026 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 +000025027 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 +000025028 $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 +000025029
John Criswell47fdd832003-07-14 16:52:07 +000025030 # Both c and cxx compiler support -rpath directly
25031 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25032 fi
25033 hardcode_libdir_separator_GCJ=:
25034 ;;
25035
John Criswell47fdd832003-07-14 16:52:07 +000025036 solaris*)
25037 no_undefined_flag_GCJ=' -z text'
25038 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025039 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025040 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025041 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25042 $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 +000025043 else
Reid Spencera773bd52006-08-04 18:18:08 +000025044 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025045 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025046 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25047 $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 +000025048 fi
25049 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25050 hardcode_shlibpath_var_GCJ=no
25051 case $host_os in
25052 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025053 *)
25054 # The compiler driver will combine linker options so we
25055 # cannot just pass the convience library names through
25056 # without $wl, iff we do not link with $LD.
25057 # Luckily, gcc supports the same syntax we need for Sun Studio.
25058 # Supported since Solaris 2.6 (maybe 2.5.1?)
25059 case $wlarc in
25060 '')
25061 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25062 *)
25063 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' ;;
25064 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025065 esac
25066 link_all_deplibs_GCJ=yes
25067 ;;
25068
25069 sunos4*)
25070 if test "x$host_vendor" = xsequent; then
25071 # Use $CC to link under sequent, because it throws in some extra .o
25072 # files that make .init and .fini sections work.
25073 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25074 else
25075 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25076 fi
25077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25078 hardcode_direct_GCJ=yes
25079 hardcode_minus_L_GCJ=yes
25080 hardcode_shlibpath_var_GCJ=no
25081 ;;
25082
25083 sysv4)
25084 case $host_vendor in
25085 sni)
25086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25087 hardcode_direct_GCJ=yes # is this really true???
25088 ;;
25089 siemens)
25090 ## LD is ld it makes a PLAMLIB
25091 ## CC just makes a GrossModule.
25092 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25093 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25094 hardcode_direct_GCJ=no
25095 ;;
25096 motorola)
25097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25098 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25099 ;;
25100 esac
25101 runpath_var='LD_RUN_PATH'
25102 hardcode_shlibpath_var_GCJ=no
25103 ;;
25104
25105 sysv4.3*)
25106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25107 hardcode_shlibpath_var_GCJ=no
25108 export_dynamic_flag_spec_GCJ='-Bexport'
25109 ;;
25110
25111 sysv4*MP*)
25112 if test -d /usr/nec; then
25113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114 hardcode_shlibpath_var_GCJ=no
25115 runpath_var=LD_RUN_PATH
25116 hardcode_runpath_var=yes
25117 ld_shlibs_GCJ=yes
25118 fi
25119 ;;
25120
Reid Spencera773bd52006-08-04 18:18:08 +000025121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25122 no_undefined_flag_GCJ='${wl}-z,text'
25123 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025124 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025125 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025126
John Criswell47fdd832003-07-14 16:52:07 +000025127 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025128 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25129 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 +000025130 else
Reid Spencera773bd52006-08-04 18:18:08 +000025131 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25132 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 +000025133 fi
John Criswell47fdd832003-07-14 16:52:07 +000025134 ;;
25135
Reid Spencera773bd52006-08-04 18:18:08 +000025136 sysv5* | sco3.2v5* | sco5v6*)
25137 # Note: We can NOT use -z defs as we might desire, because we do not
25138 # link with -lc, and that would cause any symbols used from libc to
25139 # always be unresolved, which means just about no library would
25140 # ever link correctly. If we're not using GNU ld we use -z text
25141 # though, which does catch some bad symbols but isn't as heavy-handed
25142 # as -z defs.
25143 no_undefined_flag_GCJ='${wl}-z,text'
25144 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25145 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025146 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025147 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25148 hardcode_libdir_separator_GCJ=':'
25149 link_all_deplibs_GCJ=yes
25150 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025151 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025152
25153 if test "$GCC" = yes; then
25154 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25155 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25156 else
25157 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25158 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25159 fi
John Criswell47fdd832003-07-14 16:52:07 +000025160 ;;
25161
25162 uts4*)
25163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25165 hardcode_shlibpath_var_GCJ=no
25166 ;;
25167
25168 *)
25169 ld_shlibs_GCJ=no
25170 ;;
25171 esac
25172 fi
25173
Reid Spencera773bd52006-08-04 18:18:08 +000025174{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25175echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025176test "$ld_shlibs_GCJ" = no && can_build_shared=no
25177
John Criswell47fdd832003-07-14 16:52:07 +000025178#
25179# Do we need to explicitly link libc?
25180#
25181case "x$archive_cmds_need_lc_GCJ" in
25182x|xyes)
25183 # Assume -lc should be added
25184 archive_cmds_need_lc_GCJ=yes
25185
25186 if test "$enable_shared" = yes && test "$GCC" = yes; then
25187 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025188 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025189 # FIXME: we may have to deal with multi-command sequences.
25190 ;;
25191 '$CC '*)
25192 # Test whether the compiler implicitly links with -lc since on some
25193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25194 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025197 $rm conftest*
25198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25199
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201 (eval $ac_compile) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } 2>conftest.err; then
25205 soname=conftest
25206 lib=conftest
25207 libobjs=conftest.$ac_objext
25208 deplibs=
25209 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025210 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025211 compiler_flags=-v
25212 linker_flags=-v
25213 verstring=
25214 output_objdir=.
25215 libname=conftest
25216 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25217 allow_undefined_flag_GCJ=
25218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25219 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }
25223 then
25224 archive_cmds_need_lc_GCJ=no
25225 else
25226 archive_cmds_need_lc_GCJ=yes
25227 fi
25228 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25229 else
25230 cat conftest.err 1>&5
25231 fi
25232 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25234echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025235 ;;
25236 esac
25237 fi
25238 ;;
25239esac
25240
Reid Spencera773bd52006-08-04 18:18:08 +000025241{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25242echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025243library_names_spec=
25244libname_spec='lib$name'
25245soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025246shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025247postinstall_cmds=
25248postuninstall_cmds=
25249finish_cmds=
25250finish_eval=
25251shlibpath_var=
25252shlibpath_overrides_runpath=unknown
25253version_type=none
25254dynamic_linker="$host_os ld.so"
25255sys_lib_dlsearch_path_spec="/lib /usr/lib"
25256if test "$GCC" = yes; then
25257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25259 # if the path contains ";" then we assume it to be the separator
25260 # otherwise default to the standard path separator (i.e. ":") - it is
25261 # assumed that no part of a normal pathname contains ";" but that should
25262 # okay in the real world where ";" in dirpaths is itself problematic.
25263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25264 else
25265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25266 fi
25267else
25268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25269fi
25270need_lib_prefix=unknown
25271hardcode_into_libs=no
25272
25273# when you set need_version to no, make sure it does not cause -set_version
25274# flags to be left without arguments
25275need_version=unknown
25276
25277case $host_os in
25278aix3*)
25279 version_type=linux
25280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25281 shlibpath_var=LIBPATH
25282
25283 # AIX 3 has no versioning support, so we append a major version to the name.
25284 soname_spec='${libname}${release}${shared_ext}$major'
25285 ;;
25286
25287aix4* | aix5*)
25288 version_type=linux
25289 need_lib_prefix=no
25290 need_version=no
25291 hardcode_into_libs=yes
25292 if test "$host_cpu" = ia64; then
25293 # AIX 5 supports IA64
25294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25295 shlibpath_var=LD_LIBRARY_PATH
25296 else
25297 # With GCC up to 2.95.x, collect2 would create an import file
25298 # for dependence libraries. The import file would start with
25299 # the line `#! .'. This would cause the generated library to
25300 # depend on `.', always an invalid library. This was fixed in
25301 # development snapshots of GCC prior to 3.0.
25302 case $host_os in
25303 aix4 | aix4.[01] | aix4.[01].*)
25304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25305 echo ' yes '
25306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25307 :
25308 else
25309 can_build_shared=no
25310 fi
25311 ;;
25312 esac
25313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25314 # soname into executable. Probably we can add versioning support to
25315 # collect2, so additional links can be useful in future.
25316 if test "$aix_use_runtimelinking" = yes; then
25317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25318 # instead of lib<name>.a to let people know that these are not
25319 # typical AIX shared libraries.
25320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25321 else
25322 # We preserve .a as extension for shared libraries through AIX4.2
25323 # and later when we are not doing run time linking.
25324 library_names_spec='${libname}${release}.a $libname.a'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25326 fi
25327 shlibpath_var=LIBPATH
25328 fi
25329 ;;
25330
25331amigaos*)
25332 library_names_spec='$libname.ixlibrary $libname.a'
25333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025334 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 +000025335 ;;
25336
25337beos*)
25338 library_names_spec='${libname}${shared_ext}'
25339 dynamic_linker="$host_os ld.so"
25340 shlibpath_var=LIBRARY_PATH
25341 ;;
25342
Reid Spencer2706f8c2004-09-19 23:53:36 +000025343bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025344 version_type=linux
25345 need_version=no
25346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25347 soname_spec='${libname}${release}${shared_ext}$major'
25348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25349 shlibpath_var=LD_LIBRARY_PATH
25350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25352 # the default ld.so.conf also contains /usr/contrib/lib and
25353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25354 # libtool to hard-code these into programs
25355 ;;
25356
25357cygwin* | mingw* | pw32*)
25358 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025359 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025360 need_version=no
25361 need_lib_prefix=no
25362
25363 case $GCC,$host_os in
25364 yes,cygwin* | yes,mingw* | yes,pw32*)
25365 library_names_spec='$libname.dll.a'
25366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025367 postinstall_cmds='base_file=`basename \${file}`~
25368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25369 dldir=$destdir/`dirname \$dlpath`~
25370 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025371 $install_prog $dir/$dlname \$dldir/$dlname~
25372 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25374 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025375 $rm \$dlpath'
25376 shlibpath_overrides_runpath=yes
25377
25378 case $host_os in
25379 cygwin*)
25380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25381 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 +000025382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025383 ;;
25384 mingw*)
25385 # MinGW DLLs use traditional 'lib' prefix
25386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25389 # It is most probably a Windows format PATH printed by
25390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25391 # path with ; separators, and with drive letters. We can handle the
25392 # drive letters (cygwin fileutils understands them), so leave them,
25393 # especially as we might pass files found there to a mingw objdump,
25394 # which wouldn't understand a cygwinified path. Ahh.
25395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25396 else
25397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25398 fi
25399 ;;
25400 pw32*)
25401 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025402 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 +000025403 ;;
25404 esac
25405 ;;
25406
25407 *)
25408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25409 ;;
25410 esac
25411 dynamic_linker='Win32 ld.exe'
25412 # FIXME: first we should search . and the directory the executable is in
25413 shlibpath_var=PATH
25414 ;;
25415
25416darwin* | rhapsody*)
25417 dynamic_linker="$host_os dyld"
25418 version_type=darwin
25419 need_lib_prefix=no
25420 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025422 soname_spec='${libname}${release}${major}$shared_ext'
25423 shlibpath_overrides_runpath=yes
25424 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025425 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025427 if test "$GCC" = yes; then
25428 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"`
25429 else
25430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025431 fi
25432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25433 ;;
25434
25435dgux*)
25436 version_type=linux
25437 need_lib_prefix=no
25438 need_version=no
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 ;;
25443
25444freebsd1*)
25445 dynamic_linker=no
25446 ;;
25447
Reid Spencer2706f8c2004-09-19 23:53:36 +000025448kfreebsd*-gnu)
25449 version_type=linux
25450 need_lib_prefix=no
25451 need_version=no
25452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25453 soname_spec='${libname}${release}${shared_ext}$major'
25454 shlibpath_var=LD_LIBRARY_PATH
25455 shlibpath_overrides_runpath=no
25456 hardcode_into_libs=yes
25457 dynamic_linker='GNU ld.so'
25458 ;;
25459
Reid Spencera773bd52006-08-04 18:18:08 +000025460freebsd* | dragonfly*)
25461 # DragonFly does not have aout. When/if they implement a new
25462 # versioning mechanism, adjust this.
25463 if test -x /usr/bin/objformat; then
25464 objformat=`/usr/bin/objformat`
25465 else
25466 case $host_os in
25467 freebsd[123]*) objformat=aout ;;
25468 *) objformat=elf ;;
25469 esac
25470 fi
John Criswell47fdd832003-07-14 16:52:07 +000025471 version_type=freebsd-$objformat
25472 case $version_type in
25473 freebsd-elf*)
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25475 need_version=no
25476 need_lib_prefix=no
25477 ;;
25478 freebsd-*)
25479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25480 need_version=yes
25481 ;;
25482 esac
25483 shlibpath_var=LD_LIBRARY_PATH
25484 case $host_os in
25485 freebsd2*)
25486 shlibpath_overrides_runpath=yes
25487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025488 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025489 shlibpath_overrides_runpath=yes
25490 hardcode_into_libs=yes
25491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025494 shlibpath_overrides_runpath=no
25495 hardcode_into_libs=yes
25496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025497 freebsd*) # from 4.6 on
25498 shlibpath_overrides_runpath=yes
25499 hardcode_into_libs=yes
25500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025501 esac
25502 ;;
25503
25504gnu*)
25505 version_type=linux
25506 need_lib_prefix=no
25507 need_version=no
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25509 soname_spec='${libname}${release}${shared_ext}$major'
25510 shlibpath_var=LD_LIBRARY_PATH
25511 hardcode_into_libs=yes
25512 ;;
25513
25514hpux9* | hpux10* | hpux11*)
25515 # Give a soname corresponding to the major version so that dld.sl refuses to
25516 # link against other versions.
25517 version_type=sunos
25518 need_lib_prefix=no
25519 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025520 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025521 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025522 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025523 hardcode_into_libs=yes
25524 dynamic_linker="$host_os dld.so"
25525 shlibpath_var=LD_LIBRARY_PATH
25526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25528 soname_spec='${libname}${release}${shared_ext}$major'
25529 if test "X$HPUX_IA64_MODE" = X32; then
25530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25531 else
25532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25533 fi
25534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25535 ;;
25536 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025537 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025538 hardcode_into_libs=yes
25539 dynamic_linker="$host_os dld.sl"
25540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25546 ;;
25547 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025548 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025549 dynamic_linker="$host_os dld.sl"
25550 shlibpath_var=SHLIB_PATH
25551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553 soname_spec='${libname}${release}${shared_ext}$major'
25554 ;;
25555 esac
25556 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25557 postinstall_cmds='chmod 555 $lib'
25558 ;;
25559
Reid Spencera773bd52006-08-04 18:18:08 +000025560interix3*)
25561 version_type=linux
25562 need_lib_prefix=no
25563 need_version=no
25564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25565 soname_spec='${libname}${release}${shared_ext}$major'
25566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25567 shlibpath_var=LD_LIBRARY_PATH
25568 shlibpath_overrides_runpath=no
25569 hardcode_into_libs=yes
25570 ;;
25571
John Criswell47fdd832003-07-14 16:52:07 +000025572irix5* | irix6* | nonstopux*)
25573 case $host_os in
25574 nonstopux*) version_type=nonstopux ;;
25575 *)
25576 if test "$lt_cv_prog_gnu_ld" = yes; then
25577 version_type=linux
25578 else
25579 version_type=irix
25580 fi ;;
25581 esac
25582 need_lib_prefix=no
25583 need_version=no
25584 soname_spec='${libname}${release}${shared_ext}$major'
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25586 case $host_os in
25587 irix5* | nonstopux*)
25588 libsuff= shlibsuff=
25589 ;;
25590 *)
25591 case $LD in # libtool.m4 will add one of these switches to LD
25592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25593 libsuff= shlibsuff= libmagic=32-bit;;
25594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25595 libsuff=32 shlibsuff=N32 libmagic=N32;;
25596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25598 *) libsuff= shlibsuff= libmagic=never-match;;
25599 esac
25600 ;;
25601 esac
25602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25603 shlibpath_overrides_runpath=no
25604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25606 hardcode_into_libs=yes
25607 ;;
25608
25609# No shared lib support for Linux oldld, aout, or coff.
25610linux*oldld* | linux*aout* | linux*coff*)
25611 dynamic_linker=no
25612 ;;
25613
25614# This must be Linux ELF.
25615linux*)
25616 version_type=linux
25617 need_lib_prefix=no
25618 need_version=no
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25622 shlibpath_var=LD_LIBRARY_PATH
25623 shlibpath_overrides_runpath=no
25624 # This implies no fast_install, which is unacceptable.
25625 # Some rework will be needed to allow for fast_install
25626 # before this can be enabled.
25627 hardcode_into_libs=yes
25628
Reid Spencer2706f8c2004-09-19 23:53:36 +000025629 # Append ld.so.conf contents to the search path
25630 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025631 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 +000025632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25633 fi
25634
John Criswell47fdd832003-07-14 16:52:07 +000025635 # We used to test for /lib/ld.so.1 and disable shared libraries on
25636 # powerpc, because MkLinux only supported shared libraries with the
25637 # GNU dynamic linker. Since this was broken with cross compilers,
25638 # most powerpc-linux boxes support dynamic linking these days and
25639 # people can always --disable-shared, the test was removed, and we
25640 # assume the GNU/Linux dynamic linker is in use.
25641 dynamic_linker='GNU/Linux ld.so'
25642 ;;
25643
Reid Spencer2706f8c2004-09-19 23:53:36 +000025644knetbsd*-gnu)
25645 version_type=linux
25646 need_lib_prefix=no
25647 need_version=no
25648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25649 soname_spec='${libname}${release}${shared_ext}$major'
25650 shlibpath_var=LD_LIBRARY_PATH
25651 shlibpath_overrides_runpath=no
25652 hardcode_into_libs=yes
25653 dynamic_linker='GNU ld.so'
25654 ;;
25655
John Criswell47fdd832003-07-14 16:52:07 +000025656netbsd*)
25657 version_type=sunos
25658 need_lib_prefix=no
25659 need_version=no
25660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25663 dynamic_linker='NetBSD (a.out) ld.so'
25664 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025666 soname_spec='${libname}${release}${shared_ext}$major'
25667 dynamic_linker='NetBSD ld.elf_so'
25668 fi
25669 shlibpath_var=LD_LIBRARY_PATH
25670 shlibpath_overrides_runpath=yes
25671 hardcode_into_libs=yes
25672 ;;
25673
25674newsos6)
25675 version_type=linux
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 shlibpath_overrides_runpath=yes
25679 ;;
25680
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025682 version_type=linux
25683 need_lib_prefix=no
25684 need_version=no
25685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25686 soname_spec='${libname}${release}${shared_ext}$major'
25687 shlibpath_var=LD_LIBRARY_PATH
25688 shlibpath_overrides_runpath=yes
25689 ;;
25690
25691openbsd*)
25692 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025693 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025694 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25696 case $host_os in
25697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25698 *) need_version=no ;;
25699 esac
John Criswell47fdd832003-07-14 16:52:07 +000025700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25704 case $host_os in
25705 openbsd2.[89] | openbsd2.[89].*)
25706 shlibpath_overrides_runpath=no
25707 ;;
25708 *)
25709 shlibpath_overrides_runpath=yes
25710 ;;
25711 esac
25712 else
25713 shlibpath_overrides_runpath=yes
25714 fi
25715 ;;
25716
25717os2*)
25718 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025719 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025720 need_lib_prefix=no
25721 library_names_spec='$libname${shared_ext} $libname.a'
25722 dynamic_linker='OS/2 ld.exe'
25723 shlibpath_var=LIBPATH
25724 ;;
25725
25726osf3* | osf4* | osf5*)
25727 version_type=osf
25728 need_lib_prefix=no
25729 need_version=no
25730 soname_spec='${libname}${release}${shared_ext}$major'
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25735 ;;
25736
John Criswell47fdd832003-07-14 16:52:07 +000025737solaris*)
25738 version_type=linux
25739 need_lib_prefix=no
25740 need_version=no
25741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25742 soname_spec='${libname}${release}${shared_ext}$major'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 shlibpath_overrides_runpath=yes
25745 hardcode_into_libs=yes
25746 # ldd complains unless libraries are executable
25747 postinstall_cmds='chmod +x $lib'
25748 ;;
25749
25750sunos4*)
25751 version_type=sunos
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=yes
25756 if test "$with_gnu_ld" = yes; then
25757 need_lib_prefix=no
25758 fi
25759 need_version=yes
25760 ;;
25761
Reid Spencera773bd52006-08-04 18:18:08 +000025762sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025763 version_type=linux
25764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25765 soname_spec='${libname}${release}${shared_ext}$major'
25766 shlibpath_var=LD_LIBRARY_PATH
25767 case $host_vendor in
25768 sni)
25769 shlibpath_overrides_runpath=no
25770 need_lib_prefix=no
25771 export_dynamic_flag_spec='${wl}-Blargedynsym'
25772 runpath_var=LD_RUN_PATH
25773 ;;
25774 siemens)
25775 need_lib_prefix=no
25776 ;;
25777 motorola)
25778 need_lib_prefix=no
25779 need_version=no
25780 shlibpath_overrides_runpath=no
25781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25782 ;;
25783 esac
25784 ;;
25785
25786sysv4*MP*)
25787 if test -d /usr/nec ;then
25788 version_type=linux
25789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25790 soname_spec='$libname${shared_ext}.$major'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 fi
25793 ;;
25794
Reid Spencera773bd52006-08-04 18:18:08 +000025795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25796 version_type=freebsd-elf
25797 need_lib_prefix=no
25798 need_version=no
25799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25800 soname_spec='${libname}${release}${shared_ext}$major'
25801 shlibpath_var=LD_LIBRARY_PATH
25802 hardcode_into_libs=yes
25803 if test "$with_gnu_ld" = yes; then
25804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25805 shlibpath_overrides_runpath=no
25806 else
25807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25808 shlibpath_overrides_runpath=yes
25809 case $host_os in
25810 sco3.2v5*)
25811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25812 ;;
25813 esac
25814 fi
25815 sys_lib_dlsearch_path_spec='/usr/lib'
25816 ;;
25817
John Criswell47fdd832003-07-14 16:52:07 +000025818uts4*)
25819 version_type=linux
25820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821 soname_spec='${libname}${release}${shared_ext}$major'
25822 shlibpath_var=LD_LIBRARY_PATH
25823 ;;
25824
25825*)
25826 dynamic_linker=no
25827 ;;
25828esac
Reid Spencera773bd52006-08-04 18:18:08 +000025829{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25830echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025831test "$dynamic_linker" = no && can_build_shared=no
25832
Reid Spencera773bd52006-08-04 18:18:08 +000025833variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25834if test "$GCC" = yes; then
25835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25836fi
25837
25838{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25839echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025840hardcode_action_GCJ=
25841if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25842 test -n "$runpath_var_GCJ" || \
25843 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25844
25845 # We can hardcode non-existant directories.
25846 if test "$hardcode_direct_GCJ" != no &&
25847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25848 # have to relink, otherwise we might link with an installed library
25849 # when we should be linking with a yet-to-be-installed one
25850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25851 test "$hardcode_minus_L_GCJ" != no; then
25852 # Linking always hardcodes the temporary library directory.
25853 hardcode_action_GCJ=relink
25854 else
25855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25856 hardcode_action_GCJ=immediate
25857 fi
25858else
25859 # We cannot hardcode anything, or else we can only hardcode existing
25860 # directories.
25861 hardcode_action_GCJ=unsupported
25862fi
Reid Spencera773bd52006-08-04 18:18:08 +000025863{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25864echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025865
25866if test "$hardcode_action_GCJ" = relink; then
25867 # Fast installation is not supported
25868 enable_fast_install=no
25869elif test "$shlibpath_overrides_runpath" = yes ||
25870 test "$enable_shared" = no; then
25871 # Fast installation is not necessary
25872 enable_fast_install=needless
25873fi
25874
John Criswell47fdd832003-07-14 16:52:07 +000025875
25876# The else clause should only fire when bootstrapping the
25877# libtool distribution, otherwise you forgot to ship ltmain.sh
25878# with your package, and you will get complaints that there are
25879# no rules to generate ltmain.sh.
25880if test -f "$ltmain"; then
25881 # See if we are running on zsh, and set the options which allow our commands through
25882 # without removal of \ escapes.
25883 if test -n "${ZSH_VERSION+set}" ; then
25884 setopt NO_GLOB_SUBST
25885 fi
25886 # Now quote all the things that may contain metacharacters while being
25887 # careful not to overquote the AC_SUBSTed values. We take copies of the
25888 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025889 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 +000025890 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025891 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25892 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25893 deplibs_check_method reload_flag reload_cmds need_locks \
25894 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25895 lt_cv_sys_global_symbol_to_c_name_address \
25896 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25897 old_postinstall_cmds old_postuninstall_cmds \
25898 compiler_GCJ \
25899 CC_GCJ \
25900 LD_GCJ \
25901 lt_prog_compiler_wl_GCJ \
25902 lt_prog_compiler_pic_GCJ \
25903 lt_prog_compiler_static_GCJ \
25904 lt_prog_compiler_no_builtin_flag_GCJ \
25905 export_dynamic_flag_spec_GCJ \
25906 thread_safe_flag_spec_GCJ \
25907 whole_archive_flag_spec_GCJ \
25908 enable_shared_with_static_runtimes_GCJ \
25909 old_archive_cmds_GCJ \
25910 old_archive_from_new_cmds_GCJ \
25911 predep_objects_GCJ \
25912 postdep_objects_GCJ \
25913 predeps_GCJ \
25914 postdeps_GCJ \
25915 compiler_lib_search_path_GCJ \
25916 archive_cmds_GCJ \
25917 archive_expsym_cmds_GCJ \
25918 postinstall_cmds_GCJ \
25919 postuninstall_cmds_GCJ \
25920 old_archive_from_expsyms_cmds_GCJ \
25921 allow_undefined_flag_GCJ \
25922 no_undefined_flag_GCJ \
25923 export_symbols_cmds_GCJ \
25924 hardcode_libdir_flag_spec_GCJ \
25925 hardcode_libdir_flag_spec_ld_GCJ \
25926 hardcode_libdir_separator_GCJ \
25927 hardcode_automatic_GCJ \
25928 module_cmds_GCJ \
25929 module_expsym_cmds_GCJ \
25930 lt_cv_prog_compiler_c_o_GCJ \
25931 exclude_expsyms_GCJ \
25932 include_expsyms_GCJ; do
25933
25934 case $var in
25935 old_archive_cmds_GCJ | \
25936 old_archive_from_new_cmds_GCJ | \
25937 archive_cmds_GCJ | \
25938 archive_expsym_cmds_GCJ | \
25939 module_cmds_GCJ | \
25940 module_expsym_cmds_GCJ | \
25941 old_archive_from_expsyms_cmds_GCJ | \
25942 export_symbols_cmds_GCJ | \
25943 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25944 postinstall_cmds | postuninstall_cmds | \
25945 old_postinstall_cmds | old_postuninstall_cmds | \
25946 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25947 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 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 +000025949 ;;
25950 *)
25951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25952 ;;
25953 esac
25954 done
25955
25956 case $lt_echo in
25957 *'\$0 --fallback-echo"')
25958 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25959 ;;
25960 esac
25961
25962cfgfile="$ofile"
25963
25964 cat <<__EOF__ >> "$cfgfile"
25965# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25966
25967# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25968
25969# Shell to use when invoking shell scripts.
25970SHELL=$lt_SHELL
25971
25972# Whether or not to build shared libraries.
25973build_libtool_libs=$enable_shared
25974
25975# Whether or not to build static libraries.
25976build_old_libs=$enable_static
25977
25978# Whether or not to add -lc for building shared libraries.
25979build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25980
25981# Whether or not to disallow shared libs when runtime libs are static
25982allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25983
25984# Whether or not to optimize for fast installation.
25985fast_install=$enable_fast_install
25986
25987# The host system.
25988host_alias=$host_alias
25989host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025990host_os=$host_os
25991
25992# The build system.
25993build_alias=$build_alias
25994build=$build
25995build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025996
25997# An echo program that does not interpret backslashes.
25998echo=$lt_echo
25999
26000# The archiver.
26001AR=$lt_AR
26002AR_FLAGS=$lt_AR_FLAGS
26003
26004# A C compiler.
26005LTCC=$lt_LTCC
26006
Reid Spencera773bd52006-08-04 18:18:08 +000026007# LTCC compiler flags.
26008LTCFLAGS=$lt_LTCFLAGS
26009
John Criswell47fdd832003-07-14 16:52:07 +000026010# A language-specific compiler.
26011CC=$lt_compiler_GCJ
26012
26013# Is the compiler the GNU C compiler?
26014with_gcc=$GCC_GCJ
26015
26016# An ERE matcher.
26017EGREP=$lt_EGREP
26018
26019# The linker used to build libraries.
26020LD=$lt_LD_GCJ
26021
26022# Whether we need hard or soft links.
26023LN_S=$lt_LN_S
26024
26025# A BSD-compatible nm program.
26026NM=$lt_NM
26027
26028# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026029STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026030
26031# Used to examine libraries when file_magic_cmd begins "file"
26032MAGIC_CMD=$MAGIC_CMD
26033
26034# Used on cygwin: DLL creation program.
26035DLLTOOL="$DLLTOOL"
26036
26037# Used on cygwin: object dumper.
26038OBJDUMP="$OBJDUMP"
26039
26040# Used on cygwin: assembler.
26041AS="$AS"
26042
26043# The name of the directory that contains temporary libtool files.
26044objdir=$objdir
26045
26046# How to create reloadable object files.
26047reload_flag=$lt_reload_flag
26048reload_cmds=$lt_reload_cmds
26049
26050# How to pass a linker flag through the compiler.
26051wl=$lt_lt_prog_compiler_wl_GCJ
26052
26053# Object file suffix (normally "o").
26054objext="$ac_objext"
26055
26056# Old archive suffix (normally "a").
26057libext="$libext"
26058
26059# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026060shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026061
26062# Executable file suffix (normally "").
26063exeext="$exeext"
26064
26065# Additional compiler flags for building library objects.
26066pic_flag=$lt_lt_prog_compiler_pic_GCJ
26067pic_mode=$pic_mode
26068
26069# What is the maximum length of a command?
26070max_cmd_len=$lt_cv_sys_max_cmd_len
26071
26072# Does compiler simultaneously support -c and -o options?
26073compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26074
Reid Spencera773bd52006-08-04 18:18:08 +000026075# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026076need_locks=$lt_need_locks
26077
26078# Do we need the lib prefix for modules?
26079need_lib_prefix=$need_lib_prefix
26080
26081# Do we need a version for libraries?
26082need_version=$need_version
26083
26084# Whether dlopen is supported.
26085dlopen_support=$enable_dlopen
26086
26087# Whether dlopen of programs is supported.
26088dlopen_self=$enable_dlopen_self
26089
26090# Whether dlopen of statically linked programs is supported.
26091dlopen_self_static=$enable_dlopen_self_static
26092
26093# Compiler flag to prevent dynamic linking.
26094link_static_flag=$lt_lt_prog_compiler_static_GCJ
26095
26096# Compiler flag to turn off builtin functions.
26097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26098
26099# Compiler flag to allow reflexive dlopens.
26100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26101
26102# Compiler flag to generate shared objects directly from archives.
26103whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26104
26105# Compiler flag to generate thread-safe objects.
26106thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26107
26108# Library versioning type.
26109version_type=$version_type
26110
26111# Format of library name prefix.
26112libname_spec=$lt_libname_spec
26113
26114# List of archive names. First name is the real one, the rest are links.
26115# The last name is the one that the linker finds with -lNAME.
26116library_names_spec=$lt_library_names_spec
26117
26118# The coded name of the library, if different from the real name.
26119soname_spec=$lt_soname_spec
26120
26121# Commands used to build and install an old-style archive.
26122RANLIB=$lt_RANLIB
26123old_archive_cmds=$lt_old_archive_cmds_GCJ
26124old_postinstall_cmds=$lt_old_postinstall_cmds
26125old_postuninstall_cmds=$lt_old_postuninstall_cmds
26126
26127# Create an old-style archive from a shared archive.
26128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26129
26130# Create a temporary old-style archive to link instead of a shared archive.
26131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26132
26133# Commands used to build and install a shared archive.
26134archive_cmds=$lt_archive_cmds_GCJ
26135archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26136postinstall_cmds=$lt_postinstall_cmds
26137postuninstall_cmds=$lt_postuninstall_cmds
26138
26139# Commands used to build a loadable module (assumed same as above if empty)
26140module_cmds=$lt_module_cmds_GCJ
26141module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26142
26143# Commands to strip libraries.
26144old_striplib=$lt_old_striplib
26145striplib=$lt_striplib
26146
26147# Dependencies to place before the objects being linked to create a
26148# shared library.
26149predep_objects=$lt_predep_objects_GCJ
26150
26151# Dependencies to place after the objects being linked to create a
26152# shared library.
26153postdep_objects=$lt_postdep_objects_GCJ
26154
26155# Dependencies to place before the objects being linked to create a
26156# shared library.
26157predeps=$lt_predeps_GCJ
26158
26159# Dependencies to place after the objects being linked to create a
26160# shared library.
26161postdeps=$lt_postdeps_GCJ
26162
26163# The library search path used internally by the compiler when linking
26164# a shared library.
26165compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26166
26167# Method to check whether dependent libraries are shared objects.
26168deplibs_check_method=$lt_deplibs_check_method
26169
26170# Command to use when deplibs_check_method == file_magic.
26171file_magic_cmd=$lt_file_magic_cmd
26172
26173# Flag that allows shared libraries with undefined symbols to be built.
26174allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26175
26176# Flag that forces no undefined symbols.
26177no_undefined_flag=$lt_no_undefined_flag_GCJ
26178
26179# Commands used to finish a libtool library installation in a directory.
26180finish_cmds=$lt_finish_cmds
26181
26182# Same as above, but a single script fragment to be evaled but not shown.
26183finish_eval=$lt_finish_eval
26184
26185# Take the output of nm and produce a listing of raw symbols and C names.
26186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26187
26188# Transform the output of nm in a proper C declaration
26189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26190
26191# Transform the output of nm in a C name address pair
26192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26193
26194# This is the shared library runtime path variable.
26195runpath_var=$runpath_var
26196
26197# This is the shared library path variable.
26198shlibpath_var=$shlibpath_var
26199
26200# Is shlibpath searched before the hard-coded library search path?
26201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26202
26203# How to hardcode a shared library path into an executable.
26204hardcode_action=$hardcode_action_GCJ
26205
26206# Whether we should hardcode library paths into libraries.
26207hardcode_into_libs=$hardcode_into_libs
26208
26209# Flag to hardcode \$libdir into a binary during linking.
26210# This must work even if \$libdir does not exist.
26211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26212
26213# If ld is used when linking, flag to hardcode \$libdir into
26214# a binary during linking. This must work even if \$libdir does
26215# not exist.
26216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26217
26218# Whether we need a single -rpath flag with a separated argument.
26219hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26220
26221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26222# resulting binary.
26223hardcode_direct=$hardcode_direct_GCJ
26224
26225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26226# resulting binary.
26227hardcode_minus_L=$hardcode_minus_L_GCJ
26228
26229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26230# the resulting binary.
26231hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26232
26233# Set to yes if building a shared library automatically hardcodes DIR into the library
26234# and all subsequent libraries and executables linked against it.
26235hardcode_automatic=$hardcode_automatic_GCJ
26236
26237# Variables whose values should be saved in libtool wrapper scripts and
26238# restored at relink time.
26239variables_saved_for_relink="$variables_saved_for_relink"
26240
26241# Whether libtool must link a program against all its dependency libraries.
26242link_all_deplibs=$link_all_deplibs_GCJ
26243
26244# Compile-time system search path for libraries
26245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26246
26247# Run-time system search path for libraries
26248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26249
26250# Fix the shell variable \$srcfile for the compiler.
26251fix_srcfile_path="$fix_srcfile_path_GCJ"
26252
26253# Set to yes if exported symbols are required.
26254always_export_symbols=$always_export_symbols_GCJ
26255
26256# The commands to list exported symbols.
26257export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26258
26259# The commands to extract the exported symbol list from a shared archive.
26260extract_expsyms_cmds=$lt_extract_expsyms_cmds
26261
26262# Symbols that should not be listed in the preloaded symbols.
26263exclude_expsyms=$lt_exclude_expsyms_GCJ
26264
26265# Symbols that must always be exported.
26266include_expsyms=$lt_include_expsyms_GCJ
26267
26268# ### END LIBTOOL TAG CONFIG: $tagname
26269
26270__EOF__
26271
26272
26273else
26274 # If there is no Makefile yet, we rely on a make rule to execute
26275 # `config.status --recheck' to rerun these tests and create the
26276 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026277 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26278 if test -f "$ltmain_in"; then
26279 test -f Makefile && make "$ltmain"
26280 fi
John Criswell47fdd832003-07-14 16:52:07 +000026281fi
26282
26283
26284ac_ext=c
26285ac_cpp='$CPP $CPPFLAGS'
26286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288ac_compiler_gnu=$ac_cv_c_compiler_gnu
26289
26290CC="$lt_save_CC"
26291
26292 else
26293 tagname=""
26294 fi
26295 ;;
26296
26297 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026298 ac_ext=c
26299ac_cpp='$CPP $CPPFLAGS'
26300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26302ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026303
26304
26305# Source file extension for RC test sources.
26306ac_ext=rc
26307
26308# Object file extension for compiled RC test sources.
26309objext=o
26310objext_RC=$objext
26311
26312# Code to be used in simple compile tests
26313lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26314
26315# Code to be used in simple link tests
26316lt_simple_link_test_code="$lt_simple_compile_test_code"
26317
26318# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26319
26320# If no C compiler was specified, use CC.
26321LTCC=${LTCC-"$CC"}
26322
Reid Spencera773bd52006-08-04 18:18:08 +000026323# If no C compiler flags were specified, use CFLAGS.
26324LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26325
John Criswell47fdd832003-07-14 16:52:07 +000026326# Allow CC to be a program name with arguments.
26327compiler=$CC
26328
26329
Reid Spencera773bd52006-08-04 18:18:08 +000026330# save warnings/boilerplate of simple test code
26331ac_outfile=conftest.$ac_objext
26332printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26334_lt_compiler_boilerplate=`cat conftest.err`
26335$rm conftest*
26336
26337ac_outfile=conftest.$ac_objext
26338printf "$lt_simple_link_test_code" >conftest.$ac_ext
26339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26340_lt_linker_boilerplate=`cat conftest.err`
26341$rm conftest*
26342
26343
John Criswell47fdd832003-07-14 16:52:07 +000026344# Allow CC to be a program name with arguments.
26345lt_save_CC="$CC"
26346CC=${RC-"windres"}
26347compiler=$CC
26348compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026349for cc_temp in $compiler""; do
26350 case $cc_temp in
26351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26353 \-*) ;;
26354 *) break;;
26355 esac
26356done
26357cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26358
John Criswell47fdd832003-07-14 16:52:07 +000026359lt_cv_prog_compiler_c_o_RC=yes
26360
26361# The else clause should only fire when bootstrapping the
26362# libtool distribution, otherwise you forgot to ship ltmain.sh
26363# with your package, and you will get complaints that there are
26364# no rules to generate ltmain.sh.
26365if test -f "$ltmain"; then
26366 # See if we are running on zsh, and set the options which allow our commands through
26367 # without removal of \ escapes.
26368 if test -n "${ZSH_VERSION+set}" ; then
26369 setopt NO_GLOB_SUBST
26370 fi
26371 # Now quote all the things that may contain metacharacters while being
26372 # careful not to overquote the AC_SUBSTed values. We take copies of the
26373 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026374 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 +000026375 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26378 deplibs_check_method reload_flag reload_cmds need_locks \
26379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26380 lt_cv_sys_global_symbol_to_c_name_address \
26381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26382 old_postinstall_cmds old_postuninstall_cmds \
26383 compiler_RC \
26384 CC_RC \
26385 LD_RC \
26386 lt_prog_compiler_wl_RC \
26387 lt_prog_compiler_pic_RC \
26388 lt_prog_compiler_static_RC \
26389 lt_prog_compiler_no_builtin_flag_RC \
26390 export_dynamic_flag_spec_RC \
26391 thread_safe_flag_spec_RC \
26392 whole_archive_flag_spec_RC \
26393 enable_shared_with_static_runtimes_RC \
26394 old_archive_cmds_RC \
26395 old_archive_from_new_cmds_RC \
26396 predep_objects_RC \
26397 postdep_objects_RC \
26398 predeps_RC \
26399 postdeps_RC \
26400 compiler_lib_search_path_RC \
26401 archive_cmds_RC \
26402 archive_expsym_cmds_RC \
26403 postinstall_cmds_RC \
26404 postuninstall_cmds_RC \
26405 old_archive_from_expsyms_cmds_RC \
26406 allow_undefined_flag_RC \
26407 no_undefined_flag_RC \
26408 export_symbols_cmds_RC \
26409 hardcode_libdir_flag_spec_RC \
26410 hardcode_libdir_flag_spec_ld_RC \
26411 hardcode_libdir_separator_RC \
26412 hardcode_automatic_RC \
26413 module_cmds_RC \
26414 module_expsym_cmds_RC \
26415 lt_cv_prog_compiler_c_o_RC \
26416 exclude_expsyms_RC \
26417 include_expsyms_RC; do
26418
26419 case $var in
26420 old_archive_cmds_RC | \
26421 old_archive_from_new_cmds_RC | \
26422 archive_cmds_RC | \
26423 archive_expsym_cmds_RC | \
26424 module_cmds_RC | \
26425 module_expsym_cmds_RC | \
26426 old_archive_from_expsyms_cmds_RC | \
26427 export_symbols_cmds_RC | \
26428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26429 postinstall_cmds | postuninstall_cmds | \
26430 old_postinstall_cmds | old_postuninstall_cmds | \
26431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26432 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026433 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 +000026434 ;;
26435 *)
26436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26437 ;;
26438 esac
26439 done
26440
26441 case $lt_echo in
26442 *'\$0 --fallback-echo"')
26443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26444 ;;
26445 esac
26446
26447cfgfile="$ofile"
26448
26449 cat <<__EOF__ >> "$cfgfile"
26450# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26451
26452# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26453
26454# Shell to use when invoking shell scripts.
26455SHELL=$lt_SHELL
26456
26457# Whether or not to build shared libraries.
26458build_libtool_libs=$enable_shared
26459
26460# Whether or not to build static libraries.
26461build_old_libs=$enable_static
26462
26463# Whether or not to add -lc for building shared libraries.
26464build_libtool_need_lc=$archive_cmds_need_lc_RC
26465
26466# Whether or not to disallow shared libs when runtime libs are static
26467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26468
26469# Whether or not to optimize for fast installation.
26470fast_install=$enable_fast_install
26471
26472# The host system.
26473host_alias=$host_alias
26474host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026475host_os=$host_os
26476
26477# The build system.
26478build_alias=$build_alias
26479build=$build
26480build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026481
26482# An echo program that does not interpret backslashes.
26483echo=$lt_echo
26484
26485# The archiver.
26486AR=$lt_AR
26487AR_FLAGS=$lt_AR_FLAGS
26488
26489# A C compiler.
26490LTCC=$lt_LTCC
26491
Reid Spencera773bd52006-08-04 18:18:08 +000026492# LTCC compiler flags.
26493LTCFLAGS=$lt_LTCFLAGS
26494
John Criswell47fdd832003-07-14 16:52:07 +000026495# A language-specific compiler.
26496CC=$lt_compiler_RC
26497
26498# Is the compiler the GNU C compiler?
26499with_gcc=$GCC_RC
26500
26501# An ERE matcher.
26502EGREP=$lt_EGREP
26503
26504# The linker used to build libraries.
26505LD=$lt_LD_RC
26506
26507# Whether we need hard or soft links.
26508LN_S=$lt_LN_S
26509
26510# A BSD-compatible nm program.
26511NM=$lt_NM
26512
26513# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026514STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026515
26516# Used to examine libraries when file_magic_cmd begins "file"
26517MAGIC_CMD=$MAGIC_CMD
26518
26519# Used on cygwin: DLL creation program.
26520DLLTOOL="$DLLTOOL"
26521
26522# Used on cygwin: object dumper.
26523OBJDUMP="$OBJDUMP"
26524
26525# Used on cygwin: assembler.
26526AS="$AS"
26527
26528# The name of the directory that contains temporary libtool files.
26529objdir=$objdir
26530
26531# How to create reloadable object files.
26532reload_flag=$lt_reload_flag
26533reload_cmds=$lt_reload_cmds
26534
26535# How to pass a linker flag through the compiler.
26536wl=$lt_lt_prog_compiler_wl_RC
26537
26538# Object file suffix (normally "o").
26539objext="$ac_objext"
26540
26541# Old archive suffix (normally "a").
26542libext="$libext"
26543
26544# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026545shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026546
26547# Executable file suffix (normally "").
26548exeext="$exeext"
26549
26550# Additional compiler flags for building library objects.
26551pic_flag=$lt_lt_prog_compiler_pic_RC
26552pic_mode=$pic_mode
26553
26554# What is the maximum length of a command?
26555max_cmd_len=$lt_cv_sys_max_cmd_len
26556
26557# Does compiler simultaneously support -c and -o options?
26558compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26559
Reid Spencera773bd52006-08-04 18:18:08 +000026560# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026561need_locks=$lt_need_locks
26562
26563# Do we need the lib prefix for modules?
26564need_lib_prefix=$need_lib_prefix
26565
26566# Do we need a version for libraries?
26567need_version=$need_version
26568
26569# Whether dlopen is supported.
26570dlopen_support=$enable_dlopen
26571
26572# Whether dlopen of programs is supported.
26573dlopen_self=$enable_dlopen_self
26574
26575# Whether dlopen of statically linked programs is supported.
26576dlopen_self_static=$enable_dlopen_self_static
26577
26578# Compiler flag to prevent dynamic linking.
26579link_static_flag=$lt_lt_prog_compiler_static_RC
26580
26581# Compiler flag to turn off builtin functions.
26582no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26583
26584# Compiler flag to allow reflexive dlopens.
26585export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26586
26587# Compiler flag to generate shared objects directly from archives.
26588whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26589
26590# Compiler flag to generate thread-safe objects.
26591thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26592
26593# Library versioning type.
26594version_type=$version_type
26595
26596# Format of library name prefix.
26597libname_spec=$lt_libname_spec
26598
26599# List of archive names. First name is the real one, the rest are links.
26600# The last name is the one that the linker finds with -lNAME.
26601library_names_spec=$lt_library_names_spec
26602
26603# The coded name of the library, if different from the real name.
26604soname_spec=$lt_soname_spec
26605
26606# Commands used to build and install an old-style archive.
26607RANLIB=$lt_RANLIB
26608old_archive_cmds=$lt_old_archive_cmds_RC
26609old_postinstall_cmds=$lt_old_postinstall_cmds
26610old_postuninstall_cmds=$lt_old_postuninstall_cmds
26611
26612# Create an old-style archive from a shared archive.
26613old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26614
26615# Create a temporary old-style archive to link instead of a shared archive.
26616old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26617
26618# Commands used to build and install a shared archive.
26619archive_cmds=$lt_archive_cmds_RC
26620archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26621postinstall_cmds=$lt_postinstall_cmds
26622postuninstall_cmds=$lt_postuninstall_cmds
26623
26624# Commands used to build a loadable module (assumed same as above if empty)
26625module_cmds=$lt_module_cmds_RC
26626module_expsym_cmds=$lt_module_expsym_cmds_RC
26627
26628# Commands to strip libraries.
26629old_striplib=$lt_old_striplib
26630striplib=$lt_striplib
26631
26632# Dependencies to place before the objects being linked to create a
26633# shared library.
26634predep_objects=$lt_predep_objects_RC
26635
26636# Dependencies to place after the objects being linked to create a
26637# shared library.
26638postdep_objects=$lt_postdep_objects_RC
26639
26640# Dependencies to place before the objects being linked to create a
26641# shared library.
26642predeps=$lt_predeps_RC
26643
26644# Dependencies to place after the objects being linked to create a
26645# shared library.
26646postdeps=$lt_postdeps_RC
26647
26648# The library search path used internally by the compiler when linking
26649# a shared library.
26650compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26651
26652# Method to check whether dependent libraries are shared objects.
26653deplibs_check_method=$lt_deplibs_check_method
26654
26655# Command to use when deplibs_check_method == file_magic.
26656file_magic_cmd=$lt_file_magic_cmd
26657
26658# Flag that allows shared libraries with undefined symbols to be built.
26659allow_undefined_flag=$lt_allow_undefined_flag_RC
26660
26661# Flag that forces no undefined symbols.
26662no_undefined_flag=$lt_no_undefined_flag_RC
26663
26664# Commands used to finish a libtool library installation in a directory.
26665finish_cmds=$lt_finish_cmds
26666
26667# Same as above, but a single script fragment to be evaled but not shown.
26668finish_eval=$lt_finish_eval
26669
26670# Take the output of nm and produce a listing of raw symbols and C names.
26671global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26672
26673# Transform the output of nm in a proper C declaration
26674global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26675
26676# Transform the output of nm in a C name address pair
26677global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26678
26679# This is the shared library runtime path variable.
26680runpath_var=$runpath_var
26681
26682# This is the shared library path variable.
26683shlibpath_var=$shlibpath_var
26684
26685# Is shlibpath searched before the hard-coded library search path?
26686shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26687
26688# How to hardcode a shared library path into an executable.
26689hardcode_action=$hardcode_action_RC
26690
26691# Whether we should hardcode library paths into libraries.
26692hardcode_into_libs=$hardcode_into_libs
26693
26694# Flag to hardcode \$libdir into a binary during linking.
26695# This must work even if \$libdir does not exist.
26696hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26697
26698# If ld is used when linking, flag to hardcode \$libdir into
26699# a binary during linking. This must work even if \$libdir does
26700# not exist.
26701hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26702
26703# Whether we need a single -rpath flag with a separated argument.
26704hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26705
26706# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26707# resulting binary.
26708hardcode_direct=$hardcode_direct_RC
26709
26710# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26711# resulting binary.
26712hardcode_minus_L=$hardcode_minus_L_RC
26713
26714# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26715# the resulting binary.
26716hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26717
26718# Set to yes if building a shared library automatically hardcodes DIR into the library
26719# and all subsequent libraries and executables linked against it.
26720hardcode_automatic=$hardcode_automatic_RC
26721
26722# Variables whose values should be saved in libtool wrapper scripts and
26723# restored at relink time.
26724variables_saved_for_relink="$variables_saved_for_relink"
26725
26726# Whether libtool must link a program against all its dependency libraries.
26727link_all_deplibs=$link_all_deplibs_RC
26728
26729# Compile-time system search path for libraries
26730sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26731
26732# Run-time system search path for libraries
26733sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26734
26735# Fix the shell variable \$srcfile for the compiler.
26736fix_srcfile_path="$fix_srcfile_path_RC"
26737
26738# Set to yes if exported symbols are required.
26739always_export_symbols=$always_export_symbols_RC
26740
26741# The commands to list exported symbols.
26742export_symbols_cmds=$lt_export_symbols_cmds_RC
26743
26744# The commands to extract the exported symbol list from a shared archive.
26745extract_expsyms_cmds=$lt_extract_expsyms_cmds
26746
26747# Symbols that should not be listed in the preloaded symbols.
26748exclude_expsyms=$lt_exclude_expsyms_RC
26749
26750# Symbols that must always be exported.
26751include_expsyms=$lt_include_expsyms_RC
26752
26753# ### END LIBTOOL TAG CONFIG: $tagname
26754
26755__EOF__
26756
26757
26758else
26759 # If there is no Makefile yet, we rely on a make rule to execute
26760 # `config.status --recheck' to rerun these tests and create the
26761 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026762 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26763 if test -f "$ltmain_in"; then
26764 test -f Makefile && make "$ltmain"
26765 fi
John Criswell47fdd832003-07-14 16:52:07 +000026766fi
26767
26768
26769ac_ext=c
26770ac_cpp='$CPP $CPPFLAGS'
26771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26773ac_compiler_gnu=$ac_cv_c_compiler_gnu
26774
26775CC="$lt_save_CC"
26776
26777 ;;
26778
26779 *)
26780 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26781echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26782 { (exit 1); exit 1; }; }
26783 ;;
26784 esac
26785
26786 # Append the new tag name to the list of available tags.
26787 if test -n "$tagname" ; then
26788 available_tags="$available_tags $tagname"
26789 fi
26790 fi
26791 done
26792 IFS="$lt_save_ifs"
26793
26794 # Now substitute the updated list of available tags.
26795 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26796 mv "${ofile}T" "$ofile"
26797 chmod +x "$ofile"
26798 else
26799 rm -f "${ofile}T"
26800 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26801echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26802 { (exit 1); exit 1; }; }
26803 fi
26804fi
John Criswell7a73b802003-06-30 21:59:07 +000026805
26806
26807
26808# This can be used to rebuild libtool when needed
26809LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26810
26811# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026812LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026813
26814# Prevent multiple expansion
26815
26816
26817
John Criswell47fdd832003-07-14 16:52:07 +000026818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026835
Reid Spencer582a23c2004-12-29 07:07:57 +000026836if test "$lt_cv_dlopen_self" = "yes" ; then
26837
26838cat >>confdefs.h <<\_ACEOF
26839#define CAN_DLOPEN_SELF 1
26840_ACEOF
26841
26842fi
26843
Douglas Gregor01746742009-05-11 18:05:52 +000026844
Reid Spencer7931a782004-12-27 06:15:02 +000026845if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026846 LLVMGCC="llvm-gcc${EXEEXT}"
26847 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026848 LLVMGCCCOMMAND="$LLVMGCC"
26849 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026850 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26851
26852 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26853
Reid Spencerc84492c2005-06-02 22:34:49 +000026854 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26855set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026858if test "${ac_cv_path_LLVMGCC+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26860else
26861 case $LLVMGCC in
26862 [\\/]* | ?:[\\/]*)
26863 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26864 ;;
26865 *)
26866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26867for as_dir in $PATH
26868do
26869 IFS=$as_save_IFS
26870 test -z "$as_dir" && as_dir=.
26871 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026872 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 +000026873 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26875 break 2
26876 fi
26877done
26878done
Reid Spencera773bd52006-08-04 18:18:08 +000026879IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026880
Reid Spencer59473af2004-12-25 07:31:29 +000026881 ;;
26882esac
26883fi
26884LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026885if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026886 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26887echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026888else
Reid Spencera773bd52006-08-04 18:18:08 +000026889 { echo "$as_me:$LINENO: result: no" >&5
26890echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026891fi
26892
Reid Spencera773bd52006-08-04 18:18:08 +000026893
Reid Spencerc84492c2005-06-02 22:34:49 +000026894 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26895set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026898if test "${ac_cv_path_LLVMGXX+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26900else
26901 case $LLVMGXX in
26902 [\\/]* | ?:[\\/]*)
26903 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26904 ;;
26905 *)
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907for as_dir in $PATH
26908do
26909 IFS=$as_save_IFS
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026912 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 +000026913 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26915 break 2
26916 fi
26917done
26918done
Reid Spencera773bd52006-08-04 18:18:08 +000026919IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026920
Reid Spencer59473af2004-12-25 07:31:29 +000026921 ;;
26922esac
26923fi
26924LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026925if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026926 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26927echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026928else
Reid Spencera773bd52006-08-04 18:18:08 +000026929 { echo "$as_me:$LINENO: result: no" >&5
26930echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026931fi
26932
Reid Spencera773bd52006-08-04 18:18:08 +000026933
Reid Spencer59473af2004-12-25 07:31:29 +000026934else
Devang Patel5d28b882007-12-04 22:54:47 +000026935 if test -z "$LLVMGCC"; then
26936 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026937 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026938 fi
26939 if test -z "$LLVMGXX"; then
26940 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026941 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026942 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026943
Reid Spencer59473af2004-12-25 07:31:29 +000026944 LLVMGCC=$LLVMGCC
26945
26946 LLVMGXX=$LLVMGXX
26947
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026948 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26949
26950 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26951
Reid Spencer59473af2004-12-25 07:31:29 +000026952fi
26953
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026954
Reid Spencera773bd52006-08-04 18:18:08 +000026955{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26956echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026957
Reid Spencer86901802004-12-08 23:07:27 +000026958ICC=no
26959IXX=no
26960case $CC in
26961 icc*|icpc*)
26962 ICC=yes
26963 IXX=yes
26964 ;;
26965 *)
26966 ;;
26967esac
26968
Duraid Madina937c60a2006-02-15 07:57:42 +000026969if test "$GCC" != "yes" && test "$ICC" != "yes"
26970then
26971 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26972echo "$as_me: error: gcc|icc required but not found" >&2;}
26973 { (exit 1); exit 1; }; }
26974fi
26975
26976if test "$GXX" != "yes" && test "$IXX" != "yes"
26977then
26978 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26979echo "$as_me: error: g++|icc required but not found" >&2;}
26980 { (exit 1); exit 1; }; }
26981fi
26982
Reid Spencer86901802004-12-08 23:07:27 +000026983if test "$GCC" = "yes"
26984then
Chris Lattner399c7c72008-02-05 19:43:53 +000026985 cat >conftest.$ac_ext <<_ACEOF
26986#if !defined(__GNUC__) || __GNUC__ < 3
26987#error Unsupported GCC version
26988#endif
26989
26990_ACEOF
26991rm -f conftest.$ac_objext
26992if { (ac_try="$ac_compile"
26993case "(($ac_try" in
26994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995 *) ac_try_echo=$ac_try;;
26996esac
26997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26998 (eval "$ac_compile") 2>conftest.er1
26999 ac_status=$?
27000 grep -v '^ *+' conftest.er1 >conftest.err
27001 rm -f conftest.er1
27002 cat conftest.err >&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027004 (exit $ac_status); } &&
27005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27006 { (case "(($ac_try" in
27007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008 *) ac_try_echo=$ac_try;;
27009esac
27010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27011 (eval "$ac_try") 2>&5
27012 ac_status=$?
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); }; } &&
27015 { ac_try='test -s conftest.$ac_objext'
27016 { (case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27019esac
27020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021 (eval "$ac_try") 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027025 :
27026else
27027 echo "$as_me: failed program was:" >&5
27028sed 's/^/| /' conftest.$ac_ext >&5
27029
27030 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027031echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27032 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027033fi
27034
27035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027036fi
27037
27038if test -z "$llvm_cv_gnu_make_command"
27039then
27040 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27041echo "$as_me: error: GNU Make required but not found" >&2;}
27042 { (exit 1); exit 1; }; }
27043fi
27044
Reid Spencera773bd52006-08-04 18:18:08 +000027045{ echo "$as_me:$LINENO: result: ok" >&5
27046echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027047
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027048
John Criswell7a73b802003-06-30 21:59:07 +000027049
Reid Spencera773bd52006-08-04 18:18:08 +000027050{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27051echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027052if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054else
27055 ac_check_lib_save_LIBS=$LIBS
27056LIBS="-lelf $LIBS"
27057cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027058/* confdefs.h. */
27059_ACEOF
27060cat confdefs.h >>conftest.$ac_ext
27061cat >>conftest.$ac_ext <<_ACEOF
27062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027063
Reid Spencera773bd52006-08-04 18:18:08 +000027064/* Override any GCC internal prototype to avoid an error.
27065 Use char because int might match the return type of a GCC
27066 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027067#ifdef __cplusplus
27068extern "C"
27069#endif
John Criswell7a73b802003-06-30 21:59:07 +000027070char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027071int
27072main ()
27073{
Reid Spencera773bd52006-08-04 18:18:08 +000027074return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027075 ;
27076 return 0;
27077}
27078_ACEOF
27079rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027080if { (ac_try="$ac_link"
27081case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27084esac
27085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027088 grep -v '^ *+' conftest.er1 >conftest.err
27089 rm -f conftest.er1
27090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027092 (exit $ac_status); } &&
27093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27094 { (case "(($ac_try" in
27095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27096 *) ac_try_echo=$ac_try;;
27097esac
27098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099 (eval "$ac_try") 2>&5
27100 ac_status=$?
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest$ac_exeext'
27104 { (case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27107esac
27108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_try") 2>&5
27110 ac_status=$?
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027113 ac_cv_lib_elf_elf_begin=yes
27114else
27115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027116sed 's/^/| /' conftest.$ac_ext >&5
27117
Reid Spencera773bd52006-08-04 18:18:08 +000027118 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027119fi
Reid Spencera773bd52006-08-04 18:18:08 +000027120
Bill Wendlingebcceee2009-04-18 11:20:33 +000027121rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027122 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027123LIBS=$ac_check_lib_save_LIBS
27124fi
Reid Spencera773bd52006-08-04 18:18:08 +000027125{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27126echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027127if test $ac_cv_lib_elf_elf_begin = yes; then
27128 cat >>confdefs.h <<_ACEOF
27129#define HAVE_LIBELF 1
27130_ACEOF
27131
27132 LIBS="-lelf $LIBS"
27133
27134fi
27135
27136
Reid Spencera773bd52006-08-04 18:18:08 +000027137{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27138echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027139if test "${ac_cv_lib_m_sin+set}" = set; then
27140 echo $ECHO_N "(cached) $ECHO_C" >&6
27141else
27142 ac_check_lib_save_LIBS=$LIBS
27143LIBS="-lm $LIBS"
27144cat >conftest.$ac_ext <<_ACEOF
27145/* confdefs.h. */
27146_ACEOF
27147cat confdefs.h >>conftest.$ac_ext
27148cat >>conftest.$ac_ext <<_ACEOF
27149/* end confdefs.h. */
27150
Reid Spencera773bd52006-08-04 18:18:08 +000027151/* Override any GCC internal prototype to avoid an error.
27152 Use char because int might match the return type of a GCC
27153 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027154#ifdef __cplusplus
27155extern "C"
27156#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027157char sin ();
27158int
27159main ()
27160{
Reid Spencera773bd52006-08-04 18:18:08 +000027161return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027162 ;
27163 return 0;
27164}
27165_ACEOF
27166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027167if { (ac_try="$ac_link"
27168case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27171esac
27172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027174 ac_status=$?
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27181 { (case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27184esac
27185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_try") 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest$ac_exeext'
27191 { (case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27194esac
27195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_try") 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027200 ac_cv_lib_m_sin=yes
27201else
27202 echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
Reid Spencera773bd52006-08-04 18:18:08 +000027205 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027206fi
Reid Spencera773bd52006-08-04 18:18:08 +000027207
Bill Wendlingebcceee2009-04-18 11:20:33 +000027208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027209 conftest$ac_exeext conftest.$ac_ext
27210LIBS=$ac_check_lib_save_LIBS
27211fi
Reid Spencera773bd52006-08-04 18:18:08 +000027212{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27213echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027214if test $ac_cv_lib_m_sin = yes; then
27215 cat >>confdefs.h <<_ACEOF
27216#define HAVE_LIBM 1
27217_ACEOF
27218
27219 LIBS="-lm $LIBS"
27220
27221fi
27222
Jeff Cohen28783c32007-01-12 18:22:38 +000027223if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027224
Reid Spencera773bd52006-08-04 18:18:08 +000027225{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27226echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027227if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027228 echo $ECHO_N "(cached) $ECHO_C" >&6
27229else
27230 ac_check_lib_save_LIBS=$LIBS
27231LIBS="-limagehlp $LIBS"
27232cat >conftest.$ac_ext <<_ACEOF
27233/* confdefs.h. */
27234_ACEOF
27235cat confdefs.h >>conftest.$ac_ext
27236cat >>conftest.$ac_ext <<_ACEOF
27237/* end confdefs.h. */
27238
Reid Spencer48fdf912006-06-01 19:03:21 +000027239
Reid Spencer484fc8e2006-06-01 16:55:59 +000027240int
27241main ()
27242{
Reid Spencera773bd52006-08-04 18:18:08 +000027243return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027244 ;
27245 return 0;
27246}
27247_ACEOF
27248rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027249if { (ac_try="$ac_link"
27250case "(($ac_try" in
27251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252 *) ac_try_echo=$ac_try;;
27253esac
27254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027256 ac_status=$?
27257 grep -v '^ *+' conftest.er1 >conftest.err
27258 rm -f conftest.er1
27259 cat conftest.err >&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027261 (exit $ac_status); } &&
27262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27263 { (case "(($ac_try" in
27264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265 *) ac_try_echo=$ac_try;;
27266esac
27267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27268 (eval "$ac_try") 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; } &&
27272 { ac_try='test -s conftest$ac_exeext'
27273 { (case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27276esac
27277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_try") 2>&5
27279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027282 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
Reid Spencera773bd52006-08-04 18:18:08 +000027287 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027288fi
Reid Spencera773bd52006-08-04 18:18:08 +000027289
Bill Wendlingebcceee2009-04-18 11:20:33 +000027290rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027291 conftest$ac_exeext conftest.$ac_ext
27292LIBS=$ac_check_lib_save_LIBS
27293fi
Reid Spencera773bd52006-08-04 18:18:08 +000027294{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27295echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027296if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027297 cat >>confdefs.h <<_ACEOF
27298#define HAVE_LIBIMAGEHLP 1
27299_ACEOF
27300
27301 LIBS="-limagehlp $LIBS"
27302
27303fi
27304
27305
Reid Spencera773bd52006-08-04 18:18:08 +000027306{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27307echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027308if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027309 echo $ECHO_N "(cached) $ECHO_C" >&6
27310else
27311 ac_check_lib_save_LIBS=$LIBS
27312LIBS="-lpsapi $LIBS"
27313cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h. */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h. */
27319
Reid Spencer48fdf912006-06-01 19:03:21 +000027320
Reid Spencer484fc8e2006-06-01 16:55:59 +000027321int
27322main ()
27323{
Reid Spencera773bd52006-08-04 18:18:08 +000027324return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027325 ;
27326 return 0;
27327}
27328_ACEOF
27329rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027330if { (ac_try="$ac_link"
27331case "(($ac_try" in
27332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333 *) ac_try_echo=$ac_try;;
27334esac
27335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27336 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027337 ac_status=$?
27338 grep -v '^ *+' conftest.er1 >conftest.err
27339 rm -f conftest.er1
27340 cat conftest.err >&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027342 (exit $ac_status); } &&
27343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27344 { (case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27347esac
27348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_try") 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest$ac_exeext'
27354 { (case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27357esac
27358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359 (eval "$ac_try") 2>&5
27360 ac_status=$?
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027363 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027364else
27365 echo "$as_me: failed program was:" >&5
27366sed 's/^/| /' conftest.$ac_ext >&5
27367
Reid Spencera773bd52006-08-04 18:18:08 +000027368 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027369fi
Reid Spencera773bd52006-08-04 18:18:08 +000027370
Bill Wendlingebcceee2009-04-18 11:20:33 +000027371rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027372 conftest$ac_exeext conftest.$ac_ext
27373LIBS=$ac_check_lib_save_LIBS
27374fi
Reid Spencera773bd52006-08-04 18:18:08 +000027375{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27376echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027377if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027378 cat >>confdefs.h <<_ACEOF
27379#define HAVE_LIBPSAPI 1
27380_ACEOF
27381
27382 LIBS="-lpsapi $LIBS"
27383
27384fi
27385
27386fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027387
Reid Spencera773bd52006-08-04 18:18:08 +000027388{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27389echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027390if test "${ac_cv_search_dlopen+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027394cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027395/* confdefs.h. */
27396_ACEOF
27397cat confdefs.h >>conftest.$ac_ext
27398cat >>conftest.$ac_ext <<_ACEOF
27399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027400
Reid Spencera773bd52006-08-04 18:18:08 +000027401/* Override any GCC internal prototype to avoid an error.
27402 Use char because int might match the return type of a GCC
27403 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027404#ifdef __cplusplus
27405extern "C"
27406#endif
John Criswell7a73b802003-06-30 21:59:07 +000027407char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027408int
27409main ()
27410{
Reid Spencera773bd52006-08-04 18:18:08 +000027411return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027412 ;
27413 return 0;
27414}
27415_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027416for ac_lib in '' dl; do
27417 if test -z "$ac_lib"; then
27418 ac_res="none required"
27419 else
27420 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027422 fi
27423 rm -f conftest.$ac_objext conftest$ac_exeext
27424if { (ac_try="$ac_link"
27425case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27428esac
27429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27438 { (case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27441esac
27442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27443 (eval "$ac_try") 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest$ac_exeext'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27451esac
27452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027457 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027458else
27459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027460sed 's/^/| /' conftest.$ac_ext >&5
27461
Reid Spencera773bd52006-08-04 18:18:08 +000027462
John Criswell7a73b802003-06-30 21:59:07 +000027463fi
Reid Spencera773bd52006-08-04 18:18:08 +000027464
Bill Wendlingebcceee2009-04-18 11:20:33 +000027465rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027466 conftest$ac_exeext
27467 if test "${ac_cv_search_dlopen+set}" = set; then
27468 break
John Criswell7a73b802003-06-30 21:59:07 +000027469fi
Reid Spencera773bd52006-08-04 18:18:08 +000027470done
27471if test "${ac_cv_search_dlopen+set}" = set; then
27472 :
27473else
27474 ac_cv_search_dlopen=no
27475fi
27476rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027477LIBS=$ac_func_search_save_LIBS
27478fi
Reid Spencera773bd52006-08-04 18:18:08 +000027479{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27480echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27481ac_res=$ac_cv_search_dlopen
27482if test "$ac_res" != no; then
27483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027484
27485cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027486#define HAVE_DLOPEN 1
27487_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027488
27489else
Brian Gaekec45be042003-10-07 06:01:34 +000027490 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27491echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027492fi
27493
27494
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027495if test "$llvm_cv_enable_libffi" = "yes" ; then
27496 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027497echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27498if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027499 echo $ECHO_N "(cached) $ECHO_C" >&6
27500else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027501 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027502cat >conftest.$ac_ext <<_ACEOF
27503/* confdefs.h. */
27504_ACEOF
27505cat confdefs.h >>conftest.$ac_ext
27506cat >>conftest.$ac_ext <<_ACEOF
27507/* end confdefs.h. */
27508
27509/* Override any GCC internal prototype to avoid an error.
27510 Use char because int might match the return type of a GCC
27511 builtin and then its argument prototype would still apply. */
27512#ifdef __cplusplus
27513extern "C"
27514#endif
27515char ffi_call ();
27516int
27517main ()
27518{
27519return ffi_call ();
27520 ;
27521 return 0;
27522}
27523_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027524for ac_lib in '' ffi; do
27525 if test -z "$ac_lib"; then
27526 ac_res="none required"
27527 else
27528 ac_res=-l$ac_lib
27529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27530 fi
27531 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027532if { (ac_try="$ac_link"
27533case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27536esac
27537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_link") 2>conftest.er1
27539 ac_status=$?
27540 grep -v '^ *+' conftest.er1 >conftest.err
27541 rm -f conftest.er1
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27546 { (case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27549esac
27550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551 (eval "$ac_try") 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest$ac_exeext'
27556 { (case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27559esac
27560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_try") 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027565 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027566else
27567 echo "$as_me: failed program was:" >&5
27568sed 's/^/| /' conftest.$ac_ext >&5
27569
Nick Lewycky267fddb2009-04-13 04:26:27 +000027570
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027571fi
27572
Bill Wendlingebcceee2009-04-18 11:20:33 +000027573rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027574 conftest$ac_exeext
27575 if test "${ac_cv_search_ffi_call+set}" = set; then
27576 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027577fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027578done
27579if test "${ac_cv_search_ffi_call+set}" = set; then
27580 :
27581else
27582 ac_cv_search_ffi_call=no
27583fi
27584rm conftest.$ac_ext
27585LIBS=$ac_func_search_save_LIBS
27586fi
27587{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27588echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27589ac_res=$ac_cv_search_ffi_call
27590if test "$ac_res" != no; then
27591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27592
27593cat >>confdefs.h <<\_ACEOF
27594#define HAVE_FFI_CALL 1
27595_ACEOF
27596
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027597else
27598 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27599echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27600fi
27601
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027602fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027603
Reid Spencera773bd52006-08-04 18:18:08 +000027604{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027606if test "${ac_cv_search_mallinfo+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027610cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027616
Reid Spencera773bd52006-08-04 18:18:08 +000027617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027620#ifdef __cplusplus
27621extern "C"
27622#endif
John Criswell7a73b802003-06-30 21:59:07 +000027623char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027624int
27625main ()
27626{
Reid Spencera773bd52006-08-04 18:18:08 +000027627return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027628 ;
27629 return 0;
27630}
27631_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027632for ac_lib in '' malloc; do
27633 if test -z "$ac_lib"; then
27634 ac_res="none required"
27635 else
27636 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027638 fi
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640if { (ac_try="$ac_link"
27641case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27644esac
27645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027648 grep -v '^ *+' conftest.er1 >conftest.err
27649 rm -f conftest.er1
27650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027652 (exit $ac_status); } &&
27653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654 { (case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657esac
27658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_try") 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest$ac_exeext'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027673 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027674else
27675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027676sed 's/^/| /' conftest.$ac_ext >&5
27677
Reid Spencera773bd52006-08-04 18:18:08 +000027678
John Criswell7a73b802003-06-30 21:59:07 +000027679fi
Reid Spencera773bd52006-08-04 18:18:08 +000027680
Bill Wendlingebcceee2009-04-18 11:20:33 +000027681rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027682 conftest$ac_exeext
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27684 break
John Criswell7a73b802003-06-30 21:59:07 +000027685fi
Reid Spencera773bd52006-08-04 18:18:08 +000027686done
27687if test "${ac_cv_search_mallinfo+set}" = set; then
27688 :
27689else
27690 ac_cv_search_mallinfo=no
27691fi
27692rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027693LIBS=$ac_func_search_save_LIBS
27694fi
Reid Spencera773bd52006-08-04 18:18:08 +000027695{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697ac_res=$ac_cv_search_mallinfo
27698if test "$ac_res" != no; then
27699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027700
27701cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027702#define HAVE_MALLINFO 1
27703_ACEOF
27704
27705fi
27706
27707
Reid Spencer0a262ba2005-08-24 10:07:20 +000027708if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027709
Reid Spencera773bd52006-08-04 18:18:08 +000027710{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027712if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 ac_check_lib_save_LIBS=$LIBS
27716LIBS="-lpthread $LIBS"
27717cat >conftest.$ac_ext <<_ACEOF
27718/* confdefs.h. */
27719_ACEOF
27720cat confdefs.h >>conftest.$ac_ext
27721cat >>conftest.$ac_ext <<_ACEOF
27722/* end confdefs.h. */
27723
Reid Spencera773bd52006-08-04 18:18:08 +000027724/* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027727#ifdef __cplusplus
27728extern "C"
27729#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027730char pthread_mutex_init ();
27731int
27732main ()
27733{
Reid Spencera773bd52006-08-04 18:18:08 +000027734return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027735 ;
27736 return 0;
27737}
27738_ACEOF
27739rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027740if { (ac_try="$ac_link"
27741case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27760 ac_status=$?
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest$ac_exeext'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027773 ac_cv_lib_pthread_pthread_mutex_init=yes
27774else
27775 echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
Reid Spencera773bd52006-08-04 18:18:08 +000027778 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027779fi
Reid Spencera773bd52006-08-04 18:18:08 +000027780
Bill Wendlingebcceee2009-04-18 11:20:33 +000027781rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027782 conftest$ac_exeext conftest.$ac_ext
27783LIBS=$ac_check_lib_save_LIBS
27784fi
Reid Spencera773bd52006-08-04 18:18:08 +000027785{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027787if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788 cat >>confdefs.h <<_ACEOF
27789#define HAVE_LIBPTHREAD 1
27790_ACEOF
27791
27792 LIBS="-lpthread $LIBS"
27793
27794fi
27795
Reid Spencera773bd52006-08-04 18:18:08 +000027796 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027798if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027802cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803/* confdefs.h. */
27804_ACEOF
27805cat confdefs.h >>conftest.$ac_ext
27806cat >>conftest.$ac_ext <<_ACEOF
27807/* end confdefs.h. */
27808
Reid Spencera773bd52006-08-04 18:18:08 +000027809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027812#ifdef __cplusplus
27813extern "C"
27814#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027815char pthread_mutex_lock ();
27816int
27817main ()
27818{
Reid Spencera773bd52006-08-04 18:18:08 +000027819return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027820 ;
27821 return 0;
27822}
27823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027824for ac_lib in '' pthread; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27827 else
27828 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027830 fi
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (ac_try="$ac_link"
27833case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27836esac
27837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($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_try") 2>&5
27852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027865 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
Reid Spencera773bd52006-08-04 18:18:08 +000027870
Brian Gaeke5f268f72003-12-05 19:29:01 +000027871fi
Reid Spencera773bd52006-08-04 18:18:08 +000027872
Bill Wendlingebcceee2009-04-18 11:20:33 +000027873rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027874 conftest$ac_exeext
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027877fi
Reid Spencera773bd52006-08-04 18:18:08 +000027878done
27879if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27880 :
27881else
27882 ac_cv_search_pthread_mutex_lock=no
27883fi
27884rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027885LIBS=$ac_func_search_save_LIBS
27886fi
Reid Spencera773bd52006-08-04 18:18:08 +000027887{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889ac_res=$ac_cv_search_pthread_mutex_lock
27890if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027892
John Criswell40468462004-09-24 21:19:06 +000027893cat >>confdefs.h <<\_ACEOF
27894#define HAVE_PTHREAD_MUTEX_LOCK 1
27895_ACEOF
27896
27897fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027898
Owen Andersonde8aed22009-06-16 18:20:20 +000027899 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27900echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27901if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27903else
27904 ac_func_search_save_LIBS=$LIBS
27905cat >conftest.$ac_ext <<_ACEOF
27906/* confdefs.h. */
27907_ACEOF
27908cat confdefs.h >>conftest.$ac_ext
27909cat >>conftest.$ac_ext <<_ACEOF
27910/* end confdefs.h. */
27911
27912/* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27915#ifdef __cplusplus
27916extern "C"
27917#endif
27918char pthread_rwlock_init ();
27919int
27920main ()
27921{
27922return pthread_rwlock_init ();
27923 ;
27924 return 0;
27925}
27926_ACEOF
27927for ac_lib in '' pthread; do
27928 if test -z "$ac_lib"; then
27929 ac_res="none required"
27930 else
27931 ac_res=-l$ac_lib
27932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27933 fi
27934 rm -f conftest.$ac_objext conftest$ac_exeext
27935if { (ac_try="$ac_link"
27936case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939esac
27940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_link") 2>conftest.er1
27942 ac_status=$?
27943 grep -v '^ *+' conftest.er1 >conftest.err
27944 rm -f conftest.er1
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
27948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27949 { (case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27952esac
27953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_try") 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest$ac_exeext'
27959 { (case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27962esac
27963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_try") 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_search_pthread_rwlock_init=$ac_res
27969else
27970 echo "$as_me: failed program was:" >&5
27971sed 's/^/| /' conftest.$ac_ext >&5
27972
27973
27974fi
27975
27976rm -f core conftest.err conftest.$ac_objext \
27977 conftest$ac_exeext
27978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27979 break
27980fi
27981done
27982if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27983 :
27984else
27985 ac_cv_search_pthread_rwlock_init=no
27986fi
27987rm conftest.$ac_ext
27988LIBS=$ac_func_search_save_LIBS
27989fi
27990{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
27991echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
27992ac_res=$ac_cv_search_pthread_rwlock_init
27993if test "$ac_res" != no; then
27994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27995
27996cat >>confdefs.h <<\_ACEOF
27997#define HAVE_PTHREAD_RWLOCK_INIT 1
27998_ACEOF
27999
28000fi
28001
Reid Spencer0a262ba2005-08-24 10:07:20 +000028002fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028003
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028004
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028005# Check whether --with-udis86 was given.
28006if test "${with_udis86+set}" = set; then
28007 withval=$with_udis86;
28008 USE_UDIS86=1
28009
28010 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028011 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028012 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28013 esac
28014
28015{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28016echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28017if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020 ac_check_lib_save_LIBS=$LIBS
28021LIBS="-ludis86 $LIBS"
28022cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
28028
28029/* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035char ud_init ();
28036int
28037main ()
28038{
28039return ud_init ();
28040 ;
28041 return 0;
28042}
28043_ACEOF
28044rm -f conftest.$ac_objext conftest$ac_exeext
28045if { (ac_try="$ac_link"
28046case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28049esac
28050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_link") 2>conftest.er1
28052 ac_status=$?
28053 grep -v '^ *+' conftest.er1 >conftest.err
28054 rm -f conftest.er1
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059 { (case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28062esac
28063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_try") 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28072esac
28073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_try") 2>&5
28075 ac_status=$?
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028078 ac_cv_lib_udis86_ud_init=yes
28079else
28080 echo "$as_me: failed program was:" >&5
28081sed 's/^/| /' conftest.$ac_ext >&5
28082
28083 ac_cv_lib_udis86_ud_init=no
28084fi
28085
Bill Wendlingebcceee2009-04-18 11:20:33 +000028086rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028087 conftest$ac_exeext conftest.$ac_ext
28088LIBS=$ac_check_lib_save_LIBS
28089fi
28090{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28091echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28092if test $ac_cv_lib_udis86_ud_init = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094#define HAVE_LIBUDIS86 1
28095_ACEOF
28096
28097 LIBS="-ludis86 $LIBS"
28098
28099else
28100
28101 echo "Error! You need to have libudis86 around."
28102 exit -1
28103
28104fi
28105
28106
28107else
28108 USE_UDIS86=0
28109
28110fi
28111
28112
28113cat >>confdefs.h <<_ACEOF
28114#define USE_UDIS86 $USE_UDIS86
28115_ACEOF
28116
28117
28118
Reid Spencer59473af2004-12-25 07:31:29 +000028119
28120
28121
28122
28123
28124ac_header_dirent=no
28125for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28126 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028127{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28128echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028130 echo $ECHO_N "(cached) $ECHO_C" >&6
28131else
28132 cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
28138#include <sys/types.h>
28139#include <$ac_hdr>
28140
28141int
28142main ()
28143{
28144if ((DIR *) 0)
28145return 0;
28146 ;
28147 return 0;
28148}
28149_ACEOF
28150rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028151if { (ac_try="$ac_compile"
28152case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28155esac
28156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028158 ac_status=$?
28159 grep -v '^ *+' conftest.er1 >conftest.err
28160 rm -f conftest.er1
28161 cat conftest.err >&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028163 (exit $ac_status); } &&
28164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28165 { (case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_try") 2>&5
28171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; } &&
28174 { ac_try='test -s conftest.$ac_objext'
28175 { (case "(($ac_try" in
28176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177 *) ac_try_echo=$ac_try;;
28178esac
28179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180 (eval "$ac_try") 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028184 eval "$as_ac_Header=yes"
28185else
28186 echo "$as_me: failed program was:" >&5
28187sed 's/^/| /' conftest.$ac_ext >&5
28188
Reid Spencera773bd52006-08-04 18:18:08 +000028189 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028190fi
Reid Spencera773bd52006-08-04 18:18:08 +000028191
28192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028193fi
Reid Spencera773bd52006-08-04 18:18:08 +000028194ac_res=`eval echo '${'$as_ac_Header'}'`
28195 { echo "$as_me:$LINENO: result: $ac_res" >&5
28196echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028197if test `eval echo '${'$as_ac_Header'}'` = yes; then
28198 cat >>confdefs.h <<_ACEOF
28199#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28200_ACEOF
28201
28202ac_header_dirent=$ac_hdr; break
28203fi
28204
28205done
28206# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28207if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028208 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28209echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028210if test "${ac_cv_search_opendir+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028214cat >conftest.$ac_ext <<_ACEOF
28215/* confdefs.h. */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h. */
28220
Reid Spencera773bd52006-08-04 18:18:08 +000028221/* Override any GCC internal prototype to avoid an error.
28222 Use char because int might match the return type of a GCC
28223 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028224#ifdef __cplusplus
28225extern "C"
28226#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028227char opendir ();
28228int
28229main ()
28230{
Reid Spencera773bd52006-08-04 18:18:08 +000028231return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028232 ;
28233 return 0;
28234}
28235_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028236for ac_lib in '' dir; do
28237 if test -z "$ac_lib"; then
28238 ac_res="none required"
28239 else
28240 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028242 fi
28243 rm -f conftest.$ac_objext conftest$ac_exeext
28244if { (ac_try="$ac_link"
28245case "(($ac_try" in
28246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28247 *) ac_try_echo=$ac_try;;
28248esac
28249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28250 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028251 ac_status=$?
28252 grep -v '^ *+' conftest.er1 >conftest.err
28253 rm -f conftest.er1
28254 cat conftest.err >&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028256 (exit $ac_status); } &&
28257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28261esac
28262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_try") 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
28268 { (case "(($ac_try" in
28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28271esac
28272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273 (eval "$ac_try") 2>&5
28274 ac_status=$?
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028277 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028278else
28279 echo "$as_me: failed program was:" >&5
28280sed 's/^/| /' conftest.$ac_ext >&5
28281
Reid Spencera773bd52006-08-04 18:18:08 +000028282
Reid Spencer59473af2004-12-25 07:31:29 +000028283fi
Reid Spencera773bd52006-08-04 18:18:08 +000028284
Bill Wendlingebcceee2009-04-18 11:20:33 +000028285rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028286 conftest$ac_exeext
28287 if test "${ac_cv_search_opendir+set}" = set; then
28288 break
Reid Spencer59473af2004-12-25 07:31:29 +000028289fi
Reid Spencera773bd52006-08-04 18:18:08 +000028290done
28291if test "${ac_cv_search_opendir+set}" = set; then
28292 :
28293else
28294 ac_cv_search_opendir=no
28295fi
28296rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028297LIBS=$ac_func_search_save_LIBS
28298fi
Reid Spencera773bd52006-08-04 18:18:08 +000028299{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28300echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28301ac_res=$ac_cv_search_opendir
28302if test "$ac_res" != no; then
28303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028304
28305fi
28306
28307else
Reid Spencera773bd52006-08-04 18:18:08 +000028308 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28309echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028310if test "${ac_cv_search_opendir+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312else
28313 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028314cat >conftest.$ac_ext <<_ACEOF
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
28319/* end confdefs.h. */
28320
Reid Spencera773bd52006-08-04 18:18:08 +000028321/* Override any GCC internal prototype to avoid an error.
28322 Use char because int might match the return type of a GCC
28323 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028324#ifdef __cplusplus
28325extern "C"
28326#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028327char opendir ();
28328int
28329main ()
28330{
Reid Spencera773bd52006-08-04 18:18:08 +000028331return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028332 ;
28333 return 0;
28334}
28335_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028336for ac_lib in '' x; do
28337 if test -z "$ac_lib"; then
28338 ac_res="none required"
28339 else
28340 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028342 fi
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344if { (ac_try="$ac_link"
28345case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28348esac
28349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028351 ac_status=$?
28352 grep -v '^ *+' conftest.er1 >conftest.err
28353 rm -f conftest.er1
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28361esac
28362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest$ac_exeext'
28368 { (case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371esac
28372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_try") 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028377 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028378else
28379 echo "$as_me: failed program was:" >&5
28380sed 's/^/| /' conftest.$ac_ext >&5
28381
Reid Spencera773bd52006-08-04 18:18:08 +000028382
Reid Spencer59473af2004-12-25 07:31:29 +000028383fi
Reid Spencera773bd52006-08-04 18:18:08 +000028384
Bill Wendlingebcceee2009-04-18 11:20:33 +000028385rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028386 conftest$ac_exeext
28387 if test "${ac_cv_search_opendir+set}" = set; then
28388 break
Reid Spencer59473af2004-12-25 07:31:29 +000028389fi
Reid Spencera773bd52006-08-04 18:18:08 +000028390done
28391if test "${ac_cv_search_opendir+set}" = set; then
28392 :
28393else
28394 ac_cv_search_opendir=no
28395fi
28396rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028397LIBS=$ac_func_search_save_LIBS
28398fi
Reid Spencera773bd52006-08-04 18:18:08 +000028399{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28400echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28401ac_res=$ac_cv_search_opendir
28402if test "$ac_res" != no; then
28403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028404
28405fi
28406
28407fi
28408
Reid Spencera773bd52006-08-04 18:18:08 +000028409{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28410echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028411if test "${ac_cv_header_mmap_anon+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 ac_ext=c
28415ac_cpp='$CPP $CPPFLAGS'
28416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28418ac_compiler_gnu=$ac_cv_c_compiler_gnu
28419
28420 cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426#include <sys/mman.h>
28427#include <unistd.h>
28428#include <fcntl.h>
28429int
28430main ()
28431{
28432mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28433 ;
28434 return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028438if { (ac_try="$ac_compile"
28439case "(($ac_try" in
28440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441 *) ac_try_echo=$ac_try;;
28442esac
28443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028445 ac_status=$?
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028450 (exit $ac_status); } &&
28451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28452 { (case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28455esac
28456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_try") 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest.$ac_objext'
28462 { (case "(($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_try") 2>&5
28468 ac_status=$?
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028471 ac_cv_header_mmap_anon=yes
28472else
28473 echo "$as_me: failed program was:" >&5
28474sed 's/^/| /' conftest.$ac_ext >&5
28475
Reid Spencera773bd52006-08-04 18:18:08 +000028476 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028477fi
Reid Spencera773bd52006-08-04 18:18:08 +000028478
28479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028480 ac_ext=c
28481ac_cpp='$CPP $CPPFLAGS'
28482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484ac_compiler_gnu=$ac_cv_c_compiler_gnu
28485
28486
28487fi
Reid Spencera773bd52006-08-04 18:18:08 +000028488{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28489echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028490if test "$ac_cv_header_mmap_anon" = yes; then
28491
28492cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028493#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028494_ACEOF
28495
28496fi
28497
Reid Spencera773bd52006-08-04 18:18:08 +000028498{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28499echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028500if test "${ac_cv_header_stat_broken+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502else
28503 cat >conftest.$ac_ext <<_ACEOF
28504/* confdefs.h. */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h. */
28509#include <sys/types.h>
28510#include <sys/stat.h>
28511
Reid Spencera773bd52006-08-04 18:18:08 +000028512#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028513# if S_ISBLK (S_IFDIR)
28514You lose.
28515# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028516#endif
28517
Reid Spencera773bd52006-08-04 18:18:08 +000028518#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028519# if S_ISBLK (S_IFCHR)
28520You lose.
28521# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028522#endif
28523
Reid Spencera773bd52006-08-04 18:18:08 +000028524#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028525# if S_ISLNK (S_IFREG)
28526You lose.
28527# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028528#endif
28529
Reid Spencera773bd52006-08-04 18:18:08 +000028530#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028531# if S_ISSOCK (S_IFREG)
28532You lose.
28533# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028534#endif
28535
28536_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28538 $EGREP "You lose" >/dev/null 2>&1; then
28539 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028540else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028541 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028542fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028543rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028544
Reid Spencer59473af2004-12-25 07:31:29 +000028545fi
Reid Spencera773bd52006-08-04 18:18:08 +000028546{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28547echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028548if test $ac_cv_header_stat_broken = yes; then
28549
28550cat >>confdefs.h <<\_ACEOF
28551#define STAT_MACROS_BROKEN 1
28552_ACEOF
28553
28554fi
28555
Reid Spencera773bd52006-08-04 18:18:08 +000028556{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28557echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028558if test "${ac_cv_header_stdc+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560else
28561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028562/* confdefs.h. */
28563_ACEOF
28564cat confdefs.h >>conftest.$ac_ext
28565cat >>conftest.$ac_ext <<_ACEOF
28566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028567#include <stdlib.h>
28568#include <stdarg.h>
28569#include <string.h>
28570#include <float.h>
28571
John Criswell0c38eaf2003-09-10 15:17:25 +000028572int
28573main ()
28574{
28575
28576 ;
28577 return 0;
28578}
John Criswell7a73b802003-06-30 21:59:07 +000028579_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028580rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028581if { (ac_try="$ac_compile"
28582case "(($ac_try" in
28583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28584 *) ac_try_echo=$ac_try;;
28585esac
28586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28587 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028593 (exit $ac_status); } &&
28594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28595 { (case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28598esac
28599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_try") 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; } &&
28604 { ac_try='test -s conftest.$ac_objext'
28605 { (case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_try") 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028614 ac_cv_header_stdc=yes
28615else
28616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028617sed 's/^/| /' conftest.$ac_ext >&5
28618
Reid Spencera773bd52006-08-04 18:18:08 +000028619 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028620fi
Reid Spencera773bd52006-08-04 18:18:08 +000028621
28622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028623
28624if test $ac_cv_header_stdc = yes; then
28625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028627/* confdefs.h. */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028632#include <string.h>
28633
28634_ACEOF
28635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028636 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028637 :
28638else
28639 ac_cv_header_stdc=no
28640fi
28641rm -f conftest*
28642
28643fi
28644
28645if test $ac_cv_header_stdc = yes; then
28646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28647 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028648/* confdefs.h. */
28649_ACEOF
28650cat confdefs.h >>conftest.$ac_ext
28651cat >>conftest.$ac_ext <<_ACEOF
28652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028653#include <stdlib.h>
28654
28655_ACEOF
28656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028657 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028658 :
28659else
28660 ac_cv_header_stdc=no
28661fi
28662rm -f conftest*
28663
28664fi
28665
28666if test $ac_cv_header_stdc = yes; then
28667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28668 if test "$cross_compiling" = yes; then
28669 :
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028677#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028678#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028679#if ((' ' & 0x0FF) == 0x020)
28680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28682#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028683# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028684 (('a' <= (c) && (c) <= 'i') \
28685 || ('j' <= (c) && (c) <= 'r') \
28686 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28688#endif
28689
28690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28691int
28692main ()
28693{
28694 int i;
28695 for (i = 0; i < 256; i++)
28696 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028697 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028698 return 2;
28699 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028700}
28701_ACEOF
28702rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028703if { (ac_try="$ac_link"
28704case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28707esac
28708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028713 { (case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28716esac
28717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 :
28723else
28724 echo "$as_me: program exited with status $ac_status" >&5
28725echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028726sed 's/^/| /' conftest.$ac_ext >&5
28727
John Criswell7a73b802003-06-30 21:59:07 +000028728( exit $ac_status )
28729ac_cv_header_stdc=no
28730fi
Reid Spencera773bd52006-08-04 18:18:08 +000028731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28732fi
28733
28734
John Criswell7a73b802003-06-30 21:59:07 +000028735fi
28736fi
Reid Spencera773bd52006-08-04 18:18:08 +000028737{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28738echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028739if test $ac_cv_header_stdc = yes; then
28740
28741cat >>confdefs.h <<\_ACEOF
28742#define STDC_HEADERS 1
28743_ACEOF
28744
28745fi
28746
Reid Spencera773bd52006-08-04 18:18:08 +000028747{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28748echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028749if test "${ac_cv_header_sys_wait_h+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28751else
28752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028753/* confdefs.h. */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028758#include <sys/types.h>
28759#include <sys/wait.h>
28760#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028761# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028762#endif
28763#ifndef WIFEXITED
28764# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28765#endif
28766
John Criswell7a73b802003-06-30 21:59:07 +000028767int
28768main ()
28769{
28770 int s;
28771 wait (&s);
28772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28773 ;
28774 return 0;
28775}
28776_ACEOF
28777rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028778if { (ac_try="$ac_compile"
28779case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782esac
28783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028785 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028790 (exit $ac_status); } &&
28791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest.$ac_objext'
28802 { (case "(($ac_try" in
28803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804 *) ac_try_echo=$ac_try;;
28805esac
28806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807 (eval "$ac_try") 2>&5
28808 ac_status=$?
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028811 ac_cv_header_sys_wait_h=yes
28812else
28813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028814sed 's/^/| /' conftest.$ac_ext >&5
28815
Reid Spencera773bd52006-08-04 18:18:08 +000028816 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028817fi
Reid Spencera773bd52006-08-04 18:18:08 +000028818
28819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028820fi
Reid Spencera773bd52006-08-04 18:18:08 +000028821{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28822echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028823if test $ac_cv_header_sys_wait_h = yes; then
28824
28825cat >>confdefs.h <<\_ACEOF
28826#define HAVE_SYS_WAIT_H 1
28827_ACEOF
28828
28829fi
28830
Reid Spencera773bd52006-08-04 18:18:08 +000028831{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28832echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028833if test "${ac_cv_header_time+set}" = set; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28835else
28836 cat >conftest.$ac_ext <<_ACEOF
28837/* confdefs.h. */
28838_ACEOF
28839cat confdefs.h >>conftest.$ac_ext
28840cat >>conftest.$ac_ext <<_ACEOF
28841/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028842#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028843#include <sys/time.h>
28844#include <time.h>
28845
28846int
28847main ()
28848{
28849if ((struct tm *) 0)
28850return 0;
28851 ;
28852 return 0;
28853}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028854_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028855rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028856if { (ac_try="$ac_compile"
28857case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28860esac
28861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028863 ac_status=$?
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028868 (exit $ac_status); } &&
28869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest.$ac_objext'
28880 { (case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28883esac
28884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_try") 2>&5
28886 ac_status=$?
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028889 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028890else
28891 echo "$as_me: failed program was:" >&5
28892sed 's/^/| /' conftest.$ac_ext >&5
28893
Reid Spencera773bd52006-08-04 18:18:08 +000028894 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028895fi
Reid Spencera773bd52006-08-04 18:18:08 +000028896
28897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028898fi
Reid Spencera773bd52006-08-04 18:18:08 +000028899{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28900echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028901if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028902
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028903cat >>confdefs.h <<\_ACEOF
28904#define TIME_WITH_SYS_TIME 1
28905_ACEOF
28906
28907fi
28908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028909
Reid Spencer59473af2004-12-25 07:31:29 +000028910
28911
28912
28913
28914
28915
28916for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28917do
28918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028923 echo $ECHO_N "(cached) $ECHO_C" >&6
28924fi
Reid Spencera773bd52006-08-04 18:18:08 +000028925ac_res=`eval echo '${'$as_ac_Header'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028928else
28929 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028932cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028933/* confdefs.h. */
28934_ACEOF
28935cat confdefs.h >>conftest.$ac_ext
28936cat >>conftest.$ac_ext <<_ACEOF
28937/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028938$ac_includes_default
28939#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028940_ACEOF
28941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028942if { (ac_try="$ac_compile"
28943case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28946esac
28947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028949 ac_status=$?
28950 grep -v '^ *+' conftest.er1 >conftest.err
28951 rm -f conftest.er1
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028954 (exit $ac_status); } &&
28955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28956 { (case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28959esac
28960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_try") 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (case "(($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_try") 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028975 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028976else
28977 echo "$as_me: failed program was:" >&5
28978sed 's/^/| /' conftest.$ac_ext >&5
28979
Reid Spencera773bd52006-08-04 18:18:08 +000028980 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028981fi
Reid Spencera773bd52006-08-04 18:18:08 +000028982
28983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28985echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028986
Reid Spencer59473af2004-12-25 07:31:29 +000028987# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028990cat >conftest.$ac_ext <<_ACEOF
28991/* confdefs.h. */
28992_ACEOF
28993cat confdefs.h >>conftest.$ac_ext
28994cat >>conftest.$ac_ext <<_ACEOF
28995/* end confdefs.h. */
28996#include <$ac_header>
28997_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028998if { (ac_try="$ac_cpp conftest.$ac_ext"
28999case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29002esac
29003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014 else
29015 ac_cpp_err=
29016 fi
29017else
29018 ac_cpp_err=yes
29019fi
29020if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029021 ac_header_preproc=yes
29022else
29023 echo "$as_me: failed program was:" >&5
29024sed 's/^/| /' conftest.$ac_ext >&5
29025
29026 ac_header_preproc=no
29027fi
Reid Spencera773bd52006-08-04 18:18:08 +000029028
Reid Spencer59473af2004-12-25 07:31:29 +000029029rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29031echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029032
29033# So? What about this header?
29034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035 yes:no: )
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29040 ac_header_preproc=yes
29041 ;;
29042 no:yes:* )
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029055 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029056## ----------------------------------- ##
29057## Report this to llvmbugs@cs.uiuc.edu ##
29058## ----------------------------------- ##
29059_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029060 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029061 ;;
29062esac
Reid Spencera773bd52006-08-04 18:18:08 +000029063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068 eval "$as_ac_Header=\$ac_header_preproc"
29069fi
Reid Spencera773bd52006-08-04 18:18:08 +000029070ac_res=`eval echo '${'$as_ac_Header'}'`
29071 { echo "$as_me:$LINENO: result: $ac_res" >&5
29072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029073
29074fi
Reid Spencer59473af2004-12-25 07:31:29 +000029075if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029078_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029079
29080fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029081
Reid Spencer59473af2004-12-25 07:31:29 +000029082done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029083
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029084
29085
Reid Spencer59473af2004-12-25 07:31:29 +000029086
29087
29088
29089
Douglas Gregor071d73d2009-05-18 17:21:34 +000029090for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029091do
29092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029097 echo $ECHO_N "(cached) $ECHO_C" >&6
29098fi
Reid Spencera773bd52006-08-04 18:18:08 +000029099ac_res=`eval echo '${'$as_ac_Header'}'`
29100 { echo "$as_me:$LINENO: result: $ac_res" >&5
29101echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029102else
29103 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029104{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029106cat >conftest.$ac_ext <<_ACEOF
29107/* confdefs.h. */
29108_ACEOF
29109cat confdefs.h >>conftest.$ac_ext
29110cat >>conftest.$ac_ext <<_ACEOF
29111/* end confdefs.h. */
29112$ac_includes_default
29113#include <$ac_header>
29114_ACEOF
29115rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029116if { (ac_try="$ac_compile"
29117case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29120esac
29121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029123 ac_status=$?
29124 grep -v '^ *+' conftest.er1 >conftest.err
29125 rm -f conftest.er1
29126 cat conftest.err >&5
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029128 (exit $ac_status); } &&
29129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29130 { (case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29133esac
29134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_try") 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest.$ac_objext'
29140 { (case "(($ac_try" in
29141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142 *) ac_try_echo=$ac_try;;
29143esac
29144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145 (eval "$ac_try") 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029149 ac_header_compiler=yes
29150else
29151 echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
Reid Spencera773bd52006-08-04 18:18:08 +000029154 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029155fi
Reid Spencera773bd52006-08-04 18:18:08 +000029156
29157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29159echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029160
29161# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029162{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029164cat >conftest.$ac_ext <<_ACEOF
29165/* confdefs.h. */
29166_ACEOF
29167cat confdefs.h >>conftest.$ac_ext
29168cat >>conftest.$ac_ext <<_ACEOF
29169/* end confdefs.h. */
29170#include <$ac_header>
29171_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029172if { (ac_try="$ac_cpp conftest.$ac_ext"
29173case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29176esac
29177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029179 ac_status=$?
29180 grep -v '^ *+' conftest.er1 >conftest.err
29181 rm -f conftest.er1
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029184 (exit $ac_status); } >/dev/null; then
29185 if test -s conftest.err; then
29186 ac_cpp_err=$ac_c_preproc_warn_flag
29187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29188 else
29189 ac_cpp_err=
29190 fi
29191else
29192 ac_cpp_err=yes
29193fi
29194if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029195 ac_header_preproc=yes
29196else
29197 echo "$as_me: failed program was:" >&5
29198sed 's/^/| /' conftest.$ac_ext >&5
29199
29200 ac_header_preproc=no
29201fi
Reid Spencera773bd52006-08-04 18:18:08 +000029202
Reid Spencer59473af2004-12-25 07:31:29 +000029203rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029204{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29205echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029206
29207# So? What about this header?
29208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29209 yes:no: )
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29211echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29213echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29214 ac_header_preproc=yes
29215 ;;
29216 no:yes:* )
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29220echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29222echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29224echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29228echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029229 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029230## ----------------------------------- ##
29231## Report this to llvmbugs@cs.uiuc.edu ##
29232## ----------------------------------- ##
29233_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029234 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029235 ;;
29236esac
Reid Spencera773bd52006-08-04 18:18:08 +000029237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029240 echo $ECHO_N "(cached) $ECHO_C" >&6
29241else
29242 eval "$as_ac_Header=\$ac_header_preproc"
29243fi
Reid Spencera773bd52006-08-04 18:18:08 +000029244ac_res=`eval echo '${'$as_ac_Header'}'`
29245 { echo "$as_me:$LINENO: result: $ac_res" >&5
29246echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029247
29248fi
29249if test `eval echo '${'$as_ac_Header'}'` = yes; then
29250 cat >>confdefs.h <<_ACEOF
29251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29252_ACEOF
29253
29254fi
29255
29256done
29257
29258
Douglas Gregor071d73d2009-05-18 17:21:34 +000029259
29260for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029261do
29262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29268fi
29269ac_res=`eval echo '${'$as_ac_Header'}'`
29270 { echo "$as_me:$LINENO: result: $ac_res" >&5
29271echo "${ECHO_T}$ac_res" >&6; }
29272else
29273 # Is the header compilable?
29274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29276cat >conftest.$ac_ext <<_ACEOF
29277/* confdefs.h. */
29278_ACEOF
29279cat confdefs.h >>conftest.$ac_ext
29280cat >>conftest.$ac_ext <<_ACEOF
29281/* end confdefs.h. */
29282$ac_includes_default
29283#include <$ac_header>
29284_ACEOF
29285rm -f conftest.$ac_objext
29286if { (ac_try="$ac_compile"
29287case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29290esac
29291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
29293 ac_status=$?
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029298 (exit $ac_status); } &&
29299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300 { (case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29303esac
29304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_try") 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest.$ac_objext'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029319 ac_header_compiler=yes
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
29324 ac_header_compiler=no
29325fi
29326
29327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329echo "${ECHO_T}$ac_header_compiler" >&6; }
29330
29331# Is the header present?
29332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29334cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340#include <$ac_header>
29341_ACEOF
29342if { (ac_try="$ac_cpp conftest.$ac_ext"
29343case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29349 ac_status=$?
29350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029354 (exit $ac_status); } >/dev/null; then
29355 if test -s conftest.err; then
29356 ac_cpp_err=$ac_c_preproc_warn_flag
29357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29358 else
29359 ac_cpp_err=
29360 fi
29361else
29362 ac_cpp_err=yes
29363fi
29364if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029365 ac_header_preproc=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370 ac_header_preproc=no
29371fi
29372
29373rm -f conftest.err conftest.$ac_ext
29374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375echo "${ECHO_T}$ac_header_preproc" >&6; }
29376
29377# So? What about this header?
29378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29379 yes:no: )
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29384 ac_header_preproc=yes
29385 ;;
29386 no:yes:* )
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29399 ( cat <<\_ASBOX
29400## ----------------------------------- ##
29401## Report this to llvmbugs@cs.uiuc.edu ##
29402## ----------------------------------- ##
29403_ASBOX
29404 ) | sed "s/^/$as_me: WARNING: /" >&2
29405 ;;
29406esac
29407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 eval "$as_ac_Header=\$ac_header_preproc"
29413fi
29414ac_res=`eval echo '${'$as_ac_Header'}'`
29415 { echo "$as_me:$LINENO: result: $ac_res" >&5
29416echo "${ECHO_T}$ac_res" >&6; }
29417
29418fi
29419if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420 cat >>confdefs.h <<_ACEOF
29421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29422_ACEOF
29423
29424fi
29425
29426done
Reid Spencer59473af2004-12-25 07:31:29 +000029427
29428
29429
29430
Reid Spencerbe3e4192007-08-17 05:45:26 +000029431
29432for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029433do
29434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029439 echo $ECHO_N "(cached) $ECHO_C" >&6
29440fi
Reid Spencera773bd52006-08-04 18:18:08 +000029441ac_res=`eval echo '${'$as_ac_Header'}'`
29442 { echo "$as_me:$LINENO: result: $ac_res" >&5
29443echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029444else
29445 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029446{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029448cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029449/* confdefs.h. */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h. */
29454$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029455#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029456_ACEOF
29457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029458if { (ac_try="$ac_compile"
29459case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29462esac
29463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029466 grep -v '^ *+' conftest.er1 >conftest.err
29467 rm -f conftest.er1
29468 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029470 (exit $ac_status); } &&
29471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29472 { (case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475esac
29476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_try") 2>&5
29478 ac_status=$?
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest.$ac_objext'
29482 { (case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29485esac
29486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029491 ac_header_compiler=yes
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
Reid Spencera773bd52006-08-04 18:18:08 +000029496 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029497fi
Reid Spencera773bd52006-08-04 18:18:08 +000029498
29499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29500{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029502
29503# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029504{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029506cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029507/* confdefs.h. */
29508_ACEOF
29509cat confdefs.h >>conftest.$ac_ext
29510cat >>conftest.$ac_ext <<_ACEOF
29511/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029512#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029513_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029514if { (ac_try="$ac_cpp conftest.$ac_ext"
29515case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518esac
29519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029521 ac_status=$?
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029526 (exit $ac_status); } >/dev/null; then
29527 if test -s conftest.err; then
29528 ac_cpp_err=$ac_c_preproc_warn_flag
29529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29530 else
29531 ac_cpp_err=
29532 fi
29533else
29534 ac_cpp_err=yes
29535fi
29536if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029537 ac_header_preproc=yes
29538else
29539 echo "$as_me: failed program was:" >&5
29540sed 's/^/| /' conftest.$ac_ext >&5
29541
29542 ac_header_preproc=no
29543fi
Reid Spencera773bd52006-08-04 18:18:08 +000029544
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029545rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29547echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029548
29549# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29551 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029556 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029557 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029558 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029571 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029572## ----------------------------------- ##
29573## Report this to llvmbugs@cs.uiuc.edu ##
29574## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029575_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029576 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029577 ;;
29578esac
Reid Spencera773bd52006-08-04 18:18:08 +000029579{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029584 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029585fi
Reid Spencera773bd52006-08-04 18:18:08 +000029586ac_res=`eval echo '${'$as_ac_Header'}'`
29587 { echo "$as_me:$LINENO: result: $ac_res" >&5
29588echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029589
29590fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029591if test `eval echo '${'$as_ac_Header'}'` = yes; then
29592 cat >>confdefs.h <<_ACEOF
29593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029594_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029595
29596fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029597
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029598done
29599
John Criswell7ed43ad2004-07-19 16:12:29 +000029600
Reid Spencercdb08a32006-06-05 16:11:07 +000029601
Reid Spencera6d990a2006-09-14 06:17:21 +000029602
Douglas Gregor01746742009-05-11 18:05:52 +000029603
29604for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029605do
29606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029611 echo $ECHO_N "(cached) $ECHO_C" >&6
29612fi
Reid Spencera773bd52006-08-04 18:18:08 +000029613ac_res=`eval echo '${'$as_ac_Header'}'`
29614 { echo "$as_me:$LINENO: result: $ac_res" >&5
29615echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029616else
29617 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029618{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029620cat >conftest.$ac_ext <<_ACEOF
29621/* confdefs.h. */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h. */
29626$ac_includes_default
29627#include <$ac_header>
29628_ACEOF
29629rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029630if { (ac_try="$ac_compile"
29631case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29634esac
29635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029637 ac_status=$?
29638 grep -v '^ *+' conftest.er1 >conftest.err
29639 rm -f conftest.er1
29640 cat conftest.err >&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029642 (exit $ac_status); } &&
29643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29644 { (case "(($ac_try" in
29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646 *) ac_try_echo=$ac_try;;
29647esac
29648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649 (eval "$ac_try") 2>&5
29650 ac_status=$?
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; } &&
29653 { ac_try='test -s conftest.$ac_objext'
29654 { (case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29657esac
29658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659 (eval "$ac_try") 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029663 ac_header_compiler=yes
29664else
29665 echo "$as_me: failed program was:" >&5
29666sed 's/^/| /' conftest.$ac_ext >&5
29667
Reid Spencera773bd52006-08-04 18:18:08 +000029668 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029669fi
Reid Spencera773bd52006-08-04 18:18:08 +000029670
29671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29672{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29673echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029674
29675# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029676{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029678cat >conftest.$ac_ext <<_ACEOF
29679/* confdefs.h. */
29680_ACEOF
29681cat confdefs.h >>conftest.$ac_ext
29682cat >>conftest.$ac_ext <<_ACEOF
29683/* end confdefs.h. */
29684#include <$ac_header>
29685_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029686if { (ac_try="$ac_cpp conftest.$ac_ext"
29687case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029693 ac_status=$?
29694 grep -v '^ *+' conftest.er1 >conftest.err
29695 rm -f conftest.er1
29696 cat conftest.err >&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029698 (exit $ac_status); } >/dev/null; then
29699 if test -s conftest.err; then
29700 ac_cpp_err=$ac_c_preproc_warn_flag
29701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29702 else
29703 ac_cpp_err=
29704 fi
29705else
29706 ac_cpp_err=yes
29707fi
29708if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029709 ac_header_preproc=yes
29710else
29711 echo "$as_me: failed program was:" >&5
29712sed 's/^/| /' conftest.$ac_ext >&5
29713
29714 ac_header_preproc=no
29715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716
Chris Lattner0b142592005-11-14 06:57:34 +000029717rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29719echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029720
29721# So? What about this header?
29722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29723 yes:no: )
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29728 ac_header_preproc=yes
29729 ;;
29730 no:yes:* )
29731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029743 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029744## ----------------------------------- ##
29745## Report this to llvmbugs@cs.uiuc.edu ##
29746## ----------------------------------- ##
29747_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029748 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029749 ;;
29750esac
Reid Spencera773bd52006-08-04 18:18:08 +000029751{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029754 echo $ECHO_N "(cached) $ECHO_C" >&6
29755else
29756 eval "$as_ac_Header=\$ac_header_preproc"
29757fi
Reid Spencera773bd52006-08-04 18:18:08 +000029758ac_res=`eval echo '${'$as_ac_Header'}'`
29759 { echo "$as_me:$LINENO: result: $ac_res" >&5
29760echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029761
29762fi
29763if test `eval echo '${'$as_ac_Header'}'` = yes; then
29764 cat >>confdefs.h <<_ACEOF
29765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29766_ACEOF
29767
29768fi
29769
29770done
29771
Reid Spencer0a262ba2005-08-24 10:07:20 +000029772if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029773
29774for ac_header in pthread.h
29775do
29776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029783ac_res=`eval echo '${'$as_ac_Header'}'`
29784 { echo "$as_me:$LINENO: result: $ac_res" >&5
29785echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029786else
29787 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029788{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029790cat >conftest.$ac_ext <<_ACEOF
29791/* confdefs.h. */
29792_ACEOF
29793cat confdefs.h >>conftest.$ac_ext
29794cat >>conftest.$ac_ext <<_ACEOF
29795/* end confdefs.h. */
29796$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029797#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029798_ACEOF
29799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029800if { (ac_try="$ac_compile"
29801case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29804esac
29805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029807 ac_status=$?
29808 grep -v '^ *+' conftest.er1 >conftest.err
29809 rm -f conftest.er1
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029812 (exit $ac_status); } &&
29813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; } &&
29823 { ac_try='test -s conftest.$ac_objext'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029833 ac_header_compiler=yes
29834else
29835 echo "$as_me: failed program was:" >&5
29836sed 's/^/| /' conftest.$ac_ext >&5
29837
Reid Spencera773bd52006-08-04 18:18:08 +000029838 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840
29841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29843echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029844
29845# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029848cat >conftest.$ac_ext <<_ACEOF
29849/* confdefs.h. */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029854#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029855_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029856if { (ac_try="$ac_cpp conftest.$ac_ext"
29857case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29860esac
29861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029863 ac_status=$?
29864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029868 (exit $ac_status); } >/dev/null; then
29869 if test -s conftest.err; then
29870 ac_cpp_err=$ac_c_preproc_warn_flag
29871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29872 else
29873 ac_cpp_err=
29874 fi
29875else
29876 ac_cpp_err=yes
29877fi
29878if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029879 ac_header_preproc=yes
29880else
29881 echo "$as_me: failed program was:" >&5
29882sed 's/^/| /' conftest.$ac_ext >&5
29883
29884 ac_header_preproc=no
29885fi
Reid Spencera773bd52006-08-04 18:18:08 +000029886
Reid Spencer0a262ba2005-08-24 10:07:20 +000029887rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29889echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029890
29891# So? What about this header?
29892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29893 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029898 ac_header_preproc=yes
29899 ;;
29900 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029913 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029914## ----------------------------------- ##
29915## Report this to llvmbugs@cs.uiuc.edu ##
29916## ----------------------------------- ##
29917_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029918 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029919 ;;
29920esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029921{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029926 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029927fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029928ac_res=`eval echo '${'$as_ac_Header'}'`
29929 { echo "$as_me:$LINENO: result: $ac_res" >&5
29930echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029931
29932fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029933if test `eval echo '${'$as_ac_Header'}'` = yes; then
29934 cat >>confdefs.h <<_ACEOF
29935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29936_ACEOF
29937 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029938
29939else
29940 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029941
29942fi
29943
Reid Spencerbe3e4192007-08-17 05:45:26 +000029944done
Reid Spencer1000b732006-12-01 00:37:14 +000029945
29946else
29947 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029948
29949fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029950
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000029951if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029952
29953
29954for ac_header in ffi.h ffi/ffi.h
29955do
29956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29962fi
29963ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965echo "${ECHO_T}$ac_res" >&6; }
29966else
29967 # Is the header compilable?
29968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29970cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
29976$ac_includes_default
29977#include <$ac_header>
29978_ACEOF
29979rm -f conftest.$ac_objext
29980if { (ac_try="$ac_compile"
29981case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29984esac
29985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_compile") 2>conftest.er1
29987 ac_status=$?
29988 grep -v '^ *+' conftest.er1 >conftest.err
29989 rm -f conftest.er1
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994 { (case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29997esac
29998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_try") 2>&5
30000 ac_status=$?
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30007esac
30008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030013 ac_header_compiler=yes
30014else
30015 echo "$as_me: failed program was:" >&5
30016sed 's/^/| /' conftest.$ac_ext >&5
30017
30018 ac_header_compiler=no
30019fi
30020
30021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023echo "${ECHO_T}$ac_header_compiler" >&6; }
30024
30025# Is the header present?
30026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30028cat >conftest.$ac_ext <<_ACEOF
30029/* confdefs.h. */
30030_ACEOF
30031cat confdefs.h >>conftest.$ac_ext
30032cat >>conftest.$ac_ext <<_ACEOF
30033/* end confdefs.h. */
30034#include <$ac_header>
30035_ACEOF
30036if { (ac_try="$ac_cpp conftest.$ac_ext"
30037case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040esac
30041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030048 (exit $ac_status); } >/dev/null; then
30049 if test -s conftest.err; then
30050 ac_cpp_err=$ac_c_preproc_warn_flag
30051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30052 else
30053 ac_cpp_err=
30054 fi
30055else
30056 ac_cpp_err=yes
30057fi
30058if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030059 ac_header_preproc=yes
30060else
30061 echo "$as_me: failed program was:" >&5
30062sed 's/^/| /' conftest.$ac_ext >&5
30063
30064 ac_header_preproc=no
30065fi
30066
30067rm -f conftest.err conftest.$ac_ext
30068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30069echo "${ECHO_T}$ac_header_preproc" >&6; }
30070
30071# So? What about this header?
30072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30073 yes:no: )
30074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30078 ac_header_preproc=yes
30079 ;;
30080 no:yes:* )
30081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30093 ( cat <<\_ASBOX
30094## ----------------------------------- ##
30095## Report this to llvmbugs@cs.uiuc.edu ##
30096## ----------------------------------- ##
30097_ASBOX
30098 ) | sed "s/^/$as_me: WARNING: /" >&2
30099 ;;
30100esac
30101{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30105else
30106 eval "$as_ac_Header=\$ac_header_preproc"
30107fi
30108ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110echo "${ECHO_T}$ac_res" >&6; }
30111
30112fi
30113if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114 cat >>confdefs.h <<_ACEOF
30115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30116_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030117
30118fi
30119
30120done
30121
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030122fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030123
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030124
Reid Spencer8085cff2005-01-16 02:58:39 +000030125
Reid Spencerb2ed05262006-11-03 18:04:08 +000030126 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30127echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30128if test "${ac_cv_huge_val_sanity+set}" = set; then
30129 echo $ECHO_N "(cached) $ECHO_C" >&6
30130else
30131
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030132 ac_ext=cpp
30133ac_cpp='$CXXCPP $CPPFLAGS'
30134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030137
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030138 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030139 if test "$cross_compiling" = yes; then
30140 ac_cv_huge_val_sanity=yes
30141else
30142 cat >conftest.$ac_ext <<_ACEOF
30143/* confdefs.h. */
30144_ACEOF
30145cat confdefs.h >>conftest.$ac_ext
30146cat >>conftest.$ac_ext <<_ACEOF
30147/* end confdefs.h. */
30148#include <math.h>
30149int
30150main ()
30151{
30152double x = HUGE_VAL; return x != x;
30153 ;
30154 return 0;
30155}
30156_ACEOF
30157rm -f conftest$ac_exeext
30158if { (ac_try="$ac_link"
30159case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30162esac
30163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_link") 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_huge_val_sanity=yes
30178else
30179 echo "$as_me: program exited with status $ac_status" >&5
30180echo "$as_me: failed program was:" >&5
30181sed 's/^/| /' conftest.$ac_ext >&5
30182
30183( exit $ac_status )
30184ac_cv_huge_val_sanity=no
30185fi
30186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30187fi
30188
30189
30190 ac_ext=c
30191ac_cpp='$CPP $CPPFLAGS'
30192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194ac_compiler_gnu=$ac_cv_c_compiler_gnu
30195
30196
30197fi
30198{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30199echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30200 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30201
30202
Reid Spencera773bd52006-08-04 18:18:08 +000030203{ echo "$as_me:$LINENO: checking for pid_t" >&5
30204echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030205if test "${ac_cv_type_pid_t+set}" = set; then
30206 echo $ECHO_N "(cached) $ECHO_C" >&6
30207else
30208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030209/* confdefs.h. */
30210_ACEOF
30211cat confdefs.h >>conftest.$ac_ext
30212cat >>conftest.$ac_ext <<_ACEOF
30213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030214$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030215typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030216int
30217main ()
30218{
Reid Spencera773bd52006-08-04 18:18:08 +000030219if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030220 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030221if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030222 return 0;
30223 ;
30224 return 0;
30225}
30226_ACEOF
30227rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030228if { (ac_try="$ac_compile"
30229case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30232esac
30233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030236 grep -v '^ *+' conftest.er1 >conftest.err
30237 rm -f conftest.er1
30238 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030240 (exit $ac_status); } &&
30241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242 { (case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30245esac
30246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_try") 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30255esac
30256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_try") 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030261 ac_cv_type_pid_t=yes
30262else
30263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030264sed 's/^/| /' conftest.$ac_ext >&5
30265
Reid Spencera773bd52006-08-04 18:18:08 +000030266 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030267fi
Reid Spencera773bd52006-08-04 18:18:08 +000030268
30269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030270fi
Reid Spencera773bd52006-08-04 18:18:08 +000030271{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30272echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030273if test $ac_cv_type_pid_t = yes; then
30274 :
30275else
30276
30277cat >>confdefs.h <<_ACEOF
30278#define pid_t int
30279_ACEOF
30280
30281fi
30282
Reid Spencera773bd52006-08-04 18:18:08 +000030283{ echo "$as_me:$LINENO: checking for size_t" >&5
30284echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030285if test "${ac_cv_type_size_t+set}" = set; then
30286 echo $ECHO_N "(cached) $ECHO_C" >&6
30287else
30288 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030289/* confdefs.h. */
30290_ACEOF
30291cat confdefs.h >>conftest.$ac_ext
30292cat >>conftest.$ac_ext <<_ACEOF
30293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030294$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030295typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030296int
30297main ()
30298{
Reid Spencera773bd52006-08-04 18:18:08 +000030299if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030300 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030301if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030302 return 0;
30303 ;
30304 return 0;
30305}
30306_ACEOF
30307rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030308if { (ac_try="$ac_compile"
30309case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030316 grep -v '^ *+' conftest.er1 >conftest.err
30317 rm -f conftest.er1
30318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030320 (exit $ac_status); } &&
30321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30322 { (case "(($ac_try" in
30323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324 *) ac_try_echo=$ac_try;;
30325esac
30326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327 (eval "$ac_try") 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest.$ac_objext'
30332 { (case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30335esac
30336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_try") 2>&5
30338 ac_status=$?
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030341 ac_cv_type_size_t=yes
30342else
30343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030344sed 's/^/| /' conftest.$ac_ext >&5
30345
Reid Spencera773bd52006-08-04 18:18:08 +000030346 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030347fi
Reid Spencera773bd52006-08-04 18:18:08 +000030348
30349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030350fi
Reid Spencera773bd52006-08-04 18:18:08 +000030351{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30352echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030353if test $ac_cv_type_size_t = yes; then
30354 :
30355else
30356
30357cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030358#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030359_ACEOF
30360
30361fi
30362
Reid Spencera773bd52006-08-04 18:18:08 +000030363{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30364echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030365if test "${ac_cv_type_signal+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30367else
30368 cat >conftest.$ac_ext <<_ACEOF
30369/* confdefs.h. */
30370_ACEOF
30371cat confdefs.h >>conftest.$ac_ext
30372cat >>conftest.$ac_ext <<_ACEOF
30373/* end confdefs.h. */
30374#include <sys/types.h>
30375#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030376
30377int
30378main ()
30379{
Reid Spencera773bd52006-08-04 18:18:08 +000030380return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030381 ;
30382 return 0;
30383}
30384_ACEOF
30385rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030386if { (ac_try="$ac_compile"
30387case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390esac
30391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393 ac_status=$?
30394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030398 (exit $ac_status); } &&
30399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400 { (case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30403esac
30404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_try") 2>&5
30406 ac_status=$?
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; } &&
30409 { ac_try='test -s conftest.$ac_objext'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30413esac
30414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
30416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030419 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030420else
30421 echo "$as_me: failed program was:" >&5
30422sed 's/^/| /' conftest.$ac_ext >&5
30423
Reid Spencera773bd52006-08-04 18:18:08 +000030424 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030425fi
Reid Spencera773bd52006-08-04 18:18:08 +000030426
30427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428fi
Reid Spencera773bd52006-08-04 18:18:08 +000030429{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30430echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030431
30432cat >>confdefs.h <<_ACEOF
30433#define RETSIGTYPE $ac_cv_type_signal
30434_ACEOF
30435
30436
Reid Spencera773bd52006-08-04 18:18:08 +000030437{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30438echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030439if test "${ac_cv_struct_tm+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30441else
30442 cat >conftest.$ac_ext <<_ACEOF
30443/* confdefs.h. */
30444_ACEOF
30445cat confdefs.h >>conftest.$ac_ext
30446cat >>conftest.$ac_ext <<_ACEOF
30447/* end confdefs.h. */
30448#include <sys/types.h>
30449#include <time.h>
30450
30451int
30452main ()
30453{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030454struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455 ;
30456 return 0;
30457}
30458_ACEOF
30459rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030460if { (ac_try="$ac_compile"
30461case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30464esac
30465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030467 ac_status=$?
30468 grep -v '^ *+' conftest.er1 >conftest.err
30469 rm -f conftest.er1
30470 cat conftest.err >&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030472 (exit $ac_status); } &&
30473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30474 { (case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30477esac
30478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_try") 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; } &&
30483 { ac_try='test -s conftest.$ac_objext'
30484 { (case "(($ac_try" in
30485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30486 *) ac_try_echo=$ac_try;;
30487esac
30488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30489 (eval "$ac_try") 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030493 ac_cv_struct_tm=time.h
30494else
30495 echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
Reid Spencera773bd52006-08-04 18:18:08 +000030498 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030499fi
Reid Spencera773bd52006-08-04 18:18:08 +000030500
30501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030502fi
Reid Spencera773bd52006-08-04 18:18:08 +000030503{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30504echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030505if test $ac_cv_struct_tm = sys/time.h; then
30506
30507cat >>confdefs.h <<\_ACEOF
30508#define TM_IN_SYS_TIME 1
30509_ACEOF
30510
30511fi
30512
Reid Spencera773bd52006-08-04 18:18:08 +000030513{ echo "$as_me:$LINENO: checking for int64_t" >&5
30514echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030515if test "${ac_cv_type_int64_t+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30517else
30518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030519/* confdefs.h. */
30520_ACEOF
30521cat confdefs.h >>conftest.$ac_ext
30522cat >>conftest.$ac_ext <<_ACEOF
30523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030524$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030525typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030526int
30527main ()
30528{
Reid Spencera773bd52006-08-04 18:18:08 +000030529if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030530 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030531if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030532 return 0;
30533 ;
30534 return 0;
30535}
30536_ACEOF
30537rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030538if { (ac_try="$ac_compile"
30539case "(($ac_try" in
30540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541 *) ac_try_echo=$ac_try;;
30542esac
30543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030546 grep -v '^ *+' conftest.er1 >conftest.err
30547 rm -f conftest.er1
30548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030550 (exit $ac_status); } &&
30551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30552 { (case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30555esac
30556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_try") 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; } &&
30561 { ac_try='test -s conftest.$ac_objext'
30562 { (case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30565esac
30566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_try") 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030571 ac_cv_type_int64_t=yes
30572else
30573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030574sed 's/^/| /' conftest.$ac_ext >&5
30575
Reid Spencera773bd52006-08-04 18:18:08 +000030576 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030577fi
Reid Spencera773bd52006-08-04 18:18:08 +000030578
30579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030580fi
Reid Spencera773bd52006-08-04 18:18:08 +000030581{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30582echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030583if test $ac_cv_type_int64_t = yes; then
30584
30585cat >>confdefs.h <<_ACEOF
30586#define HAVE_INT64_T 1
30587_ACEOF
30588
30589
30590else
30591 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30592echo "$as_me: error: Type int64_t required but not found" >&2;}
30593 { (exit 1); exit 1; }; }
30594fi
30595
Reid Spencera773bd52006-08-04 18:18:08 +000030596{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30597echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030598if test "${ac_cv_type_uint64_t+set}" = set; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30600else
30601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030607$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030608typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030609int
30610main ()
30611{
Reid Spencera773bd52006-08-04 18:18:08 +000030612if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030613 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030614if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030615 return 0;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030621if { (ac_try="$ac_compile"
30622case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30625esac
30626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030629 grep -v '^ *+' conftest.er1 >conftest.err
30630 rm -f conftest.er1
30631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030633 (exit $ac_status); } &&
30634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30635 { (case "(($ac_try" in
30636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637 *) ac_try_echo=$ac_try;;
30638esac
30639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640 (eval "$ac_try") 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='test -s conftest.$ac_objext'
30645 { (case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30648esac
30649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_try") 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030654 ac_cv_type_uint64_t=yes
30655else
30656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030657sed 's/^/| /' conftest.$ac_ext >&5
30658
Reid Spencera773bd52006-08-04 18:18:08 +000030659 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030660fi
Reid Spencera773bd52006-08-04 18:18:08 +000030661
30662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030663fi
Reid Spencera773bd52006-08-04 18:18:08 +000030664{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30665echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030666if test $ac_cv_type_uint64_t = yes; then
30667
30668cat >>confdefs.h <<_ACEOF
30669#define HAVE_UINT64_T 1
30670_ACEOF
30671
30672
30673else
Reid Spencera773bd52006-08-04 18:18:08 +000030674 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30675echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030676if test "${ac_cv_type_u_int64_t+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030680/* confdefs.h. */
30681_ACEOF
30682cat confdefs.h >>conftest.$ac_ext
30683cat >>conftest.$ac_ext <<_ACEOF
30684/* end confdefs.h. */
30685$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030686typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030687int
30688main ()
30689{
Reid Spencera773bd52006-08-04 18:18:08 +000030690if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030691 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030692if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030693 return 0;
30694 ;
30695 return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030699if { (ac_try="$ac_compile"
30700case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703esac
30704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030707 grep -v '^ *+' conftest.er1 >conftest.err
30708 rm -f conftest.er1
30709 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030711 (exit $ac_status); } &&
30712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30713 { (case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30716esac
30717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_try") 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest.$ac_objext'
30723 { (case "(($ac_try" in
30724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725 *) ac_try_echo=$ac_try;;
30726esac
30727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30728 (eval "$ac_try") 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030732 ac_cv_type_u_int64_t=yes
30733else
30734 echo "$as_me: failed program was:" >&5
30735sed 's/^/| /' conftest.$ac_ext >&5
30736
Reid Spencera773bd52006-08-04 18:18:08 +000030737 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030738fi
Reid Spencera773bd52006-08-04 18:18:08 +000030739
30740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030741fi
Reid Spencera773bd52006-08-04 18:18:08 +000030742{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30743echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030744if test $ac_cv_type_u_int64_t = yes; then
30745
30746cat >>confdefs.h <<_ACEOF
30747#define HAVE_U_INT64_T 1
30748_ACEOF
30749
30750
Misha Brukmanceca9042004-09-02 23:02:30 +000030751else
30752 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30753echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30754 { (exit 1); exit 1; }; }
30755fi
30756
John Criswell679ff312004-09-02 18:44:44 +000030757fi
30758
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030759
30760
30761
30762
30763
30764
30765
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030766
30767
Reid Spencerdf3be822006-01-23 08:15:53 +000030768for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030769do
30770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030771{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030774 echo $ECHO_N "(cached) $ECHO_C" >&6
30775else
30776 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030777/* confdefs.h. */
30778_ACEOF
30779cat confdefs.h >>conftest.$ac_ext
30780cat >>conftest.$ac_ext <<_ACEOF
30781/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30784#define $ac_func innocuous_$ac_func
30785
30786/* System header to define __stub macros and hopefully few prototypes,
30787 which can conflict with char $ac_func (); below.
30788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30789 <limits.h> exists even on freestanding compilers. */
30790
30791#ifdef __STDC__
30792# include <limits.h>
30793#else
30794# include <assert.h>
30795#endif
30796
30797#undef $ac_func
30798
Reid Spencera773bd52006-08-04 18:18:08 +000030799/* Override any GCC internal prototype to avoid an error.
30800 Use char because int might match the return type of a GCC
30801 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030802#ifdef __cplusplus
30803extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030804#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030805char $ac_func ();
30806/* The GNU C library defines this for functions which it implements
30807 to always fail with ENOSYS. Some functions are actually named
30808 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030809#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030810choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030811#endif
John Criswell7a73b802003-06-30 21:59:07 +000030812
John Criswell7a73b802003-06-30 21:59:07 +000030813int
30814main ()
30815{
Reid Spencera773bd52006-08-04 18:18:08 +000030816return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030817 ;
30818 return 0;
30819}
30820_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030821rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030822if { (ac_try="$ac_link"
30823case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826esac
30827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030830 grep -v '^ *+' conftest.er1 >conftest.err
30831 rm -f conftest.er1
30832 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030834 (exit $ac_status); } &&
30835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30836 { (case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30839esac
30840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_try") 2>&5
30842 ac_status=$?
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; } &&
30845 { ac_try='test -s conftest$ac_exeext'
30846 { (case "(($ac_try" in
30847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848 *) ac_try_echo=$ac_try;;
30849esac
30850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851 (eval "$ac_try") 2>&5
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030855 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030856else
30857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030858sed 's/^/| /' conftest.$ac_ext >&5
30859
Reid Spencera773bd52006-08-04 18:18:08 +000030860 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030861fi
Reid Spencera773bd52006-08-04 18:18:08 +000030862
Bill Wendlingebcceee2009-04-18 11:20:33 +000030863rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030864 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030865fi
Reid Spencera773bd52006-08-04 18:18:08 +000030866ac_res=`eval echo '${'$as_ac_var'}'`
30867 { echo "$as_me:$LINENO: result: $ac_res" >&5
30868echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030869if test `eval echo '${'$as_ac_var'}'` = yes; then
30870 cat >>confdefs.h <<_ACEOF
30871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030872_ACEOF
30873
30874fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030875done
John Criswell7a73b802003-06-30 21:59:07 +000030876
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030877
30878
30879
Reid Spencer6af3d262004-12-15 04:01:48 +000030880
Reid Spencer96cf5872007-07-13 10:05:30 +000030881for ac_func in powf fmodf strtof round
30882do
30883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30884{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30886if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30888else
30889 cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h. */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h. */
30895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30897#define $ac_func innocuous_$ac_func
30898
30899/* System header to define __stub macros and hopefully few prototypes,
30900 which can conflict with char $ac_func (); below.
30901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30902 <limits.h> exists even on freestanding compilers. */
30903
30904#ifdef __STDC__
30905# include <limits.h>
30906#else
30907# include <assert.h>
30908#endif
30909
30910#undef $ac_func
30911
30912/* Override any GCC internal prototype to avoid an error.
30913 Use char because int might match the return type of a GCC
30914 builtin and then its argument prototype would still apply. */
30915#ifdef __cplusplus
30916extern "C"
30917#endif
30918char $ac_func ();
30919/* The GNU C library defines this for functions which it implements
30920 to always fail with ENOSYS. Some functions are actually named
30921 something starting with __ and the normal name is an alias. */
30922#if defined __stub_$ac_func || defined __stub___$ac_func
30923choke me
30924#endif
30925
30926int
30927main ()
30928{
30929return $ac_func ();
30930 ;
30931 return 0;
30932}
30933_ACEOF
30934rm -f conftest.$ac_objext conftest$ac_exeext
30935if { (ac_try="$ac_link"
30936case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30939esac
30940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_link") 2>conftest.er1
30942 ac_status=$?
30943 grep -v '^ *+' conftest.er1 >conftest.err
30944 rm -f conftest.er1
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030947 (exit $ac_status); } &&
30948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30949 { (case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30952esac
30953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_try") 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest$ac_exeext'
30959 { (case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30962esac
30963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_try") 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030968 eval "$as_ac_var=yes"
30969else
30970 echo "$as_me: failed program was:" >&5
30971sed 's/^/| /' conftest.$ac_ext >&5
30972
30973 eval "$as_ac_var=no"
30974fi
30975
Bill Wendlingebcceee2009-04-18 11:20:33 +000030976rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030977 conftest$ac_exeext conftest.$ac_ext
30978fi
30979ac_res=`eval echo '${'$as_ac_var'}'`
30980 { echo "$as_me:$LINENO: result: $ac_res" >&5
30981echo "${ECHO_T}$ac_res" >&6; }
30982if test `eval echo '${'$as_ac_var'}'` = yes; then
30983 cat >>confdefs.h <<_ACEOF
30984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30985_ACEOF
30986
30987fi
30988done
30989
30990
30991
30992
30993
Reid Spencer6af3d262004-12-15 04:01:48 +000030994
Reid Spencerb90645c2007-02-16 19:17:20 +000030995for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30996do
30997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30998{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31000if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31002else
31003 cat >conftest.$ac_ext <<_ACEOF
31004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
31009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31011#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031012
Reid Spencerb90645c2007-02-16 19:17:20 +000031013/* System header to define __stub macros and hopefully few prototypes,
31014 which can conflict with char $ac_func (); below.
31015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31016 <limits.h> exists even on freestanding compilers. */
31017
31018#ifdef __STDC__
31019# include <limits.h>
31020#else
31021# include <assert.h>
31022#endif
31023
31024#undef $ac_func
31025
31026/* Override any GCC internal prototype to avoid an error.
31027 Use char because int might match the return type of a GCC
31028 builtin and then its argument prototype would still apply. */
31029#ifdef __cplusplus
31030extern "C"
31031#endif
31032char $ac_func ();
31033/* The GNU C library defines this for functions which it implements
31034 to always fail with ENOSYS. Some functions are actually named
31035 something starting with __ and the normal name is an alias. */
31036#if defined __stub_$ac_func || defined __stub___$ac_func
31037choke me
31038#endif
31039
31040int
31041main ()
31042{
31043return $ac_func ();
31044 ;
31045 return 0;
31046}
31047_ACEOF
31048rm -f conftest.$ac_objext conftest$ac_exeext
31049if { (ac_try="$ac_link"
31050case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053esac
31054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_link") 2>conftest.er1
31056 ac_status=$?
31057 grep -v '^ *+' conftest.er1 >conftest.err
31058 rm -f conftest.er1
31059 cat conftest.err >&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031061 (exit $ac_status); } &&
31062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31063 { (case "(($ac_try" in
31064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065 *) ac_try_echo=$ac_try;;
31066esac
31067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068 (eval "$ac_try") 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest$ac_exeext'
31073 { (case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31076esac
31077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_try") 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031082 eval "$as_ac_var=yes"
31083else
31084 echo "$as_me: failed program was:" >&5
31085sed 's/^/| /' conftest.$ac_ext >&5
31086
31087 eval "$as_ac_var=no"
31088fi
31089
Bill Wendlingebcceee2009-04-18 11:20:33 +000031090rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031091 conftest$ac_exeext conftest.$ac_ext
31092fi
31093ac_res=`eval echo '${'$as_ac_var'}'`
31094 { echo "$as_me:$LINENO: result: $ac_res" >&5
31095echo "${ECHO_T}$ac_res" >&6; }
31096if test `eval echo '${'$as_ac_var'}'` = yes; then
31097 cat >>confdefs.h <<_ACEOF
31098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31099_ACEOF
31100
31101fi
31102done
31103
31104
31105
31106
31107for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031108do
31109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031113 echo $ECHO_N "(cached) $ECHO_C" >&6
31114else
31115 cat >conftest.$ac_ext <<_ACEOF
31116/* confdefs.h. */
31117_ACEOF
31118cat confdefs.h >>conftest.$ac_ext
31119cat >>conftest.$ac_ext <<_ACEOF
31120/* end confdefs.h. */
31121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31123#define $ac_func innocuous_$ac_func
31124
31125/* System header to define __stub macros and hopefully few prototypes,
31126 which can conflict with char $ac_func (); below.
31127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31128 <limits.h> exists even on freestanding compilers. */
31129
31130#ifdef __STDC__
31131# include <limits.h>
31132#else
31133# include <assert.h>
31134#endif
31135
31136#undef $ac_func
31137
Reid Spencera773bd52006-08-04 18:18:08 +000031138/* Override any GCC internal prototype to avoid an error.
31139 Use char because int might match the return type of a GCC
31140 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031141#ifdef __cplusplus
31142extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031143#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031144char $ac_func ();
31145/* The GNU C library defines this for functions which it implements
31146 to always fail with ENOSYS. Some functions are actually named
31147 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031148#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031149choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031150#endif
31151
31152int
31153main ()
31154{
Reid Spencera773bd52006-08-04 18:18:08 +000031155return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031156 ;
31157 return 0;
31158}
31159_ACEOF
31160rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031161if { (ac_try="$ac_link"
31162case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31165esac
31166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031168 ac_status=$?
31169 grep -v '^ *+' conftest.er1 >conftest.err
31170 rm -f conftest.er1
31171 cat conftest.err >&5
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031173 (exit $ac_status); } &&
31174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; } &&
31184 { ac_try='test -s conftest$ac_exeext'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31188esac
31189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031194 eval "$as_ac_var=yes"
31195else
31196 echo "$as_me: failed program was:" >&5
31197sed 's/^/| /' conftest.$ac_ext >&5
31198
Reid Spencera773bd52006-08-04 18:18:08 +000031199 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031200fi
Reid Spencera773bd52006-08-04 18:18:08 +000031201
Bill Wendlingebcceee2009-04-18 11:20:33 +000031202rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031203 conftest$ac_exeext conftest.$ac_ext
31204fi
Reid Spencera773bd52006-08-04 18:18:08 +000031205ac_res=`eval echo '${'$as_ac_var'}'`
31206 { echo "$as_me:$LINENO: result: $ac_res" >&5
31207echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031208if test `eval echo '${'$as_ac_var'}'` = yes; then
31209 cat >>confdefs.h <<_ACEOF
31210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31211_ACEOF
31212
31213fi
31214done
31215
31216
31217
31218
31219
31220
31221
31222
31223for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031224do
31225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031229 echo $ECHO_N "(cached) $ECHO_C" >&6
31230else
31231 cat >conftest.$ac_ext <<_ACEOF
31232/* confdefs.h. */
31233_ACEOF
31234cat confdefs.h >>conftest.$ac_ext
31235cat >>conftest.$ac_ext <<_ACEOF
31236/* end confdefs.h. */
31237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31239#define $ac_func innocuous_$ac_func
31240
31241/* System header to define __stub macros and hopefully few prototypes,
31242 which can conflict with char $ac_func (); below.
31243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31244 <limits.h> exists even on freestanding compilers. */
31245
31246#ifdef __STDC__
31247# include <limits.h>
31248#else
31249# include <assert.h>
31250#endif
31251
31252#undef $ac_func
31253
Reid Spencera773bd52006-08-04 18:18:08 +000031254/* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031257#ifdef __cplusplus
31258extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031259#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031260char $ac_func ();
31261/* The GNU C library defines this for functions which it implements
31262 to always fail with ENOSYS. Some functions are actually named
31263 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031264#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031265choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031266#endif
31267
31268int
31269main ()
31270{
Reid Spencera773bd52006-08-04 18:18:08 +000031271return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031272 ;
31273 return 0;
31274}
31275_ACEOF
31276rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031277if { (ac_try="$ac_link"
31278case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31281esac
31282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031284 ac_status=$?
31285 grep -v '^ *+' conftest.er1 >conftest.err
31286 rm -f conftest.er1
31287 cat conftest.err >&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031289 (exit $ac_status); } &&
31290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294esac
31295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; } &&
31300 { ac_try='test -s conftest$ac_exeext'
31301 { (case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304esac
31305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_try") 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031310 eval "$as_ac_var=yes"
31311else
31312 echo "$as_me: failed program was:" >&5
31313sed 's/^/| /' conftest.$ac_ext >&5
31314
Reid Spencera773bd52006-08-04 18:18:08 +000031315 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031316fi
Reid Spencera773bd52006-08-04 18:18:08 +000031317
Bill Wendlingebcceee2009-04-18 11:20:33 +000031318rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031319 conftest$ac_exeext conftest.$ac_ext
31320fi
Reid Spencera773bd52006-08-04 18:18:08 +000031321ac_res=`eval echo '${'$as_ac_var'}'`
31322 { echo "$as_me:$LINENO: result: $ac_res" >&5
31323echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031324if test `eval echo '${'$as_ac_var'}'` = yes; then
31325 cat >>confdefs.h <<_ACEOF
31326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31327_ACEOF
31328
31329fi
31330done
31331
31332
Reid Spencerba46ca32004-12-31 05:49:15 +000031333
31334
Chris Lattner0b142592005-11-14 06:57:34 +000031335
Chris Lattner511f11d2005-11-14 07:25:50 +000031336for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031337do
31338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031339{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031342 echo $ECHO_N "(cached) $ECHO_C" >&6
31343else
31344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031345/* confdefs.h. */
31346_ACEOF
31347cat confdefs.h >>conftest.$ac_ext
31348cat >>conftest.$ac_ext <<_ACEOF
31349/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31352#define $ac_func innocuous_$ac_func
31353
31354/* System header to define __stub macros and hopefully few prototypes,
31355 which can conflict with char $ac_func (); below.
31356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31357 <limits.h> exists even on freestanding compilers. */
31358
31359#ifdef __STDC__
31360# include <limits.h>
31361#else
31362# include <assert.h>
31363#endif
31364
31365#undef $ac_func
31366
Reid Spencera773bd52006-08-04 18:18:08 +000031367/* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031370#ifdef __cplusplus
31371extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031372#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031373char $ac_func ();
31374/* The GNU C library defines this for functions which it implements
31375 to always fail with ENOSYS. Some functions are actually named
31376 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031377#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031378choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031379#endif
John Criswell7a73b802003-06-30 21:59:07 +000031380
John Criswell7a73b802003-06-30 21:59:07 +000031381int
31382main ()
31383{
Reid Spencera773bd52006-08-04 18:18:08 +000031384return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031385 ;
31386 return 0;
31387}
31388_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031390if { (ac_try="$ac_link"
31391case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394esac
31395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031402 (exit $ac_status); } &&
31403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404 { (case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407esac
31408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_try") 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31417esac
31418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_try") 2>&5
31420 ac_status=$?
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031423 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031424else
31425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031426sed 's/^/| /' conftest.$ac_ext >&5
31427
Reid Spencera773bd52006-08-04 18:18:08 +000031428 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031429fi
Reid Spencera773bd52006-08-04 18:18:08 +000031430
Bill Wendlingebcceee2009-04-18 11:20:33 +000031431rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031432 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031433fi
Reid Spencera773bd52006-08-04 18:18:08 +000031434ac_res=`eval echo '${'$as_ac_var'}'`
31435 { echo "$as_me:$LINENO: result: $ac_res" >&5
31436echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031437if test `eval echo '${'$as_ac_var'}'` = yes; then
31438 cat >>confdefs.h <<_ACEOF
31439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031440_ACEOF
31441
31442fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031443done
John Criswell7a73b802003-06-30 21:59:07 +000031444
Reid Spencercdb08a32006-06-05 16:11:07 +000031445
31446
31447
31448
Reid Spencerafa22e22006-12-10 23:29:19 +000031449for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031450do
31451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031455 echo $ECHO_N "(cached) $ECHO_C" >&6
31456else
31457 cat >conftest.$ac_ext <<_ACEOF
31458/* confdefs.h. */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>conftest.$ac_ext <<_ACEOF
31462/* end confdefs.h. */
31463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31465#define $ac_func innocuous_$ac_func
31466
31467/* System header to define __stub macros and hopefully few prototypes,
31468 which can conflict with char $ac_func (); below.
31469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31470 <limits.h> exists even on freestanding compilers. */
31471
31472#ifdef __STDC__
31473# include <limits.h>
31474#else
31475# include <assert.h>
31476#endif
31477
31478#undef $ac_func
31479
Reid Spencera773bd52006-08-04 18:18:08 +000031480/* Override any GCC internal prototype to avoid an error.
31481 Use char because int might match the return type of a GCC
31482 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031483#ifdef __cplusplus
31484extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031485#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031486char $ac_func ();
31487/* The GNU C library defines this for functions which it implements
31488 to always fail with ENOSYS. Some functions are actually named
31489 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031490#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031491choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031492#endif
31493
31494int
31495main ()
31496{
Reid Spencera773bd52006-08-04 18:18:08 +000031497return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031498 ;
31499 return 0;
31500}
31501_ACEOF
31502rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031503if { (ac_try="$ac_link"
31504case "(($ac_try" in
31505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31506 *) ac_try_echo=$ac_try;;
31507esac
31508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31509 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031510 ac_status=$?
31511 grep -v '^ *+' conftest.er1 >conftest.err
31512 rm -f conftest.er1
31513 cat conftest.err >&5
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031515 (exit $ac_status); } &&
31516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31517 { (case "(($ac_try" in
31518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519 *) ac_try_echo=$ac_try;;
31520esac
31521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522 (eval "$ac_try") 2>&5
31523 ac_status=$?
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; } &&
31526 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031536 eval "$as_ac_var=yes"
31537else
31538 echo "$as_me: failed program was:" >&5
31539sed 's/^/| /' conftest.$ac_ext >&5
31540
Reid Spencera773bd52006-08-04 18:18:08 +000031541 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031542fi
Reid Spencera773bd52006-08-04 18:18:08 +000031543
Bill Wendlingebcceee2009-04-18 11:20:33 +000031544rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031545 conftest$ac_exeext conftest.$ac_ext
31546fi
Reid Spencera773bd52006-08-04 18:18:08 +000031547ac_res=`eval echo '${'$as_ac_var'}'`
31548 { echo "$as_me:$LINENO: result: $ac_res" >&5
31549echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031550if test `eval echo '${'$as_ac_var'}'` = yes; then
31551 cat >>confdefs.h <<_ACEOF
31552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31553_ACEOF
31554
31555fi
31556done
31557
Reid Spencera773bd52006-08-04 18:18:08 +000031558{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31559echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031560if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031561 echo $ECHO_N "(cached) $ECHO_C" >&6
31562else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031563 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031564ac_cpp='$CPP $CPPFLAGS'
31565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31567ac_compiler_gnu=$ac_cv_c_compiler_gnu
31568
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031569 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031570 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031571else
31572 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031573
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031575_ACEOF
31576cat confdefs.h >>conftest.$ac_ext
31577cat >>conftest.$ac_ext <<_ACEOF
31578/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031579
John Criswella0137d32003-10-13 16:22:01 +000031580#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031581#include <stdlib.h>
31582
John Criswella0137d32003-10-13 16:22:01 +000031583int
31584main ()
31585{
31586
Reid Spencer2706f8c2004-09-19 23:53:36 +000031587volatile double A, B;
31588char Buffer[100];
31589A = 1;
31590A /= 10.0;
31591sprintf(Buffer, "%a", A);
31592B = atof(Buffer);
31593if (A != B)
31594 return (1);
31595if (A != 0x1.999999999999ap-4)
31596 return (1);
31597return (0);
John Criswella0137d32003-10-13 16:22:01 +000031598 ;
31599 return 0;
31600}
31601_ACEOF
31602rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031603if { (ac_try="$ac_link"
31604case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31607esac
31608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031613 { (case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31616esac
31617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031622 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031623else
31624 echo "$as_me: program exited with status $ac_status" >&5
31625echo "$as_me: failed program was:" >&5
31626sed 's/^/| /' conftest.$ac_ext >&5
31627
31628( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031629llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031630fi
Reid Spencera773bd52006-08-04 18:18:08 +000031631rm -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 +000031632fi
Reid Spencera773bd52006-08-04 18:18:08 +000031633
31634
Reid Spencer2706f8c2004-09-19 23:53:36 +000031635 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031636ac_cpp='$CPP $CPPFLAGS'
31637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31639ac_compiler_gnu=$ac_cv_c_compiler_gnu
31640
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641fi
Reid Spencera773bd52006-08-04 18:18:08 +000031642{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31643echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031644 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031645
31646cat >>confdefs.h <<\_ACEOF
31647#define HAVE_PRINTF_A 1
31648_ACEOF
31649
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650 fi
John Criswella0137d32003-10-13 16:22:01 +000031651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031652# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31653# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031654{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31655echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031656if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031657 echo $ECHO_N "(cached) $ECHO_C" >&6
31658else
John Criswell0021c312004-02-13 21:57:29 +000031659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031660/* confdefs.h. */
31661_ACEOF
31662cat confdefs.h >>conftest.$ac_ext
31663cat >>conftest.$ac_ext <<_ACEOF
31664/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031665#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031666int
31667main ()
31668{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031669char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031670 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031671 ;
31672 return 0;
31673}
31674_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031676if { (ac_try="$ac_link"
31677case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31680esac
31681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031684 grep -v '^ *+' conftest.er1 >conftest.err
31685 rm -f conftest.er1
31686 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31693esac
31694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703esac
31704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709 ac_cv_working_alloca_h=yes
31710else
31711 echo "$as_me: failed program was:" >&5
31712sed 's/^/| /' conftest.$ac_ext >&5
31713
Reid Spencera773bd52006-08-04 18:18:08 +000031714 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031715fi
Reid Spencera773bd52006-08-04 18:18:08 +000031716
Bill Wendlingebcceee2009-04-18 11:20:33 +000031717rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031718 conftest$ac_exeext conftest.$ac_ext
31719fi
Reid Spencera773bd52006-08-04 18:18:08 +000031720{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31721echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031722if test $ac_cv_working_alloca_h = yes; then
31723
31724cat >>confdefs.h <<\_ACEOF
31725#define HAVE_ALLOCA_H 1
31726_ACEOF
31727
31728fi
31729
Reid Spencera773bd52006-08-04 18:18:08 +000031730{ echo "$as_me:$LINENO: checking for alloca" >&5
31731echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031732if test "${ac_cv_func_alloca_works+set}" = set; then
31733 echo $ECHO_N "(cached) $ECHO_C" >&6
31734else
31735 cat >conftest.$ac_ext <<_ACEOF
31736/* confdefs.h. */
31737_ACEOF
31738cat confdefs.h >>conftest.$ac_ext
31739cat >>conftest.$ac_ext <<_ACEOF
31740/* end confdefs.h. */
31741#ifdef __GNUC__
31742# define alloca __builtin_alloca
31743#else
31744# ifdef _MSC_VER
31745# include <malloc.h>
31746# define alloca _alloca
31747# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031748# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031749# include <alloca.h>
31750# else
31751# ifdef _AIX
31752 #pragma alloca
31753# else
31754# ifndef alloca /* predefined by HP cc +Olibcalls */
31755char *alloca ();
31756# endif
31757# endif
31758# endif
31759# endif
31760#endif
31761
31762int
31763main ()
31764{
31765char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031766 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767 ;
31768 return 0;
31769}
31770_ACEOF
31771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031772if { (ac_try="$ac_link"
31773case "(($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_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779 ac_status=$?
31780 grep -v '^ *+' conftest.er1 >conftest.err
31781 rm -f conftest.er1
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789esac
31790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest$ac_exeext'
31796 { (case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_try") 2>&5
31802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031805 ac_cv_func_alloca_works=yes
31806else
31807 echo "$as_me: failed program was:" >&5
31808sed 's/^/| /' conftest.$ac_ext >&5
31809
Reid Spencera773bd52006-08-04 18:18:08 +000031810 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031811fi
Reid Spencera773bd52006-08-04 18:18:08 +000031812
Bill Wendlingebcceee2009-04-18 11:20:33 +000031813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031814 conftest$ac_exeext conftest.$ac_ext
31815fi
Reid Spencera773bd52006-08-04 18:18:08 +000031816{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31817echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031818
31819if test $ac_cv_func_alloca_works = yes; then
31820
31821cat >>confdefs.h <<\_ACEOF
31822#define HAVE_ALLOCA 1
31823_ACEOF
31824
31825else
31826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31827# that cause trouble. Some versions do not even contain alloca or
31828# contain a buggy version. If you still want to use their alloca,
31829# use ar to extract alloca.o from them instead of compiling alloca.c.
31830
Reid Spencera773bd52006-08-04 18:18:08 +000031831ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031832
31833cat >>confdefs.h <<\_ACEOF
31834#define C_ALLOCA 1
31835_ACEOF
31836
31837
Reid Spencera773bd52006-08-04 18:18:08 +000031838{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31839echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031840if test "${ac_cv_os_cray+set}" = set; then
31841 echo $ECHO_N "(cached) $ECHO_C" >&6
31842else
31843 cat >conftest.$ac_ext <<_ACEOF
31844/* confdefs.h. */
31845_ACEOF
31846cat confdefs.h >>conftest.$ac_ext
31847cat >>conftest.$ac_ext <<_ACEOF
31848/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031849#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031850webecray
31851#else
31852wenotbecray
31853#endif
31854
31855_ACEOF
31856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31857 $EGREP "webecray" >/dev/null 2>&1; then
31858 ac_cv_os_cray=yes
31859else
31860 ac_cv_os_cray=no
31861fi
31862rm -f conftest*
31863
31864fi
Reid Spencera773bd52006-08-04 18:18:08 +000031865{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31866echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031867if test $ac_cv_os_cray = yes; then
31868 for ac_func in _getb67 GETB67 getb67; do
31869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031870{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031873 echo $ECHO_N "(cached) $ECHO_C" >&6
31874else
31875 cat >conftest.$ac_ext <<_ACEOF
31876/* confdefs.h. */
31877_ACEOF
31878cat confdefs.h >>conftest.$ac_ext
31879cat >>conftest.$ac_ext <<_ACEOF
31880/* end confdefs.h. */
31881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31883#define $ac_func innocuous_$ac_func
31884
31885/* System header to define __stub macros and hopefully few prototypes,
31886 which can conflict with char $ac_func (); below.
31887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888 <limits.h> exists even on freestanding compilers. */
31889
31890#ifdef __STDC__
31891# include <limits.h>
31892#else
31893# include <assert.h>
31894#endif
31895
31896#undef $ac_func
31897
Reid Spencera773bd52006-08-04 18:18:08 +000031898/* Override any GCC internal prototype to avoid an error.
31899 Use char because int might match the return type of a GCC
31900 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031901#ifdef __cplusplus
31902extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031903#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904char $ac_func ();
31905/* The GNU C library defines this for functions which it implements
31906 to always fail with ENOSYS. Some functions are actually named
31907 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031908#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031909choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031910#endif
31911
31912int
31913main ()
31914{
Reid Spencera773bd52006-08-04 18:18:08 +000031915return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031916 ;
31917 return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031921if { (ac_try="$ac_link"
31922case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031928 ac_status=$?
31929 grep -v '^ *+' conftest.er1 >conftest.err
31930 rm -f conftest.er1
31931 cat conftest.err >&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031933 (exit $ac_status); } &&
31934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31935 { (case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31938esac
31939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_try") 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
31945 { (case "(($ac_try" in
31946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947 *) ac_try_echo=$ac_try;;
31948esac
31949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950 (eval "$ac_try") 2>&5
31951 ac_status=$?
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031954 eval "$as_ac_var=yes"
31955else
31956 echo "$as_me: failed program was:" >&5
31957sed 's/^/| /' conftest.$ac_ext >&5
31958
Reid Spencera773bd52006-08-04 18:18:08 +000031959 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031960fi
Reid Spencera773bd52006-08-04 18:18:08 +000031961
Bill Wendlingebcceee2009-04-18 11:20:33 +000031962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031963 conftest$ac_exeext conftest.$ac_ext
31964fi
Reid Spencera773bd52006-08-04 18:18:08 +000031965ac_res=`eval echo '${'$as_ac_var'}'`
31966 { echo "$as_me:$LINENO: result: $ac_res" >&5
31967echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031968if test `eval echo '${'$as_ac_var'}'` = yes; then
31969
31970cat >>confdefs.h <<_ACEOF
31971#define CRAY_STACKSEG_END $ac_func
31972_ACEOF
31973
31974 break
31975fi
31976
31977 done
31978fi
31979
Reid Spencera773bd52006-08-04 18:18:08 +000031980{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31981echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031982if test "${ac_cv_c_stack_direction+set}" = set; then
31983 echo $ECHO_N "(cached) $ECHO_C" >&6
31984else
31985 if test "$cross_compiling" = yes; then
31986 ac_cv_c_stack_direction=0
31987else
31988 cat >conftest.$ac_ext <<_ACEOF
31989/* confdefs.h. */
31990_ACEOF
31991cat confdefs.h >>conftest.$ac_ext
31992cat >>conftest.$ac_ext <<_ACEOF
31993/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031994$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031995int
31996find_stack_direction ()
31997{
31998 static char *addr = 0;
31999 auto char dummy;
32000 if (addr == 0)
32001 {
32002 addr = &dummy;
32003 return find_stack_direction ();
32004 }
John Criswell0021c312004-02-13 21:57:29 +000032005 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032006 return (&dummy > addr) ? 1 : -1;
32007}
John Criswell0021c312004-02-13 21:57:29 +000032008
John Criswell0021c312004-02-13 21:57:29 +000032009int
32010main ()
32011{
Reid Spencera773bd52006-08-04 18:18:08 +000032012 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032013}
32014_ACEOF
32015rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032016if { (ac_try="$ac_link"
32017case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32020esac
32021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032023 ac_status=$?
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032026 { (case "(($ac_try" in
32027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028 *) ac_try_echo=$ac_try;;
32029esac
32030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032032 ac_status=$?
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032035 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032036else
32037 echo "$as_me: program exited with status $ac_status" >&5
32038echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
32041( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032042ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032043fi
Reid Spencera773bd52006-08-04 18:18:08 +000032044rm -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 +000032045fi
Reid Spencera773bd52006-08-04 18:18:08 +000032046
32047
John Criswell0021c312004-02-13 21:57:29 +000032048fi
Reid Spencera773bd52006-08-04 18:18:08 +000032049{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32050echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032051
32052cat >>confdefs.h <<_ACEOF
32053#define STACK_DIRECTION $ac_cv_c_stack_direction
32054_ACEOF
32055
32056
John Criswell0021c312004-02-13 21:57:29 +000032057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032058
32059
Reid Spencera773bd52006-08-04 18:18:08 +000032060{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32061echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032062if test "${ac_cv_func_rand48+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32064else
Reid Spencera773bd52006-08-04 18:18:08 +000032065 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032066ac_cpp='$CXXCPP $CPPFLAGS'
32067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32070
32071 cat >conftest.$ac_ext <<_ACEOF
32072/* confdefs.h. */
32073_ACEOF
32074cat confdefs.h >>conftest.$ac_ext
32075cat >>conftest.$ac_ext <<_ACEOF
32076/* end confdefs.h. */
32077#include <stdlib.h>
32078int
32079main ()
32080{
32081srand48(0);lrand48();drand48();
32082 ;
32083 return 0;
32084}
32085_ACEOF
32086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032087if { (ac_try="$ac_compile"
32088case "(($ac_try" in
32089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32090 *) ac_try_echo=$ac_try;;
32091esac
32092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32093 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032094 ac_status=$?
32095 grep -v '^ *+' conftest.er1 >conftest.err
32096 rm -f conftest.er1
32097 cat conftest.err >&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032099 (exit $ac_status); } &&
32100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32101 { (case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32104esac
32105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_try") 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest.$ac_objext'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032120 ac_cv_func_rand48=yes
32121else
32122 echo "$as_me: failed program was:" >&5
32123sed 's/^/| /' conftest.$ac_ext >&5
32124
Reid Spencera773bd52006-08-04 18:18:08 +000032125 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032126fi
Reid Spencera773bd52006-08-04 18:18:08 +000032127
32128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032129 ac_ext=c
32130ac_cpp='$CPP $CPPFLAGS'
32131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32133ac_compiler_gnu=$ac_cv_c_compiler_gnu
32134
32135fi
Reid Spencera773bd52006-08-04 18:18:08 +000032136{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32137echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032138
32139if test "$ac_cv_func_rand48" = "yes" ; then
32140
32141cat >>confdefs.h <<\_ACEOF
32142#define HAVE_RAND48 1
32143_ACEOF
32144
32145fi
John Criswell0021c312004-02-13 21:57:29 +000032146
32147
Reid Spencera773bd52006-08-04 18:18:08 +000032148{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32149echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032150if test "${ac_cv_cxx_namespaces+set}" = set; then
32151 echo $ECHO_N "(cached) $ECHO_C" >&6
32152else
Reid Spencera773bd52006-08-04 18:18:08 +000032153 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032154ac_cpp='$CXXCPP $CPPFLAGS'
32155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32158
32159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032160/* confdefs.h. */
32161_ACEOF
32162cat confdefs.h >>conftest.$ac_ext
32163cat >>conftest.$ac_ext <<_ACEOF
32164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032165namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032166int
32167main ()
32168{
32169using namespace Outer::Inner; return i;
32170 ;
32171 return 0;
32172}
32173_ACEOF
32174rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032175if { (ac_try="$ac_compile"
32176case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32179esac
32180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032183 grep -v '^ *+' conftest.er1 >conftest.err
32184 rm -f conftest.er1
32185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032187 (exit $ac_status); } &&
32188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32189 { (case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32192esac
32193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_try") 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; } &&
32198 { ac_try='test -s conftest.$ac_objext'
32199 { (case "(($ac_try" in
32200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32202esac
32203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_try") 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032208 ac_cv_cxx_namespaces=yes
32209else
32210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032211sed 's/^/| /' conftest.$ac_ext >&5
32212
Reid Spencera773bd52006-08-04 18:18:08 +000032213 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032214fi
Reid Spencera773bd52006-08-04 18:18:08 +000032215
32216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032217 ac_ext=c
32218ac_cpp='$CPP $CPPFLAGS'
32219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221ac_compiler_gnu=$ac_cv_c_compiler_gnu
32222
32223
32224fi
Reid Spencera773bd52006-08-04 18:18:08 +000032225{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32226echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032227if test "$ac_cv_cxx_namespaces" = yes; then
32228
32229cat >>confdefs.h <<\_ACEOF
32230#define HAVE_NAMESPACES
32231_ACEOF
32232
32233fi
32234
Reid Spencera773bd52006-08-04 18:18:08 +000032235{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32236echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032237if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32238 echo $ECHO_N "(cached) $ECHO_C" >&6
32239else
32240
Reid Spencera773bd52006-08-04 18:18:08 +000032241 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032242ac_cpp='$CXXCPP $CPPFLAGS'
32243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32246
32247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032248/* confdefs.h. */
32249_ACEOF
32250cat confdefs.h >>conftest.$ac_ext
32251cat >>conftest.$ac_ext <<_ACEOF
32252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032253#include <iterator>
32254#ifdef HAVE_NAMESPACES
32255using namespace std;
32256#endif
John Criswell7a73b802003-06-30 21:59:07 +000032257int
32258main ()
32259{
32260iterator<int,int,int> t; return 0;
32261 ;
32262 return 0;
32263}
32264_ACEOF
32265rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032266if { (ac_try="$ac_compile"
32267case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32270esac
32271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032274 grep -v '^ *+' conftest.er1 >conftest.err
32275 rm -f conftest.er1
32276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032278 (exit $ac_status); } &&
32279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32280 { (case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32283esac
32284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; } &&
32289 { ac_try='test -s conftest.$ac_objext'
32290 { (case "(($ac_try" in
32291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32292 *) ac_try_echo=$ac_try;;
32293esac
32294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32295 (eval "$ac_try") 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032299 ac_cv_cxx_have_std_iterator=yes
32300else
32301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032302sed 's/^/| /' conftest.$ac_ext >&5
32303
Reid Spencera773bd52006-08-04 18:18:08 +000032304 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032305fi
Reid Spencera773bd52006-08-04 18:18:08 +000032306
32307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032308 ac_ext=c
32309ac_cpp='$CPP $CPPFLAGS'
32310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312ac_compiler_gnu=$ac_cv_c_compiler_gnu
32313
32314
32315fi
Reid Spencera773bd52006-08-04 18:18:08 +000032316{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32317echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032318if test "$ac_cv_cxx_have_std_iterator" = yes
32319then
John Criswell40468462004-09-24 21:19:06 +000032320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_STD_ITERATOR 1
32323_ACEOF
32324
32325else
32326
32327cat >>confdefs.h <<\_ACEOF
32328#define HAVE_STD_ITERATOR 0
32329_ACEOF
32330
John Criswell7a73b802003-06-30 21:59:07 +000032331fi
32332
Reid Spencera773bd52006-08-04 18:18:08 +000032333{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32334echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032335if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32337else
32338
Reid Spencera773bd52006-08-04 18:18:08 +000032339 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032340ac_cpp='$CXXCPP $CPPFLAGS'
32341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32344
32345 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032346/* confdefs.h. */
32347_ACEOF
32348cat confdefs.h >>conftest.$ac_ext
32349cat >>conftest.$ac_ext <<_ACEOF
32350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032351#include <iterator>
32352#ifdef HAVE_NAMESPACES
32353using namespace std;
32354#endif
John Criswell7a73b802003-06-30 21:59:07 +000032355int
32356main ()
32357{
John Criswellc78022e2003-07-29 19:11:58 +000032358bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032359 ;
32360 return 0;
32361}
32362_ACEOF
32363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032364if { (ac_try="$ac_compile"
32365case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32368esac
32369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381esac
32382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32384 ac_status=$?
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32391esac
32392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032397 ac_cv_cxx_have_bi_iterator=yes
32398else
32399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032400sed 's/^/| /' conftest.$ac_ext >&5
32401
Reid Spencera773bd52006-08-04 18:18:08 +000032402 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032403fi
Reid Spencera773bd52006-08-04 18:18:08 +000032404
32405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032406 ac_ext=c
32407ac_cpp='$CPP $CPPFLAGS'
32408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412
32413fi
Reid Spencera773bd52006-08-04 18:18:08 +000032414{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32415echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032416if test "$ac_cv_cxx_have_bi_iterator" = yes
32417then
John Criswell40468462004-09-24 21:19:06 +000032418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_BI_ITERATOR 1
32421_ACEOF
32422
32423else
32424
32425cat >>confdefs.h <<\_ACEOF
32426#define HAVE_BI_ITERATOR 0
32427_ACEOF
32428
John Criswell7a73b802003-06-30 21:59:07 +000032429fi
32430
Reid Spencera773bd52006-08-04 18:18:08 +000032431{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32432echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032433if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32435else
32436
Reid Spencera773bd52006-08-04 18:18:08 +000032437 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032438ac_cpp='$CXXCPP $CPPFLAGS'
32439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442
32443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032444/* confdefs.h. */
32445_ACEOF
32446cat confdefs.h >>conftest.$ac_ext
32447cat >>conftest.$ac_ext <<_ACEOF
32448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032449#include <iterator>
32450#ifdef HAVE_NAMESPACES
32451using namespace std;
32452#endif
John Criswell7a73b802003-06-30 21:59:07 +000032453int
32454main ()
32455{
John Criswellc78022e2003-07-29 19:11:58 +000032456forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032457 ;
32458 return 0;
32459}
32460_ACEOF
32461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032462if { (ac_try="$ac_compile"
32463case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32466esac
32467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032470 grep -v '^ *+' conftest.er1 >conftest.err
32471 rm -f conftest.er1
32472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032474 (exit $ac_status); } &&
32475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479esac
32480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; } &&
32485 { ac_try='test -s conftest.$ac_objext'
32486 { (case "(($ac_try" in
32487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488 *) ac_try_echo=$ac_try;;
32489esac
32490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491 (eval "$ac_try") 2>&5
32492 ac_status=$?
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032495 ac_cv_cxx_have_fwd_iterator=yes
32496else
32497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032498sed 's/^/| /' conftest.$ac_ext >&5
32499
Reid Spencera773bd52006-08-04 18:18:08 +000032500 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032501fi
Reid Spencera773bd52006-08-04 18:18:08 +000032502
32503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032504 ac_ext=c
32505ac_cpp='$CPP $CPPFLAGS'
32506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508ac_compiler_gnu=$ac_cv_c_compiler_gnu
32509
32510
32511fi
Reid Spencera773bd52006-08-04 18:18:08 +000032512{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32513echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032514if test "$ac_cv_cxx_have_fwd_iterator" = yes
32515then
John Criswell40468462004-09-24 21:19:06 +000032516
32517cat >>confdefs.h <<\_ACEOF
32518#define HAVE_FWD_ITERATOR 1
32519_ACEOF
32520
32521else
32522
32523cat >>confdefs.h <<\_ACEOF
32524#define HAVE_FWD_ITERATOR 0
32525_ACEOF
32526
John Criswell7a73b802003-06-30 21:59:07 +000032527fi
32528
32529
Reid Spencera773bd52006-08-04 18:18:08 +000032530{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32531echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032532if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32533 echo $ECHO_N "(cached) $ECHO_C" >&6
32534else
Reid Spencera773bd52006-08-04 18:18:08 +000032535 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032536ac_cpp='$CXXCPP $CPPFLAGS'
32537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
Reid Spencerabec8f92004-10-27 23:03:44 +000032541 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032548int
32549main ()
32550{
32551float f; isnan(f);
32552 ;
32553 return 0;
32554}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032555_ACEOF
32556rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032557if { (ac_try="$ac_compile"
32558case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32561esac
32562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032565 grep -v '^ *+' conftest.er1 >conftest.err
32566 rm -f conftest.er1
32567 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest.$ac_objext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032590 ac_cv_func_isnan_in_math_h=yes
32591else
32592 echo "$as_me: failed program was:" >&5
32593sed 's/^/| /' conftest.$ac_ext >&5
32594
Reid Spencera773bd52006-08-04 18:18:08 +000032595 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032596fi
Reid Spencera773bd52006-08-04 18:18:08 +000032597
32598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032599 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032600ac_cpp='$CPP $CPPFLAGS'
32601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603ac_compiler_gnu=$ac_cv_c_compiler_gnu
32604
32605fi
Reid Spencera773bd52006-08-04 18:18:08 +000032606{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32607echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032608
32609
32610if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032611
32612cat >>confdefs.h <<\_ACEOF
32613#define HAVE_ISNAN_IN_MATH_H 1
32614_ACEOF
32615
Reid Spencerabec8f92004-10-27 23:03:44 +000032616fi
32617
Reid Spencera773bd52006-08-04 18:18:08 +000032618{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32619echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032620if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622else
Reid Spencera773bd52006-08-04 18:18:08 +000032623 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032624ac_cpp='$CXXCPP $CPPFLAGS'
32625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
Reid Spencerabec8f92004-10-27 23:03:44 +000032629 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032636int
32637main ()
32638{
32639float f; isnan(f);
32640 ;
32641 return 0;
32642}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032643_ACEOF
32644rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032645if { (ac_try="$ac_compile"
32646case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032657 (exit $ac_status); } &&
32658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659 { (case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32662esac
32663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_try") 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
32669 { (case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32672esac
32673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_try") 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032678 ac_cv_func_isnan_in_cmath=yes
32679else
32680 echo "$as_me: failed program was:" >&5
32681sed 's/^/| /' conftest.$ac_ext >&5
32682
Reid Spencera773bd52006-08-04 18:18:08 +000032683 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032684fi
Reid Spencera773bd52006-08-04 18:18:08 +000032685
32686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032687 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032688ac_cpp='$CPP $CPPFLAGS'
32689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691ac_compiler_gnu=$ac_cv_c_compiler_gnu
32692
32693fi
Reid Spencera773bd52006-08-04 18:18:08 +000032694{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32695echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032696
32697if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032698
32699cat >>confdefs.h <<\_ACEOF
32700#define HAVE_ISNAN_IN_CMATH 1
32701_ACEOF
32702
Reid Spencerabec8f92004-10-27 23:03:44 +000032703fi
32704
Reid Spencera773bd52006-08-04 18:18:08 +000032705{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32706echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032707if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32709else
Reid Spencera773bd52006-08-04 18:18:08 +000032710 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032711ac_cpp='$CXXCPP $CPPFLAGS'
32712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32715
Reid Spencerabec8f92004-10-27 23:03:44 +000032716 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032717/* confdefs.h. */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h. */
32722#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032723int
32724main ()
32725{
32726float f; std::isnan(f);
32727 ;
32728 return 0;
32729}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032730_ACEOF
32731rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032732if { (ac_try="$ac_compile"
32733case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032740 grep -v '^ *+' conftest.er1 >conftest.err
32741 rm -f conftest.er1
32742 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032744 (exit $ac_status); } &&
32745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32749esac
32750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; } &&
32755 { ac_try='test -s conftest.$ac_objext'
32756 { (case "(($ac_try" in
32757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758 *) ac_try_echo=$ac_try;;
32759esac
32760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761 (eval "$ac_try") 2>&5
32762 ac_status=$?
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032765 ac_cv_func_std_isnan_in_cmath=yes
32766else
32767 echo "$as_me: failed program was:" >&5
32768sed 's/^/| /' conftest.$ac_ext >&5
32769
Reid Spencera773bd52006-08-04 18:18:08 +000032770 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032771fi
Reid Spencera773bd52006-08-04 18:18:08 +000032772
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032774 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032775ac_cpp='$CPP $CPPFLAGS'
32776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779
32780fi
Reid Spencera773bd52006-08-04 18:18:08 +000032781{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32782echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032783
32784if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032785
32786cat >>confdefs.h <<\_ACEOF
32787#define HAVE_STD_ISNAN_IN_CMATH 1
32788_ACEOF
32789
Reid Spencerabec8f92004-10-27 23:03:44 +000032790fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032791
32792
Reid Spencera773bd52006-08-04 18:18:08 +000032793{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32794echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032795if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797else
Reid Spencera773bd52006-08-04 18:18:08 +000032798 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032799ac_cpp='$CXXCPP $CPPFLAGS'
32800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32803
Reid Spencerabec8f92004-10-27 23:03:44 +000032804 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032805/* confdefs.h. */
32806_ACEOF
32807cat confdefs.h >>conftest.$ac_ext
32808cat >>conftest.$ac_ext <<_ACEOF
32809/* end confdefs.h. */
32810#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032811int
32812main ()
32813{
32814float f; isinf(f);
32815 ;
32816 return 0;
32817}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032818_ACEOF
32819rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032820if { (ac_try="$ac_compile"
32821case "(($ac_try" in
32822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32823 *) ac_try_echo=$ac_try;;
32824esac
32825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32826 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032827 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032828 grep -v '^ *+' conftest.er1 >conftest.err
32829 rm -f conftest.er1
32830 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032832 (exit $ac_status); } &&
32833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32834 { (case "(($ac_try" in
32835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836 *) ac_try_echo=$ac_try;;
32837esac
32838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839 (eval "$ac_try") 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; } &&
32843 { ac_try='test -s conftest.$ac_objext'
32844 { (case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32847esac
32848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849 (eval "$ac_try") 2>&5
32850 ac_status=$?
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032853 ac_cv_func_isinf_in_math_h=yes
32854else
32855 echo "$as_me: failed program was:" >&5
32856sed 's/^/| /' conftest.$ac_ext >&5
32857
Reid Spencera773bd52006-08-04 18:18:08 +000032858 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032859fi
Reid Spencera773bd52006-08-04 18:18:08 +000032860
32861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032862 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032863ac_cpp='$CPP $CPPFLAGS'
32864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32866ac_compiler_gnu=$ac_cv_c_compiler_gnu
32867
32868fi
Reid Spencera773bd52006-08-04 18:18:08 +000032869{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32870echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032871
32872if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032873
32874cat >>confdefs.h <<\_ACEOF
32875#define HAVE_ISINF_IN_MATH_H 1
32876_ACEOF
32877
Reid Spencerabec8f92004-10-27 23:03:44 +000032878fi
32879
Reid Spencera773bd52006-08-04 18:18:08 +000032880{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32881echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032882if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32884else
Reid Spencera773bd52006-08-04 18:18:08 +000032885 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032886ac_cpp='$CXXCPP $CPPFLAGS'
32887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32890
Reid Spencerabec8f92004-10-27 23:03:44 +000032891 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032892/* confdefs.h. */
32893_ACEOF
32894cat confdefs.h >>conftest.$ac_ext
32895cat >>conftest.$ac_ext <<_ACEOF
32896/* end confdefs.h. */
32897#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032898int
32899main ()
32900{
32901float f; isinf(f);
32902 ;
32903 return 0;
32904}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032905_ACEOF
32906rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032907if { (ac_try="$ac_compile"
32908case "(($ac_try" in
32909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910 *) ac_try_echo=$ac_try;;
32911esac
32912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032915 grep -v '^ *+' conftest.er1 >conftest.err
32916 rm -f conftest.er1
32917 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032919 (exit $ac_status); } &&
32920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32921 { (case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32924esac
32925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; } &&
32930 { ac_try='test -s conftest.$ac_objext'
32931 { (case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32934esac
32935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_try") 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032940 ac_cv_func_isinf_in_cmath=yes
32941else
32942 echo "$as_me: failed program was:" >&5
32943sed 's/^/| /' conftest.$ac_ext >&5
32944
Reid Spencera773bd52006-08-04 18:18:08 +000032945 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032946fi
Reid Spencera773bd52006-08-04 18:18:08 +000032947
32948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032949 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032950ac_cpp='$CPP $CPPFLAGS'
32951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32953ac_compiler_gnu=$ac_cv_c_compiler_gnu
32954
32955fi
Reid Spencera773bd52006-08-04 18:18:08 +000032956{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32957echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032958
32959if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032960
32961cat >>confdefs.h <<\_ACEOF
32962#define HAVE_ISINF_IN_CMATH 1
32963_ACEOF
32964
Reid Spencerabec8f92004-10-27 23:03:44 +000032965fi
32966
Reid Spencera773bd52006-08-04 18:18:08 +000032967{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32968echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032969if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32971else
Reid Spencera773bd52006-08-04 18:18:08 +000032972 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032973ac_cpp='$CXXCPP $CPPFLAGS'
32974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32977
Reid Spencerabec8f92004-10-27 23:03:44 +000032978 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032979/* confdefs.h. */
32980_ACEOF
32981cat confdefs.h >>conftest.$ac_ext
32982cat >>conftest.$ac_ext <<_ACEOF
32983/* end confdefs.h. */
32984#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032985int
32986main ()
32987{
32988float f; std::isinf(f)}
32989 ;
32990 return 0;
32991}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032992_ACEOF
32993rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032994if { (ac_try="$ac_compile"
32995case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32998esac
32999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033002 grep -v '^ *+' conftest.er1 >conftest.err
33003 rm -f conftest.er1
33004 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033006 (exit $ac_status); } &&
33007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33008 { (case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33011esac
33012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_try") 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest.$ac_objext'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021esac
33022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033027 ac_cv_func_std_isinf_in_cmath=yes
33028else
33029 echo "$as_me: failed program was:" >&5
33030sed 's/^/| /' conftest.$ac_ext >&5
33031
Reid Spencera773bd52006-08-04 18:18:08 +000033032 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033033fi
Reid Spencera773bd52006-08-04 18:18:08 +000033034
33035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033036 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033037ac_cpp='$CPP $CPPFLAGS'
33038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33040ac_compiler_gnu=$ac_cv_c_compiler_gnu
33041
33042fi
Reid Spencera773bd52006-08-04 18:18:08 +000033043{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33044echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033045
33046if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033047
33048cat >>confdefs.h <<\_ACEOF
33049#define HAVE_STD_ISINF_IN_CMATH 1
33050_ACEOF
33051
Reid Spencerabec8f92004-10-27 23:03:44 +000033052fi
33053
Reid Spencera773bd52006-08-04 18:18:08 +000033054{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33055echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033056if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33057 echo $ECHO_N "(cached) $ECHO_C" >&6
33058else
Reid Spencera773bd52006-08-04 18:18:08 +000033059 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033060ac_cpp='$CXXCPP $CPPFLAGS'
33061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33064
Reid Spencerabec8f92004-10-27 23:03:44 +000033065 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033066/* confdefs.h. */
33067_ACEOF
33068cat confdefs.h >>conftest.$ac_ext
33069cat >>conftest.$ac_ext <<_ACEOF
33070/* end confdefs.h. */
33071#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033072int
33073main ()
33074{
33075float f; finite(f);
33076 ;
33077 return 0;
33078}
Brian Gaeked59a6472004-07-21 03:33:58 +000033079_ACEOF
33080rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033081if { (ac_try="$ac_compile"
33082case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033089 grep -v '^ *+' conftest.er1 >conftest.err
33090 rm -f conftest.er1
33091 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033093 (exit $ac_status); } &&
33094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33095 { (case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33098esac
33099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_try") 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; } &&
33104 { ac_try='test -s conftest.$ac_objext'
33105 { (case "(($ac_try" in
33106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33107 *) ac_try_echo=$ac_try;;
33108esac
33109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33110 (eval "$ac_try") 2>&5
33111 ac_status=$?
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033114 ac_cv_func_finite_in_ieeefp_h=yes
33115else
33116 echo "$as_me: failed program was:" >&5
33117sed 's/^/| /' conftest.$ac_ext >&5
33118
Reid Spencera773bd52006-08-04 18:18:08 +000033119 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033120fi
Reid Spencera773bd52006-08-04 18:18:08 +000033121
33122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033123 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033124ac_cpp='$CPP $CPPFLAGS'
33125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33127ac_compiler_gnu=$ac_cv_c_compiler_gnu
33128
33129fi
Reid Spencera773bd52006-08-04 18:18:08 +000033130{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33131echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033132
Brian Gaeke6802b552004-10-28 05:06:45 +000033133if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033134
33135cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033136#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033137_ACEOF
33138
Reid Spencerabec8f92004-10-27 23:03:44 +000033139fi
33140
33141
33142
Reid Spencer30fe5262007-01-20 07:48:49 +000033143if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033144
33145
33146for ac_header in stdlib.h unistd.h
33147do
33148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154fi
Reid Spencera773bd52006-08-04 18:18:08 +000033155ac_res=`eval echo '${'$as_ac_Header'}'`
33156 { echo "$as_me:$LINENO: result: $ac_res" >&5
33157echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033158else
33159 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033162cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033163/* confdefs.h. */
33164_ACEOF
33165cat confdefs.h >>conftest.$ac_ext
33166cat >>conftest.$ac_ext <<_ACEOF
33167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033168$ac_includes_default
33169#include <$ac_header>
33170_ACEOF
33171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033172if { (ac_try="$ac_compile"
33173case "(($ac_try" in
33174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175 *) ac_try_echo=$ac_try;;
33176esac
33177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033180 grep -v '^ *+' conftest.er1 >conftest.err
33181 rm -f conftest.er1
33182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033184 (exit $ac_status); } &&
33185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33186 { (case "(($ac_try" in
33187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188 *) ac_try_echo=$ac_try;;
33189esac
33190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191 (eval "$ac_try") 2>&5
33192 ac_status=$?
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest.$ac_objext'
33196 { (case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33199esac
33200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201 (eval "$ac_try") 2>&5
33202 ac_status=$?
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033205 ac_header_compiler=yes
33206else
33207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033208sed 's/^/| /' conftest.$ac_ext >&5
33209
Reid Spencera773bd52006-08-04 18:18:08 +000033210 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033211fi
Reid Spencera773bd52006-08-04 18:18:08 +000033212
33213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33215echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033216
33217# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033220cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033221/* confdefs.h. */
33222_ACEOF
33223cat confdefs.h >>conftest.$ac_ext
33224cat >>conftest.$ac_ext <<_ACEOF
33225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033226#include <$ac_header>
33227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033228if { (ac_try="$ac_cpp conftest.$ac_ext"
33229case "(($ac_try" in
33230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231 *) ac_try_echo=$ac_try;;
33232esac
33233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033235 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033236 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033237 rm -f conftest.er1
33238 cat conftest.err >&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033240 (exit $ac_status); } >/dev/null; then
33241 if test -s conftest.err; then
33242 ac_cpp_err=$ac_c_preproc_warn_flag
33243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33244 else
33245 ac_cpp_err=
33246 fi
33247else
33248 ac_cpp_err=yes
33249fi
33250if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033251 ac_header_preproc=yes
33252else
33253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033254sed 's/^/| /' conftest.$ac_ext >&5
33255
John Criswell7a73b802003-06-30 21:59:07 +000033256 ac_header_preproc=no
33257fi
Reid Spencera773bd52006-08-04 18:18:08 +000033258
John Criswell7a73b802003-06-30 21:59:07 +000033259rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33261echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033262
33263# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33265 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33270 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033271 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033272 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033285 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033286## ----------------------------------- ##
33287## Report this to llvmbugs@cs.uiuc.edu ##
33288## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033289_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033290 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033292esac
Reid Spencera773bd52006-08-04 18:18:08 +000033293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033296 echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033298 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033299fi
Reid Spencera773bd52006-08-04 18:18:08 +000033300ac_res=`eval echo '${'$as_ac_Header'}'`
33301 { echo "$as_me:$LINENO: result: $ac_res" >&5
33302echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033303
33304fi
33305if test `eval echo '${'$as_ac_Header'}'` = yes; then
33306 cat >>confdefs.h <<_ACEOF
33307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33308_ACEOF
33309
33310fi
33311
33312done
33313
33314
33315for ac_func in getpagesize
33316do
33317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033321 echo $ECHO_N "(cached) $ECHO_C" >&6
33322else
33323 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033324/* confdefs.h. */
33325_ACEOF
33326cat confdefs.h >>conftest.$ac_ext
33327cat >>conftest.$ac_ext <<_ACEOF
33328/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33331#define $ac_func innocuous_$ac_func
33332
John Criswell7a73b802003-06-30 21:59:07 +000033333/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033334 which can conflict with char $ac_func (); below.
33335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33336 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033337
John Criswell0c38eaf2003-09-10 15:17:25 +000033338#ifdef __STDC__
33339# include <limits.h>
33340#else
33341# include <assert.h>
33342#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033343
33344#undef $ac_func
33345
Reid Spencera773bd52006-08-04 18:18:08 +000033346/* Override any GCC internal prototype to avoid an error.
33347 Use char because int might match the return type of a GCC
33348 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033349#ifdef __cplusplus
33350extern "C"
33351#endif
John Criswell7a73b802003-06-30 21:59:07 +000033352char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033353/* The GNU C library defines this for functions which it implements
33354 to always fail with ENOSYS. Some functions are actually named
33355 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033356#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033357choke me
John Criswell7a73b802003-06-30 21:59:07 +000033358#endif
33359
John Criswell0c38eaf2003-09-10 15:17:25 +000033360int
33361main ()
33362{
Reid Spencera773bd52006-08-04 18:18:08 +000033363return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033364 ;
33365 return 0;
33366}
33367_ACEOF
33368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033369if { (ac_try="$ac_link"
33370case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033377 grep -v '^ *+' conftest.er1 >conftest.err
33378 rm -f conftest.er1
33379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033381 (exit $ac_status); } &&
33382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33383 { (case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33386esac
33387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest$ac_exeext'
33393 { (case "(($ac_try" in
33394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395 *) ac_try_echo=$ac_try;;
33396esac
33397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398 (eval "$ac_try") 2>&5
33399 ac_status=$?
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033402 eval "$as_ac_var=yes"
33403else
33404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033405sed 's/^/| /' conftest.$ac_ext >&5
33406
Reid Spencera773bd52006-08-04 18:18:08 +000033407 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033408fi
Reid Spencera773bd52006-08-04 18:18:08 +000033409
Bill Wendlingebcceee2009-04-18 11:20:33 +000033410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033411 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033412fi
Reid Spencera773bd52006-08-04 18:18:08 +000033413ac_res=`eval echo '${'$as_ac_var'}'`
33414 { echo "$as_me:$LINENO: result: $ac_res" >&5
33415echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033416if test `eval echo '${'$as_ac_var'}'` = yes; then
33417 cat >>confdefs.h <<_ACEOF
33418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33419_ACEOF
33420
33421fi
33422done
33423
Reid Spencera773bd52006-08-04 18:18:08 +000033424{ echo "$as_me:$LINENO: checking for working mmap" >&5
33425echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033426if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33428else
33429 if test "$cross_compiling" = yes; then
33430 ac_cv_func_mmap_fixed_mapped=no
33431else
33432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033438$ac_includes_default
33439/* malloc might have been renamed as rpl_malloc. */
33440#undef malloc
33441
33442/* Thanks to Mike Haertel and Jim Avera for this test.
33443 Here is a matrix of mmap possibilities:
33444 mmap private not fixed
33445 mmap private fixed at somewhere currently unmapped
33446 mmap private fixed at somewhere already mapped
33447 mmap shared not fixed
33448 mmap shared fixed at somewhere currently unmapped
33449 mmap shared fixed at somewhere already mapped
33450 For private mappings, we should verify that changes cannot be read()
33451 back from the file, nor mmap's back from the file at a different
33452 address. (There have been systems where private was not correctly
33453 implemented like the infamous i386 svr4.0, and systems where the
33454 VM page cache was not coherent with the file system buffer cache
33455 like early versions of FreeBSD and possibly contemporary NetBSD.)
33456 For shared mappings, we should conversely verify that changes get
33457 propagated back to all the places they're supposed to be.
33458
33459 Grep wants private fixed already mapped.
33460 The main things grep needs to know about mmap are:
33461 * does it exist and is it safe to write into the mmap'd area
33462 * how to use it (BSD variants) */
33463
33464#include <fcntl.h>
33465#include <sys/mman.h>
33466
Bill Wendlingebcceee2009-04-18 11:20:33 +000033467#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033468char *malloc ();
33469#endif
33470
33471/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033472#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033473/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033474# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033475# define HAVE_SYS_PARAM_H 1
33476# endif
33477
33478# ifdef _SC_PAGESIZE
33479# define getpagesize() sysconf(_SC_PAGESIZE)
33480# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033481# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033482# include <sys/param.h>
33483# ifdef EXEC_PAGESIZE
33484# define getpagesize() EXEC_PAGESIZE
33485# else /* no EXEC_PAGESIZE */
33486# ifdef NBPG
33487# define getpagesize() NBPG * CLSIZE
33488# ifndef CLSIZE
33489# define CLSIZE 1
33490# endif /* no CLSIZE */
33491# else /* no NBPG */
33492# ifdef NBPC
33493# define getpagesize() NBPC
33494# else /* no NBPC */
33495# ifdef PAGESIZE
33496# define getpagesize() PAGESIZE
33497# endif /* PAGESIZE */
33498# endif /* no NBPC */
33499# endif /* no NBPG */
33500# endif /* no EXEC_PAGESIZE */
33501# else /* no HAVE_SYS_PARAM_H */
33502# define getpagesize() 8192 /* punt totally */
33503# endif /* no HAVE_SYS_PARAM_H */
33504# endif /* no _SC_PAGESIZE */
33505
33506#endif /* no HAVE_GETPAGESIZE */
33507
33508int
33509main ()
33510{
33511 char *data, *data2, *data3;
33512 int i, pagesize;
33513 int fd;
33514
33515 pagesize = getpagesize ();
33516
33517 /* First, make a file with some known garbage in it. */
33518 data = (char *) malloc (pagesize);
33519 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033520 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033521 for (i = 0; i < pagesize; ++i)
33522 *(data + i) = rand ();
33523 umask (0);
33524 fd = creat ("conftest.mmap", 0600);
33525 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033526 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033527 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033529 close (fd);
33530
33531 /* Next, try to mmap the file at a fixed address which already has
33532 something else allocated at it. If we can, also make sure that
33533 we see the same garbage. */
33534 fd = open ("conftest.mmap", O_RDWR);
33535 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033536 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033537 data2 = (char *) malloc (2 * pagesize);
33538 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033539 return 1;
33540 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033543 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033544 for (i = 0; i < pagesize; ++i)
33545 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033546 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033547
33548 /* Finally, make sure that changes to the mapped area do not
33549 percolate back to the file as seen by read(). (This is a bug on
33550 some variants of i386 svr4.0.) */
33551 for (i = 0; i < pagesize; ++i)
33552 *(data2 + i) = *(data2 + i) + 1;
33553 data3 = (char *) malloc (pagesize);
33554 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033555 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033556 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033557 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033558 for (i = 0; i < pagesize; ++i)
33559 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033561 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033562 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033563}
33564_ACEOF
33565rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033566if { (ac_try="$ac_link"
33567case "(($ac_try" in
33568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569 *) ac_try_echo=$ac_try;;
33570esac
33571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033573 ac_status=$?
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033576 { (case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33579esac
33580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
33585 ac_cv_func_mmap_fixed_mapped=yes
33586else
33587 echo "$as_me: program exited with status $ac_status" >&5
33588echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033589sed 's/^/| /' conftest.$ac_ext >&5
33590
John Criswell7a73b802003-06-30 21:59:07 +000033591( exit $ac_status )
33592ac_cv_func_mmap_fixed_mapped=no
33593fi
Reid Spencera773bd52006-08-04 18:18:08 +000033594rm -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 +000033595fi
Reid Spencera773bd52006-08-04 18:18:08 +000033596
33597
John Criswell7a73b802003-06-30 21:59:07 +000033598fi
Reid Spencera773bd52006-08-04 18:18:08 +000033599{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33600echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033601if test $ac_cv_func_mmap_fixed_mapped = yes; then
33602
33603cat >>confdefs.h <<\_ACEOF
33604#define HAVE_MMAP 1
33605_ACEOF
33606
33607fi
33608rm -f conftest.mmap
33609
Reid Spencer30fe5262007-01-20 07:48:49 +000033610 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033611echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033612if test "${ac_cv_func_mmap_file+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033615 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033616ac_cpp='$CPP $CPPFLAGS'
33617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619ac_compiler_gnu=$ac_cv_c_compiler_gnu
33620
33621 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033622 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033623else
33624 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033625
Reid Spencer777ce172004-09-20 04:09:56 +000033626 /* confdefs.h. */
33627_ACEOF
33628cat confdefs.h >>conftest.$ac_ext
33629cat >>conftest.$ac_ext <<_ACEOF
33630/* end confdefs.h. */
33631
John Criswell7a73b802003-06-30 21:59:07 +000033632#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033633#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033634#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033635
33636int
33637main ()
33638{
John Criswell7a73b802003-06-30 21:59:07 +000033639
33640 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033641 fd = creat ("foo",0777);
33642 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33643 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033644 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033645 ;
33646 return 0;
33647}
John Criswell7a73b802003-06-30 21:59:07 +000033648_ACEOF
33649rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033650if { (ac_try="$ac_link"
33651case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33654esac
33655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033660 { (case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33663esac
33664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 ac_cv_func_mmap_file=yes
33670else
33671 echo "$as_me: program exited with status $ac_status" >&5
33672echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033673sed 's/^/| /' conftest.$ac_ext >&5
33674
John Criswell7a73b802003-06-30 21:59:07 +000033675( exit $ac_status )
33676ac_cv_func_mmap_file=no
33677fi
Reid Spencera773bd52006-08-04 18:18:08 +000033678rm -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 +000033679fi
Reid Spencera773bd52006-08-04 18:18:08 +000033680
33681
John Criswell7a73b802003-06-30 21:59:07 +000033682 ac_ext=c
33683ac_cpp='$CPP $CPPFLAGS'
33684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687
33688
33689fi
Reid Spencera773bd52006-08-04 18:18:08 +000033690{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33691echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033692if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033693
33694cat >>confdefs.h <<\_ACEOF
33695#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033696_ACEOF
33697
33698 MMAP_FILE=yes
33699
33700fi
33701
Reid Spencer30fe5262007-01-20 07:48:49 +000033702 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033703echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033704if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33705 echo $ECHO_N "(cached) $ECHO_C" >&6
33706else
Reid Spencer582a23c2004-12-29 07:07:57 +000033707 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033708 ac_cv_need_dev_zero_for_mmap=yes
33709 else
33710 ac_cv_need_dev_zero_for_mmap=no
33711 fi
33712
33713fi
Reid Spencera773bd52006-08-04 18:18:08 +000033714{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33715echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033716if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33717
33718cat >>confdefs.h <<\_ACEOF
33719#define NEED_DEV_ZERO_FOR_MMAP 1
33720_ACEOF
33721
33722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033723
Reid Spencer30fe5262007-01-20 07:48:49 +000033724 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33725 then
33726 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033727echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033728 fi
33729 if test "$ac_cv_func_mmap_file" = "no"
33730 then
33731 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033732echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033733 fi
John Criswellb13092b2003-07-22 21:00:24 +000033734fi
John Criswell7a73b802003-06-30 21:59:07 +000033735
Owen Andersona8603702009-05-19 22:18:56 +000033736{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000033737echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033738cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000033739/* confdefs.h. */
33740_ACEOF
33741cat confdefs.h >>conftest.$ac_ext
33742cat >>conftest.$ac_ext <<_ACEOF
33743/* end confdefs.h. */
33744int main() {
Owen Andersona8603702009-05-19 22:18:56 +000033745 volatile unsigned long val = 1;
33746 __sync_synchronize();
33747 __sync_val_compare_and_swap(&val, 1, 0);
33748 return 0;
33749 }
Owen Andersond4b272b2009-05-18 23:58:51 +000033750
33751_ACEOF
33752rm -f conftest.$ac_objext conftest$ac_exeext
33753if { (ac_try="$ac_link"
33754case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33757esac
33758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_link") 2>conftest.er1
33760 ac_status=$?
33761 grep -v '^ *+' conftest.er1 >conftest.err
33762 rm -f conftest.er1
33763 cat conftest.err >&5
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
33766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33767 { (case "(($ac_try" in
33768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769 *) ac_try_echo=$ac_try;;
33770esac
33771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772 (eval "$ac_try") 2>&5
33773 ac_status=$?
33774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); }; } &&
33776 { ac_try='test -s conftest$ac_exeext'
33777 { (case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33780esac
33781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_try") 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
33786 { echo "$as_me:$LINENO: result: yes" >&5
33787echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033788
33789cat >>confdefs.h <<\_ACEOF
33790#define LLVM_MULTITHREADED 1
33791_ACEOF
33792
Owen Andersond4b272b2009-05-18 23:58:51 +000033793else
33794 echo "$as_me: failed program was:" >&5
33795sed 's/^/| /' conftest.$ac_ext >&5
33796
33797 { echo "$as_me:$LINENO: result: no" >&5
33798echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000033799
Owen Andersona8603702009-05-19 22:18:56 +000033800cat >>confdefs.h <<\_ACEOF
33801#define LLVM_MULTITHREADED 0
33802_ACEOF
33803
33804 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33805echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000033806fi
33807
33808rm -f core conftest.err conftest.$ac_objext \
33809 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000033810
33811
John Criswell7a73b802003-06-30 21:59:07 +000033812
Reid Spencer9372f152007-07-30 20:13:24 +000033813
33814for ac_func in __dso_handle
33815do
33816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33820 echo $ECHO_N "(cached) $ECHO_C" >&6
33821else
33822 cat >conftest.$ac_ext <<_ACEOF
33823/* confdefs.h. */
33824_ACEOF
33825cat confdefs.h >>conftest.$ac_ext
33826cat >>conftest.$ac_ext <<_ACEOF
33827/* end confdefs.h. */
33828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33830#define $ac_func innocuous_$ac_func
33831
33832/* System header to define __stub macros and hopefully few prototypes,
33833 which can conflict with char $ac_func (); below.
33834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33835 <limits.h> exists even on freestanding compilers. */
33836
33837#ifdef __STDC__
33838# include <limits.h>
33839#else
33840# include <assert.h>
33841#endif
33842
33843#undef $ac_func
33844
33845/* Override any GCC internal prototype to avoid an error.
33846 Use char because int might match the return type of a GCC
33847 builtin and then its argument prototype would still apply. */
33848#ifdef __cplusplus
33849extern "C"
33850#endif
33851char $ac_func ();
33852/* The GNU C library defines this for functions which it implements
33853 to always fail with ENOSYS. Some functions are actually named
33854 something starting with __ and the normal name is an alias. */
33855#if defined __stub_$ac_func || defined __stub___$ac_func
33856choke me
33857#endif
33858
33859int
33860main ()
33861{
33862return $ac_func ();
33863 ;
33864 return 0;
33865}
33866_ACEOF
33867rm -f conftest.$ac_objext conftest$ac_exeext
33868if { (ac_try="$ac_link"
33869case "(($ac_try" in
33870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 *) ac_try_echo=$ac_try;;
33872esac
33873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874 (eval "$ac_link") 2>conftest.er1
33875 ac_status=$?
33876 grep -v '^ *+' conftest.er1 >conftest.err
33877 rm -f conftest.er1
33878 cat conftest.err >&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033880 (exit $ac_status); } &&
33881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33882 { (case "(($ac_try" in
33883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884 *) ac_try_echo=$ac_try;;
33885esac
33886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887 (eval "$ac_try") 2>&5
33888 ac_status=$?
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; } &&
33891 { ac_try='test -s conftest$ac_exeext'
33892 { (case "(($ac_try" in
33893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894 *) ac_try_echo=$ac_try;;
33895esac
33896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897 (eval "$ac_try") 2>&5
33898 ac_status=$?
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033901 eval "$as_ac_var=yes"
33902else
33903 echo "$as_me: failed program was:" >&5
33904sed 's/^/| /' conftest.$ac_ext >&5
33905
33906 eval "$as_ac_var=no"
33907fi
33908
Bill Wendlingebcceee2009-04-18 11:20:33 +000033909rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033910 conftest$ac_exeext conftest.$ac_ext
33911fi
33912ac_res=`eval echo '${'$as_ac_var'}'`
33913 { echo "$as_me:$LINENO: result: $ac_res" >&5
33914echo "${ECHO_T}$ac_res" >&6; }
33915if test `eval echo '${'$as_ac_var'}'` = yes; then
33916 cat >>confdefs.h <<_ACEOF
33917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33918_ACEOF
33919
33920fi
33921done
33922
33923
Reid Spencera773bd52006-08-04 18:18:08 +000033924{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33925echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033926if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33928else
33929 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033930if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033931 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033932 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33933 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033934 if test $? -eq 0 ; then
33935 llvm_cv_llvmgcc_sanity="yes"
33936 fi
33937 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033938fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033939fi
Reid Spencera773bd52006-08-04 18:18:08 +000033940{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33941echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033942
33943if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033944 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33945echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033946 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033947 LLVMCC1=$llvmcc1path
33948
Reid Spencer502935f2004-12-22 05:56:56 +000033949 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033950 LLVMCC1PLUS=$llvmcc1pluspath
33951
Reid Spencer502935f2004-12-22 05:56:56 +000033952 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33953 LLVMGCCDIR=$llvmgccdir
33954
Reid Spencer282d8c12006-12-21 22:55:41 +000033955 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33956 LLVMGCCLIBEXEC=$llvmgcclibexec
33957
Reid Spencerb5d75b82006-05-09 00:31:01 +000033958 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033959 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33960 LLVMGCC_VERSION=$llvmgccversion
33961
33962 LLVMGCC_MAJVERS=$llvmgccmajvers
33963
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033964 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033965 LLVMGCC_LANGS=$llvmgcclangs
33966
33967 { echo "$as_me:$LINENO: result: ok" >&5
33968echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033969fi
33970
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033971SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033972
33973
Reid Spencere9de0912004-08-20 09:03:57 +000033974# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033975# information into substitutions that will end up in Makefile.config.in
33976# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033977if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033978 prefix="/usr/local"
33979fi
Reid Spencere9de0912004-08-20 09:03:57 +000033980eval LLVM_PREFIX="${prefix}";
33981eval LLVM_BINDIR="${prefix}/bin";
33982eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033983eval LLVM_DATADIR="${prefix}/share/llvm";
33984eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33985eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033986eval LLVM_INCLUDEDIR="${prefix}/include";
33987eval LLVM_INFODIR="${prefix}/info";
33988eval LLVM_MANDIR="${prefix}/man";
33989LLVM_CONFIGTIME=`date`
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034001# Place the various directores into the config.h file as #defines so that we
34002# can know about the installation paths within LLVM.
34003
Reid Spencere9de0912004-08-20 09:03:57 +000034004cat >>confdefs.h <<_ACEOF
34005#define LLVM_PREFIX "$LLVM_PREFIX"
34006_ACEOF
34007
34008
34009cat >>confdefs.h <<_ACEOF
34010#define LLVM_BINDIR "$LLVM_BINDIR"
34011_ACEOF
34012
34013
34014cat >>confdefs.h <<_ACEOF
34015#define LLVM_LIBDIR "$LLVM_LIBDIR"
34016_ACEOF
34017
34018
34019cat >>confdefs.h <<_ACEOF
34020#define LLVM_DATADIR "$LLVM_DATADIR"
34021_ACEOF
34022
34023
34024cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034025#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034026_ACEOF
34027
34028
34029cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034030#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034031_ACEOF
34032
34033
34034cat >>confdefs.h <<_ACEOF
34035#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34036_ACEOF
34037
34038
34039cat >>confdefs.h <<_ACEOF
34040#define LLVM_INFODIR "$LLVM_INFODIR"
34041_ACEOF
34042
34043
34044cat >>confdefs.h <<_ACEOF
34045#define LLVM_MANDIR "$LLVM_MANDIR"
34046_ACEOF
34047
34048
34049cat >>confdefs.h <<_ACEOF
34050#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34051_ACEOF
34052
34053
Eric Christopher790e11c2007-12-01 00:34:39 +000034054cat >>confdefs.h <<_ACEOF
34055#define LLVM_HOSTTRIPLE "$host"
34056_ACEOF
34057
34058
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034059# Determine which bindings to build.
34060if test "$BINDINGS_TO_BUILD" = auto ; then
34061 BINDINGS_TO_BUILD=""
34062 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34063 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34064 fi
34065fi
34066BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34067
34068
34069# This isn't really configurey, but it avoids having to repeat the list in
34070# other files.
34071ALL_BINDINGS=ocaml
34072
34073
Gordon Henriksenf0915682007-10-02 16:42:22 +000034074# Do any work necessary to ensure that bindings have what they need.
34075binding_prereqs_failed=0
34076for a_binding in $BINDINGS_TO_BUILD ; do
34077 case "$a_binding" in
34078 ocaml)
34079 if test "x$OCAMLC" = x ; then
34080 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34081echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34082 binding_prereqs_failed=1
34083 fi
34084 if test "x$OCAMLDEP" = x ; then
34085 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34086echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34087 binding_prereqs_failed=1
34088 fi
34089 if test "x$OCAMLOPT" = x ; then
34090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34091echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34092 fi
34093 if test "x$with_ocaml_libdir" != xauto ; then
34094 OCAML_LIBDIR=$with_ocaml_libdir
34095
34096 else
34097 ocaml_stdlib="`"$OCAMLC" -where`"
34098 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34099 then
34100 # ocaml stdlib is beneath our prefix; use stdlib
34101 OCAML_LIBDIR=$ocaml_stdlib
34102
34103 else
34104 # ocaml stdlib is outside our prefix; use libdir/ocaml
34105 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34106
34107 fi
34108 fi
34109 ;;
34110 esac
34111done
34112if test "$binding_prereqs_failed" = 1 ; then
34113 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34114echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34115 { (exit 1); exit 1; }; }
34116fi
34117
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034118{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34119echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34120if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34121 echo $ECHO_N "(cached) $ECHO_C" >&6
34122else
34123 ac_ext=cpp
34124ac_cpp='$CXXCPP $CPPFLAGS'
34125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34128
34129 oldcxxflags="$CXXFLAGS"
34130 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34131 cat >conftest.$ac_ext <<_ACEOF
34132/* confdefs.h. */
34133_ACEOF
34134cat confdefs.h >>conftest.$ac_ext
34135cat >>conftest.$ac_ext <<_ACEOF
34136/* end confdefs.h. */
34137
34138int
34139main ()
34140{
34141
34142 ;
34143 return 0;
34144}
34145_ACEOF
34146rm -f conftest.$ac_objext
34147if { (ac_try="$ac_compile"
34148case "(($ac_try" in
34149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34150 *) ac_try_echo=$ac_try;;
34151esac
34152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34153 (eval "$ac_compile") 2>conftest.er1
34154 ac_status=$?
34155 grep -v '^ *+' conftest.er1 >conftest.err
34156 rm -f conftest.er1
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034159 (exit $ac_status); } &&
34160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34161 { (case "(($ac_try" in
34162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34163 *) ac_try_echo=$ac_try;;
34164esac
34165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34166 (eval "$ac_try") 2>&5
34167 ac_status=$?
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; } &&
34170 { ac_try='test -s conftest.$ac_objext'
34171 { (case "(($ac_try" in
34172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173 *) ac_try_echo=$ac_try;;
34174esac
34175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176 (eval "$ac_try") 2>&5
34177 ac_status=$?
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034180 llvm_cv_cxx_visibility_inlines_hidden=yes
34181else
34182 echo "$as_me: failed program was:" >&5
34183sed 's/^/| /' conftest.$ac_ext >&5
34184
34185 llvm_cv_cxx_visibility_inlines_hidden=no
34186fi
34187
34188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34189 CXXFLAGS="$oldcxxflags"
34190 ac_ext=c
34191ac_cpp='$CPP $CPPFLAGS'
34192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194ac_compiler_gnu=$ac_cv_c_compiler_gnu
34195
34196
34197fi
34198{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34199echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34200if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34201 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34202
34203else
34204 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34205
34206fi
34207
Gordon Henriksenf0915682007-10-02 16:42:22 +000034208
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034209if test "$llvm_cv_link_use_r" = "yes" ; then
34210 RPATH="-Wl,-R"
34211else
34212 RPATH="-Wl,-rpath"
34213fi
34214
34215
34216if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34217 RDYNAMIC="-Wl,-export-dynamic"
34218else
34219 RDYNAMIC=""
34220fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034221
34222
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034223
Reid Spencera773bd52006-08-04 18:18:08 +000034224ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034225
Reid Spencera773bd52006-08-04 18:18:08 +000034226ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034227
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034228ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034229
34230
Reid Spencera773bd52006-08-04 18:18:08 +000034231ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034232
34233
Reid Spencerea949cf2006-08-16 00:45:38 +000034234ac_config_files="$ac_config_files llvm.spec"
34235
34236
Reid Spencera773bd52006-08-04 18:18:08 +000034237ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034238
34239
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034240ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34241
34242
Reid Spencera773bd52006-08-04 18:18:08 +000034243ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034244
34245
Reid Spencera773bd52006-08-04 18:18:08 +000034246ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034247
Reid Spencera773bd52006-08-04 18:18:08 +000034248ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034249
34250
Reid Spencera773bd52006-08-04 18:18:08 +000034251ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034252
34253
Reid Spencera773bd52006-08-04 18:18:08 +000034254ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034255
34256
Reid Spencera773bd52006-08-04 18:18:08 +000034257ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034258
34259
Reid Spencer8b2e1412006-11-17 03:32:33 +000034260ac_config_commands="$ac_config_commands runtime/Makefile"
34261
34262
Reid Spencera773bd52006-08-04 18:18:08 +000034263ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034264
34265
Reid Spencera773bd52006-08-04 18:18:08 +000034266ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267
34268
Bill Wendlingf24eb392009-01-04 23:12:30 +000034269ac_config_commands="$ac_config_commands unittests/Makefile"
34270
34271
Reid Spencera773bd52006-08-04 18:18:08 +000034272ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034273
34274
Reid Spencera773bd52006-08-04 18:18:08 +000034275ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034276
34277
Reid Spencera773bd52006-08-04 18:18:08 +000034278ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034279
34280
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034281ac_config_commands="$ac_config_commands bindings/Makefile"
34282
34283
34284ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34285
34286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034287
John Criswell7a73b802003-06-30 21:59:07 +000034288cat >confcache <<\_ACEOF
34289# This file is a shell script that caches the results of configure
34290# tests run on this system so they can be shared between configure
34291# scripts and configure runs, see configure's option --config-cache.
34292# It is not useful on other systems. If it contains results you don't
34293# want to keep, you may remove or edit it.
34294#
34295# config.status only pays attention to the cache file if you give it
34296# the --recheck option to rerun configure.
34297#
John Criswell0c38eaf2003-09-10 15:17:25 +000034298# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034299# loading this file, other *unset* `ac_cv_foo' will be assigned the
34300# following values.
34301
34302_ACEOF
34303
34304# The following way of writing the cache mishandles newlines in values,
34305# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034306# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034307# Ultrix sh set writes to stderr and can't be redirected directly,
34308# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034309(
34310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34311 eval ac_val=\$$ac_var
34312 case $ac_val in #(
34313 *${as_nl}*)
34314 case $ac_var in #(
34315 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34316echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34317 esac
34318 case $ac_var in #(
34319 _ | IFS | as_nl) ;; #(
34320 *) $as_unset $ac_var ;;
34321 esac ;;
34322 esac
34323 done
34324
John Criswell7a73b802003-06-30 21:59:07 +000034325 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34327 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034328 # `set' does not quote correctly, so add quotes (double-quote
34329 # substitution turns \\\\ into \\, and sed turns \\ into \).
34330 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034331 "s/'/'\\\\''/g;
34332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034333 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034334 *)
34335 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034337 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034338 esac |
34339 sort
34340) |
John Criswell7a73b802003-06-30 21:59:07 +000034341 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034342 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034343 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034344 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34346 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34348 :end' >>confcache
34349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34350 if test -w "$cache_file"; then
34351 test "x$cache_file" != "x/dev/null" &&
34352 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34353echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034354 cat confcache >$cache_file
34355 else
Reid Spencera773bd52006-08-04 18:18:08 +000034356 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34357echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034358 fi
34359fi
34360rm -f confcache
34361
34362test "x$prefix" = xNONE && prefix=$ac_default_prefix
34363# Let make expand exec_prefix.
34364test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34365
John Criswell7a73b802003-06-30 21:59:07 +000034366DEFS=-DHAVE_CONFIG_H
34367
John Criswell0c38eaf2003-09-10 15:17:25 +000034368ac_libobjs=
34369ac_ltlibobjs=
34370for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34371 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34373 ac_i=`echo "$ac_i" | sed "$ac_script"`
34374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34375 # will be set to the directory where LIBOBJS objects are built.
34376 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34377 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034378done
34379LIBOBJS=$ac_libobjs
34380
34381LTLIBOBJS=$ac_ltlibobjs
34382
34383
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034384if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34385 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34386Usually this means the macro was only invoked conditionally." >&5
34387echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34388Usually this means the macro was only invoked conditionally." >&2;}
34389 { (exit 1); exit 1; }; }
34390fi
34391if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34392 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34393Usually this means the macro was only invoked conditionally." >&5
34394echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34395Usually this means the macro was only invoked conditionally." >&2;}
34396 { (exit 1); exit 1; }; }
34397fi
John Criswell7a73b802003-06-30 21:59:07 +000034398
34399: ${CONFIG_STATUS=./config.status}
34400ac_clean_files_save=$ac_clean_files
34401ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34402{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34403echo "$as_me: creating $CONFIG_STATUS" >&6;}
34404cat >$CONFIG_STATUS <<_ACEOF
34405#! $SHELL
34406# Generated by $as_me.
34407# Run this file to recreate the current configuration.
34408# Compiler output produced by configure, useful for debugging
34409# configure, is in config.log if it exists.
34410
34411debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034412ac_cs_recheck=false
34413ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034414SHELL=\${CONFIG_SHELL-$SHELL}
34415_ACEOF
34416
34417cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034418## --------------------- ##
34419## M4sh Initialization. ##
34420## --------------------- ##
34421
Bill Wendlingebcceee2009-04-18 11:20:33 +000034422# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34424 emulate sh
34425 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34427 # is contrary to our usage. Disable this feature.
34428 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034429 setopt NO_GLOB_SUBST
34430else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034431 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034432fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034433BIN_SH=xpg4; export BIN_SH # for Tru64
34434DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034435
John Criswell7a73b802003-06-30 21:59:07 +000034436
Reid Spencera773bd52006-08-04 18:18:08 +000034437# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034438# Avoid depending upon Character Ranges.
34439as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34441as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34442as_cr_digits='0123456789'
34443as_cr_alnum=$as_cr_Letters$as_cr_digits
34444
34445# The user is always right.
34446if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034447 echo "#! /bin/sh" >conf$$.sh
34448 echo "exit 0" >>conf$$.sh
34449 chmod +x conf$$.sh
34450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034451 PATH_SEPARATOR=';'
34452 else
34453 PATH_SEPARATOR=:
34454 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034455 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034456fi
34457
Reid Spencera773bd52006-08-04 18:18:08 +000034458# Support unset when possible.
34459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34460 as_unset=unset
34461else
34462 as_unset=false
34463fi
John Criswell7a73b802003-06-30 21:59:07 +000034464
Reid Spencera773bd52006-08-04 18:18:08 +000034465
34466# IFS
34467# We need space, tab and new line, in precisely that order. Quoting is
34468# there to prevent editors from complaining about space-tab.
34469# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34470# splitting by setting IFS to empty value.)
34471as_nl='
34472'
34473IFS=" "" $as_nl"
34474
34475# Find who we are. Look in the path if we contain no directory separator.
34476case $0 in
34477 *[\\/]* ) as_myself=$0 ;;
34478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034479for as_dir in $PATH
34480do
34481 IFS=$as_save_IFS
34482 test -z "$as_dir" && as_dir=.
34483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34484done
Reid Spencera773bd52006-08-04 18:18:08 +000034485IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034486
Reid Spencera773bd52006-08-04 18:18:08 +000034487 ;;
34488esac
34489# We did not find ourselves, most probably we were run as `sh COMMAND'
34490# in which case we are not to be found in the path.
34491if test "x$as_myself" = x; then
34492 as_myself=$0
34493fi
34494if test ! -f "$as_myself"; then
34495 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34496 { (exit 1); exit 1; }
34497fi
34498
34499# Work around bugs in pre-3.0 UWIN ksh.
34500for as_var in ENV MAIL MAILPATH
34501do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34502done
34503PS1='$ '
34504PS2='> '
34505PS4='+ '
34506
34507# NLS nuisances.
34508for as_var in \
34509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34511 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034512do
Reid Spencera773bd52006-08-04 18:18:08 +000034513 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34514 eval $as_var=C; export $as_var
34515 else
34516 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34517 fi
34518done
34519
34520# Required to use basename.
34521if expr a : '\(a\)' >/dev/null 2>&1 &&
34522 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34523 as_expr=expr
34524else
34525 as_expr=false
34526fi
34527
34528if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34529 as_basename=basename
34530else
34531 as_basename=false
34532fi
34533
34534
34535# Name of the executable.
34536as_me=`$as_basename -- "$0" ||
34537$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34538 X"$0" : 'X\(//\)$' \| \
34539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34540echo X/"$0" |
34541 sed '/^.*\/\([^/][^/]*\)\/*$/{
34542 s//\1/
34543 q
34544 }
34545 /^X\/\(\/\/\)$/{
34546 s//\1/
34547 q
34548 }
34549 /^X\/\(\/\).*/{
34550 s//\1/
34551 q
34552 }
34553 s/.*/./; q'`
34554
34555# CDPATH.
34556$as_unset CDPATH
34557
34558
34559
John Criswell7a73b802003-06-30 21:59:07 +000034560 as_lineno_1=$LINENO
34561 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034562 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034563 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034564
34565 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34566 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034567 # line-number line after each line using $LINENO; the second 'sed'
34568 # does the real work. The second script uses 'N' to pair each
34569 # line-number line with the line containing $LINENO, and appends
34570 # trailing '-' during substitution so that $LINENO is not a special
34571 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034572 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034573 # scripts with optimization help from Paolo Bonzini. Blame Lee
34574 # E. McMahon (1931-1989) for sed's syntax. :-)
34575 sed -n '
34576 p
34577 /[$]LINENO/=
34578 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034579 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034580 s/[$]LINENO.*/&-/
34581 t lineno
34582 b
34583 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034584 N
Reid Spencera773bd52006-08-04 18:18:08 +000034585 :loop
34586 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034587 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034588 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034589 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034590 chmod +x "$as_me.lineno" ||
34591 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034592 { (exit 1); exit 1; }; }
34593
34594 # Don't try to exec as it changes $[0], causing all sort of problems
34595 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034596 # original and so on. Autoconf is especially sensitive to this).
34597 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034598 # Exit status is that of the last command.
34599 exit
34600}
34601
34602
Reid Spencera773bd52006-08-04 18:18:08 +000034603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34604 as_dirname=dirname
34605else
34606 as_dirname=false
34607fi
34608
34609ECHO_C= ECHO_N= ECHO_T=
34610case `echo -n x` in
34611-n*)
34612 case `echo 'x\c'` in
34613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34614 *) ECHO_C='\c';;
34615 esac;;
34616*)
34617 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034618esac
34619
Reid Spencera773bd52006-08-04 18:18:08 +000034620if expr a : '\(a\)' >/dev/null 2>&1 &&
34621 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034622 as_expr=expr
34623else
34624 as_expr=false
34625fi
34626
34627rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034628if test -d conf$$.dir; then
34629 rm -f conf$$.dir/conf$$.file
34630else
34631 rm -f conf$$.dir
34632 mkdir conf$$.dir
34633fi
John Criswell7a73b802003-06-30 21:59:07 +000034634echo >conf$$.file
34635if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034636 as_ln_s='ln -s'
34637 # ... but there are two gotchas:
34638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34640 # In both cases, we have to default to `cp -p'.
34641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034642 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034643elif ln conf$$.file conf$$ 2>/dev/null; then
34644 as_ln_s=ln
34645else
34646 as_ln_s='cp -p'
34647fi
Reid Spencera773bd52006-08-04 18:18:08 +000034648rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34649rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034650
John Criswell0c38eaf2003-09-10 15:17:25 +000034651if mkdir -p . 2>/dev/null; then
34652 as_mkdir_p=:
34653else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034654 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034655 as_mkdir_p=false
34656fi
34657
Bill Wendlingebcceee2009-04-18 11:20:33 +000034658# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34659# systems may use methods other than mode bits to determine executability.
34660cat >conf$$.file <<_ASEOF
34661#! /bin/sh
34662exit 0
34663_ASEOF
34664chmod +x conf$$.file
34665if test -x conf$$.file >/dev/null 2>&1; then
34666 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034667else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034668 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034669fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034670rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034671
34672# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034673as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034674
34675# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034676as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034677
34678
John Criswell7a73b802003-06-30 21:59:07 +000034679exec 6>&1
34680
Reid Spencera773bd52006-08-04 18:18:08 +000034681# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034682# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034683# values after options handling.
34684ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034685This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034686generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034687
34688 CONFIG_FILES = $CONFIG_FILES
34689 CONFIG_HEADERS = $CONFIG_HEADERS
34690 CONFIG_LINKS = $CONFIG_LINKS
34691 CONFIG_COMMANDS = $CONFIG_COMMANDS
34692 $ $0 $@
34693
Reid Spencera773bd52006-08-04 18:18:08 +000034694on `(hostname || uname -n) 2>/dev/null | sed 1q`
34695"
34696
John Criswell7a73b802003-06-30 21:59:07 +000034697_ACEOF
34698
Reid Spencera773bd52006-08-04 18:18:08 +000034699cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034700# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034701config_files="$ac_config_files"
34702config_headers="$ac_config_headers"
34703config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034704
Reid Spencera773bd52006-08-04 18:18:08 +000034705_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034706
34707cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034708ac_cs_usage="\
34709\`$as_me' instantiates files from templates according to the
34710current configuration.
34711
34712Usage: $0 [OPTIONS] [FILE]...
34713
34714 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034715 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034716 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034717 -d, --debug don't remove temporary files
34718 --recheck update $as_me by reconfiguring in the same conditions
34719 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034720 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034721 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034722 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034723
34724Configuration files:
34725$config_files
34726
34727Configuration headers:
34728$config_headers
34729
John Criswellc764fbc2003-09-06 15:17:13 +000034730Configuration commands:
34731$config_commands
34732
John Criswell7a73b802003-06-30 21:59:07 +000034733Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034734
Reid Spencera773bd52006-08-04 18:18:08 +000034735_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034736cat >>$CONFIG_STATUS <<_ACEOF
34737ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034738llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034739configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034740 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034741
Reid Spencera773bd52006-08-04 18:18:08 +000034742Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034743This config.status script is free software; the Free Software Foundation
34744gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034745
34746ac_pwd='$ac_pwd'
34747srcdir='$srcdir'
34748INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034749_ACEOF
34750
34751cat >>$CONFIG_STATUS <<\_ACEOF
34752# If no file are specified by the user, then we need to provide default
34753# value. By we need to know if files were specified by the user.
34754ac_need_defaults=:
34755while test $# != 0
34756do
34757 case $1 in
34758 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034761 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034763 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034764 ac_option=$1
34765 ac_optarg=$2
34766 ac_shift=shift
34767 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034768 esac
34769
John Criswell0c38eaf2003-09-10 15:17:25 +000034770 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034771 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34773 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34775 echo "$ac_cs_version"; exit ;;
34776 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034777 debug=: ;;
34778 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034779 $ac_shift
34780 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034781 ac_need_defaults=false;;
34782 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034783 $ac_shift
34784 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034785 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034786 --he | --h)
34787 # Conflict between --help and --header
34788 { echo "$as_me: error: ambiguous option: $1
34789Try \`$0 --help' for more information." >&2
34790 { (exit 1); exit 1; }; };;
34791 --help | --hel | -h )
34792 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34795 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034796
34797 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034798 -*) { echo "$as_me: error: unrecognized option: $1
34799Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034800 { (exit 1); exit 1; }; } ;;
34801
Reid Spencera773bd52006-08-04 18:18:08 +000034802 *) ac_config_targets="$ac_config_targets $1"
34803 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034804
34805 esac
34806 shift
34807done
34808
John Criswell0c38eaf2003-09-10 15:17:25 +000034809ac_configure_extra_args=
34810
34811if $ac_cs_silent; then
34812 exec 6>/dev/null
34813 ac_configure_extra_args="$ac_configure_extra_args --silent"
34814fi
34815
34816_ACEOF
34817cat >>$CONFIG_STATUS <<_ACEOF
34818if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034819 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34820 CONFIG_SHELL=$SHELL
34821 export CONFIG_SHELL
34822 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034823fi
34824
John Criswell7a73b802003-06-30 21:59:07 +000034825_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034826cat >>$CONFIG_STATUS <<\_ACEOF
34827exec 5>>config.log
34828{
34829 echo
34830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34831## Running $as_me. ##
34832_ASBOX
34833 echo "$ac_log"
34834} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034835
Reid Spencera773bd52006-08-04 18:18:08 +000034836_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034837cat >>$CONFIG_STATUS <<_ACEOF
34838#
Reid Spencera773bd52006-08-04 18:18:08 +000034839# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034840#
Reid Spencerc0682832005-02-24 19:05:19 +000034841llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034842
34843_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034844
John Criswell7a73b802003-06-30 21:59:07 +000034845cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034846
34847# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034848for ac_config_target in $ac_config_targets
34849do
Reid Spencera773bd52006-08-04 18:18:08 +000034850 case $ac_config_target in
34851 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34852 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034853 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034854 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034855 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034856 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034857 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034858 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34859 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34860 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34861 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34862 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34863 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034864 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034865 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34866 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034867 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034868 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34869 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34870 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034871 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34872 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034873
John Criswell7a73b802003-06-30 21:59:07 +000034874 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34875echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34876 { (exit 1); exit 1; }; };;
34877 esac
34878done
34879
Reid Spencera773bd52006-08-04 18:18:08 +000034880
John Criswell7a73b802003-06-30 21:59:07 +000034881# If the user did not use the arguments to specify the items to instantiate,
34882# then the envvar interface is used. Set only those that are not.
34883# We use the long form for the default assignment because of an extremely
34884# bizarre bug on SunOS 4.1.3.
34885if $ac_need_defaults; then
34886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34887 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034888 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034889fi
34890
John Criswell0c38eaf2003-09-10 15:17:25 +000034891# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034892# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034893# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034894# Hook for its removal unless debugging.
34895# Note that there is a small window in which the directory will not be cleaned:
34896# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034897$debug ||
34898{
Reid Spencera773bd52006-08-04 18:18:08 +000034899 tmp=
34900 trap 'exit_status=$?
34901 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34902' 0
John Criswell7a73b802003-06-30 21:59:07 +000034903 trap '{ (exit 1); exit 1; }' 1 2 13 15
34904}
John Criswell7a73b802003-06-30 21:59:07 +000034905# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034906
John Criswell7a73b802003-06-30 21:59:07 +000034907{
Reid Spencera773bd52006-08-04 18:18:08 +000034908 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034909 test -n "$tmp" && test -d "$tmp"
34910} ||
34911{
Reid Spencera773bd52006-08-04 18:18:08 +000034912 tmp=./conf$$-$RANDOM
34913 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034914} ||
34915{
John Criswell0c38eaf2003-09-10 15:17:25 +000034916 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034917 { (exit 1); exit 1; }
34918}
34919
John Criswell7a73b802003-06-30 21:59:07 +000034920#
Reid Spencera773bd52006-08-04 18:18:08 +000034921# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034922#
34923
34924# No need to generate the scripts if there are no CONFIG_FILES.
34925# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034926if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034927
34928_ACEOF
34929
Reid Spencera773bd52006-08-04 18:18:08 +000034930
34931
34932ac_delim='%!_!# '
34933for ac_last_try in false false false false false :; do
34934 cat >conf$$subs.sed <<_ACEOF
34935SHELL!$SHELL$ac_delim
34936PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34937PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34938PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34939PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34940PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34941PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34942exec_prefix!$exec_prefix$ac_delim
34943prefix!$prefix$ac_delim
34944program_transform_name!$program_transform_name$ac_delim
34945bindir!$bindir$ac_delim
34946sbindir!$sbindir$ac_delim
34947libexecdir!$libexecdir$ac_delim
34948datarootdir!$datarootdir$ac_delim
34949datadir!$datadir$ac_delim
34950sysconfdir!$sysconfdir$ac_delim
34951sharedstatedir!$sharedstatedir$ac_delim
34952localstatedir!$localstatedir$ac_delim
34953includedir!$includedir$ac_delim
34954oldincludedir!$oldincludedir$ac_delim
34955docdir!$docdir$ac_delim
34956infodir!$infodir$ac_delim
34957htmldir!$htmldir$ac_delim
34958dvidir!$dvidir$ac_delim
34959pdfdir!$pdfdir$ac_delim
34960psdir!$psdir$ac_delim
34961libdir!$libdir$ac_delim
34962localedir!$localedir$ac_delim
34963mandir!$mandir$ac_delim
34964DEFS!$DEFS$ac_delim
34965ECHO_C!$ECHO_C$ac_delim
34966ECHO_N!$ECHO_N$ac_delim
34967ECHO_T!$ECHO_T$ac_delim
34968LIBS!$LIBS$ac_delim
34969build_alias!$build_alias$ac_delim
34970host_alias!$host_alias$ac_delim
34971target_alias!$target_alias$ac_delim
34972LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34973subdirs!$subdirs$ac_delim
34974build!$build$ac_delim
34975build_cpu!$build_cpu$ac_delim
34976build_vendor!$build_vendor$ac_delim
34977build_os!$build_os$ac_delim
34978host!$host$ac_delim
34979host_cpu!$host_cpu$ac_delim
34980host_vendor!$host_vendor$ac_delim
34981host_os!$host_os$ac_delim
34982target!$target$ac_delim
34983target_cpu!$target_cpu$ac_delim
34984target_vendor!$target_vendor$ac_delim
34985target_os!$target_os$ac_delim
34986OS!$OS$ac_delim
34987LINKALL!$LINKALL$ac_delim
34988NOLINKALL!$NOLINKALL$ac_delim
34989LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34990LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034991ARCH!$ARCH$ac_delim
34992ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034993CC!$CC$ac_delim
34994CFLAGS!$CFLAGS$ac_delim
34995LDFLAGS!$LDFLAGS$ac_delim
34996CPPFLAGS!$CPPFLAGS$ac_delim
34997ac_ct_CC!$ac_ct_CC$ac_delim
34998EXEEXT!$EXEEXT$ac_delim
34999OBJEXT!$OBJEXT$ac_delim
35000CPP!$CPP$ac_delim
35001GREP!$GREP$ac_delim
35002EGREP!$EGREP$ac_delim
35003LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35004BUILD_CC!$BUILD_CC$ac_delim
35005BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035006BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035007CVSBUILD!$CVSBUILD$ac_delim
35008ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035009ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035010DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035011ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35012EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035013DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035014JIT!$JIT$ac_delim
35015TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35016ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35017ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035018ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035019TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035020ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035021EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035022BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035023CXX!$CXX$ac_delim
35024CXXFLAGS!$CXXFLAGS$ac_delim
35025ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035026NM!$NM$ac_delim
35027ifGNUmake!$ifGNUmake$ac_delim
35028LN_S!$LN_S$ac_delim
35029CMP!$CMP$ac_delim
35030CP!$CP$ac_delim
35031DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035032_ACEOF
35033
35034 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35035 break
35036 elif $ac_last_try; then
35037 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35038echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35039 { (exit 1); exit 1; }; }
35040 else
35041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035042 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035043done
35044
35045ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35046if test -n "$ac_eof"; then
35047 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35048 ac_eof=`expr $ac_eof + 1`
35049fi
35050
35051cat >>$CONFIG_STATUS <<_ACEOF
35052cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35054_ACEOF
35055sed '
35056s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35057s/^/s,@/; s/!/@,|#_!!_#|/
35058:n
35059t n
35060s/'"$ac_delim"'$/,g/; t
35061s/$/\\/; p
35062N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35063' >>$CONFIG_STATUS <conf$$subs.sed
35064rm -f conf$$subs.sed
35065cat >>$CONFIG_STATUS <<_ACEOF
35066CEOF$ac_eof
35067_ACEOF
35068
35069
35070ac_delim='%!_!# '
35071for ac_last_try in false false false false false :; do
35072 cat >conf$$subs.sed <<_ACEOF
David Greene2a5a12c2009-04-17 14:50:39 +000035073FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035074MKDIR!$MKDIR$ac_delim
35075MV!$MV$ac_delim
35076RANLIB!$RANLIB$ac_delim
35077RM!$RM$ac_delim
35078SED!$SED$ac_delim
35079TAR!$TAR$ac_delim
35080BINPWD!$BINPWD$ac_delim
35081GRAPHVIZ!$GRAPHVIZ$ac_delim
35082DOT!$DOT$ac_delim
35083GV!$GV$ac_delim
35084DOTTY!$DOTTY$ac_delim
35085PERL!$PERL$ac_delim
35086HAVE_PERL!$HAVE_PERL$ac_delim
35087INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35088INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35089INSTALL_DATA!$INSTALL_DATA$ac_delim
35090BZIP2!$BZIP2$ac_delim
35091DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035092GROFF!$GROFF$ac_delim
35093GZIP!$GZIP$ac_delim
35094POD2HTML!$POD2HTML$ac_delim
35095POD2MAN!$POD2MAN$ac_delim
35096RUNTEST!$RUNTEST$ac_delim
35097TCLSH!$TCLSH$ac_delim
35098ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035099OCAMLC!$OCAMLC$ac_delim
35100OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035101OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035102OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035103GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035104INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35105INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35106CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35107CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35108LIBADD_DL!$LIBADD_DL$ac_delim
35109ECHO!$ECHO$ac_delim
35110AR!$AR$ac_delim
35111STRIP!$STRIP$ac_delim
35112CXXCPP!$CXXCPP$ac_delim
35113F77!$F77$ac_delim
35114FFLAGS!$FFLAGS$ac_delim
35115ac_ct_F77!$ac_ct_F77$ac_delim
35116LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035117LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35118LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035119LLVMGCC!$LLVMGCC$ac_delim
35120LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035121USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035122HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035123HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035124ALLOCA!$ALLOCA$ac_delim
35125MMAP_FILE!$MMAP_FILE$ac_delim
35126LLVMCC1!$LLVMCC1$ac_delim
35127LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35128LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035129LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035130LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35131LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035132LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035133SHLIBEXT!$SHLIBEXT$ac_delim
35134LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35135LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35136LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35137LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35138LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35139LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35140LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35141LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35142LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35143LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035144BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35145ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035146OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035147ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035148RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035149RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035150LIBOBJS!$LIBOBJS$ac_delim
35151LTLIBOBJS!$LTLIBOBJS$ac_delim
35152_ACEOF
35153
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Reid Spencera773bd52006-08-04 18:18:08 +000035155 break
35156 elif $ac_last_try; then
35157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35158echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35159 { (exit 1); exit 1; }; }
35160 else
35161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35162 fi
35163done
35164
35165ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35166if test -n "$ac_eof"; then
35167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35168 ac_eof=`expr $ac_eof + 1`
35169fi
35170
35171cat >>$CONFIG_STATUS <<_ACEOF
35172cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35174_ACEOF
35175sed '
35176s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35177s/^/s,@/; s/!/@,|#_!!_#|/
35178:n
35179t n
35180s/'"$ac_delim"'$/,g/; t
35181s/$/\\/; p
35182N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35183' >>$CONFIG_STATUS <conf$$subs.sed
35184rm -f conf$$subs.sed
35185cat >>$CONFIG_STATUS <<_ACEOF
35186:end
35187s/|#_!!_#|//g
35188CEOF$ac_eof
35189_ACEOF
35190
35191
35192# VPATH may cause trouble with some makes, so we remove $(srcdir),
35193# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35194# trailing colons and then remove the whole line if VPATH becomes empty
35195# (actually we leave an empty line to preserve line numbers).
35196if test "x$srcdir" = x.; then
35197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35198s/:*\$(srcdir):*/:/
35199s/:*\${srcdir}:*/:/
35200s/:*@srcdir@:*/:/
35201s/^\([^=]*=[ ]*\):*/\1/
35202s/:*$//
35203s/^[^=]*=[ ]*$//
35204}'
35205fi
35206
35207cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035208fi # test -n "$CONFIG_FILES"
35209
Reid Spencera773bd52006-08-04 18:18:08 +000035210
35211for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35212do
35213 case $ac_tag in
35214 :[FHLC]) ac_mode=$ac_tag; continue;;
35215 esac
35216 case $ac_mode$ac_tag in
35217 :[FHL]*:*);;
35218 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35219echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35220 { (exit 1); exit 1; }; };;
35221 :[FH]-) ac_tag=-:-;;
35222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35223 esac
35224 ac_save_IFS=$IFS
35225 IFS=:
35226 set x $ac_tag
35227 IFS=$ac_save_IFS
35228 shift
35229 ac_file=$1
35230 shift
35231
35232 case $ac_mode in
35233 :L) ac_source=$1;;
35234 :[FH])
35235 ac_file_inputs=
35236 for ac_f
35237 do
35238 case $ac_f in
35239 -) ac_f="$tmp/stdin";;
35240 *) # Look for the file first in the build tree, then in the source tree
35241 # (if the path is not absolute). The absolute path cannot be DOS-style,
35242 # because $ac_f cannot contain `:'.
35243 test -f "$ac_f" ||
35244 case $ac_f in
35245 [\\/$]*) false;;
35246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35247 esac ||
35248 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35249echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35250 { (exit 1); exit 1; }; };;
35251 esac
35252 ac_file_inputs="$ac_file_inputs $ac_f"
35253 done
35254
35255 # Let's still pretend it is `configure' which instantiates (i.e., don't
35256 # use $as_me), people would be surprised to read:
35257 # /* config.h. Generated by config.status. */
35258 configure_input="Generated from "`IFS=:
35259 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35260 if test x"$ac_file" != x-; then
35261 configure_input="$ac_file. $configure_input"
35262 { echo "$as_me:$LINENO: creating $ac_file" >&5
35263echo "$as_me: creating $ac_file" >&6;}
35264 fi
35265
35266 case $ac_tag in
35267 *:-:* | *:-) cat >"$tmp/stdin";;
35268 esac
35269 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035270 esac
35271
Reid Spencera773bd52006-08-04 18:18:08 +000035272 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035274 X"$ac_file" : 'X\(//\)[^/]' \| \
35275 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035276 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035277echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35279 s//\1/
35280 q
35281 }
35282 /^X\(\/\/\)[^/].*/{
35283 s//\1/
35284 q
35285 }
35286 /^X\(\/\/\)$/{
35287 s//\1/
35288 q
35289 }
35290 /^X\(\/\).*/{
35291 s//\1/
35292 q
35293 }
35294 s/.*/./; q'`
35295 { as_dir="$ac_dir"
35296 case $as_dir in #(
35297 -*) as_dir=./$as_dir;;
35298 esac
35299 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035300 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035301 while :; do
35302 case $as_dir in #(
35303 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35304 *) as_qdir=$as_dir;;
35305 esac
35306 as_dirs="'$as_qdir' $as_dirs"
35307 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035308$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035309 X"$as_dir" : 'X\(//\)[^/]' \| \
35310 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035312echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314 s//\1/
35315 q
35316 }
35317 /^X\(\/\/\)[^/].*/{
35318 s//\1/
35319 q
35320 }
35321 /^X\(\/\/\)$/{
35322 s//\1/
35323 q
35324 }
35325 /^X\(\/\).*/{
35326 s//\1/
35327 q
35328 }
35329 s/.*/./; q'`
35330 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035331 done
Reid Spencera773bd52006-08-04 18:18:08 +000035332 test -z "$as_dirs" || eval "mkdir $as_dirs"
35333 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35334echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035335 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035336 ac_builddir=.
35337
Reid Spencera773bd52006-08-04 18:18:08 +000035338case "$ac_dir" in
35339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35340*)
John Criswell7a73b802003-06-30 21:59:07 +000035341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035342 # A ".." for each directory in $ac_dir_suffix.
35343 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35344 case $ac_top_builddir_sub in
35345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35347 esac ;;
35348esac
35349ac_abs_top_builddir=$ac_pwd
35350ac_abs_builddir=$ac_pwd$ac_dir_suffix
35351# for backward compatibility:
35352ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035353
35354case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035355 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035356 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035357 ac_top_srcdir=$ac_top_builddir_sub
35358 ac_abs_top_srcdir=$ac_pwd ;;
35359 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035360 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035361 ac_top_srcdir=$srcdir
35362 ac_abs_top_srcdir=$srcdir ;;
35363 *) # Relative name.
35364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35365 ac_top_srcdir=$ac_top_build_prefix$srcdir
35366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035367esac
Reid Spencera773bd52006-08-04 18:18:08 +000035368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035369
John Criswell7a73b802003-06-30 21:59:07 +000035370
Reid Spencera773bd52006-08-04 18:18:08 +000035371 case $ac_mode in
35372 :F)
35373 #
35374 # CONFIG_FILE
35375 #
John Criswell7a73b802003-06-30 21:59:07 +000035376
35377 case $INSTALL in
35378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035380 esac
John Criswell7a73b802003-06-30 21:59:07 +000035381_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035382
35383cat >>$CONFIG_STATUS <<\_ACEOF
35384# If the template does not know about datarootdir, expand it.
35385# FIXME: This hack should be removed a few years after 2.60.
35386ac_datarootdir_hack=; ac_datarootdir_seen=
35387
35388case `sed -n '/datarootdir/ {
35389 p
35390 q
35391}
35392/@datadir@/p
35393/@docdir@/p
35394/@infodir@/p
35395/@localedir@/p
35396/@mandir@/p
35397' $ac_file_inputs` in
35398*datarootdir*) ac_datarootdir_seen=yes;;
35399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35400 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35401echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35402_ACEOF
35403cat >>$CONFIG_STATUS <<_ACEOF
35404 ac_datarootdir_hack='
35405 s&@datadir@&$datadir&g
35406 s&@docdir@&$docdir&g
35407 s&@infodir@&$infodir&g
35408 s&@localedir@&$localedir&g
35409 s&@mandir@&$mandir&g
35410 s&\\\${datarootdir}&$datarootdir&g' ;;
35411esac
35412_ACEOF
35413
35414# Neutralize VPATH when `$srcdir' = `.'.
35415# Shell code in configure.ac might set extrasub.
35416# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035417cat >>$CONFIG_STATUS <<_ACEOF
35418 sed "$ac_vpsub
35419$extrasub
35420_ACEOF
35421cat >>$CONFIG_STATUS <<\_ACEOF
35422:t
35423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035424s&@configure_input@&$configure_input&;t t
35425s&@top_builddir@&$ac_top_builddir_sub&;t t
35426s&@srcdir@&$ac_srcdir&;t t
35427s&@abs_srcdir@&$ac_abs_srcdir&;t t
35428s&@top_srcdir@&$ac_top_srcdir&;t t
35429s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35430s&@builddir@&$ac_builddir&;t t
35431s&@abs_builddir@&$ac_abs_builddir&;t t
35432s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35433s&@INSTALL@&$ac_INSTALL&;t t
35434$ac_datarootdir_hack
35435" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035436
Reid Spencera773bd52006-08-04 18:18:08 +000035437test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35440 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35441which seems to be undefined. Please make sure it is defined." >&5
35442echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35443which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035444
Reid Spencera773bd52006-08-04 18:18:08 +000035445 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035446 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035447 -) cat "$tmp/out"; rm -f "$tmp/out";;
35448 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035449 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035450 ;;
35451 :H)
35452 #
35453 # CONFIG_HEADER
35454 #
John Criswell7a73b802003-06-30 21:59:07 +000035455_ACEOF
35456
Reid Spencera773bd52006-08-04 18:18:08 +000035457# Transform confdefs.h into a sed script `conftest.defines', that
35458# substitutes the proper values into config.h.in to produce config.h.
35459rm -f conftest.defines conftest.tail
35460# First, append a space to every undef/define line, to ease matching.
35461echo 's/$/ /' >conftest.defines
35462# Then, protect against being on the right side of a sed subst, or in
35463# an unquoted here document, in config.status. If some macros were
35464# called several times there might be several #defines for the same
35465# symbol, which is useless. But do not sort them, since the last
35466# AC_DEFINE must be honored.
35467ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35468# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35469# NAME is the cpp macro being defined, VALUE is the value it is being given.
35470# PARAMS is the parameter list in the macro definition--in most cases, it's
35471# just an empty string.
35472ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35473ac_dB='\\)[ (].*,\\1define\\2'
35474ac_dC=' '
35475ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035476
Reid Spencera773bd52006-08-04 18:18:08 +000035477uniq confdefs.h |
35478 sed -n '
35479 t rset
35480 :rset
35481 s/^[ ]*#[ ]*define[ ][ ]*//
35482 t ok
35483 d
35484 :ok
35485 s/[\\&,]/\\&/g
35486 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35487 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35488 ' >>conftest.defines
35489
35490# Remove the space that was appended to ease matching.
35491# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035492# example, in the case of _POSIX_SOURCE, which is predefined and required
35493# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035494# (The regexp can be short, since the line contains either #define or #undef.)
35495echo 's/ $//
35496s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035497
Reid Spencera773bd52006-08-04 18:18:08 +000035498# Break up conftest.defines:
35499ac_max_sed_lines=50
35500
35501# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35502# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35503# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35504# et cetera.
35505ac_in='$ac_file_inputs'
35506ac_out='"$tmp/out1"'
35507ac_nxt='"$tmp/out2"'
35508
35509while :
John Criswell7a73b802003-06-30 21:59:07 +000035510do
Reid Spencera773bd52006-08-04 18:18:08 +000035511 # Write a here document:
35512 cat >>$CONFIG_STATUS <<_ACEOF
35513 # First, check the format of the line:
35514 cat >"\$tmp/defines.sed" <<\\CEOF
35515/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35516/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35517b
35518:def
35519_ACEOF
35520 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035521 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035522 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35523 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35524 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35525 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035526 rm -f conftest.defines
35527 mv conftest.tail conftest.defines
35528done
Reid Spencera773bd52006-08-04 18:18:08 +000035529rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035530
Reid Spencera773bd52006-08-04 18:18:08 +000035531echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035532cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035533 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035534 echo "/* $configure_input */" >"$tmp/config.h"
35535 cat "$ac_result" >>"$tmp/config.h"
35536 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35538echo "$as_me: $ac_file is unchanged" >&6;}
35539 else
John Criswell7a73b802003-06-30 21:59:07 +000035540 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035541 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035542 fi
35543 else
Reid Spencera773bd52006-08-04 18:18:08 +000035544 echo "/* $configure_input */"
35545 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035546 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035547 rm -f "$tmp/out12"
35548 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035549
Reid Spencera773bd52006-08-04 18:18:08 +000035550 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35551echo "$as_me: executing $ac_file commands" >&6;}
35552 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035553 esac
John Criswell7a73b802003-06-30 21:59:07 +000035554
Reid Spencera773bd52006-08-04 18:18:08 +000035555
35556 case $ac_file$ac_mode in
35557 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35559 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35561 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35563 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035565 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035567 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35569 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035571 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035573 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35575 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35577 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35578 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035579 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35580 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35581 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035583
35584 esac
35585done # for ac_tag
35586
John Criswell7a73b802003-06-30 21:59:07 +000035587
35588{ (exit 0); exit 0; }
35589_ACEOF
35590chmod +x $CONFIG_STATUS
35591ac_clean_files=$ac_clean_files_save
35592
35593
35594# configure is writing to config.log, and then calls config.status.
35595# config.status does its own redirection, appending to config.log.
35596# Unfortunately, on DOS this fails, as config.log is still kept open
35597# by configure, so config.status won't be able to write to it; its
35598# output is simply discarded. So we exec the FD to /dev/null,
35599# effectively closing config.log, so it can be properly (re)opened and
35600# appended to by config.status. When coming back to configure, we
35601# need to make the FD available again.
35602if test "$no_create" != yes; then
35603 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035604 ac_config_status_args=
35605 test "$silent" = yes &&
35606 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035607 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035609 exec 5>>config.log
35610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35611 # would make configure fail if this is the last instruction.
35612 $ac_cs_success || { (exit 1); exit 1; }
35613fi
35614
John Criswell12399a12003-09-30 15:55:44 +000035615#
35616# CONFIG_SUBDIRS section.
35617#
35618if test "$no_recursion" != yes; then
35619
35620 # Remove --cache-file and --srcdir arguments so they do not pile up.
35621 ac_sub_configure_args=
35622 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035623 eval "set x $ac_configure_args"
35624 shift
35625 for ac_arg
35626 do
John Criswell12399a12003-09-30 15:55:44 +000035627 if test -n "$ac_prev"; then
35628 ac_prev=
35629 continue
35630 fi
35631 case $ac_arg in
35632 -cache-file | --cache-file | --cache-fil | --cache-fi \
35633 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35634 ac_prev=cache_file ;;
35635 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35636 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35637 | --c=*)
35638 ;;
35639 --config-cache | -C)
35640 ;;
35641 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35642 ac_prev=srcdir ;;
35643 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35644 ;;
35645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35646 ac_prev=prefix ;;
35647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035649 *)
35650 case $ac_arg in
35651 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35652 esac
35653 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035654 esac
35655 done
35656
35657 # Always prepend --prefix to ensure using the same prefix
35658 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035659 ac_arg="--prefix=$prefix"
35660 case $ac_arg in
35661 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35662 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035663 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035664
35665 ac_popdir=`pwd`
35666 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35667
35668 # Do not complain, so a configure script can configure whichever
35669 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035670 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035671
Reid Spencera773bd52006-08-04 18:18:08 +000035672 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35673 echo "$as_me:$LINENO: $ac_msg" >&5
35674 echo "$ac_msg" >&6
35675 { as_dir="$ac_dir"
35676 case $as_dir in #(
35677 -*) as_dir=./$as_dir;;
35678 esac
35679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035680 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035681 while :; do
35682 case $as_dir in #(
35683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35684 *) as_qdir=$as_dir;;
35685 esac
35686 as_dirs="'$as_qdir' $as_dirs"
35687 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035689 X"$as_dir" : 'X\(//\)[^/]' \| \
35690 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035692echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35694 s//\1/
35695 q
35696 }
35697 /^X\(\/\/\)[^/].*/{
35698 s//\1/
35699 q
35700 }
35701 /^X\(\/\/\)$/{
35702 s//\1/
35703 q
35704 }
35705 /^X\(\/\).*/{
35706 s//\1/
35707 q
35708 }
35709 s/.*/./; q'`
35710 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035711 done
Reid Spencera773bd52006-08-04 18:18:08 +000035712 test -z "$as_dirs" || eval "mkdir $as_dirs"
35713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35714echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035715 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035716 ac_builddir=.
35717
Reid Spencera773bd52006-08-04 18:18:08 +000035718case "$ac_dir" in
35719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35720*)
John Criswell12399a12003-09-30 15:55:44 +000035721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035722 # A ".." for each directory in $ac_dir_suffix.
35723 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35724 case $ac_top_builddir_sub in
35725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35727 esac ;;
35728esac
35729ac_abs_top_builddir=$ac_pwd
35730ac_abs_builddir=$ac_pwd$ac_dir_suffix
35731# for backward compatibility:
35732ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035733
35734case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035735 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035736 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035737 ac_top_srcdir=$ac_top_builddir_sub
35738 ac_abs_top_srcdir=$ac_pwd ;;
35739 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035740 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035741 ac_top_srcdir=$srcdir
35742 ac_abs_top_srcdir=$srcdir ;;
35743 *) # Relative name.
35744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35745 ac_top_srcdir=$ac_top_build_prefix$srcdir
35746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035747esac
Reid Spencera773bd52006-08-04 18:18:08 +000035748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035749
35750
Reid Spencera773bd52006-08-04 18:18:08 +000035751 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035752
35753 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035754 if test -f "$ac_srcdir/configure.gnu"; then
35755 ac_sub_configure=$ac_srcdir/configure.gnu
35756 elif test -f "$ac_srcdir/configure"; then
35757 ac_sub_configure=$ac_srcdir/configure
35758 elif test -f "$ac_srcdir/configure.in"; then
35759 # This should be Cygnus configure.
35760 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035761 else
35762 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35763echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35764 ac_sub_configure=
35765 fi
35766
35767 # The recursion is here.
35768 if test -n "$ac_sub_configure"; then
35769 # Make the cache file name correct relative to the subdirectory.
35770 case $cache_file in
35771 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035772 *) # Relative name.
35773 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035774 esac
35775
Reid Spencera773bd52006-08-04 18:18:08 +000035776 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35777echo "$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 +000035778 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035779 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35780 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035781 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035782echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35783 { (exit 1); exit 1; }; }
35784 fi
35785
Reid Spencera773bd52006-08-04 18:18:08 +000035786 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035787 done
35788fi
35789