blob: 28a3cfe9f3b66a15a2abac0e50b26ae35a0c1e75 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000840JIT
841TARGET_HAS_JIT
842ENABLE_DOXYGEN
843ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000844ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000845TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000846LLVM_ENUM_TARGETS
847LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000848LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000849ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000850EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000851BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000852ENABLE_LLVMC_DYNAMIC
853ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000854CXX
855CXXFLAGS
856ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000857NM
858ifGNUmake
859LN_S
860CMP
861CP
862DATE
863FIND
864MKDIR
865MV
866RANLIB
867RM
868SED
869TAR
870BINPWD
871GRAPHVIZ
872DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000873FDP
874NEATO
875TWOPI
876CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000877GV
878DOTTY
879PERL
880HAVE_PERL
881INSTALL_PROGRAM
882INSTALL_SCRIPT
883INSTALL_DATA
884BZIP2
885DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000886GROFF
887GZIP
888POD2HTML
889POD2MAN
890RUNTEST
891TCLSH
892ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000893OCAMLC
894OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000895OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000896OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000897GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000898INSTALL_LTDL_TRUE
899INSTALL_LTDL_FALSE
900CONVENIENCE_LTDL_TRUE
901CONVENIENCE_LTDL_FALSE
902LIBADD_DL
903ECHO
904AR
905STRIP
906CXXCPP
907F77
908FFLAGS
909ac_ct_F77
910LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000911LLVMGCCCOMMAND
912LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000913LLVMGCC
914LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000915USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000916USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000917HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000918HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000919ALLOCA
920MMAP_FILE
921LLVMCC1
922LLVMCC1PLUS
923LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000924LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000925LLVMGCC_VERSION
926LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000927LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000928SHLIBEXT
929LLVM_PREFIX
930LLVM_BINDIR
931LLVM_LIBDIR
932LLVM_DATADIR
933LLVM_DOCSDIR
934LLVM_ETCDIR
935LLVM_INCLUDEDIR
936LLVM_INFODIR
937LLVM_MANDIR
938LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000939BINDINGS_TO_BUILD
940ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000941OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000942ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000943RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000944RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000945LIBOBJS
946LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000947ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000948 ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
954CPPFLAGS
955CPP
956CXX
957CXXFLAGS
958CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000959CXXCPP
960F77
961FFLAGS'
962ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000964projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000965projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000966projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000967projects/llvm-reopt
968projects/llvm-gcc
969projects/llvm-java
970projects/llvm-tv
971projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000972projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000973projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000974
975# Initialize some variables set by options.
976ac_init_help=
977ac_init_version=false
978# The variables have the same names as the options, with
979# dashes changed to underlines.
980cache_file=/dev/null
981exec_prefix=NONE
982no_create=
983no_recursion=
984prefix=NONE
985program_prefix=NONE
986program_suffix=NONE
987program_transform_name=s,x,x,
988silent=
989site=
990srcdir=
991verbose=
992x_includes=NONE
993x_libraries=NONE
994
995# Installation directory options.
996# These are left unexpanded so users can "make install exec_prefix=/foo"
997# and all the variables that are supposed to be based on exec_prefix
998# by default will actually change.
999# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001000# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001001bindir='${exec_prefix}/bin'
1002sbindir='${exec_prefix}/sbin'
1003libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001004datarootdir='${prefix}/share'
1005datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001006sysconfdir='${prefix}/etc'
1007sharedstatedir='${prefix}/com'
1008localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001009includedir='${prefix}/include'
1010oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001011docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012infodir='${datarootdir}/info'
1013htmldir='${docdir}'
1014dvidir='${docdir}'
1015pdfdir='${docdir}'
1016psdir='${docdir}'
1017libdir='${exec_prefix}/lib'
1018localedir='${datarootdir}/locale'
1019mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001022ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001023for ac_option
1024do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001027 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001028 ac_prev=
1029 continue
1030 fi
1031
Reid Spencera773bd52006-08-04 18:18:08 +00001032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
John Criswell7a73b802003-06-30 21:59:07 +00001036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
Reid Spencera773bd52006-08-04 18:18:08 +00001039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
Reid Spencera773bd52006-08-04 18:18:08 +00001063 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001064 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001066 datadir=$ac_optarg ;;
1067
Reid Spencera773bd52006-08-04 18:18:08 +00001068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
John Criswell7a73b802003-06-30 21:59:07 +00001075 -disable-* | --disable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001082 eval enable_$ac_feature=no ;;
1083
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1088
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001093
1094 -enable-* | --enable-*)
1095 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001097 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001098 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001100 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001101 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
Reid Spencera773bd52006-08-04 18:18:08 +00001128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
John Criswell7a73b802003-06-30 21:59:07 +00001134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
Reid Spencera773bd52006-08-04 18:18:08 +00001158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
John Criswell7a73b802003-06-30 21:59:07 +00001163 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001164 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
Reid Spencera773bd52006-08-04 18:18:08 +00001232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
John Criswell7a73b802003-06-30 21:59:07 +00001242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001297 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001298 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001299
1300 -without-* | --without-*)
1301 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001303 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001306 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001307 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001308
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1312
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1319
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1326
1327 -*) { echo "$as_me: error: unrecognized option: $ac_option
1328Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1330 ;;
1331
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001338 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001339 export $ac_envvar ;;
1340
1341 *)
1342 # FIXME: should be removed in autoconf 3.0.
1343 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 ;;
1348
1349 esac
1350done
1351
1352if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1356fi
1357
Reid Spencera773bd52006-08-04 18:18:08 +00001358# Be sure to have absolute directory names.
1359for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001363do
Reid Spencera773bd52006-08-04 18:18:08 +00001364 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001365 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001368 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001369 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001371done
1372
1373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
1375# FIXME: To remove some day.
1376build=$build_alias
1377host=$host_alias
1378target=$target_alias
1379
1380# FIXME: To remove some day.
1381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
1395
1396
Reid Spencera773bd52006-08-04 18:18:08 +00001397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { echo "$as_me: error: Working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1405
1406
John Criswell7a73b802003-06-30 21:59:07 +00001407# Find the source files, if location was not specified.
1408if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001412$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001413 X"$0" : 'X\(//\)[^/]' \| \
1414 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001416echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\).*/{
1430 s//\1/
1431 q
1432 }
1433 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001434 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001435 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001436 srcdir=..
1437 fi
1438else
1439 ac_srcdir_defaulted=no
1440fi
Reid Spencera773bd52006-08-04 18:18:08 +00001441if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001444 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001445fi
Reid Spencera773bd52006-08-04 18:18:08 +00001446ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001449 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001450 pwd)`
1451# When building in place, set srcdir=.
1452if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454fi
1455# Remove unnecessary trailing slashes from srcdir.
1456# Double slashes in file names in object file debugging info
1457# mess up M-x gdb in Emacs.
1458case $srcdir in
1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460esac
1461for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466done
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468#
1469# Report the --help message.
1470#
1471if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001475\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482Defaults for the options are specified in brackets.
1483
1484Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
John Criswell7a73b802003-06-30 21:59:07 +00001495Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001497 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001499 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001500
1501By default, \`make install' will install all the files in
1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504for instance \`--prefix=\$HOME'.
1505
1506For better control, use the options below.
1507
1508Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001528_ACEOF
1529
1530 cat <<\_ACEOF
1531
1532System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1536_ACEOF
1537fi
1538
1539if test -n "$ac_init_help"; then
1540 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001541 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001542 esac
1543 cat <<\_ACEOF
1544
1545Optional Features:
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001548 --enable-optimized Compile with optimizations enabled (default is NO)
1549 --enable-profiling Compile with profiling enabled (default is NO)
1550 --enable-assertions Compile with assertion checks enabled (default is
1551 YES)
David Greenea696d242007-06-28 19:36:08 +00001552 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001553 Compile with expensive debug checks enabled (default
1554 is NO)
1555 --enable-debug-runtime Build runtime libs with debug symbols (default is
1556 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001557 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001558 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001559 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001560 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001561 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001562 --enable-targets Build specific host targets: all or
1563 target1,target2,... Valid targets are: host, x86,
1564 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1565 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1566 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1568 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001571 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001572 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1573 Win32)
1574 --enable-llvmc-dynamic-plugins
1575 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001576 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001577 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001578 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001579 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001580 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001581 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001582 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001583 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001584 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001585
1586Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001589 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1590 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001591 --with-llvmgcc Specify location of llvm-gcc driver (default
1592 searches PATH)
1593 --with-llvmgxx Specify location of llvm-g++ driver (default
1594 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001595 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001596 --with-ocaml-libdir Specify install location for ocaml bindings (default
1597 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001598 --with-binutils-include Specify path to binutils/include/ containing
1599 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001600 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-pic try to use only PIC/non-PIC objects [default=use
1603 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001604 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001605 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001606 --with-oprofile=<prefix>
1607 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001608
1609Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001610 CC C compiler command
1611 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001616 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001617 CXX C++ compiler command
1618 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001619 CXXCPP C++ preprocessor
1620 F77 Fortran 77 compiler command
1621 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001622
1623Use these variables to override the choices made by `configure' or to help
1624it to find libraries and programs with nonstandard names/locations.
1625
1626Report bugs to <llvmbugs@cs.uiuc.edu>.
1627_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001628ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001629fi
1630
1631if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001634 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_builddir=.
1636
Reid Spencera773bd52006-08-04 18:18:08 +00001637case "$ac_dir" in
1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639*)
John Criswell7a73b802003-06-30 21:59:07 +00001640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 esac ;;
1647esac
1648ac_abs_top_builddir=$ac_pwd
1649ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650# for backward compatibility:
1651ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001654 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001655 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001659 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1662 *) # Relative name.
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001666esac
Reid Spencera773bd52006-08-04 18:18:08 +00001667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001668
Reid Spencera773bd52006-08-04 18:18:08 +00001669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for guested configure.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001677 else
1678 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001679 fi || ac_status=$?
1680 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001681 done
1682fi
1683
Reid Spencera773bd52006-08-04 18:18:08 +00001684test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001685if $ac_init_version; then
1686 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001687llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001688generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001689
Reid Spencera773bd52006-08-04 18:18:08 +00001690Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16912002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001694
Tanya Lattnerc2264592009-08-22 21:01:26 +00001695Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001696_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001697 exit
John Criswell7a73b802003-06-30 21:59:07 +00001698fi
Reid Spencera773bd52006-08-04 18:18:08 +00001699cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001700This file contains any messages produced by compilers while
1701running configure, to aid debugging if configure makes a mistake.
1702
Tanya Lattner953042b2009-08-22 04:37:30 +00001703It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001704generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001705
1706 $ $0 $@
1707
1708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001709exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001710{
1711cat <<_ASUNAME
1712## --------- ##
1713## Platform. ##
1714## --------- ##
1715
1716hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721
1722/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724
1725/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001728/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001729/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732
1733_ASUNAME
1734
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 echo "PATH: $as_dir"
1741done
Reid Spencera773bd52006-08-04 18:18:08 +00001742IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001743
1744} >&5
1745
1746cat >&5 <<_ACEOF
1747
1748
1749## ----------- ##
1750## Core tests. ##
1751## ----------- ##
1752
1753_ACEOF
1754
1755
1756# Keep a trace of the command line.
1757# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001759# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001760# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001761ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001762ac_configure_args0=
1763ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001764ac_must_keep_next=false
1765for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001766do
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 for ac_arg
1768 do
1769 case $ac_arg in
1770 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772 | -silent | --silent | --silen | --sile | --sil)
1773 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001774 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 esac
1777 case $ac_pass in
1778 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1779 2)
1780 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1781 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001782 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001783 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001784 case $ac_arg in
1785 *=* | --config-cache | -C | -disable-* | --disable-* \
1786 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1787 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1788 | -with-* | --with-* | -without-* | --without-* | --x)
1789 case "$ac_configure_args0 " in
1790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 esac
1792 ;;
1793 -* ) ac_must_keep_next=true ;;
1794 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001795 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001796 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001797 ;;
1798 esac
1799 done
John Criswell7a73b802003-06-30 21:59:07 +00001800done
John Criswell0c38eaf2003-09-10 15:17:25 +00001801$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1802$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 +00001803
1804# When interrupted or exit'd, cleanup temporary files, and complete
1805# config.log. We remove comments because anyway the quotes in there
1806# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001807# WARNING: Use '\'' to represent an apostrophe within the trap.
1808# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001809trap 'exit_status=$?
1810 # Save into config.log some information that might help in debugging.
1811 {
1812 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001813
John Criswell7a73b802003-06-30 21:59:07 +00001814 cat <<\_ASBOX
1815## ---------------- ##
1816## Cache variables. ##
1817## ---------------- ##
1818_ASBOX
1819 echo
1820 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001821(
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in #(
1825 *${as_nl}*)
1826 case $ac_var in #(
1827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1828echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829 esac
1830 case $ac_var in #(
1831 _ | IFS | as_nl) ;; #(
1832 *) $as_unset $ac_var ;;
1833 esac ;;
1834 esac
1835 done
John Criswell7a73b802003-06-30 21:59:07 +00001836 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001839 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001843 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001846 esac |
1847 sort
1848)
John Criswell7a73b802003-06-30 21:59:07 +00001849 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001850
1851 cat <<\_ASBOX
1852## ----------------- ##
1853## Output variables. ##
1854## ----------------- ##
1855_ASBOX
1856 echo
1857 for ac_var in $ac_subst_vars
1858 do
Reid Spencera773bd52006-08-04 18:18:08 +00001859 eval ac_val=\$$ac_var
1860 case $ac_val in
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 esac
1863 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001864 done | sort
1865 echo
1866
1867 if test -n "$ac_subst_files"; then
1868 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001869## ------------------- ##
1870## File substitutions. ##
1871## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001872_ASBOX
1873 echo
1874 for ac_var in $ac_subst_files
1875 do
Reid Spencera773bd52006-08-04 18:18:08 +00001876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001881 done | sort
1882 echo
1883 fi
1884
John Criswell7a73b802003-06-30 21:59:07 +00001885 if test -s confdefs.h; then
1886 cat <<\_ASBOX
1887## ----------- ##
1888## confdefs.h. ##
1889## ----------- ##
1890_ASBOX
1891 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001892 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001893 echo
1894 fi
1895 test "$ac_signal" != 0 &&
1896 echo "$as_me: caught signal $ac_signal"
1897 echo "$as_me: exit $exit_status"
1898 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001901 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001902' 0
John Criswell7a73b802003-06-30 21:59:07 +00001903for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905done
1906ac_signal=0
1907
1908# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001909rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001910
1911# Predefined preprocessor variables.
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_NAME "$PACKAGE_NAME"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_VERSION "$PACKAGE_VERSION"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_STRING "$PACKAGE_STRING"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935_ACEOF
1936
1937
1938# Let the site file select an alternate cache file if it wants to.
1939# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001940if test -n "$CONFIG_SITE"; then
1941 set x "$CONFIG_SITE"
1942elif test "x$prefix" != xNONE; then
1943 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1944else
1945 set x "$ac_default_prefix/share/config.site" \
1946 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001947fi
Reid Spencera773bd52006-08-04 18:18:08 +00001948shift
1949for ac_site_file
1950do
John Criswell7a73b802003-06-30 21:59:07 +00001951 if test -r "$ac_site_file"; then
1952 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1955 . "$ac_site_file"
1956 fi
1957done
1958
1959if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964echo "$as_me: loading cache $cache_file" >&6;}
1965 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001968 esac
1969 fi
1970else
1971 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972echo "$as_me: creating cache $cache_file" >&6;}
1973 >$cache_file
1974fi
1975
1976# Check that the precious variables saved in the cache have kept the same
1977# value.
1978ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001979for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001984 case $ac_old_set,$ac_new_set in
1985 set,)
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,set)
1990 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1993 ,);;
1994 *)
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001996 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001997echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001998 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001999echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002000 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002001echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002002 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002003 fi;;
2004 esac
2005 # Pass precious variables to config.status.
2006 if test "$ac_new_set" = set; then
2007 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002008 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002009 *) ac_arg=$ac_var=$ac_new_val ;;
2010 esac
2011 case " $ac_configure_args " in
2012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2013 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 esac
2015 fi
2016done
2017if $ac_cache_corrupted; then
2018 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022 { (exit 1); exit 1; }; }
2023fi
2024
Reid Spencera773bd52006-08-04 18:18:08 +00002025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
John Criswell7a73b802003-06-30 21:59:07 +00002049ac_ext=c
2050ac_cpp='$CPP $CPPFLAGS'
2051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
Tanya Lattnerc2264592009-08-22 21:01:26 +00002057LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058
2059
2060
2061
2062
2063
2064
John Criswell7a73b802003-06-30 21:59:07 +00002065ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002066for ac_dir in autoconf "$srcdir"/autoconf; do
2067 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 break
Reid Spencera773bd52006-08-04 18:18:08 +00002071 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 break
Reid Spencera773bd52006-08-04 18:18:08 +00002075 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 break
2079 fi
2080done
2081if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2083echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002084 { (exit 1); exit 1; }; }
2085fi
Reid Spencera773bd52006-08-04 18:18:08 +00002086
2087# These three variables are undocumented and unsupported,
2088# and are intended to be withdrawn in a future Autoconf release.
2089# They can cause serious problems if a builder's source tree is in a directory
2090# whose full name contains unusual characters.
2091ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094
John Criswell7a73b802003-06-30 21:59:07 +00002095
John Criswell392aaa32003-07-22 19:18:09 +00002096
Reid Spencer2706f8c2004-09-19 23:53:36 +00002097if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002098 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2099 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002100echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2101 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102 fi
John Criswell93e1c722003-09-15 17:04:06 +00002103fi
2104
John Criswell33a911a2003-11-25 20:36:46 +00002105for i in `ls ${srcdir}/projects`
2106do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 if test -d ${srcdir}/projects/${i} ; then
2108 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 CVS) ;;
2110 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002116 # llvm-test is the old name of the test-suite, kept here for backwards
2117 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002118 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002120 test-suite) subdirs="$subdirs projects/test-suite"
2121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002125 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002126 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002127 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002128 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002129 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002130 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002131 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002132 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002133 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002134 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002135 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002136 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002137 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2138echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002139 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002140 esac
John Criswell33a911a2003-11-25 20:36:46 +00002141 fi
2142done
John Criswell559a6c12003-09-30 16:31:48 +00002143
John Criswell7a73b802003-06-30 21:59:07 +00002144
2145# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002146$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2147 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2148echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002149 { (exit 1); exit 1; }; }
2150
Reid Spencera773bd52006-08-04 18:18:08 +00002151{ echo "$as_me:$LINENO: checking build system type" >&5
2152echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002153if test "${ac_cv_build+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
Reid Spencera773bd52006-08-04 18:18:08 +00002156 ac_build_alias=$build_alias
2157test "x$ac_build_alias" = x &&
2158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2159test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002160 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2161echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2162 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002163ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2164 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2165echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 1); exit 1; }; }
2167
2168fi
Reid Spencera773bd52006-08-04 18:18:08 +00002169{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2170echo "${ECHO_T}$ac_cv_build" >&6; }
2171case $ac_cv_build in
2172*-*-*) ;;
2173*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2174echo "$as_me: error: invalid value of canonical build" >&2;}
2175 { (exit 1); exit 1; }; };;
2176esac
John Criswell7a73b802003-06-30 21:59:07 +00002177build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002178ac_save_IFS=$IFS; IFS='-'
2179set x $ac_cv_build
2180shift
2181build_cpu=$1
2182build_vendor=$2
2183shift; shift
2184# Remember, the first character of IFS is used to create $*,
2185# except with old shells:
2186build_os=$*
2187IFS=$ac_save_IFS
2188case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002189
2190
Reid Spencera773bd52006-08-04 18:18:08 +00002191{ echo "$as_me:$LINENO: checking host system type" >&5
2192echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002193if test "${ac_cv_host+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
Reid Spencera773bd52006-08-04 18:18:08 +00002196 if test "x$host_alias" = x; then
2197 ac_cv_host=$ac_cv_build
2198else
2199 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2200 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2201echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002202 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002203fi
John Criswell7a73b802003-06-30 21:59:07 +00002204
2205fi
Reid Spencera773bd52006-08-04 18:18:08 +00002206{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2207echo "${ECHO_T}$ac_cv_host" >&6; }
2208case $ac_cv_host in
2209*-*-*) ;;
2210*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2211echo "$as_me: error: invalid value of canonical host" >&2;}
2212 { (exit 1); exit 1; }; };;
2213esac
John Criswell7a73b802003-06-30 21:59:07 +00002214host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002215ac_save_IFS=$IFS; IFS='-'
2216set x $ac_cv_host
2217shift
2218host_cpu=$1
2219host_vendor=$2
2220shift; shift
2221# Remember, the first character of IFS is used to create $*,
2222# except with old shells:
2223host_os=$*
2224IFS=$ac_save_IFS
2225case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002226
2227
Reid Spencera773bd52006-08-04 18:18:08 +00002228{ echo "$as_me:$LINENO: checking target system type" >&5
2229echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002230if test "${ac_cv_target+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
Reid Spencera773bd52006-08-04 18:18:08 +00002233 if test "x$target_alias" = x; then
2234 ac_cv_target=$ac_cv_host
2235else
2236 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2237 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2238echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002240fi
John Criswell7a73b802003-06-30 21:59:07 +00002241
2242fi
Reid Spencera773bd52006-08-04 18:18:08 +00002243{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2244echo "${ECHO_T}$ac_cv_target" >&6; }
2245case $ac_cv_target in
2246*-*-*) ;;
2247*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2248echo "$as_me: error: invalid value of canonical target" >&2;}
2249 { (exit 1); exit 1; }; };;
2250esac
John Criswell7a73b802003-06-30 21:59:07 +00002251target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002252ac_save_IFS=$IFS; IFS='-'
2253set x $ac_cv_target
2254shift
2255target_cpu=$1
2256target_vendor=$2
2257shift; shift
2258# Remember, the first character of IFS is used to create $*,
2259# except with old shells:
2260target_os=$*
2261IFS=$ac_save_IFS
2262case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002263
2264
2265# The aliases save the names the user supplied, while $host etc.
2266# will get canonicalized.
2267test -n "$target_alias" &&
2268 test "$program_prefix$program_suffix$program_transform_name" = \
2269 NONENONEs,x,x, &&
2270 program_prefix=${target_alias}-
2271
Reid Spencera773bd52006-08-04 18:18:08 +00002272{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2273echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002277 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="AIX"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002283 *-*-irix*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="IRIX"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Cygwin"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002295 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Darwin"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="FreeBSD"
2302 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002303 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002306 llvm_cv_os_type="OpenBSD"
2307 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002308 *-*-netbsd*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="NetBSD"
2312 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002313 *-*-dragonfly*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="DragonFly"
2317 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002318 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002321 llvm_cv_os_type="HP-UX"
2322 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="Interix"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="Linux"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002334 llvm_cv_link_all_option="-Wl,-z,allextract"
2335 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 llvm_cv_os_type="SunOS"
2337 llvm_cv_platform_type="Unix" ;;
2338 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341 llvm_cv_os_type="Win32"
2342 llvm_cv_platform_type="Win32" ;;
2343 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002344 llvm_cv_link_all_option="-Wl,--whole-archive"
2345 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 llvm_cv_os_type="MingW"
2347 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002348 *-unknown-eabi*)
2349 llvm_cv_link_all_option="-Wl,--whole-archive"
2350 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2351 llvm_cv_os_type="Freestanding"
2352 llvm_cv_platform_type="Unix" ;;
2353 *-unknown-elf*)
2354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356 llvm_cv_os_type="Freestanding"
2357 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002359 llvm_cv_link_all_option=""
2360 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 llvm_cv_os_type="Unknown"
2362 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002363esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002364fi
Reid Spencera773bd52006-08-04 18:18:08 +00002365{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2366echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002367
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002368{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2369echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2370if test "${llvm_cv_target_os_type+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373 case $target in
2374 *-*-aix*)
2375 llvm_cv_target_os_type="AIX" ;;
2376 *-*-irix*)
2377 llvm_cv_target_os_type="IRIX" ;;
2378 *-*-cygwin*)
2379 llvm_cv_target_os_type="Cygwin" ;;
2380 *-*-darwin*)
2381 llvm_cv_target_os_type="Darwin" ;;
2382 *-*-freebsd*)
2383 llvm_cv_target_os_type="FreeBSD" ;;
2384 *-*-openbsd*)
2385 llvm_cv_target_os_type="OpenBSD" ;;
2386 *-*-netbsd*)
2387 llvm_cv_target_os_type="NetBSD" ;;
2388 *-*-dragonfly*)
2389 llvm_cv_target_os_type="DragonFly" ;;
2390 *-*-hpux*)
2391 llvm_cv_target_os_type="HP-UX" ;;
2392 *-*-interix*)
2393 llvm_cv_target_os_type="Interix" ;;
2394 *-*-linux*)
2395 llvm_cv_target_os_type="Linux" ;;
2396 *-*-solaris*)
2397 llvm_cv_target_os_type="SunOS" ;;
2398 *-*-win32*)
2399 llvm_cv_target_os_type="Win32" ;;
2400 *-*-mingw*)
2401 llvm_cv_target_os_type="MingW" ;;
2402 *-unknown-eabi*)
2403 llvm_cv_target_os_type="Freestanding" ;;
2404 *)
2405 llvm_cv_target_os_type="Unknown" ;;
2406esac
2407fi
2408{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2409echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2410
Reid Spencer7b3e8512004-12-24 06:29:05 +00002411if test "$llvm_cv_os_type" = "Unknown" ; then
2412 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2413echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002414 { (exit 1); exit 1; }; }
2415fi
2416
Reid Spencer7b3e8512004-12-24 06:29:05 +00002417OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002419HOST_OS=$llvm_cv_os_type
2420
2421TARGET_OS=$llvm_cv_target_os_type
2422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423
Reid Spencera773bd52006-08-04 18:18:08 +00002424LINKALL=$llvm_cv_link_all_option
2425
2426NOLINKALL=$llvm_cv_no_link_all_option
2427
2428
Reid Spencer7b3e8512004-12-24 06:29:05 +00002429case $llvm_cv_platform_type in
2430 Unix)
2431
2432cat >>confdefs.h <<\_ACEOF
2433#define LLVM_ON_UNIX 1
2434_ACEOF
2435
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002436 LLVM_ON_UNIX=1
2437
2438 LLVM_ON_WIN32=0
2439
Reid Spencer7b3e8512004-12-24 06:29:05 +00002440 ;;
2441 Win32)
2442
2443cat >>confdefs.h <<\_ACEOF
2444#define LLVM_ON_WIN32 1
2445_ACEOF
2446
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002447 LLVM_ON_UNIX=0
2448
2449 LLVM_ON_WIN32=1
2450
Reid Spencer7b3e8512004-12-24 06:29:05 +00002451 ;;
2452esac
2453
Reid Spencera773bd52006-08-04 18:18:08 +00002454{ echo "$as_me:$LINENO: checking target architecture" >&5
2455echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456if test "${llvm_cv_target_arch+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002460 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002461 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002462 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2463 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002464 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002465 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002466 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002467 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002468 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002469 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002470 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002471 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002472 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002473esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474fi
Reid Spencera773bd52006-08-04 18:18:08 +00002475{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2476echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002477
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478if test "$llvm_cv_target_arch" = "Unknown" ; then
2479 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2480echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2481fi
John Criswell76595452003-07-01 22:07:39 +00002482
Douglas Gregor0711c302009-06-17 00:43:20 +00002483# Determine the LLVM native architecture for the target
2484case "$llvm_cv_target_arch" in
2485 x86) LLVM_NATIVE_ARCH="X86" ;;
2486 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2487 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2488esac
2489
Bill Wendlinga0833352009-03-12 04:10:09 +00002490ARCH=$llvm_cv_target_arch
2491
2492
2493ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002498if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002515 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 +00002516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520done
2521done
Reid Spencera773bd52006-08-04 18:18:08 +00002522IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523
2524fi
2525fi
2526CC=$ac_cv_prog_CC
2527if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002528 { echo "$as_me:$LINENO: result: $CC" >&5
2529echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530else
Reid Spencera773bd52006-08-04 18:18:08 +00002531 { echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533fi
2534
Reid Spencera773bd52006-08-04 18:18:08 +00002535
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536fi
2537if test -z "$ac_cv_prog_CC"; then
2538 ac_ct_CC=$CC
2539 # Extract the first word of "gcc", so it can be a program name with args.
2540set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if test -n "$ac_ct_CC"; then
2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002555 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 +00002556 ac_cv_prog_ac_ct_CC="gcc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564fi
2565fi
2566ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002568 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570else
Reid Spencera773bd52006-08-04 18:18:08 +00002571 { echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574
Reid Spencera773bd52006-08-04 18:18:08 +00002575 if test "x$ac_ct_CC" = x; then
2576 CC=""
2577 else
2578 case $cross_compiling:$ac_tool_warned in
2579yes:)
2580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2581whose name does not start with the host triplet. If you think this
2582configuration is useful to you, please write to autoconf@gnu.org." >&5
2583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2584whose name does not start with the host triplet. If you think this
2585configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2586ac_tool_warned=yes ;;
2587esac
2588 CC=$ac_ct_CC
2589 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590else
2591 CC="$ac_cv_prog_CC"
2592fi
2593
2594if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002595 if test -n "$ac_tool_prefix"; then
2596 # 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 +00002597set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600if test "${ac_cv_prog_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002612 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 +00002613 ac_cv_prog_CC="${ac_tool_prefix}cc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617done
2618done
Reid Spencera773bd52006-08-04 18:18:08 +00002619IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002625 { echo "$as_me:$LINENO: result: $CC" >&5
2626echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627else
Reid Spencera773bd52006-08-04 18:18:08 +00002628 { echo "$as_me:$LINENO: result: no" >&5
2629echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630fi
2631
Reid Spencera773bd52006-08-04 18:18:08 +00002632
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634fi
2635if test -z "$CC"; then
2636 # Extract the first word of "cc", so it can be a program name with args.
2637set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646 ac_prog_rejected=no
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002653 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 +00002654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2655 ac_prog_rejected=yes
2656 continue
2657 fi
2658 ac_cv_prog_CC="cc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
2663done
Reid Spencera773bd52006-08-04 18:18:08 +00002664IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665
2666if test $ac_prog_rejected = yes; then
2667 # We found a bogon in the path, so make sure we never use it.
2668 set dummy $ac_cv_prog_CC
2669 shift
2670 if test $# != 0; then
2671 # We chose a different compiler from the bogus one.
2672 # However, it has the same basename, so the bogon will be chosen
2673 # first if we set CC to just the basename; use the full file name.
2674 shift
2675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2676 fi
2677fi
2678fi
2679fi
2680CC=$ac_cv_prog_CC
2681if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002682 { echo "$as_me:$LINENO: result: $CC" >&5
2683echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684else
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687fi
2688
Reid Spencera773bd52006-08-04 18:18:08 +00002689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690fi
2691if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002693 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002694 do
2695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002711 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 +00002712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716done
2717done
Reid Spencera773bd52006-08-04 18:18:08 +00002718IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002719
2720fi
2721fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002724 { echo "$as_me:$LINENO: result: $CC" >&5
2725echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002726else
Reid Spencera773bd52006-08-04 18:18:08 +00002727 { echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002729fi
2730
Reid Spencera773bd52006-08-04 18:18:08 +00002731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002733 done
2734fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735if test -z "$CC"; then
2736 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002737 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002738do
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002755 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 +00002756 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
Reid Spencera773bd52006-08-04 18:18:08 +00002762IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002763
2764fi
2765fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002766ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002768 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2769echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002770else
Reid Spencera773bd52006-08-04 18:18:08 +00002771 { echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002773fi
2774
Reid Spencera773bd52006-08-04 18:18:08 +00002775
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002776 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002777done
John Criswell7a73b802003-06-30 21:59:07 +00002778
Reid Spencera773bd52006-08-04 18:18:08 +00002779 if test "x$ac_ct_CC" = x; then
2780 CC=""
2781 else
2782 case $cross_compiling:$ac_tool_warned in
2783yes:)
2784{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2785whose name does not start with the host triplet. If you think this
2786configuration is useful to you, please write to autoconf@gnu.org." >&5
2787echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet. If you think this
2789configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2790ac_tool_warned=yes ;;
2791esac
2792 CC=$ac_ct_CC
2793 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002794fi
2795
John Criswell7a73b802003-06-30 21:59:07 +00002796fi
2797
2798
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002799test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2800See \`config.log' for more details." >&5
2801echo "$as_me: error: no acceptable C compiler found in \$PATH
2802See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2804
John Criswell7a73b802003-06-30 21:59:07 +00002805# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002806echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002807ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002808{ (ac_try="$ac_compiler --version >&5"
2809case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812esac
2813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002818{ (ac_try="$ac_compiler -v >&5"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002828{ (ac_try="$ac_compiler -V >&5"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838
2839cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002840/* confdefs.h. */
2841_ACEOF
2842cat confdefs.h >>conftest.$ac_ext
2843cat >>conftest.$ac_ext <<_ACEOF
2844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002845
John Criswell7a73b802003-06-30 21:59:07 +00002846int
2847main ()
2848{
2849
2850 ;
2851 return 0;
2852}
2853_ACEOF
2854ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002855ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002856# Try to create an executable without -o first, disregard a.out.
2857# It will help us diagnose broken compilers, and finding out an intuition
2858# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2860echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002861ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002862#
2863# List of possible output files, starting from the most likely.
2864# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2865# only as a last resort. b.out is created by i960 compilers.
2866ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2867#
2868# The IRIX 6 linker writes into existing files which may not be
2869# executable, retaining their permissions. Remove them first so a
2870# subsequent execution test works.
2871ac_rmfiles=
2872for ac_file in $ac_files
2873do
2874 case $ac_file in
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2876 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2877 esac
2878done
2879rm -f $ac_rmfiles
2880
2881if { (ac_try="$ac_link_default"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893# in a Makefile. We should not override ac_cv_exeext if it was cached,
2894# so that the user can short-circuit this test for compilers unknown to
2895# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002896for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002897do
2898 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002899 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002901 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002902 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002903 # We found the default executable, but exeext='' is most
2904 # certainly right.
2905 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002906 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908 then :; else
2909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910 fi
2911 # We set ac_cv_exeext here because the later test for it is not
2912 # safe: cross compilers may not add the suffix if given an `-o'
2913 # argument, so we may need to know it at that point already.
2914 # Even if this section looks crufty: it has the advantage of
2915 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002916 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002917 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002918 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002919 esac
2920done
Reid Spencera773bd52006-08-04 18:18:08 +00002921test "$ac_cv_exeext" = no && ac_cv_exeext=
2922
John Criswell7a73b802003-06-30 21:59:07 +00002923else
2924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002925sed 's/^/| /' conftest.$ac_ext >&5
2926
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002927{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002928See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002929echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002930See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002931 { (exit 77); exit 77; }; }
2932fi
2933
2934ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002935{ echo "$as_me:$LINENO: result: $ac_file" >&5
2936echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002937
Reid Spencera773bd52006-08-04 18:18:08 +00002938# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002939# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002940{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002942# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943# If not cross compiling, check that we can run a simple program.
2944if test "$cross_compiling" != yes; then
2945 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002946 { (case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 cross_compiling=no
2956 else
2957 if test "$cross_compiling" = maybe; then
2958 cross_compiling=yes
2959 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002961If you meant to cross compile, use \`--host'.
2962See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002963echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002966 { (exit 1); exit 1; }; }
2967 fi
2968 fi
2969fi
Reid Spencera773bd52006-08-04 18:18:08 +00002970{ echo "$as_me:$LINENO: result: yes" >&5
2971echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002972
John Criswell0c38eaf2003-09-10 15:17:25 +00002973rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002974ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002975# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002976# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002977{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002981
Reid Spencera773bd52006-08-04 18:18:08 +00002982{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984if { (ac_try="$ac_link"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996# work properly (i.e., refer to `conftest.exe'), while it won't with
2997# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002998for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003000 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003003 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003004 * ) break;;
3005 esac
3006done
3007else
John Criswell0c38eaf2003-09-10 15:17:25 +00003008 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details." >&5
3010echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003012 { (exit 1); exit 1; }; }
3013fi
3014
3015rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003016{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003018
3019rm -f conftest.$ac_ext
3020EXEEXT=$ac_cv_exeext
3021ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003022{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003024if test "${ac_cv_objext+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003033
John Criswell7a73b802003-06-30 21:59:07 +00003034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003053 for ac_file in conftest.o conftest.obj conftest.*; do
3054 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003055 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058 break;;
3059 esac
3060done
3061else
3062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003069 { (exit 1); exit 1; }; }
3070fi
3071
3072rm -f conftest.$ac_cv_objext conftest.$ac_ext
3073fi
Reid Spencera773bd52006-08-04 18:18:08 +00003074{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003076OBJEXT=$ac_cv_objext
3077ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003078{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003080if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003089
John Criswell7a73b802003-06-30 21:59:07 +00003090int
3091main ()
3092{
3093#ifndef __GNUC__
3094 choke me
3095#endif
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003102if { (ac_try="$ac_compile"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003135 ac_compiler_gnu=yes
3136else
3137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003138sed 's/^/| /' conftest.$ac_ext >&5
3139
Reid Spencera773bd52006-08-04 18:18:08 +00003140 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003141fi
Reid Spencera773bd52006-08-04 18:18:08 +00003142
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003144ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003145
3146fi
Reid Spencera773bd52006-08-04 18:18:08 +00003147{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003149GCC=`test $ac_compiler_gnu = yes && echo yes`
3150ac_test_CFLAGS=${CFLAGS+set}
3151ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003152{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003154if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
Reid Spencera773bd52006-08-04 18:18:08 +00003157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3159 ac_cv_prog_cc_g=no
3160 CFLAGS="-g"
3161 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003167
John Criswell7a73b802003-06-30 21:59:07 +00003168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
3195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003211else
3212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003213sed 's/^/| /' conftest.$ac_ext >&5
3214
Reid Spencera773bd52006-08-04 18:18:08 +00003215 CFLAGS=""
3216 cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222
3223int
3224main ()
3225{
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (ac_try="$ac_compile"
3233case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236esac
3237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003265 :
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271 CFLAGS="-g"
3272 cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287rm -f conftest.$ac_objext
3288if { (ac_try="$ac_compile"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003321 ac_cv_prog_cc_g=yes
3322else
3323 echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
John Criswell7a73b802003-06-30 21:59:07 +00003327fi
Reid Spencera773bd52006-08-04 18:18:08 +00003328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333fi
3334
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_c_werror_flag=$ac_save_c_werror_flag
3337fi
3338{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3344 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003345 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003347 fi
3348else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349 if test "$GCC" = yes; then
3350 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003351 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003353 fi
3354fi
Reid Spencera773bd52006-08-04 18:18:08 +00003355{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3356echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3357if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
Reid Spencera773bd52006-08-04 18:18:08 +00003360 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361ac_save_CC=$CC
3362cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <stdarg.h>
3369#include <stdio.h>
3370#include <sys/types.h>
3371#include <sys/stat.h>
3372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373struct buf { int x; };
3374FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375static char *e (p, i)
3376 char **p;
3377 int i;
3378{
3379 return p[i];
3380}
3381static char *f (char * (*g) (char **, int), char **p, ...)
3382{
3383 char *s;
3384 va_list v;
3385 va_start (v,p);
3386 s = g (p, va_arg (v,int));
3387 va_end (v);
3388 return s;
3389}
3390
3391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003394 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003397 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
Reid Spencera773bd52006-08-04 18:18:08 +00003400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3402#define FOO(x) 'x'
3403int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405int test (int i, double x);
3406struct s1 {int (*f) (int a);};
3407struct s2 {int (*f) (double a);};
3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409int argc;
3410char **argv;
3411int
3412main ()
3413{
3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 ;
3416 return 0;
3417}
3418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003419for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421do
3422 CC="$ac_save_CC $ac_arg"
3423 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003424if { (ac_try="$ac_compile"
3425case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
3429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438 { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003457 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
Reid Spencera773bd52006-08-04 18:18:08 +00003462
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463fi
Reid Spencera773bd52006-08-04 18:18:08 +00003464
3465rm -f core conftest.err conftest.$ac_objext
3466 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467done
Reid Spencera773bd52006-08-04 18:18:08 +00003468rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469CC=$ac_save_CC
3470
3471fi
Reid Spencera773bd52006-08-04 18:18:08 +00003472# AC_CACHE_VAL
3473case "x$ac_cv_prog_cc_c89" in
3474 x)
3475 { echo "$as_me:$LINENO: result: none needed" >&5
3476echo "${ECHO_T}none needed" >&6; } ;;
3477 xno)
3478 { echo "$as_me:$LINENO: result: unsupported" >&5
3479echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003481 CC="$CC $ac_cv_prog_cc_c89"
3482 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484esac
3485
John Criswell0c38eaf2003-09-10 15:17:25 +00003486
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003499{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3500echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501# On Suns, sometimes $CPP names a directory.
3502if test -n "$CPP" && test -d "$CPP"; then
3503 CPP=
3504fi
3505if test -z "$CPP"; then
3506 if test "${ac_cv_prog_CPP+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 # Double quotes because CPP needs to be expanded
3510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511 do
3512 ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#ifdef __STDC__
3528# include <limits.h>
3529#else
3530# include <assert.h>
3531#endif
3532 Syntax error
3533_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003534if { (ac_try="$ac_cpp conftest.$ac_ext"
3535case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550 else
3551 ac_cpp_err=
3552 fi
3553else
3554 ac_cpp_err=yes
3555fi
3556if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003557 :
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 # Broken: fails on valid input.
3563continue
3564fi
Reid Spencera773bd52006-08-04 18:18:08 +00003565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003566rm -f conftest.err conftest.$ac_ext
3567
Reid Spencera773bd52006-08-04 18:18:08 +00003568 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576#include <ac_nonexistent.h>
3577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003578if { (ac_try="$ac_cpp conftest.$ac_ext"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594 else
3595 ac_cpp_err=
3596 fi
3597else
3598 ac_cpp_err=yes
3599fi
3600if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601 # Broken: success on invalid input.
3602continue
3603else
3604 echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
Reid Spencera773bd52006-08-04 18:18:08 +00003611
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612rm -f conftest.err conftest.$ac_ext
3613
3614done
3615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616rm -f conftest.err conftest.$ac_ext
3617if $ac_preproc_ok; then
3618 break
3619fi
3620
3621 done
3622 ac_cv_prog_CPP=$CPP
3623
3624fi
3625 CPP=$ac_cv_prog_CPP
3626else
3627 ac_cv_prog_CPP=$CPP
3628fi
Reid Spencera773bd52006-08-04 18:18:08 +00003629{ echo "$as_me:$LINENO: result: $CPP" >&5
3630echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631ac_preproc_ok=false
3632for ac_c_preproc_warn_flag in '' yes
3633do
3634 # Use a header file that comes with gcc, so configuring glibc
3635 # with a fresh cross-compiler works.
3636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3637 # <limits.h> exists even on freestanding compilers.
3638 # On the NeXT, cc -E runs the code through the compiler's parser,
3639 # not just through cpp. "Syntax error" is here to catch this case.
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646#ifdef __STDC__
3647# include <limits.h>
3648#else
3649# include <assert.h>
3650#endif
3651 Syntax error
3652_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003653if { (ac_try="$ac_cpp conftest.$ac_ext"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003665 (exit $ac_status); } >/dev/null; then
3666 if test -s conftest.err; then
3667 ac_cpp_err=$ac_c_preproc_warn_flag
3668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3669 else
3670 ac_cpp_err=
3671 fi
3672else
3673 ac_cpp_err=yes
3674fi
3675if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003676 :
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 # Broken: fails on valid input.
3682continue
3683fi
Reid Spencera773bd52006-08-04 18:18:08 +00003684
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685rm -f conftest.err conftest.$ac_ext
3686
Reid Spencera773bd52006-08-04 18:18:08 +00003687 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
3695#include <ac_nonexistent.h>
3696_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003697if { (ac_try="$ac_cpp conftest.$ac_ext"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
3702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003709 (exit $ac_status); } >/dev/null; then
3710 if test -s conftest.err; then
3711 ac_cpp_err=$ac_c_preproc_warn_flag
3712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3713 else
3714 ac_cpp_err=
3715 fi
3716else
3717 ac_cpp_err=yes
3718fi
3719if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003720 # Broken: success on invalid input.
3721continue
3722else
3723 echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726 # Passes both tests.
3727ac_preproc_ok=:
3728break
3729fi
Reid Spencera773bd52006-08-04 18:18:08 +00003730
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003731rm -f conftest.err conftest.$ac_ext
3732
3733done
3734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735rm -f conftest.err conftest.$ac_ext
3736if $ac_preproc_ok; then
3737 :
3738else
3739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3740See \`config.log' for more details." >&5
3741echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3742See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
3744fi
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751
John Criswell7a73b802003-06-30 21:59:07 +00003752
Reid Spencera773bd52006-08-04 18:18:08 +00003753{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3754echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003755if test "${ac_cv_path_GREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
Reid Spencera773bd52006-08-04 18:18:08 +00003758 # Extract the first word of "grep ggrep" to use in msg output
3759if test -z "$GREP"; then
3760set dummy grep ggrep; ac_prog_name=$2
3761if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
Reid Spencera773bd52006-08-04 18:18:08 +00003764 ac_path_GREP_found=false
3765# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003771 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003772 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003773 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003774 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003775 # Check for GNU ac_path_GREP and select it if it is found.
3776 # Check for GNU $ac_path_GREP
3777case `"$ac_path_GREP" --version 2>&1` in
3778*GNU*)
3779 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3780*)
3781 ac_count=0
3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783 while :
3784 do
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 echo 'GREP' >> "conftest.nl"
3789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 ac_count=`expr $ac_count + 1`
3792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_GREP="$ac_path_GREP"
3795 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003796 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3799 done
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801esac
3802
3803
3804 $ac_path_GREP_found && break 3
3805 done
3806done
3807
3808done
3809IFS=$as_save_IFS
3810
3811
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003812fi
Reid Spencera773bd52006-08-04 18:18:08 +00003813
3814GREP="$ac_cv_path_GREP"
3815if test -z "$GREP"; then
3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3819fi
3820
3821else
3822 ac_cv_path_GREP=$GREP
3823fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003824
John Criswell7a73b802003-06-30 21:59:07 +00003825
Reid Spencera773bd52006-08-04 18:18:08 +00003826fi
3827{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3828echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3830
3831
3832{ echo "$as_me:$LINENO: checking for egrep" >&5
3833echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3834if test "${ac_cv_path_EGREP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3839 else
3840 # Extract the first word of "egrep" to use in msg output
3841if test -z "$EGREP"; then
3842set dummy egrep; ac_prog_name=$2
3843if test "${ac_cv_path_EGREP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846 ac_path_EGREP_found=false
3847# Loop through the user's path and test for each of PROGNAME-LIST
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in egrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003856 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003857 # Check for GNU ac_path_EGREP and select it if it is found.
3858 # Check for GNU $ac_path_EGREP
3859case `"$ac_path_EGREP" --version 2>&1` in
3860*GNU*)
3861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3862*)
3863 ac_count=0
3864 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3865 while :
3866 do
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 echo 'EGREP' >> "conftest.nl"
3871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 ac_count=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_EGREP="$ac_path_EGREP"
3877 ac_path_EGREP_max=$ac_count
3878 fi
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
3884
3885
3886 $ac_path_EGREP_found && break 3
3887 done
3888done
3889
3890done
3891IFS=$as_save_IFS
3892
3893
3894fi
3895
3896EGREP="$ac_cv_path_EGREP"
3897if test -z "$EGREP"; then
3898 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3899echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3900 { (exit 1); exit 1; }; }
3901fi
3902
3903else
3904 ac_cv_path_EGREP=$EGREP
3905fi
3906
3907
3908 fi
3909fi
3910{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3912 EGREP="$ac_cv_path_EGREP"
3913
3914
3915{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3916echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003917if test "${ac_cv_header_stdc+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
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#include <stdarg.h>
3928#include <string.h>
3929#include <float.h>
3930
John Criswell0c38eaf2003-09-10 15:17:25 +00003931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
John Criswell7a73b802003-06-30 21:59:07 +00003938_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003939rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003940if { (ac_try="$ac_compile"
3941case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944esac
3945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003947 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3954 { (case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_try") 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003973 ac_cv_header_stdc=yes
3974else
3975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003976sed 's/^/| /' conftest.$ac_ext >&5
3977
Reid Spencera773bd52006-08-04 18:18:08 +00003978 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003979fi
Reid Spencera773bd52006-08-04 18:18:08 +00003980
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003982
3983if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3985 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003991#include <string.h>
3992
3993_ACEOF
3994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003995 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003996 :
3997else
3998 ac_cv_header_stdc=no
3999fi
4000rm -f conftest*
4001
4002fi
4003
4004if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004012#include <stdlib.h>
4013
4014_ACEOF
4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004016 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004017 :
4018else
4019 ac_cv_header_stdc=no
4020fi
4021rm -f conftest*
4022
4023fi
4024
4025if test $ac_cv_header_stdc = yes; then
4026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4027 if test "$cross_compiling" = yes; then
4028 :
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004036#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004037#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004038#if ((' ' & 0x0FF) == 0x020)
4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4041#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004042# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004043 (('a' <= (c) && (c) <= 'i') \
4044 || ('j' <= (c) && (c) <= 'r') \
4045 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4047#endif
4048
4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4050int
4051main ()
4052{
4053 int i;
4054 for (i = 0; i < 256; i++)
4055 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004056 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004057 return 2;
4058 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004059}
4060_ACEOF
4061rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004062if { (ac_try="$ac_link"
4063case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 :
4082else
4083 echo "$as_me: program exited with status $ac_status" >&5
4084echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004085sed 's/^/| /' conftest.$ac_ext >&5
4086
John Criswell7a73b802003-06-30 21:59:07 +00004087( exit $ac_status )
4088ac_cv_header_stdc=no
4089fi
Reid Spencera773bd52006-08-04 18:18:08 +00004090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4091fi
4092
4093
John Criswell7a73b802003-06-30 21:59:07 +00004094fi
4095fi
Reid Spencera773bd52006-08-04 18:18:08 +00004096{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4097echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004098if test $ac_cv_header_stdc = yes; then
4099
4100cat >>confdefs.h <<\_ACEOF
4101#define STDC_HEADERS 1
4102_ACEOF
4103
4104fi
4105
Reid Spencera773bd52006-08-04 18:18:08 +00004106# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4117 inttypes.h stdint.h unistd.h
4118do
4119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131$ac_includes_default
4132
4133#include <$ac_header>
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004169 eval "$as_ac_Header=yes"
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 eval "$as_ac_Header=no"
4175fi
4176
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178fi
4179ac_res=`eval echo '${'$as_ac_Header'}'`
4180 { echo "$as_me:$LINENO: result: $ac_res" >&5
4181echo "${ECHO_T}$ac_res" >&6; }
4182if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185_ACEOF
4186
4187fi
4188
4189done
4190
4191
4192{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4193echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4194if test "${ac_cv_c_bigendian+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 # See if sys/param.h defines the BYTE_ORDER macro.
4198cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
4204#include <sys/types.h>
4205#include <sys/param.h>
4206
4207int
4208main ()
4209{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004210#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004211 bogus endian macros
4212#endif
4213
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (ac_try="$ac_compile"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004252 # It does; now see whether it defined to BIG_ENDIAN or not.
4253cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259#include <sys/types.h>
4260#include <sys/param.h>
4261
4262int
4263main ()
4264{
4265#if BYTE_ORDER != BIG_ENDIAN
4266 not big endian
4267#endif
4268
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (ac_try="$ac_compile"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291esac
4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004307 ac_cv_c_bigendian=yes
4308else
4309 echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ac_cv_c_bigendian=no
4313fi
4314
4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316else
4317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 # It does not; compile a test program.
4321if test "$cross_compiling" = yes; then
4322 # try to guess the endianness by grepping values into an object file
4323 ac_cv_c_bigendian=unknown
4324 cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4331short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4332void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4333short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4334short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4335void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4336int
4337main ()
4338{
4339 _ascii (); _ebcdic ();
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4379 ac_cv_c_bigendian=yes
4380fi
4381if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4382 if test "$ac_cv_c_bigendian" = unknown; then
4383 ac_cv_c_bigendian=no
4384 else
4385 # finding both strings is unlikely to happen, but who knows?
4386 ac_cv_c_bigendian=unknown
4387 fi
4388fi
4389else
4390 echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393
4394fi
4395
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397else
4398 cat >conftest.$ac_ext <<_ACEOF
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
4404$ac_includes_default
4405int
4406main ()
4407{
4408
4409 /* Are we little or big endian? From Harbison&Steele. */
4410 union
4411 {
4412 long int l;
4413 char c[sizeof (long int)];
4414 } u;
4415 u.l = 1;
4416 return u.c[sizeof (long int) - 1] == 1;
4417
4418 ;
4419 return 0;
4420}
4421_ACEOF
4422rm -f conftest$ac_exeext
4423if { (ac_try="$ac_link"
4424case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427esac
4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_link") 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4433 { (case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436esac
4437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_try") 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_c_bigendian=no
4443else
4444 echo "$as_me: program exited with status $ac_status" >&5
4445echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448( exit $ac_status )
4449ac_cv_c_bigendian=yes
4450fi
4451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4452fi
4453
4454
4455fi
4456
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458fi
4459{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4460echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4461case $ac_cv_c_bigendian in
4462 yes)
4463 ENDIAN=big
4464 ;;
4465 no)
4466 ENDIAN=little
4467 ;;
4468 *)
4469 { { echo "$as_me:$LINENO: error: unknown endianness
4470presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4471echo "$as_me: error: unknown endianness
4472presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4473 { (exit 1); exit 1; }; } ;;
4474esac
4475
4476
4477if test "$cross_compiling" = yes; then
4478 LLVM_CROSS_COMPILING=1
4479
4480
4481{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4482echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4483if test "${ac_cv_build_exeext+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4487 ac_cv_build_exeext=.exe
4488else
4489 ac_build_prefix=${build_alias}-
4490
4491 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4492set dummy ${ac_build_prefix}gcc; ac_word=$2
4493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498 if test -n "$BUILD_CC"; then
4499 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004508 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513done
4514IFS=$as_save_IFS
4515
4516fi
4517fi
4518BUILD_CC=$ac_cv_prog_BUILD_CC
4519if test -n "$BUILD_CC"; then
4520 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521echo "${ECHO_T}$BUILD_CC" >&6; }
4522else
4523 { echo "$as_me:$LINENO: result: no" >&5
4524echo "${ECHO_T}no" >&6; }
4525fi
4526
4527
4528 if test -z "$BUILD_CC"; then
4529 # Extract the first word of "gcc", so it can be a program name with args.
4530set dummy gcc; ac_word=$2
4531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 if test -n "$BUILD_CC"; then
4537 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004545 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 +00004546 ac_cv_prog_BUILD_CC="gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552IFS=$as_save_IFS
4553
4554fi
4555fi
4556BUILD_CC=$ac_cv_prog_BUILD_CC
4557if test -n "$BUILD_CC"; then
4558 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559echo "${ECHO_T}$BUILD_CC" >&6; }
4560else
4561 { echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6; }
4563fi
4564
4565
4566 if test -z "$BUILD_CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568set dummy cc; ac_word=$2
4569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574 if test -n "$BUILD_CC"; then
4575 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4576else
4577 ac_prog_rejected=no
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004584 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 +00004585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4587 continue
4588 fi
4589 ac_cv_prog_BUILD_CC="cc"
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
4597if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_BUILD_CC
4600 shift
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set BUILD_CC to just the basename; use the full file name.
4605 shift
4606 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4607 fi
4608fi
4609fi
4610fi
4611BUILD_CC=$ac_cv_prog_BUILD_CC
4612if test -n "$BUILD_CC"; then
4613 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4614echo "${ECHO_T}$BUILD_CC" >&6; }
4615else
4616 { echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6; }
4618fi
4619
4620
4621 fi
4622 fi
4623 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4624echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4625 { (exit 1); exit 1; }; }
4626 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4627 rm -f conftest*
4628 echo 'int main () { return 0; }' > conftest.$ac_ext
4629 ac_cv_build_exeext=
4630 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4631 (eval $ac_build_link) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
4635 for file in conftest.*; do
4636 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004637 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004638 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4639 esac
4640 done
4641 else
4642 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4643echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4644 { (exit 1); exit 1; }; }
4645 fi
4646 rm -f conftest*
4647 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4648fi
4649fi
4650
4651BUILD_EXEEXT=""
4652test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4653{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4654echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4655ac_build_exeext=$BUILD_EXEEXT
4656
Jim Grosbach673612e2008-10-02 22:56:44 +00004657 ac_build_prefix=${build_alias}-
4658 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4659set dummy ${ac_build_prefix}g++; ac_word=$2
4660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 if test -n "$BUILD_CXX"; then
4666 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4667else
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004675 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679done
4680done
4681IFS=$as_save_IFS
4682
4683fi
4684fi
4685BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686if test -n "$BUILD_CXX"; then
4687 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688echo "${ECHO_T}$BUILD_CXX" >&6; }
4689else
4690 { echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6; }
4692fi
4693
4694
4695 if test -z "$BUILD_CXX"; then
4696 # Extract the first word of "g++", so it can be a program name with args.
4697set dummy g++; ac_word=$2
4698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703 if test -n "$BUILD_CXX"; then
4704 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004712 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 +00004713 ac_cv_prog_BUILD_CXX="g++"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724if test -n "$BUILD_CXX"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726echo "${ECHO_T}$BUILD_CXX" >&6; }
4727else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
4730fi
4731
4732
4733 if test -z "$BUILD_CXX"; then
4734 # Extract the first word of "c++", so it can be a program name with args.
4735set dummy c++; ac_word=$2
4736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 if test -n "$BUILD_CXX"; then
4742 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4743else
4744 ac_prog_rejected=no
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004751 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 +00004752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4753 ac_prog_rejected=yes
4754 continue
4755 fi
4756 ac_cv_prog_BUILD_CXX="c++"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762IFS=$as_save_IFS
4763
4764if test $ac_prog_rejected = yes; then
4765 # We found a bogon in the path, so make sure we never use it.
4766 set dummy $ac_cv_prog_BUILD_CXX
4767 shift
4768 if test $# != 0; then
4769 # We chose a different compiler from the bogus one.
4770 # However, it has the same basename, so the bogon will be chosen
4771 # first if we set BUILD_CXX to just the basename; use the full file name.
4772 shift
4773 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4774 fi
4775fi
4776fi
4777fi
4778BUILD_CXX=$ac_cv_prog_BUILD_CXX
4779if test -n "$BUILD_CXX"; then
4780 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4781echo "${ECHO_T}$BUILD_CXX" >&6; }
4782else
4783 { echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6; }
4785fi
4786
4787
4788 fi
4789 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004790else
4791 LLVM_CROSS_COMPILING=0
4792
4793fi
4794
Nick Lewycky5b28f862009-04-10 05:18:27 +00004795if 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 +00004796 cvsbuild="yes"
4797 optimize="no"
4798 CVSBUILD=CVSBUILD=1
4799
4800else
4801 cvsbuild="no"
4802 optimize="yes"
4803fi
4804
4805
4806# Check whether --enable-optimized was given.
4807if test "${enable_optimized+set}" = set; then
4808 enableval=$enable_optimized;
4809else
4810 enableval=$optimize
4811fi
4812
4813if test ${enableval} = "no" ; then
4814 ENABLE_OPTIMIZED=
4815
4816else
4817 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4818
4819fi
4820
David Greene2a5a12c2009-04-17 14:50:39 +00004821# Check whether --enable-profiling was given.
4822if test "${enable_profiling+set}" = set; then
4823 enableval=$enable_profiling;
4824else
4825 enableval="no"
4826fi
4827
4828if test ${enableval} = "no" ; then
4829 ENABLE_PROFILING=
4830
4831else
4832 ENABLE_PROFILING=ENABLE_PROFILING=1
4833
4834fi
4835
Reid Spencera773bd52006-08-04 18:18:08 +00004836# Check whether --enable-assertions was given.
4837if test "${enable_assertions+set}" = set; then
4838 enableval=$enable_assertions;
4839else
4840 enableval="yes"
4841fi
4842
4843if test ${enableval} = "yes" ; then
4844 DISABLE_ASSERTIONS=
4845
4846else
4847 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4848
4849fi
4850
David Greenea696d242007-06-28 19:36:08 +00004851# Check whether --enable-expensive-checks was given.
4852if test "${enable_expensive_checks+set}" = set; then
4853 enableval=$enable_expensive_checks;
4854else
4855 enableval="no"
4856fi
4857
4858if test ${enableval} = "yes" ; then
4859 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4860
4861 EXPENSIVE_CHECKS=yes
4862
4863else
4864 ENABLE_EXPENSIVE_CHECKS=
4865
4866 EXPENSIVE_CHECKS=no
4867
4868fi
4869
Reid Spencer8b2e1412006-11-17 03:32:33 +00004870# Check whether --enable-debug-runtime was given.
4871if test "${enable_debug_runtime+set}" = set; then
4872 enableval=$enable_debug_runtime;
4873else
4874 enableval=no
4875fi
4876
4877if test ${enableval} = "no" ; then
4878 DEBUG_RUNTIME=
4879
4880else
4881 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4882
4883fi
4884
Reid Spencera773bd52006-08-04 18:18:08 +00004885# Check whether --enable-jit was given.
4886if test "${enable_jit+set}" = set; then
4887 enableval=$enable_jit;
4888else
4889 enableval=default
4890fi
4891
4892if test ${enableval} = "no"
4893then
4894 JIT=
4895
4896else
4897 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004898 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004899 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004900 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004901 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004902 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004903 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004904 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004905 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004906 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004907 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004908 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004909 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004910 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004911 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004912 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004913 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004914 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004915 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004916 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004917 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004918 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004919 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004920 Blackfin) TARGET_HAS_JIT=0
4921 ;;
4922 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004923 ;;
4924 esac
4925fi
4926
4927# Check whether --enable-doxygen was given.
4928if test "${enable_doxygen+set}" = set; then
4929 enableval=$enable_doxygen;
4930else
4931 enableval=default
4932fi
4933
4934case "$enableval" in
4935 yes) ENABLE_DOXYGEN=1
4936 ;;
4937 no) ENABLE_DOXYGEN=0
4938 ;;
4939 default) ENABLE_DOXYGEN=0
4940 ;;
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4942echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4944esac
4945
4946# Check whether --enable-threads was given.
4947if test "${enable_threads+set}" = set; then
4948 enableval=$enable_threads;
4949else
Reid Spencer65c5d752006-11-05 17:08:18 +00004950 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004951fi
4952
4953case "$enableval" in
4954 yes) ENABLE_THREADS=1
4955 ;;
4956 no) ENABLE_THREADS=0
4957 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004958 default) ENABLE_THREADS=1
4959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4961echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4963esac
4964
Owen Andersona8603702009-05-19 22:18:56 +00004965cat >>confdefs.h <<_ACEOF
4966#define ENABLE_THREADS $ENABLE_THREADS
4967_ACEOF
4968
4969
Reid Spencer89b0d992006-12-16 22:07:52 +00004970# Check whether --enable-pic was given.
4971if test "${enable_pic+set}" = set; then
4972 enableval=$enable_pic;
4973else
4974 enableval=default
4975fi
4976
4977case "$enableval" in
4978 yes) ENABLE_PIC=1
4979 ;;
4980 no) ENABLE_PIC=0
4981 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004982 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004983 ;;
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4987esac
4988
4989cat >>confdefs.h <<_ACEOF
4990#define ENABLE_PIC $ENABLE_PIC
4991_ACEOF
4992
4993
Reid Spencera773bd52006-08-04 18:18:08 +00004994TARGETS_TO_BUILD=""
4995# Check whether --enable-targets was given.
4996if test "${enable_targets+set}" = set; then
4997 enableval=$enable_targets;
4998else
4999 enableval=all
5000fi
5001
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005002if test "$enableval" = host-only ; then
5003 enableval=host
5004fi
Reid Spencera773bd52006-08-04 18:18:08 +00005005case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005006 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005007 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5008 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005009 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5010 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5011 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5012 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5013 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5014 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5015 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5016 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5017 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5018 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5019 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5020 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5021 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5022 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5023 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5024 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005025 host) case "$llvm_cv_target_arch" in
5026 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5027 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5029 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5030 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5031 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5032 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5033 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5034 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5035 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5036 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5037 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5038 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5039 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5040echo "$as_me: error: Can not set target to build" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005043 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5044echo "$as_me: error: Unrecognized target $a_target" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046 esac
5047 done
5048 ;;
5049esac
Reid Spencera773bd52006-08-04 18:18:08 +00005050TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5051
5052
Douglas Gregor0711c302009-06-17 00:43:20 +00005053# Determine whether we are building LLVM support for the native architecture.
5054# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5055for a_target in $TARGETS_TO_BUILD; do
5056 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005057 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005058
5059cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005060#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005061_ACEOF
5062
5063 fi
5064done
5065
Douglas Gregor1555a232009-06-16 20:12:29 +00005066# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005067# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005068LLVM_ENUM_TARGETS=""
5069LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005070LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005071for target_to_build in $TARGETS_TO_BUILD; do
5072 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5073 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5074 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5075 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005076 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5077 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5078 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005079done
5080
5081
5082
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005083
Reid Spencer65c5d752006-11-05 17:08:18 +00005084# Check whether --enable-cbe-printf-a was given.
5085if test "${enable_cbe_printf_a+set}" = set; then
5086 enableval=$enable_cbe_printf_a;
5087else
5088 enableval=default
5089fi
5090
5091case "$enableval" in
5092 yes) ENABLE_CBE_PRINTF_A=1
5093 ;;
5094 no) ENABLE_CBE_PRINTF_A=0
5095 ;;
5096 default) ENABLE_CBE_PRINTF_A=1
5097 ;;
5098 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5099echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5101esac
5102
5103cat >>confdefs.h <<_ACEOF
5104#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5105_ACEOF
5106
5107
Reid Spencera773bd52006-08-04 18:18:08 +00005108
5109# Check whether --with-llvmgccdir was given.
5110if test "${with_llvmgccdir+set}" = set; then
5111 withval=$with_llvmgccdir;
5112else
5113 withval=default
5114fi
5115
5116case "$withval" in
5117 default) WITH_LLVMGCCDIR=default ;;
5118 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5119 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5120echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5121 { (exit 1); exit 1; }; } ;;
5122esac
5123
5124
Devang Patel5d28b882007-12-04 22:54:47 +00005125# Check whether --with-llvmgcc was given.
5126if test "${with_llvmgcc+set}" = set; then
5127 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5128 WITH_LLVMGCCDIR=""
5129fi
5130
5131
5132
5133# Check whether --with-llvmgxx was given.
5134if test "${with_llvmgxx+set}" = set; then
5135 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5136 WITH_LLVMGCCDIR=""
5137fi
5138
Douglas Gregor01746742009-05-11 18:05:52 +00005139
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005140if test -n "$LLVMGCC"; then
5141 LLVMGCCCOMMAND="$LLVMGCC"
5142fi
5143
5144if test -n "$LLVMGXX"; then
5145 LLVMGXXCOMMAND="$LLVMGXX"
5146fi
Devang Patel5d28b882007-12-04 22:54:47 +00005147
5148if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5149 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5150echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5151 { (exit 1); exit 1; }; };
5152fi
5153
5154if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5155 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5156echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5157 { (exit 1); exit 1; }; };
5158fi
5159
5160
Reid Spencera773bd52006-08-04 18:18:08 +00005161# Check whether --with-extra-options was given.
5162if test "${with_extra_options+set}" = set; then
5163 withval=$with_extra_options;
5164else
5165 withval=default
5166fi
5167
5168case "$withval" in
5169 default) EXTRA_OPTIONS= ;;
5170 *) EXTRA_OPTIONS=$withval ;;
5171esac
5172EXTRA_OPTIONS=$EXTRA_OPTIONS
5173
5174
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005175# Check whether --enable-bindings was given.
5176if test "${enable_bindings+set}" = set; then
5177 enableval=$enable_bindings;
5178else
5179 enableval=default
5180fi
5181
5182BINDINGS_TO_BUILD=""
5183case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005184 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005185 all ) BINDINGS_TO_BUILD="ocaml" ;;
5186 none | no) BINDINGS_TO_BUILD="" ;;
5187 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5188 case "$a_binding" in
5189 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5190 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5191echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5193 esac
5194 done
5195 ;;
5196esac
5197
Reid Spencera773bd52006-08-04 18:18:08 +00005198
Gordon Henriksenf0915682007-10-02 16:42:22 +00005199# Check whether --with-ocaml-libdir was given.
5200if test "${with_ocaml_libdir+set}" = set; then
5201 withval=$with_ocaml_libdir;
5202else
5203 withval=auto
5204fi
5205
5206case "$withval" in
5207 auto) with_ocaml_libdir="$withval" ;;
5208 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5210echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5212esac
5213
5214
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005215# Check whether --with-binutils-include was given.
5216if test "${with_binutils_include+set}" = set; then
5217 withval=$with_binutils_include;
5218else
5219 withval=default
5220fi
5221
5222case "$withval" in
5223 default) WITH_BINUTILS_INCDIR=default ;;
5224 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5225 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5226echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5228esac
5229if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5230 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5231
5232 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5233 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5234 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5235echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5236 { (exit 1); exit 1; }; };
5237 fi
5238fi
5239
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005240# Check whether --enable-libffi was given.
5241if test "${enable_libffi+set}" = set; then
5242 enableval=$enable_libffi;
5243else
5244 enableval=yes
5245fi
5246
5247case "$enableval" in
5248 yes) llvm_cv_enable_libffi="yes" ;;
5249 no) llvm_cv_enable_libffi="no" ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005255if test "$llvm_cv_os_type" = "Win32" ; then
5256 llvmc_dynamic="yes"
5257else
5258 llvmc_dynamic="no"
5259fi
5260
5261# Check whether --enable-llvmc-dynamic was given.
5262if test "${enable_llvmc_dynamic+set}" = set; then
5263 enableval=$enable_llvmc_dynamic;
5264else
5265 enableval=$llvmc_dynamic
5266fi
5267
5268if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5269 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5270
5271else
5272 ENABLE_LLVMC_DYNAMIC=
5273
5274fi
5275
5276# Check whether --enable-llvmc-dynamic-plugins was given.
5277if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5278 enableval=$enable_llvmc_dynamic_plugins;
5279else
5280 enableval=yes
5281fi
5282
5283if test ${enableval} = "yes" ; then
5284 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5285
5286else
5287 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5288
5289fi
5290
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005291
Reid Spencera773bd52006-08-04 18:18:08 +00005292ac_ext=c
5293ac_cpp='$CPP $CPPFLAGS'
5294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5299# On Suns, sometimes $CPP names a directory.
5300if test -n "$CPP" && test -d "$CPP"; then
5301 CPP=
5302fi
5303if test -z "$CPP"; then
5304 if test "${ac_cv_prog_CPP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 # Double quotes because CPP needs to be expanded
5308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5309 do
5310 ac_preproc_ok=false
5311for ac_c_preproc_warn_flag in '' yes
5312do
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#ifdef __STDC__
5326# include <limits.h>
5327#else
5328# include <assert.h>
5329#endif
5330 Syntax error
5331_ACEOF
5332if { (ac_try="$ac_cpp conftest.$ac_ext"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351else
5352 ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005355 :
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 # Broken: fails on valid input.
5361continue
5362fi
5363
5364rm -f conftest.err conftest.$ac_ext
5365
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#include <ac_nonexistent.h>
5375_ACEOF
5376if { (ac_try="$ac_cpp conftest.$ac_ext"
5377case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5394 fi
5395else
5396 ac_cpp_err=yes
5397fi
5398if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005399 # Broken: success on invalid input.
5400continue
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 break
5417fi
5418
5419 done
5420 ac_cv_prog_CPP=$CPP
5421
5422fi
5423 CPP=$ac_cv_prog_CPP
5424else
5425 ac_cv_prog_CPP=$CPP
5426fi
5427{ echo "$as_me:$LINENO: result: $CPP" >&5
5428echo "${ECHO_T}$CPP" >&6; }
5429ac_preproc_ok=false
5430for ac_c_preproc_warn_flag in '' yes
5431do
5432 # Use a header file that comes with gcc, so configuring glibc
5433 # with a fresh cross-compiler works.
5434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5435 # <limits.h> exists even on freestanding compilers.
5436 # On the NeXT, cc -E runs the code through the compiler's parser,
5437 # not just through cpp. "Syntax error" is here to catch this case.
5438 cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#ifdef __STDC__
5445# include <limits.h>
5446#else
5447# include <assert.h>
5448#endif
5449 Syntax error
5450_ACEOF
5451if { (ac_try="$ac_cpp conftest.$ac_ext"
5452case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455esac
5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005463 (exit $ac_status); } >/dev/null; then
5464 if test -s conftest.err; then
5465 ac_cpp_err=$ac_c_preproc_warn_flag
5466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5467 else
5468 ac_cpp_err=
5469 fi
5470else
5471 ac_cpp_err=yes
5472fi
5473if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005474 :
5475else
5476 echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 # Broken: fails on valid input.
5480continue
5481fi
5482
5483rm -f conftest.err conftest.$ac_ext
5484
5485 # OK, works on sane cases. Now check whether nonexistent headers
5486 # can be detected and how.
5487 cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h. */
5493#include <ac_nonexistent.h>
5494_ACEOF
5495if { (ac_try="$ac_cpp conftest.$ac_ext"
5496case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 else
5512 ac_cpp_err=
5513 fi
5514else
5515 ac_cpp_err=yes
5516fi
5517if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005518 # Broken: success on invalid input.
5519continue
5520else
5521 echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 # Passes both tests.
5525ac_preproc_ok=:
5526break
5527fi
5528
5529rm -f conftest.err conftest.$ac_ext
5530
5531done
5532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5533rm -f conftest.err conftest.$ac_ext
5534if $ac_preproc_ok; then
5535 :
5536else
5537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5538See \`config.log' for more details." >&5
5539echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5540See \`config.log' for more details." >&2;}
5541 { (exit 1); exit 1; }; }
5542fi
5543
5544ac_ext=c
5545ac_cpp='$CPP $CPPFLAGS'
5546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549
5550ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555if test -n "$ac_tool_prefix"; then
5556 for ac_prog in gcc
5557 do
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5562if test "${ac_cv_prog_CC+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564else
5565 if test -n "$CC"; then
5566 ac_cv_prog_CC="$CC" # Let the user override the test.
5567else
5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005574 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 +00005575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579done
5580done
5581IFS=$as_save_IFS
5582
5583fi
5584fi
5585CC=$ac_cv_prog_CC
5586if test -n "$CC"; then
5587 { echo "$as_me:$LINENO: result: $CC" >&5
5588echo "${ECHO_T}$CC" >&6; }
5589else
5590 { echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6; }
5592fi
5593
5594
5595 test -n "$CC" && break
5596 done
5597fi
5598if test -z "$CC"; then
5599 ac_ct_CC=$CC
5600 for ac_prog in gcc
5601do
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603set dummy $ac_prog; ac_word=$2
5604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 if test -n "$ac_ct_CC"; then
5610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005618 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 +00005619 ac_cv_prog_ac_ct_CC="$ac_prog"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629ac_ct_CC=$ac_cv_prog_ac_ct_CC
5630if test -n "$ac_ct_CC"; then
5631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5632echo "${ECHO_T}$ac_ct_CC" >&6; }
5633else
5634 { echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6; }
5636fi
5637
5638
5639 test -n "$ac_ct_CC" && break
5640done
5641
5642 if test "x$ac_ct_CC" = x; then
5643 CC=""
5644 else
5645 case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5648whose name does not start with the host triplet. If you think this
5649configuration is useful to you, please write to autoconf@gnu.org." >&5
5650echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5651whose name does not start with the host triplet. If you think this
5652configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5653ac_tool_warned=yes ;;
5654esac
5655 CC=$ac_ct_CC
5656 fi
5657fi
5658
5659
5660test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5661See \`config.log' for more details." >&5
5662echo "$as_me: error: no acceptable C compiler found in \$PATH
5663See \`config.log' for more details." >&2;}
5664 { (exit 1); exit 1; }; }
5665
5666# Provide some information about the compiler.
5667echo "$as_me:$LINENO: checking for C compiler version" >&5
5668ac_compiler=`set X $ac_compile; echo $2`
5669{ (ac_try="$ac_compiler --version >&5"
5670case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compiler --version >&5") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }
5679{ (ac_try="$ac_compiler -v >&5"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compiler -v >&5") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }
5689{ (ac_try="$ac_compiler -V >&5"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compiler -V >&5") 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }
5699
5700{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5701echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5702if test "${ac_cv_c_compiler_gnu+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711
5712int
5713main ()
5714{
5715#ifndef __GNUC__
5716 choke me
5717#endif
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (ac_try="$ac_compile"
5725case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 { (case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_try") 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005757 ac_compiler_gnu=yes
5758else
5759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_compiler_gnu=no
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766ac_cv_c_compiler_gnu=$ac_compiler_gnu
5767
5768fi
5769{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5770echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5771GCC=`test $ac_compiler_gnu = yes && echo yes`
5772ac_test_CFLAGS=${CFLAGS+set}
5773ac_save_CFLAGS=$CFLAGS
5774{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5776if test "${ac_cv_prog_cc_g+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 ac_save_c_werror_flag=$ac_c_werror_flag
5780 ac_c_werror_flag=yes
5781 ac_cv_prog_cc_g=no
5782 CFLAGS="-g"
5783 cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h. */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h. */
5789
5790int
5791main ()
5792{
5793
5794 ;
5795 return 0;
5796}
5797_ACEOF
5798rm -f conftest.$ac_objext
5799if { (ac_try="$ac_compile"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_try") 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005832 ac_cv_prog_cc_g=yes
5833else
5834 echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 CFLAGS=""
5838 cat >conftest.$ac_ext <<_ACEOF
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext
5854if { (ac_try="$ac_compile"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005887 :
5888else
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_c_werror_flag=$ac_save_c_werror_flag
5893 CFLAGS="-g"
5894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
5900
5901int
5902main ()
5903{
5904
5905 ;
5906 return 0;
5907}
5908_ACEOF
5909rm -f conftest.$ac_objext
5910if { (ac_try="$ac_compile"
5911case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914esac
5915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005943 ac_cv_prog_cc_g=yes
5944else
5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948
5949fi
5950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952fi
5953
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955fi
5956
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_c_werror_flag=$ac_save_c_werror_flag
5959fi
5960{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5961echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5962if test "$ac_test_CFLAGS" = set; then
5963 CFLAGS=$ac_save_CFLAGS
5964elif test $ac_cv_prog_cc_g = yes; then
5965 if test "$GCC" = yes; then
5966 CFLAGS="-g -O2"
5967 else
5968 CFLAGS="-g"
5969 fi
5970else
5971 if test "$GCC" = yes; then
5972 CFLAGS="-O2"
5973 else
5974 CFLAGS=
5975 fi
5976fi
5977{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5978echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5979if test "${ac_cv_prog_cc_c89+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 ac_cv_prog_cc_c89=no
5983ac_save_CC=$CC
5984cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990#include <stdarg.h>
5991#include <stdio.h>
5992#include <sys/types.h>
5993#include <sys/stat.h>
5994/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5995struct buf { int x; };
5996FILE * (*rcsopen) (struct buf *, struct stat *, int);
5997static char *e (p, i)
5998 char **p;
5999 int i;
6000{
6001 return p[i];
6002}
6003static char *f (char * (*g) (char **, int), char **p, ...)
6004{
6005 char *s;
6006 va_list v;
6007 va_start (v,p);
6008 s = g (p, va_arg (v,int));
6009 va_end (v);
6010 return s;
6011}
6012
6013/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6014 function prototypes and stuff, but not '\xHH' hex character constants.
6015 These don't provoke an error unfortunately, instead are silently treated
6016 as 'x'. The following induces an error, until -std is added to get
6017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6018 array size at least. It's necessary to write '\x00'==0 to get something
6019 that's true only with -std. */
6020int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6021
6022/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6023 inside strings and character constants. */
6024#define FOO(x) 'x'
6025int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6026
6027int test (int i, double x);
6028struct s1 {int (*f) (int a);};
6029struct s2 {int (*f) (double a);};
6030int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6031int argc;
6032char **argv;
6033int
6034main ()
6035{
6036return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6037 ;
6038 return 0;
6039}
6040_ACEOF
6041for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6043do
6044 CC="$ac_save_CC $ac_arg"
6045 rm -f conftest.$ac_objext
6046if { (ac_try="$ac_compile"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006079 ac_cv_prog_cc_c89=$ac_arg
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084
6085fi
6086
6087rm -f core conftest.err conftest.$ac_objext
6088 test "x$ac_cv_prog_cc_c89" != "xno" && break
6089done
6090rm -f conftest.$ac_ext
6091CC=$ac_save_CC
6092
6093fi
6094# AC_CACHE_VAL
6095case "x$ac_cv_prog_cc_c89" in
6096 x)
6097 { echo "$as_me:$LINENO: result: none needed" >&5
6098echo "${ECHO_T}none needed" >&6; } ;;
6099 xno)
6100 { echo "$as_me:$LINENO: result: unsupported" >&5
6101echo "${ECHO_T}unsupported" >&6; } ;;
6102 *)
6103 CC="$CC $ac_cv_prog_cc_c89"
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6105echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6106esac
6107
6108
6109ac_ext=c
6110ac_cpp='$CPP $CPPFLAGS'
6111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
6115ac_ext=cpp
6116ac_cpp='$CXXCPP $CPPFLAGS'
6117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120if test -z "$CXX"; then
6121 if test -n "$CCC"; then
6122 CXX=$CCC
6123 else
6124 if test -n "$ac_tool_prefix"; then
6125 for ac_prog in g++
6126 do
6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_CXX+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 if test -n "$CXX"; then
6135 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006143 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 +00006144 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154CXX=$ac_cv_prog_CXX
6155if test -n "$CXX"; then
6156 { echo "$as_me:$LINENO: result: $CXX" >&5
6157echo "${ECHO_T}$CXX" >&6; }
6158else
6159 { echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6; }
6161fi
6162
6163
6164 test -n "$CXX" && break
6165 done
6166fi
6167if test -z "$CXX"; then
6168 ac_ct_CXX=$CXX
6169 for ac_prog in g++
6170do
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172set dummy $ac_prog; ac_word=$2
6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 if test -n "$ac_ct_CXX"; then
6179 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006187 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 +00006188 ac_cv_prog_ac_ct_CXX="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6199if test -n "$ac_ct_CXX"; then
6200 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6201echo "${ECHO_T}$ac_ct_CXX" >&6; }
6202else
6203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
6205fi
6206
6207
6208 test -n "$ac_ct_CXX" && break
6209done
6210
6211 if test "x$ac_ct_CXX" = x; then
6212 CXX="g++"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215yes:)
6216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217whose name does not start with the host triplet. If you think this
6218configuration is useful to you, please write to autoconf@gnu.org." >&5
6219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet. If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222ac_tool_warned=yes ;;
6223esac
6224 CXX=$ac_ct_CXX
6225 fi
6226fi
6227
6228 fi
6229fi
6230# Provide some information about the compiler.
6231echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6232ac_compiler=`set X $ac_compile; echo $2`
6233{ (ac_try="$ac_compiler --version >&5"
6234case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compiler --version >&5") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }
6243{ (ac_try="$ac_compiler -v >&5"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compiler -v >&5") 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }
6253{ (ac_try="$ac_compiler -V >&5"
6254case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compiler -V >&5") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }
6263
6264{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6265echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6266if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275
6276int
6277main ()
6278{
6279#ifndef __GNUC__
6280 choke me
6281#endif
6282
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext
6288if { (ac_try="$ac_compile"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006321 ac_compiler_gnu=yes
6322else
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_compiler_gnu=no
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6331
6332fi
6333{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6334echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6335GXX=`test $ac_compiler_gnu = yes && echo yes`
6336ac_test_CXXFLAGS=${CXXFLAGS+set}
6337ac_save_CXXFLAGS=$CXXFLAGS
6338{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6339echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6340if test "${ac_cv_prog_cxx_g+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6344 ac_cxx_werror_flag=yes
6345 ac_cv_prog_cxx_g=no
6346 CXXFLAGS="-g"
6347 cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
6353
6354int
6355main ()
6356{
6357
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext
6363if { (ac_try="$ac_compile"
6364case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380esac
6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390esac
6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_try") 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006396 ac_cv_prog_cxx_g=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 CXXFLAGS=""
6402 cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */
6408
6409int
6410main ()
6411{
6412
6413 ;
6414 return 0;
6415}
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (ac_try="$ac_compile"
6419case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445esac
6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006451 :
6452else
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6457 CXXFLAGS="-g"
6458 cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464
6465int
6466main ()
6467{
6468
6469 ;
6470 return 0;
6471}
6472_ACEOF
6473rm -f conftest.$ac_objext
6474if { (ac_try="$ac_compile"
6475case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478esac
6479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compile") 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491esac
6492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501esac
6502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_try") 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006507 ac_cv_prog_cxx_g=yes
6508else
6509 echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512
6513fi
6514
6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516fi
6517
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519fi
6520
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6523fi
6524{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6525echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6526if test "$ac_test_CXXFLAGS" = set; then
6527 CXXFLAGS=$ac_save_CXXFLAGS
6528elif test $ac_cv_prog_cxx_g = yes; then
6529 if test "$GXX" = yes; then
6530 CXXFLAGS="-g -O2"
6531 else
6532 CXXFLAGS="-g"
6533 fi
6534else
6535 if test "$GXX" = yes; then
6536 CXXFLAGS="-O2"
6537 else
6538 CXXFLAGS=
6539 fi
6540fi
6541ac_ext=c
6542ac_cpp='$CPP $CPPFLAGS'
6543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546
Reid Spencera773bd52006-08-04 18:18:08 +00006547
6548{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6549echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6550if test "${lt_cv_path_NM+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 if test -n "$NM"; then
6554 # Let the user override the test.
6555 lt_cv_path_NM="$NM"
6556else
6557 lt_nm_to_check="${ac_tool_prefix}nm"
6558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6559 lt_nm_to_check="$lt_nm_to_check nm"
6560 fi
6561 for lt_tmp_nm in $lt_nm_to_check; do
6562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6564 IFS="$lt_save_ifs"
6565 test -z "$ac_dir" && ac_dir=.
6566 tmp_nm="$ac_dir/$lt_tmp_nm"
6567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6568 # Check to see if the nm accepts a BSD-compat flag.
6569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6570 # nm: unknown option "B" ignored
6571 # Tru64's nm complains that /dev/null is an invalid object file
6572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6573 */dev/null* | *'Invalid file or object type'*)
6574 lt_cv_path_NM="$tmp_nm -B"
6575 break
6576 ;;
6577 *)
6578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6579 */dev/null*)
6580 lt_cv_path_NM="$tmp_nm -p"
6581 break
6582 ;;
6583 *)
6584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6585 continue # so that we can try to find one that supports BSD flags
6586 ;;
6587 esac
6588 ;;
6589 esac
6590 fi
6591 done
6592 IFS="$lt_save_ifs"
6593 done
6594 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6595fi
6596fi
6597{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6598echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6599NM="$lt_cv_path_NM"
6600
6601
6602
6603{ echo "$as_me:$LINENO: checking for GNU make" >&5
6604echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6605if test "${llvm_cv_gnu_make_command+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608 llvm_cv_gnu_make_command=''
6609 for a in "$MAKE" make gmake gnumake ; do
6610 if test -z "$a" ; then continue ; fi ;
6611 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6612 then
6613 llvm_cv_gnu_make_command=$a ;
6614 break;
6615 fi
6616 done
6617fi
6618{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6619echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6620 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6621 ifGNUmake='' ;
6622 else
6623 ifGNUmake='#' ;
6624 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6625echo "${ECHO_T}\"Not found\"" >&6; };
6626 fi
6627
6628
6629{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6630echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6631LN_S=$as_ln_s
6632if test "$LN_S" = "ln -s"; then
6633 { echo "$as_me:$LINENO: result: yes" >&5
6634echo "${ECHO_T}yes" >&6; }
6635else
6636 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6637echo "${ECHO_T}no, using $LN_S" >&6; }
6638fi
6639
6640# Extract the first word of "cmp", so it can be a program name with args.
6641set dummy cmp; ac_word=$2
6642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644if test "${ac_cv_path_CMP+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647 case $CMP in
6648 [\\/]* | ?:[\\/]*)
6649 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6650 ;;
6651 *)
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006659 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664done
6665IFS=$as_save_IFS
6666
6667 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6668 ;;
6669esac
6670fi
6671CMP=$ac_cv_path_CMP
6672if test -n "$CMP"; then
6673 { echo "$as_me:$LINENO: result: $CMP" >&5
6674echo "${ECHO_T}$CMP" >&6; }
6675else
6676 { echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6; }
6678fi
6679
6680
6681# Extract the first word of "cp", so it can be a program name with args.
6682set dummy cp; ac_word=$2
6683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685if test "${ac_cv_path_CP+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 case $CP in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006700 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705done
6706IFS=$as_save_IFS
6707
6708 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6709 ;;
6710esac
6711fi
6712CP=$ac_cv_path_CP
6713if test -n "$CP"; then
6714 { echo "$as_me:$LINENO: result: $CP" >&5
6715echo "${ECHO_T}$CP" >&6; }
6716else
6717 { echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6; }
6719fi
6720
6721
6722# Extract the first word of "date", so it can be a program name with args.
6723set dummy date; ac_word=$2
6724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726if test "${ac_cv_path_DATE+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 case $DATE in
6730 [\\/]* | ?:[\\/]*)
6731 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6732 ;;
6733 *)
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006741 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746done
6747IFS=$as_save_IFS
6748
6749 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6750 ;;
6751esac
6752fi
6753DATE=$ac_cv_path_DATE
6754if test -n "$DATE"; then
6755 { echo "$as_me:$LINENO: result: $DATE" >&5
6756echo "${ECHO_T}$DATE" >&6; }
6757else
6758 { echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6; }
6760fi
6761
6762
6763# Extract the first word of "find", so it can be a program name with args.
6764set dummy find; ac_word=$2
6765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_path_FIND+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770 case $FIND in
6771 [\\/]* | ?:[\\/]*)
6772 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6773 ;;
6774 *)
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006782 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788IFS=$as_save_IFS
6789
6790 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6791 ;;
6792esac
6793fi
6794FIND=$ac_cv_path_FIND
6795if test -n "$FIND"; then
6796 { echo "$as_me:$LINENO: result: $FIND" >&5
6797echo "${ECHO_T}$FIND" >&6; }
6798else
6799 { echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6; }
6801fi
6802
6803
6804# Extract the first word of "grep", so it can be a program name with args.
6805set dummy grep; ac_word=$2
6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_path_GREP+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 case $GREP in
6812 [\\/]* | ?:[\\/]*)
6813 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6814 ;;
6815 *)
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006822 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 +00006823 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828done
6829IFS=$as_save_IFS
6830
6831 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6832 ;;
6833esac
6834fi
6835GREP=$ac_cv_path_GREP
6836if test -n "$GREP"; then
6837 { echo "$as_me:$LINENO: result: $GREP" >&5
6838echo "${ECHO_T}$GREP" >&6; }
6839else
6840 { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
6842fi
6843
6844
6845# Extract the first word of "mkdir", so it can be a program name with args.
6846set dummy mkdir; ac_word=$2
6847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849if test "${ac_cv_path_MKDIR+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 case $MKDIR in
6853 [\\/]* | ?:[\\/]*)
6854 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6855 ;;
6856 *)
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006863 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 +00006864 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870IFS=$as_save_IFS
6871
6872 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6873 ;;
6874esac
6875fi
6876MKDIR=$ac_cv_path_MKDIR
6877if test -n "$MKDIR"; then
6878 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6879echo "${ECHO_T}$MKDIR" >&6; }
6880else
6881 { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
6883fi
6884
6885
6886# Extract the first word of "mv", so it can be a program name with args.
6887set dummy mv; ac_word=$2
6888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_MV+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 case $MV in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6896 ;;
6897 *)
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006904 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 +00006905 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6914 ;;
6915esac
6916fi
6917MV=$ac_cv_path_MV
6918if test -n "$MV"; then
6919 { echo "$as_me:$LINENO: result: $MV" >&5
6920echo "${ECHO_T}$MV" >&6; }
6921else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
6924fi
6925
6926
6927if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6929set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932if test "${ac_cv_prog_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 if test -n "$RANLIB"; then
6936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006944 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 +00006945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955RANLIB=$ac_cv_prog_RANLIB
6956if test -n "$RANLIB"; then
6957 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6958echo "${ECHO_T}$RANLIB" >&6; }
6959else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962fi
6963
6964
6965fi
6966if test -z "$ac_cv_prog_RANLIB"; then
6967 ac_ct_RANLIB=$RANLIB
6968 # Extract the first word of "ranlib", so it can be a program name with args.
6969set dummy ranlib; ac_word=$2
6970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975 if test -n "$ac_ct_RANLIB"; then
6976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006984 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 +00006985 ac_cv_prog_ac_ct_RANLIB="ranlib"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6996if test -n "$ac_ct_RANLIB"; then
6997 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6998echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004 if test "x$ac_ct_RANLIB" = x; then
7005 RANLIB=":"
7006 else
7007 case $cross_compiling:$ac_tool_warned in
7008yes:)
7009{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7010whose name does not start with the host triplet. If you think this
7011configuration is useful to you, please write to autoconf@gnu.org." >&5
7012echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7013whose name does not start with the host triplet. If you think this
7014configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7015ac_tool_warned=yes ;;
7016esac
7017 RANLIB=$ac_ct_RANLIB
7018 fi
7019else
7020 RANLIB="$ac_cv_prog_RANLIB"
7021fi
7022
7023# Extract the first word of "rm", so it can be a program name with args.
7024set dummy rm; ac_word=$2
7025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_path_RM+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030 case $RM in
7031 [\\/]* | ?:[\\/]*)
7032 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7033 ;;
7034 *)
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007042 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048IFS=$as_save_IFS
7049
7050 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7051 ;;
7052esac
7053fi
7054RM=$ac_cv_path_RM
7055if test -n "$RM"; then
7056 { echo "$as_me:$LINENO: result: $RM" >&5
7057echo "${ECHO_T}$RM" >&6; }
7058else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
7061fi
7062
7063
7064# Extract the first word of "sed", so it can be a program name with args.
7065set dummy sed; ac_word=$2
7066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068if test "${ac_cv_path_SED+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 case $SED in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007082 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 +00007083 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088done
7089IFS=$as_save_IFS
7090
7091 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7092 ;;
7093esac
7094fi
7095SED=$ac_cv_path_SED
7096if test -n "$SED"; then
7097 { echo "$as_me:$LINENO: result: $SED" >&5
7098echo "${ECHO_T}$SED" >&6; }
7099else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
7102fi
7103
7104
7105# Extract the first word of "tar", so it can be a program name with args.
7106set dummy tar; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_TAR+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 case $TAR in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007123 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 +00007124 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130IFS=$as_save_IFS
7131
7132 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7133 ;;
7134esac
7135fi
7136TAR=$ac_cv_path_TAR
7137if test -n "$TAR"; then
7138 { echo "$as_me:$LINENO: result: $TAR" >&5
7139echo "${ECHO_T}$TAR" >&6; }
7140else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6; }
7143fi
7144
7145
7146# Extract the first word of "pwd", so it can be a program name with args.
7147set dummy pwd; ac_word=$2
7148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150if test "${ac_cv_path_BINPWD+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 case $BINPWD in
7154 [\\/]* | ?:[\\/]*)
7155 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7156 ;;
7157 *)
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007164 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 +00007165 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171IFS=$as_save_IFS
7172
7173 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7174 ;;
7175esac
7176fi
7177BINPWD=$ac_cv_path_BINPWD
7178if test -n "$BINPWD"; then
7179 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7180echo "${ECHO_T}$BINPWD" >&6; }
7181else
7182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
7184fi
7185
7186
7187
7188# Extract the first word of "Graphviz", so it can be a program name with args.
7189set dummy Graphviz; ac_word=$2
7190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 case $GRAPHVIZ in
7196 [\\/]* | ?:[\\/]*)
7197 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7198 ;;
7199 *)
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007206 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 +00007207 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212done
7213IFS=$as_save_IFS
7214
7215 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7216 ;;
7217esac
7218fi
7219GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7220if test -n "$GRAPHVIZ"; then
7221 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7222echo "${ECHO_T}$GRAPHVIZ" >&6; }
7223else
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
7226fi
7227
7228
7229if test "$GRAPHVIZ" != "echo Graphviz" ; then
7230
7231cat >>confdefs.h <<\_ACEOF
7232#define HAVE_GRAPHVIZ 1
7233_ACEOF
7234
Jeff Cohen28783c32007-01-12 18:22:38 +00007235 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007236 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7237 fi
7238
7239cat >>confdefs.h <<_ACEOF
7240#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7241_ACEOF
7242
7243fi
7244# Extract the first word of "dot", so it can be a program name with args.
7245set dummy dot; ac_word=$2
7246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_path_DOT+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 case $DOT in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7254 ;;
7255 *)
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007262 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 +00007263 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267done
7268done
7269IFS=$as_save_IFS
7270
7271 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7272 ;;
7273esac
7274fi
7275DOT=$ac_cv_path_DOT
7276if test -n "$DOT"; then
7277 { echo "$as_me:$LINENO: result: $DOT" >&5
7278echo "${ECHO_T}$DOT" >&6; }
7279else
7280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
7282fi
7283
7284
7285if test "$DOT" != "echo dot" ; then
7286
7287cat >>confdefs.h <<\_ACEOF
7288#define HAVE_DOT 1
7289_ACEOF
7290
Jeff Cohen28783c32007-01-12 18:22:38 +00007291 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007292 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7293 fi
7294
7295cat >>confdefs.h <<_ACEOF
7296#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7297_ACEOF
7298
7299fi
David Greenef0b9eff2009-07-09 17:16:26 +00007300# Extract the first word of "fdp", so it can be a program name with args.
7301set dummy fdp; ac_word=$2
7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_FDP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 case $FDP in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323done
7324done
7325IFS=$as_save_IFS
7326
7327 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7328 ;;
7329esac
7330fi
7331FDP=$ac_cv_path_FDP
7332if test -n "$FDP"; then
7333 { echo "$as_me:$LINENO: result: $FDP" >&5
7334echo "${ECHO_T}$FDP" >&6; }
7335else
7336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
7338fi
7339
7340
7341if test "$FDP" != "echo fdp" ; then
7342
7343cat >>confdefs.h <<\_ACEOF
7344#define HAVE_FDP 1
7345_ACEOF
7346
7347 if test "$llvm_cv_os_type" = "MingW" ; then
7348 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7349 fi
7350
7351cat >>confdefs.h <<_ACEOF
7352#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7353_ACEOF
7354
7355fi
7356# Extract the first word of "neato", so it can be a program name with args.
7357set dummy neato; ac_word=$2
7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_path_NEATO+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363 case $NEATO in
7364 [\\/]* | ?:[\\/]*)
7365 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7366 ;;
7367 *)
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381IFS=$as_save_IFS
7382
7383 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7384 ;;
7385esac
7386fi
7387NEATO=$ac_cv_path_NEATO
7388if test -n "$NEATO"; then
7389 { echo "$as_me:$LINENO: result: $NEATO" >&5
7390echo "${ECHO_T}$NEATO" >&6; }
7391else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397if test "$NEATO" != "echo neato" ; then
7398
7399cat >>confdefs.h <<\_ACEOF
7400#define HAVE_NEATO 1
7401_ACEOF
7402
7403 if test "$llvm_cv_os_type" = "MingW" ; then
7404 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7405 fi
7406
7407cat >>confdefs.h <<_ACEOF
7408#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7409_ACEOF
7410
7411fi
7412# Extract the first word of "twopi", so it can be a program name with args.
7413set dummy twopi; ac_word=$2
7414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_TWOPI+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 case $TWOPI in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435done
7436done
7437IFS=$as_save_IFS
7438
7439 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7440 ;;
7441esac
7442fi
7443TWOPI=$ac_cv_path_TWOPI
7444if test -n "$TWOPI"; then
7445 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7446echo "${ECHO_T}$TWOPI" >&6; }
7447else
7448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
7450fi
7451
7452
7453if test "$TWOPI" != "echo twopi" ; then
7454
7455cat >>confdefs.h <<\_ACEOF
7456#define HAVE_TWOPI 1
7457_ACEOF
7458
7459 if test "$llvm_cv_os_type" = "MingW" ; then
7460 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461 fi
7462
7463cat >>confdefs.h <<_ACEOF
7464#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7465_ACEOF
7466
7467fi
7468# Extract the first word of "circo", so it can be a program name with args.
7469set dummy circo; ac_word=$2
7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_CIRCO+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 case $CIRCO in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7478 ;;
7479 *)
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7496 ;;
7497esac
7498fi
7499CIRCO=$ac_cv_path_CIRCO
7500if test -n "$CIRCO"; then
7501 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7502echo "${ECHO_T}$CIRCO" >&6; }
7503else
7504 { echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6; }
7506fi
7507
7508
7509if test "$CIRCO" != "echo circo" ; then
7510
7511cat >>confdefs.h <<\_ACEOF
7512#define HAVE_CIRCO 1
7513_ACEOF
7514
7515 if test "$llvm_cv_os_type" = "MingW" ; then
7516 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517 fi
7518
7519cat >>confdefs.h <<_ACEOF
7520#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7521_ACEOF
7522
7523fi
Reid Spencera773bd52006-08-04 18:18:08 +00007524for ac_prog in gv gsview32
7525do
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527set dummy $ac_prog; ac_word=$2
7528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530if test "${ac_cv_path_GV+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 case $GV in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007544 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 +00007545 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550done
7551IFS=$as_save_IFS
7552
7553 ;;
7554esac
7555fi
7556GV=$ac_cv_path_GV
7557if test -n "$GV"; then
7558 { echo "$as_me:$LINENO: result: $GV" >&5
7559echo "${ECHO_T}$GV" >&6; }
7560else
7561 { echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6; }
7563fi
7564
7565
7566 test -n "$GV" && break
7567done
7568test -n "$GV" || GV="echo gv"
7569
7570if test "$GV" != "echo gv" ; then
7571
7572cat >>confdefs.h <<\_ACEOF
7573#define HAVE_GV 1
7574_ACEOF
7575
Jeff Cohen28783c32007-01-12 18:22:38 +00007576 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007577 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578 fi
7579
7580cat >>confdefs.h <<_ACEOF
7581#define LLVM_PATH_GV "$GV${EXEEXT}"
7582_ACEOF
7583
7584fi
7585# Extract the first word of "dotty", so it can be a program name with args.
7586set dummy dotty; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_DOTTY+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $DOTTY in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007603 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 +00007604 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7613 ;;
7614esac
7615fi
7616DOTTY=$ac_cv_path_DOTTY
7617if test -n "$DOTTY"; then
7618 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7619echo "${ECHO_T}$DOTTY" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626if test "$DOTTY" != "echo dotty" ; then
7627
7628cat >>confdefs.h <<\_ACEOF
7629#define HAVE_DOTTY 1
7630_ACEOF
7631
Jeff Cohen28783c32007-01-12 18:22:38 +00007632 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007633 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634 fi
7635
7636cat >>confdefs.h <<_ACEOF
7637#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7638_ACEOF
7639
7640fi
7641
7642
7643# Extract the first word of "perl", so it can be a program name with args.
7644set dummy perl; ac_word=$2
7645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647if test "${ac_cv_path_PERL+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 case $PERL in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007662 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666done
7667done
7668IFS=$as_save_IFS
7669
7670 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7671 ;;
7672esac
7673fi
7674PERL=$ac_cv_path_PERL
7675if test -n "$PERL"; then
7676 { echo "$as_me:$LINENO: result: $PERL" >&5
7677echo "${ECHO_T}$PERL" >&6; }
7678else
7679 { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
7681fi
7682
7683
7684if test "$PERL" != "none"; then
7685 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7686echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7687 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7688 { echo "$as_me:$LINENO: result: yes" >&5
7689echo "${ECHO_T}yes" >&6; }
7690 else
7691 PERL=none
7692 { echo "$as_me:$LINENO: result: not found" >&5
7693echo "${ECHO_T}not found" >&6; }
7694 fi
7695fi
7696
7697
7698if test x"$PERL" = xnone; then
7699 HAVE_PERL=0
7700
Reid Spencer59807fa2007-05-17 18:11:03 +00007701 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7702echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7703 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007704else
7705 HAVE_PERL=1
7706
7707fi
7708
7709# Find a good install program. We prefer a C program (faster),
7710# so one script is as good as another. But avoid the broken or
7711# incompatible versions:
7712# SysV /etc/install, /usr/sbin/install
7713# SunOS /usr/etc/install
7714# IRIX /sbin/install
7715# AIX /bin/install
7716# AmigaOS /C/install, which installs bootblocks on floppy discs
7717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7720# OS/2's system install, which has a completely different semantic
7721# ./install, which can be erroneously created by make from ./install.sh.
7722{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7723echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7724if test -z "$INSTALL"; then
7725if test "${ac_cv_path_install+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 # Account for people who put trailing slashes in PATH elements.
7734case $as_dir/ in
7735 ./ | .// | /cC/* | \
7736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7737 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7738 /usr/ucb/* ) ;;
7739 *)
7740 # OSF1 and SCO ODT 3.0 have their own names for install.
7741 # Don't use installbsd from OSF since it installs stuff as root
7742 # by default.
7743 for ac_prog in ginstall scoinst install; do
7744 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007745 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 +00007746 if test $ac_prog = install &&
7747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748 # AIX install. It has an incompatible calling convention.
7749 :
7750 elif test $ac_prog = install &&
7751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7752 # program-specific install script used by HP pwplus--don't use.
7753 :
7754 else
7755 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7756 break 3
7757 fi
7758 fi
7759 done
7760 done
7761 ;;
7762esac
7763done
7764IFS=$as_save_IFS
7765
7766
7767fi
7768 if test "${ac_cv_path_install+set}" = set; then
7769 INSTALL=$ac_cv_path_install
7770 else
7771 # As a last resort, use the slow shell script. Don't cache a
7772 # value for INSTALL within a source directory, because that will
7773 # break other packages using the cache if that directory is
7774 # removed, or if the value is a relative name.
7775 INSTALL=$ac_install_sh
7776 fi
7777fi
7778{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7779echo "${ECHO_T}$INSTALL" >&6; }
7780
7781# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7782# It thinks the first close brace ends the variable substitution.
7783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7784
7785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7786
7787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7788
7789
7790# Extract the first word of "bzip2", so it can be a program name with args.
7791set dummy bzip2; ac_word=$2
7792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794if test "${ac_cv_path_BZIP2+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797 case $BZIP2 in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007808 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 +00007809 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815IFS=$as_save_IFS
7816
Reid Spencera773bd52006-08-04 18:18:08 +00007817 ;;
7818esac
7819fi
7820BZIP2=$ac_cv_path_BZIP2
7821if test -n "$BZIP2"; then
7822 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7823echo "${ECHO_T}$BZIP2" >&6; }
7824else
7825 { echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6; }
7827fi
7828
7829
7830# Extract the first word of "doxygen", so it can be a program name with args.
7831set dummy doxygen; ac_word=$2
7832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834if test "${ac_cv_path_DOXYGEN+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 case $DOXYGEN in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7840 ;;
7841 *)
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007848 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 +00007849 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
7855IFS=$as_save_IFS
7856
Reid Spencera773bd52006-08-04 18:18:08 +00007857 ;;
7858esac
7859fi
7860DOXYGEN=$ac_cv_path_DOXYGEN
7861if test -n "$DOXYGEN"; then
7862 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7863echo "${ECHO_T}$DOXYGEN" >&6; }
7864else
7865 { echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6; }
7867fi
7868
7869
Reid Spencera773bd52006-08-04 18:18:08 +00007870# Extract the first word of "groff", so it can be a program name with args.
7871set dummy groff; ac_word=$2
7872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874if test "${ac_cv_path_GROFF+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877 case $GROFF in
7878 [\\/]* | ?:[\\/]*)
7879 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7880 ;;
7881 *)
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007888 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 +00007889 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893done
7894done
7895IFS=$as_save_IFS
7896
Reid Spencera773bd52006-08-04 18:18:08 +00007897 ;;
7898esac
7899fi
7900GROFF=$ac_cv_path_GROFF
7901if test -n "$GROFF"; then
7902 { echo "$as_me:$LINENO: result: $GROFF" >&5
7903echo "${ECHO_T}$GROFF" >&6; }
7904else
7905 { echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6; }
7907fi
7908
7909
7910# Extract the first word of "gzip", so it can be a program name with args.
7911set dummy gzip; ac_word=$2
7912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914if test "${ac_cv_path_GZIP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 case $GZIP in
7918 [\\/]* | ?:[\\/]*)
7919 ac_cv_path_GZIP="$GZIP" # 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
Reid Spencera773bd52006-08-04 18:18:08 +00007929 ac_cv_path_GZIP="$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
Reid Spencera773bd52006-08-04 18:18:08 +00007937 ;;
7938esac
7939fi
7940GZIP=$ac_cv_path_GZIP
7941if test -n "$GZIP"; then
7942 { echo "$as_me:$LINENO: result: $GZIP" >&5
7943echo "${ECHO_T}$GZIP" >&6; }
7944else
7945 { echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6; }
7947fi
7948
7949
7950# Extract the first word of "pod2html", so it can be a program name with args.
7951set dummy pod2html; ac_word=$2
7952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_POD2HTML+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 case $POD2HTML in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7960 ;;
7961 *)
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007968 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 +00007969 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974done
7975IFS=$as_save_IFS
7976
Reid Spencera773bd52006-08-04 18:18:08 +00007977 ;;
7978esac
7979fi
7980POD2HTML=$ac_cv_path_POD2HTML
7981if test -n "$POD2HTML"; then
7982 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7983echo "${ECHO_T}$POD2HTML" >&6; }
7984else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
7990# Extract the first word of "pod2man", so it can be a program name with args.
7991set dummy pod2man; ac_word=$2
7992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_POD2MAN+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 case $POD2MAN in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008009 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014done
8015IFS=$as_save_IFS
8016
Reid Spencera773bd52006-08-04 18:18:08 +00008017 ;;
8018esac
8019fi
8020POD2MAN=$ac_cv_path_POD2MAN
8021if test -n "$POD2MAN"; then
8022 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8023echo "${ECHO_T}$POD2MAN" >&6; }
8024else
8025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
8027fi
8028
8029
8030# Extract the first word of "runtest", so it can be a program name with args.
8031set dummy runtest; ac_word=$2
8032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034if test "${ac_cv_path_RUNTEST+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 case $RUNTEST in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008048 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 +00008049 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054done
8055IFS=$as_save_IFS
8056
Reid Spencera773bd52006-08-04 18:18:08 +00008057 ;;
8058esac
8059fi
8060RUNTEST=$ac_cv_path_RUNTEST
8061if test -n "$RUNTEST"; then
8062 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8063echo "${ECHO_T}$RUNTEST" >&6; }
8064else
8065 { echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6; }
8067fi
8068
8069
8070
8071no_itcl=true
8072{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8073echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8074
8075# Check whether --with-tclinclude was given.
8076if test "${with_tclinclude+set}" = set; then
8077 withval=$with_tclinclude; with_tclinclude=${withval}
8078else
8079 with_tclinclude=''
8080fi
8081
8082if test "${ac_cv_path_tclsh+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085
8086if test x"${with_tclinclude}" != x ; then
8087 if test -f ${with_tclinclude}/tclsh ; then
8088 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8089 elif test -f ${with_tclinclude}/src/tclsh ; then
8090 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8091 else
8092 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8093echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8094 { (exit 1); exit 1; }; }
8095 fi
8096fi
8097
8098if test x"${ac_cv_path_tclsh}" = x ; then
8099 { echo "$as_me:$LINENO: result: none" >&5
8100echo "${ECHO_T}none" >&6; }
8101 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
8102do
8103 # Extract the first word of "$ac_prog", so it can be a program name with args.
8104set dummy $ac_prog; ac_word=$2
8105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107if test "${ac_cv_path_TCLSH+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 case $TCLSH in
8111 [\\/]* | ?:[\\/]*)
8112 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8113 ;;
8114 *)
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008121 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 +00008122 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128IFS=$as_save_IFS
8129
8130 ;;
8131esac
8132fi
8133TCLSH=$ac_cv_path_TCLSH
8134if test -n "$TCLSH"; then
8135 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8136echo "${ECHO_T}$TCLSH" >&6; }
8137else
8138 { echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6; }
8140fi
8141
8142
8143 test -n "$TCLSH" && break
8144done
8145
8146 if test x"${TCLSH}" = x ; then
8147 ac_cv_path_tclsh='';
8148 else
8149 ac_cv_path_tclsh="${TCLSH}";
8150 fi
8151else
8152 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8153echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8154 TCLSH="${ac_cv_path_tclsh}"
8155
8156fi
8157
8158fi
8159
8160# Extract the first word of "zip", so it can be a program name with args.
8161set dummy zip; ac_word=$2
8162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8164if test "${ac_cv_path_ZIP+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167 case $ZIP in
8168 [\\/]* | ?:[\\/]*)
8169 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8170 ;;
8171 *)
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008178 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 +00008179 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184done
8185IFS=$as_save_IFS
8186
Reid Spencera773bd52006-08-04 18:18:08 +00008187 ;;
8188esac
8189fi
8190ZIP=$ac_cv_path_ZIP
8191if test -n "$ZIP"; then
8192 { echo "$as_me:$LINENO: result: $ZIP" >&5
8193echo "${ECHO_T}$ZIP" >&6; }
8194else
8195 { echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6; }
8197fi
8198
8199
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008200for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008201do
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8206if test "${ac_cv_path_OCAMLC+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 case $OCAMLC in
8210 [\\/]* | ?:[\\/]*)
8211 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8212 ;;
8213 *)
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008220 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 +00008221 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225done
8226done
8227IFS=$as_save_IFS
8228
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008229 ;;
8230esac
8231fi
8232OCAMLC=$ac_cv_path_OCAMLC
8233if test -n "$OCAMLC"; then
8234 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8235echo "${ECHO_T}$OCAMLC" >&6; }
8236else
8237 { echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6; }
8239fi
8240
8241
Gordon Henriksene7072162008-03-07 18:20:01 +00008242 test -n "$OCAMLC" && break
8243done
8244
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008245for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008246do
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254 case $OCAMLOPT in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8257 ;;
8258 *)
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008265 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 +00008266 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270done
8271done
8272IFS=$as_save_IFS
8273
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008274 ;;
8275esac
8276fi
8277OCAMLOPT=$ac_cv_path_OCAMLOPT
8278if test -n "$OCAMLOPT"; then
8279 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8280echo "${ECHO_T}$OCAMLOPT" >&6; }
8281else
8282 { echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6; }
8284fi
8285
8286
Gordon Henriksene7072162008-03-07 18:20:01 +00008287 test -n "$OCAMLOPT" && break
8288done
8289
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008290for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008291do
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 case $OCAMLDEP in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008310 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 +00008311 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315done
8316done
8317IFS=$as_save_IFS
8318
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008319 ;;
8320esac
8321fi
8322OCAMLDEP=$ac_cv_path_OCAMLDEP
8323if test -n "$OCAMLDEP"; then
8324 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8325echo "${ECHO_T}$OCAMLDEP" >&6; }
8326else
8327 { echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6; }
8329fi
8330
8331
Gordon Henriksene7072162008-03-07 18:20:01 +00008332 test -n "$OCAMLDEP" && break
8333done
8334
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008335for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008336do
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338set dummy $ac_prog; ac_word=$2
8339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344 case $OCAMLDOC in
8345 [\\/]* | ?:[\\/]*)
8346 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8347 ;;
8348 *)
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008355 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 +00008356 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8359 fi
8360done
8361done
8362IFS=$as_save_IFS
8363
8364 ;;
8365esac
8366fi
8367OCAMLDOC=$ac_cv_path_OCAMLDOC
8368if test -n "$OCAMLDOC"; then
8369 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8370echo "${ECHO_T}$OCAMLDOC" >&6; }
8371else
8372 { echo "$as_me:$LINENO: result: no" >&5
8373echo "${ECHO_T}no" >&6; }
8374fi
8375
8376
8377 test -n "$OCAMLDOC" && break
8378done
8379
Torok Edwincc499a42008-10-22 09:56:27 +00008380for ac_prog in gas as
8381do
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383set dummy $ac_prog; ac_word=$2
8384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386if test "${ac_cv_path_GAS+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388else
8389 case $GAS in
8390 [\\/]* | ?:[\\/]*)
8391 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8392 ;;
8393 *)
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008400 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 +00008401 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405done
8406done
8407IFS=$as_save_IFS
8408
8409 ;;
8410esac
8411fi
8412GAS=$ac_cv_path_GAS
8413if test -n "$GAS"; then
8414 { echo "$as_me:$LINENO: result: $GAS" >&5
8415echo "${ECHO_T}$GAS" >&6; }
8416else
8417 { echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6; }
8419fi
8420
8421
8422 test -n "$GAS" && break
8423done
8424
Reid Spencera773bd52006-08-04 18:18:08 +00008425
8426{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8427echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8428if test "${llvm_cv_link_use_r+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431 ac_ext=c
8432ac_cpp='$CPP $CPPFLAGS'
8433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436
8437 oldcflags="$CFLAGS"
8438 CFLAGS="$CFLAGS -Wl,-R."
8439 cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445
8446int
8447main ()
8448{
8449int main() { return 0; }
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext conftest$ac_exeext
8455if { (ac_try="$ac_link"
8456case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472esac
8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (case "(($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_try") 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008488 llvm_cv_link_use_r=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 llvm_cv_link_use_r=no
8494fi
8495
Bill Wendlingebcceee2009-04-18 11:20:33 +00008496rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008497 conftest$ac_exeext conftest.$ac_ext
8498 CFLAGS="$oldcflags"
8499 ac_ext=c
8500ac_cpp='$CPP $CPPFLAGS'
8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505
8506fi
8507{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8508echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8509if test "$llvm_cv_link_use_r" = yes ; then
8510
8511cat >>confdefs.h <<\_ACEOF
8512#define HAVE_LINK_R 1
8513_ACEOF
8514
8515 fi
8516
8517
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008518{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8519echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8520if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523 ac_ext=c
8524ac_cpp='$CPP $CPPFLAGS'
8525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528
8529 oldcflags="$CFLAGS"
8530 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537
8538int
8539main ()
8540{
8541int main() { return 0; }
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546rm -f conftest.$ac_objext conftest$ac_exeext
8547if { (ac_try="$ac_link"
8548case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551esac
8552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574esac
8575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008580 llvm_cv_link_use_export_dynamic=yes
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 llvm_cv_link_use_export_dynamic=no
8586fi
8587
Bill Wendlingebcceee2009-04-18 11:20:33 +00008588rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008589 conftest$ac_exeext conftest.$ac_ext
8590 CFLAGS="$oldcflags"
8591 ac_ext=c
8592ac_cpp='$CPP $CPPFLAGS'
8593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597
8598fi
8599{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8600echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8601if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8602
8603cat >>confdefs.h <<\_ACEOF
8604#define HAVE_LINK_EXPORT_DYNAMIC 1
8605_ACEOF
8606
8607 fi
8608
8609
Reid Spencera773bd52006-08-04 18:18:08 +00008610
8611
8612{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8613echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8614if test "${ac_cv_c_const+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 cat >conftest.$ac_ext <<_ACEOF
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623
8624int
8625main ()
8626{
8627/* FIXME: Include the comments suggested by Paul. */
8628#ifndef __cplusplus
8629 /* Ultrix mips cc rejects this. */
8630 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008631 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008632 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008633 char const *const *ccp;
8634 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008635 /* NEC SVR4.0.2 mips cc rejects this. */
8636 struct point {int x, y;};
8637 static struct point const zero = {0,0};
8638 /* AIX XL C 1.02.0.0 rejects this.
8639 It does not let you subtract one const X* pointer from another in
8640 an arm of an if-expression whose if-part is not a constant
8641 expression */
8642 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008643 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008644 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008645 ++ccp;
8646 p = (char**) ccp;
8647 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008648 { /* SCO 3.2v4 cc rejects this. */
8649 char *t;
8650 char const *s = 0 ? (char *) 0 : (char const *) 0;
8651
8652 *t++ = 0;
8653 if (s) return 0;
8654 }
8655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8656 int x[] = {25, 17};
8657 const int *foo = &x[0];
8658 ++foo;
8659 }
8660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8661 typedef const int *iptr;
8662 iptr p = 0;
8663 ++p;
8664 }
8665 { /* AIX XL C 1.02.0.0 rejects this saying
8666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8667 struct s { int j; const int *ap[3]; };
8668 struct s *b; b->j = 5;
8669 }
8670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8671 const int foo = 10;
8672 if (!foo) return 0;
8673 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008674 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008675#endif
8676
8677 ;
8678 return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext
8682if { (ac_try="$ac_compile"
8683case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008694 (exit $ac_status); } &&
8695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699esac
8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709esac
8710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_try") 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008715 ac_cv_c_const=yes
8716else
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_c_const=no
8721fi
8722
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8726echo "${ECHO_T}$ac_cv_c_const" >&6; }
8727if test $ac_cv_c_const = no; then
8728
8729cat >>confdefs.h <<\_ACEOF
8730#define const
8731_ACEOF
8732
8733fi
8734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008735
8736
8737
8738
8739
8740ac_header_dirent=no
8741for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8742 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008743{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8744echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748 cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h. */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h. */
8754#include <sys/types.h>
8755#include <$ac_hdr>
8756
8757int
8758main ()
8759{
8760if ((DIR *) 0)
8761return 0;
8762 ;
8763 return 0;
8764}
8765_ACEOF
8766rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008767if { (ac_try="$ac_compile"
8768case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771esac
8772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008779 (exit $ac_status); } &&
8780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784esac
8785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest.$ac_objext'
8791 { (case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794esac
8795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_try") 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008800 eval "$as_ac_Header=yes"
8801else
8802 echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
8804
Reid Spencera773bd52006-08-04 18:18:08 +00008805 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806fi
Reid Spencera773bd52006-08-04 18:18:08 +00008807
8808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008809fi
Reid Spencera773bd52006-08-04 18:18:08 +00008810ac_res=`eval echo '${'$as_ac_Header'}'`
8811 { echo "$as_me:$LINENO: result: $ac_res" >&5
8812echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008813if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8816_ACEOF
8817
8818ac_header_dirent=$ac_hdr; break
8819fi
8820
8821done
8822# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8823if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008824 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8825echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008826if test "${ac_cv_search_opendir+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828else
8829 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008830cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
8836
Reid Spencera773bd52006-08-04 18:18:08 +00008837/* Override any GCC internal prototype to avoid an error.
8838 Use char because int might match the return type of a GCC
8839 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840#ifdef __cplusplus
8841extern "C"
8842#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008843char opendir ();
8844int
8845main ()
8846{
Reid Spencera773bd52006-08-04 18:18:08 +00008847return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848 ;
8849 return 0;
8850}
8851_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008852for ac_lib in '' dir; do
8853 if test -z "$ac_lib"; then
8854 ac_res="none required"
8855 else
8856 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008858 fi
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860if { (ac_try="$ac_link"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008872 (exit $ac_status); } &&
8873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8874 { (case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877esac
8878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_try") 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887esac
8888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_try") 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008893 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894else
8895 echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008898
8899fi
8900
Bill Wendlingebcceee2009-04-18 11:20:33 +00008901rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008902 conftest$ac_exeext
8903 if test "${ac_cv_search_opendir+set}" = set; then
8904 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008905fi
John Criswell7a73b802003-06-30 21:59:07 +00008906done
Reid Spencera773bd52006-08-04 18:18:08 +00008907if test "${ac_cv_search_opendir+set}" = set; then
8908 :
8909else
8910 ac_cv_search_opendir=no
8911fi
8912rm conftest.$ac_ext
8913LIBS=$ac_func_search_save_LIBS
8914fi
8915{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8916echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8917ac_res=$ac_cv_search_opendir
8918if test "$ac_res" != no; then
8919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008920
Reid Spencera773bd52006-08-04 18:18:08 +00008921fi
8922
8923else
8924 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8925echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8926if test "${ac_cv_search_opendir+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929 ac_func_search_save_LIBS=$LIBS
8930cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h. */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h. */
8936
8937/* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940#ifdef __cplusplus
8941extern "C"
8942#endif
8943char opendir ();
8944int
8945main ()
8946{
8947return opendir ();
8948 ;
8949 return 0;
8950}
8951_ACEOF
8952for ac_lib in '' x; do
8953 if test -z "$ac_lib"; then
8954 ac_res="none required"
8955 else
8956 ac_res=-l$ac_lib
8957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8958 fi
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960if { (ac_try="$ac_link"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987esac
8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_try") 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008993 ac_cv_search_opendir=$ac_res
8994else
8995 echo "$as_me: failed program was:" >&5
8996sed 's/^/| /' conftest.$ac_ext >&5
8997
8998
8999fi
9000
Bill Wendlingebcceee2009-04-18 11:20:33 +00009001rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009002 conftest$ac_exeext
9003 if test "${ac_cv_search_opendir+set}" = set; then
9004 break
9005fi
9006done
9007if test "${ac_cv_search_opendir+set}" = set; then
9008 :
9009else
9010 ac_cv_search_opendir=no
9011fi
9012rm conftest.$ac_ext
9013LIBS=$ac_func_search_save_LIBS
9014fi
9015{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9016echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9017ac_res=$ac_cv_search_opendir
9018if test "$ac_res" != no; then
9019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9020
9021fi
9022
9023fi
John Criswell7a73b802003-06-30 21:59:07 +00009024
9025
9026for ac_header in dlfcn.h
9027do
9028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009033 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009034fi
Reid Spencera773bd52006-08-04 18:18:08 +00009035ac_res=`eval echo '${'$as_ac_Header'}'`
9036 { echo "$as_me:$LINENO: result: $ac_res" >&5
9037echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009038else
Brian Gaeke0a621332004-09-08 20:38:05 +00009039 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009042cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009048$ac_includes_default
9049#include <$ac_header>
9050_ACEOF
9051rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009052if { (ac_try="$ac_compile"
9053case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056esac
9057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009060 grep -v '^ *+' conftest.er1 >conftest.err
9061 rm -f conftest.er1
9062 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009064 (exit $ac_status); } &&
9065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069esac
9070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079esac
9080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_try") 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009085 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009086else
9087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009088sed 's/^/| /' conftest.$ac_ext >&5
9089
Reid Spencera773bd52006-08-04 18:18:08 +00009090 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009091fi
Reid Spencera773bd52006-08-04 18:18:08 +00009092
9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009096
9097# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009100cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009101/* confdefs.h. */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */
9106#include <$ac_header>
9107_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009108if { (ac_try="$ac_cpp conftest.$ac_ext"
9109case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009120 (exit $ac_status); } >/dev/null; then
9121 if test -s conftest.err; then
9122 ac_cpp_err=$ac_c_preproc_warn_flag
9123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9124 else
9125 ac_cpp_err=
9126 fi
9127else
9128 ac_cpp_err=yes
9129fi
9130if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009131 ac_header_preproc=yes
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ac_header_preproc=no
9137fi
Reid Spencera773bd52006-08-04 18:18:08 +00009138
Brian Gaeke0a621332004-09-08 20:38:05 +00009139rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009142
9143# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9145 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009151 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009152 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009165 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009166## ----------------------------------- ##
9167## Report this to llvmbugs@cs.uiuc.edu ##
9168## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009169_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009170 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009171 ;;
9172esac
Reid Spencera773bd52006-08-04 18:18:08 +00009173{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009178 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009179fi
Reid Spencera773bd52006-08-04 18:18:08 +00009180ac_res=`eval echo '${'$as_ac_Header'}'`
9181 { echo "$as_me:$LINENO: result: $ac_res" >&5
9182echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009183
9184fi
John Criswell7a73b802003-06-30 21:59:07 +00009185if test `eval echo '${'$as_ac_Header'}'` = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188_ACEOF
9189
9190fi
9191
9192done
9193
Reid Spencera773bd52006-08-04 18:18:08 +00009194# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009196 enableval=$enable_ltdl_install;
9197fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199
Bill Wendlingebcceee2009-04-18 11:20:33 +00009200
9201
9202if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009203 INSTALL_LTDL_TRUE=
9204 INSTALL_LTDL_FALSE='#'
9205else
9206 INSTALL_LTDL_TRUE='#'
9207 INSTALL_LTDL_FALSE=
9208fi
9209
Bill Wendlingebcceee2009-04-18 11:20:33 +00009210
9211
9212if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213 CONVENIENCE_LTDL_TRUE=
9214 CONVENIENCE_LTDL_FALSE='#'
9215else
9216 CONVENIENCE_LTDL_TRUE='#'
9217 CONVENIENCE_LTDL_FALSE=
9218fi
9219
9220
Reid Spencera773bd52006-08-04 18:18:08 +00009221{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9222echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223library_names_spec=
9224libname_spec='lib$name'
9225soname_spec=
9226shrext_cmds=".so"
9227postinstall_cmds=
9228postuninstall_cmds=
9229finish_cmds=
9230finish_eval=
9231shlibpath_var=
9232shlibpath_overrides_runpath=unknown
9233version_type=none
9234dynamic_linker="$host_os ld.so"
9235sys_lib_dlsearch_path_spec="/lib /usr/lib"
9236if test "$GCC" = yes; then
9237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9238 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9239 # if the path contains ";" then we assume it to be the separator
9240 # otherwise default to the standard path separator (i.e. ":") - it is
9241 # assumed that no part of a normal pathname contains ";" but that should
9242 # okay in the real world where ";" in dirpaths is itself problematic.
9243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9244 else
9245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9246 fi
9247else
9248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9249fi
9250need_lib_prefix=unknown
9251hardcode_into_libs=no
9252
9253# when you set need_version to no, make sure it does not cause -set_version
9254# flags to be left without arguments
9255need_version=unknown
9256
9257case $host_os in
9258aix3*)
9259 version_type=linux
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9261 shlibpath_var=LIBPATH
9262
9263 # AIX 3 has no versioning support, so we append a major version to the name.
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 ;;
9266
9267aix4* | aix5*)
9268 version_type=linux
9269 need_lib_prefix=no
9270 need_version=no
9271 hardcode_into_libs=yes
9272 if test "$host_cpu" = ia64; then
9273 # AIX 5 supports IA64
9274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 else
9277 # With GCC up to 2.95.x, collect2 would create an import file
9278 # for dependence libraries. The import file would start with
9279 # the line `#! .'. This would cause the generated library to
9280 # depend on `.', always an invalid library. This was fixed in
9281 # development snapshots of GCC prior to 3.0.
9282 case $host_os in
9283 aix4 | aix4.[01] | aix4.[01].*)
9284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9285 echo ' yes '
9286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9287 :
9288 else
9289 can_build_shared=no
9290 fi
9291 ;;
9292 esac
9293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9294 # soname into executable. Probably we can add versioning support to
9295 # collect2, so additional links can be useful in future.
9296 if test "$aix_use_runtimelinking" = yes; then
9297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9298 # instead of lib<name>.a to let people know that these are not
9299 # typical AIX shared libraries.
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 else
9302 # We preserve .a as extension for shared libraries through AIX4.2
9303 # and later when we are not doing run time linking.
9304 library_names_spec='${libname}${release}.a $libname.a'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 fi
9307 shlibpath_var=LIBPATH
9308 fi
9309 ;;
9310
9311amigaos*)
9312 library_names_spec='$libname.ixlibrary $libname.a'
9313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9314 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'
9315 ;;
9316
9317beos*)
9318 library_names_spec='${libname}${shared_ext}'
9319 dynamic_linker="$host_os ld.so"
9320 shlibpath_var=LIBRARY_PATH
9321 ;;
9322
9323bsdi[45]*)
9324 version_type=linux
9325 need_version=no
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9332 # the default ld.so.conf also contains /usr/contrib/lib and
9333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9334 # libtool to hard-code these into programs
9335 ;;
9336
9337cygwin* | mingw* | pw32*)
9338 version_type=windows
9339 shrext_cmds=".dll"
9340 need_version=no
9341 need_lib_prefix=no
9342
9343 case $GCC,$host_os in
9344 yes,cygwin* | yes,mingw* | yes,pw32*)
9345 library_names_spec='$libname.dll.a'
9346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9347 postinstall_cmds='base_file=`basename \${file}`~
9348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9349 dldir=$destdir/`dirname \$dlpath`~
9350 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009351 $install_prog $dir/$dlname \$dldir/$dlname~
9352 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9354 dlpath=$dir/\$dldll~
9355 $rm \$dlpath'
9356 shlibpath_overrides_runpath=yes
9357
9358 case $host_os in
9359 cygwin*)
9360 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9361 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9362 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9363 ;;
9364 mingw*)
9365 # MinGW DLLs use traditional 'lib' prefix
9366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9367 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9368 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9369 # It is most probably a Windows format PATH printed by
9370 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9371 # path with ; separators, and with drive letters. We can handle the
9372 # drive letters (cygwin fileutils understands them), so leave them,
9373 # especially as we might pass files found there to a mingw objdump,
9374 # which wouldn't understand a cygwinified path. Ahh.
9375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9376 else
9377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9378 fi
9379 ;;
9380 pw32*)
9381 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009382 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 +00009383 ;;
9384 esac
9385 ;;
9386
9387 *)
9388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9389 ;;
9390 esac
9391 dynamic_linker='Win32 ld.exe'
9392 # FIXME: first we should search . and the directory the executable is in
9393 shlibpath_var=PATH
9394 ;;
9395
9396darwin* | rhapsody*)
9397 dynamic_linker="$host_os dyld"
9398 version_type=darwin
9399 need_lib_prefix=no
9400 need_version=no
9401 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9402 soname_spec='${libname}${release}${major}$shared_ext'
9403 shlibpath_overrides_runpath=yes
9404 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009405 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9407 if test "$GCC" = yes; then
9408 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"`
9409 else
9410 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9411 fi
9412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9413 ;;
9414
9415dgux*)
9416 version_type=linux
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 ;;
9423
9424freebsd1*)
9425 dynamic_linker=no
9426 ;;
9427
9428kfreebsd*-gnu)
9429 version_type=linux
9430 need_lib_prefix=no
9431 need_version=no
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=no
9436 hardcode_into_libs=yes
9437 dynamic_linker='GNU ld.so'
9438 ;;
9439
Reid Spencera773bd52006-08-04 18:18:08 +00009440freebsd* | dragonfly*)
9441 # DragonFly does not have aout. When/if they implement a new
9442 # versioning mechanism, adjust this.
9443 if test -x /usr/bin/objformat; then
9444 objformat=`/usr/bin/objformat`
9445 else
9446 case $host_os in
9447 freebsd[123]*) objformat=aout ;;
9448 *) objformat=elf ;;
9449 esac
9450 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451 version_type=freebsd-$objformat
9452 case $version_type in
9453 freebsd-elf*)
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9455 need_version=no
9456 need_lib_prefix=no
9457 ;;
9458 freebsd-*)
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9460 need_version=yes
9461 ;;
9462 esac
9463 shlibpath_var=LD_LIBRARY_PATH
9464 case $host_os in
9465 freebsd2*)
9466 shlibpath_overrides_runpath=yes
9467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009468 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469 shlibpath_overrides_runpath=yes
9470 hardcode_into_libs=yes
9471 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009477 freebsd*) # from 4.6 on
9478 shlibpath_overrides_runpath=yes
9479 hardcode_into_libs=yes
9480 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481 esac
9482 ;;
9483
9484gnu*)
9485 version_type=linux
9486 need_lib_prefix=no
9487 need_version=no
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 hardcode_into_libs=yes
9492 ;;
9493
9494hpux9* | hpux10* | hpux11*)
9495 # Give a soname corresponding to the major version so that dld.sl refuses to
9496 # link against other versions.
9497 version_type=sunos
9498 need_lib_prefix=no
9499 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009500 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501 ia64*)
9502 shrext_cmds='.so'
9503 hardcode_into_libs=yes
9504 dynamic_linker="$host_os dld.so"
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 if test "X$HPUX_IA64_MODE" = X32; then
9510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9511 else
9512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9513 fi
9514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9515 ;;
9516 hppa*64*)
9517 shrext_cmds='.sl'
9518 hardcode_into_libs=yes
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526 ;;
9527 *)
9528 shrext_cmds='.sl'
9529 dynamic_linker="$host_os dld.sl"
9530 shlibpath_var=SHLIB_PATH
9531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 ;;
9535 esac
9536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9537 postinstall_cmds='chmod 555 $lib'
9538 ;;
9539
Reid Spencera773bd52006-08-04 18:18:08 +00009540interix3*)
9541 version_type=linux
9542 need_lib_prefix=no
9543 need_version=no
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 shlibpath_overrides_runpath=no
9549 hardcode_into_libs=yes
9550 ;;
9551
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552irix5* | irix6* | nonstopux*)
9553 case $host_os in
9554 nonstopux*) version_type=nonstopux ;;
9555 *)
9556 if test "$lt_cv_prog_gnu_ld" = yes; then
9557 version_type=linux
9558 else
9559 version_type=irix
9560 fi ;;
9561 esac
9562 need_lib_prefix=no
9563 need_version=no
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9566 case $host_os in
9567 irix5* | nonstopux*)
9568 libsuff= shlibsuff=
9569 ;;
9570 *)
9571 case $LD in # libtool.m4 will add one of these switches to LD
9572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9573 libsuff= shlibsuff= libmagic=32-bit;;
9574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9575 libsuff=32 shlibsuff=N32 libmagic=N32;;
9576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9578 *) libsuff= shlibsuff= libmagic=never-match;;
9579 esac
9580 ;;
9581 esac
9582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9583 shlibpath_overrides_runpath=no
9584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9586 hardcode_into_libs=yes
9587 ;;
9588
9589# No shared lib support for Linux oldld, aout, or coff.
9590linux*oldld* | linux*aout* | linux*coff*)
9591 dynamic_linker=no
9592 ;;
9593
9594# This must be Linux ELF.
9595linux*)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=no
9604 # This implies no fast_install, which is unacceptable.
9605 # Some rework will be needed to allow for fast_install
9606 # before this can be enabled.
9607 hardcode_into_libs=yes
9608
9609 # Append ld.so.conf contents to the search path
9610 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009611 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 +00009612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9613 fi
9614
9615 # We used to test for /lib/ld.so.1 and disable shared libraries on
9616 # powerpc, because MkLinux only supported shared libraries with the
9617 # GNU dynamic linker. Since this was broken with cross compilers,
9618 # most powerpc-linux boxes support dynamic linking these days and
9619 # people can always --disable-shared, the test was removed, and we
9620 # assume the GNU/Linux dynamic linker is in use.
9621 dynamic_linker='GNU/Linux ld.so'
9622 ;;
9623
9624knetbsd*-gnu)
9625 version_type=linux
9626 need_lib_prefix=no
9627 need_version=no
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 shlibpath_overrides_runpath=no
9632 hardcode_into_libs=yes
9633 dynamic_linker='GNU ld.so'
9634 ;;
9635
9636netbsd*)
9637 version_type=sunos
9638 need_lib_prefix=no
9639 need_version=no
9640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9643 dynamic_linker='NetBSD (a.out) ld.so'
9644 else
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 dynamic_linker='NetBSD ld.elf_so'
9648 fi
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 ;;
9653
9654newsos6)
9655 version_type=linux
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9659 ;;
9660
9661nto-qnx*)
9662 version_type=linux
9663 need_lib_prefix=no
9664 need_version=no
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 ;;
9670
9671openbsd*)
9672 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009673 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9676 case $host_os in
9677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9678 *) need_version=no ;;
9679 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9684 case $host_os in
9685 openbsd2.[89] | openbsd2.[89].*)
9686 shlibpath_overrides_runpath=no
9687 ;;
9688 *)
9689 shlibpath_overrides_runpath=yes
9690 ;;
9691 esac
9692 else
9693 shlibpath_overrides_runpath=yes
9694 fi
9695 ;;
9696
9697os2*)
9698 libname_spec='$name'
9699 shrext_cmds=".dll"
9700 need_lib_prefix=no
9701 library_names_spec='$libname${shared_ext} $libname.a'
9702 dynamic_linker='OS/2 ld.exe'
9703 shlibpath_var=LIBPATH
9704 ;;
9705
9706osf3* | osf4* | osf5*)
9707 version_type=osf
9708 need_lib_prefix=no
9709 need_version=no
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9715 ;;
9716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717solaris*)
9718 version_type=linux
9719 need_lib_prefix=no
9720 need_version=no
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9725 hardcode_into_libs=yes
9726 # ldd complains unless libraries are executable
9727 postinstall_cmds='chmod +x $lib'
9728 ;;
9729
9730sunos4*)
9731 version_type=sunos
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=yes
9736 if test "$with_gnu_ld" = yes; then
9737 need_lib_prefix=no
9738 fi
9739 need_version=yes
9740 ;;
9741
Reid Spencera773bd52006-08-04 18:18:08 +00009742sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743 version_type=linux
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 case $host_vendor in
9748 sni)
9749 shlibpath_overrides_runpath=no
9750 need_lib_prefix=no
9751 export_dynamic_flag_spec='${wl}-Blargedynsym'
9752 runpath_var=LD_RUN_PATH
9753 ;;
9754 siemens)
9755 need_lib_prefix=no
9756 ;;
9757 motorola)
9758 need_lib_prefix=no
9759 need_version=no
9760 shlibpath_overrides_runpath=no
9761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9762 ;;
9763 esac
9764 ;;
9765
9766sysv4*MP*)
9767 if test -d /usr/nec ;then
9768 version_type=linux
9769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770 soname_spec='$libname${shared_ext}.$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 fi
9773 ;;
9774
Reid Spencera773bd52006-08-04 18:18:08 +00009775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776 version_type=freebsd-elf
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 hardcode_into_libs=yes
9783 if test "$with_gnu_ld" = yes; then
9784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785 shlibpath_overrides_runpath=no
9786 else
9787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788 shlibpath_overrides_runpath=yes
9789 case $host_os in
9790 sco3.2v5*)
9791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9792 ;;
9793 esac
9794 fi
9795 sys_lib_dlsearch_path_spec='/usr/lib'
9796 ;;
9797
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798uts4*)
9799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 ;;
9804
9805*)
9806 dynamic_linker=no
9807 ;;
9808esac
Reid Spencera773bd52006-08-04 18:18:08 +00009809{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811test "$dynamic_linker" = no && can_build_shared=no
9812
Reid Spencera773bd52006-08-04 18:18:08 +00009813variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9814if test "$GCC" = yes; then
9815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817
Reid Spencera773bd52006-08-04 18:18:08 +00009818
9819{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9820echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821if test "${libltdl_cv_shlibext+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823else
9824
9825module=yes
9826eval libltdl_cv_shlibext=$shrext_cmds
9827
9828fi
Reid Spencera773bd52006-08-04 18:18:08 +00009829{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9830echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831if test -n "$libltdl_cv_shlibext"; then
9832
9833cat >>confdefs.h <<_ACEOF
9834#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9835_ACEOF
9836
9837fi
9838
9839
Reid Spencera773bd52006-08-04 18:18:08 +00009840{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9841echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842if test "${libltdl_cv_shlibpath_var+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 libltdl_cv_shlibpath_var="$shlibpath_var"
9846fi
Reid Spencera773bd52006-08-04 18:18:08 +00009847{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9848echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849if test -n "$libltdl_cv_shlibpath_var"; then
9850
9851cat >>confdefs.h <<_ACEOF
9852#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9853_ACEOF
9854
9855fi
9856
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9859echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860if test "${libltdl_cv_sys_search_path+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9864fi
Reid Spencera773bd52006-08-04 18:18:08 +00009865{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9866echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867if test -n "$libltdl_cv_sys_search_path"; then
9868 sys_search_path=
9869 for dir in $libltdl_cv_sys_search_path; do
9870 if test -z "$sys_search_path"; then
9871 sys_search_path="$dir"
9872 else
9873 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9874 fi
9875 done
9876
9877cat >>confdefs.h <<_ACEOF
9878#define LTDL_SYSSEARCHPATH "$sys_search_path"
9879_ACEOF
9880
9881fi
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883{ echo "$as_me:$LINENO: checking for objdir" >&5
9884echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885if test "${libltdl_cv_objdir+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888 libltdl_cv_objdir="$objdir"
9889 if test -n "$objdir"; then
9890 :
9891 else
9892 rm -f .libs 2>/dev/null
9893 mkdir .libs 2>/dev/null
9894 if test -d .libs; then
9895 libltdl_cv_objdir=.libs
9896 else
9897 # MS-DOS does not allow filenames that begin with a dot.
9898 libltdl_cv_objdir=_libs
9899 fi
9900 rmdir .libs 2>/dev/null
9901 fi
9902
9903fi
Reid Spencera773bd52006-08-04 18:18:08 +00009904{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9905echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906
9907cat >>confdefs.h <<_ACEOF
9908#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9909_ACEOF
9910
9911
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912
9913
9914
9915
9916# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009917{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9918echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922
9923# These are sane defaults that work on at least a few old systems.
9924# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9925
9926# Character class describing NM global symbol codes.
9927symcode='[BCDEGRST]'
9928
9929# Regexp to match symbols that can be accessed directly from C.
9930sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9931
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932# Transform an extracted symbol line into a proper C declaration
9933lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9934
9935# Transform an extracted symbol line into symbol name and symbol address
9936lt_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'"
9937
9938# Define system-specific variables.
9939case $host_os in
9940aix*)
9941 symcode='[BCDT]'
9942 ;;
9943cygwin* | mingw* | pw32*)
9944 symcode='[ABCDGISTW]'
9945 ;;
9946hpux*) # Its linker distinguishes data from code symbols
9947 if test "$host_cpu" = ia64; then
9948 symcode='[ABCDEGRST]'
9949 fi
9950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9951 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'"
9952 ;;
9953linux*)
9954 if test "$host_cpu" = ia64; then
9955 symcode='[ABCDGIRSTW]'
9956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9957 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'"
9958 fi
9959 ;;
9960irix* | nonstopux*)
9961 symcode='[BCDEGRST]'
9962 ;;
9963osf*)
9964 symcode='[BCDEGQRST]'
9965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009966solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967 symcode='[BDRT]'
9968 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009969sco3.2v5*)
9970 symcode='[DT]'
9971 ;;
9972sysv4.2uw2*)
9973 symcode='[DT]'
9974 ;;
9975sysv5* | sco5v6* | unixware* | OpenUNIX*)
9976 symcode='[ABDT]'
9977 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978sysv4)
9979 symcode='[DFNSTU]'
9980 ;;
9981esac
9982
9983# Handle CRLF in mingw tool chain
9984opt_cr=
9985case $build_os in
9986mingw*)
9987 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9988 ;;
9989esac
9990
9991# If we're using GNU nm, then use its standard symbol codes.
9992case `$NM -V 2>&1` in
9993*GNU* | *'with BFD'*)
9994 symcode='[ABCDGIRSTW]' ;;
9995esac
9996
9997# Try without a prefix undercore, then with it.
9998for ac_symprfx in "" "_"; do
9999
Reid Spencera773bd52006-08-04 18:18:08 +000010000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10001 symxfrm="\\1 $ac_symprfx\\2 \\2"
10002
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010004 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 +000010005
10006 # Check to see that the pipe works correctly.
10007 pipe_works=no
10008
10009 rm -f conftest*
10010 cat > conftest.$ac_ext <<EOF
10011#ifdef __cplusplus
10012extern "C" {
10013#endif
10014char nm_test_var;
10015void nm_test_func(){}
10016#ifdef __cplusplus
10017}
10018#endif
10019int main(){nm_test_var='a';nm_test_func();return(0);}
10020EOF
10021
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; then
10027 # Now try to grab the symbols.
10028 nlist=conftest.nm
10029 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10030 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && test -s "$nlist"; then
10034 # Try sorting and uniquifying the output.
10035 if sort "$nlist" | uniq > "$nlist"T; then
10036 mv -f "$nlist"T "$nlist"
10037 else
10038 rm -f "$nlist"T
10039 fi
10040
10041 # Make sure that we snagged all the symbols we need.
10042 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10043 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10044 cat <<EOF > conftest.$ac_ext
10045#ifdef __cplusplus
10046extern "C" {
10047#endif
10048
10049EOF
10050 # Now generate the symbol file.
10051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10052
10053 cat <<EOF >> conftest.$ac_ext
10054#if defined (__STDC__) && __STDC__
10055# define lt_ptr_t void *
10056#else
10057# define lt_ptr_t char *
10058# define const
10059#endif
10060
10061/* The mapping between symbol names and symbols. */
10062const struct {
10063 const char *name;
10064 lt_ptr_t address;
10065}
10066lt_preloaded_symbols[] =
10067{
10068EOF
10069 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10070 cat <<\EOF >> conftest.$ac_ext
10071 {0, (lt_ptr_t) 0}
10072};
10073
10074#ifdef __cplusplus
10075}
10076#endif
10077EOF
10078 # Now try linking the two files.
10079 mv conftest.$ac_objext conftstm.$ac_objext
10080 lt_save_LIBS="$LIBS"
10081 lt_save_CFLAGS="$CFLAGS"
10082 LIBS="conftstm.$ac_objext"
10083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10089 pipe_works=yes
10090 fi
10091 LIBS="$lt_save_LIBS"
10092 CFLAGS="$lt_save_CFLAGS"
10093 else
10094 echo "cannot find nm_test_func in $nlist" >&5
10095 fi
10096 else
10097 echo "cannot find nm_test_var in $nlist" >&5
10098 fi
10099 else
10100 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10101 fi
10102 else
10103 echo "$progname: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 fi
10106 rm -f conftest* conftst*
10107
10108 # Do not use the global_symbol_pipe unless it works.
10109 if test "$pipe_works" = yes; then
10110 break
10111 else
10112 lt_cv_sys_global_symbol_pipe=
10113 fi
10114done
10115
10116fi
10117
10118if test -z "$lt_cv_sys_global_symbol_pipe"; then
10119 lt_cv_sys_global_symbol_to_cdecl=
10120fi
10121if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010122 { echo "$as_me:$LINENO: result: failed" >&5
10123echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124else
Reid Spencera773bd52006-08-04 18:18:08 +000010125 { echo "$as_me:$LINENO: result: ok" >&5
10126echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127fi
10128
10129
Reid Spencera773bd52006-08-04 18:18:08 +000010130{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10131echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134else
10135 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10136 libltdl_cv_preloaded_symbols=yes
10137 else
10138 libltdl_cv_preloaded_symbols=no
10139 fi
10140
10141fi
Reid Spencera773bd52006-08-04 18:18:08 +000010142{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10143echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10145
10146cat >>confdefs.h <<\_ACEOF
10147#define HAVE_PRELOADED_SYMBOLS 1
10148_ACEOF
10149
10150fi
10151
10152LIBADD_DL=
10153
10154ac_ext=c
10155ac_cpp='$CPP $CPPFLAGS'
10156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10158ac_compiler_gnu=$ac_cv_c_compiler_gnu
10159
10160
Reid Spencera773bd52006-08-04 18:18:08 +000010161{ echo "$as_me:$LINENO: checking for shl_load" >&5
10162echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163if test "${ac_cv_func_shl_load+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166 cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10174#define shl_load innocuous_shl_load
10175
10176/* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char shl_load (); below.
10178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179 <limits.h> exists even on freestanding compilers. */
10180
10181#ifdef __STDC__
10182# include <limits.h>
10183#else
10184# include <assert.h>
10185#endif
10186
10187#undef shl_load
10188
Reid Spencera773bd52006-08-04 18:18:08 +000010189/* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192#ifdef __cplusplus
10193extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195char shl_load ();
10196/* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010199#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201#endif
10202
10203int
10204main ()
10205{
Reid Spencera773bd52006-08-04 18:18:08 +000010206return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010207 ;
10208 return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245 ac_cv_func_shl_load=yes
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
Reid Spencera773bd52006-08-04 18:18:08 +000010250 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251fi
Reid Spencera773bd52006-08-04 18:18:08 +000010252
Bill Wendlingebcceee2009-04-18 11:20:33 +000010253rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 conftest$ac_exeext conftest.$ac_ext
10255fi
Reid Spencera773bd52006-08-04 18:18:08 +000010256{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10257echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258if test $ac_cv_func_shl_load = yes; then
10259
10260cat >>confdefs.h <<\_ACEOF
10261#define HAVE_SHL_LOAD 1
10262_ACEOF
10263
10264else
Reid Spencera773bd52006-08-04 18:18:08 +000010265 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10266echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 ac_check_lib_save_LIBS=$LIBS
10271LIBS="-ldld $LIBS"
10272cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h. */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h. */
10278
Reid Spencera773bd52006-08-04 18:18:08 +000010279/* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282#ifdef __cplusplus
10283extern "C"
10284#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285char shl_load ();
10286int
10287main ()
10288{
Reid Spencera773bd52006-08-04 18:18:08 +000010289return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290 ;
10291 return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010295if { (ac_try="$ac_link"
10296case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 ac_cv_lib_dld_shl_load=yes
10329else
10330 echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
Reid Spencera773bd52006-08-04 18:18:08 +000010333 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334fi
Reid Spencera773bd52006-08-04 18:18:08 +000010335
Bill Wendlingebcceee2009-04-18 11:20:33 +000010336rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337 conftest$ac_exeext conftest.$ac_ext
10338LIBS=$ac_check_lib_save_LIBS
10339fi
Reid Spencera773bd52006-08-04 18:18:08 +000010340{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10341echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342if test $ac_cv_lib_dld_shl_load = yes; then
10343
10344cat >>confdefs.h <<\_ACEOF
10345#define HAVE_SHL_LOAD 1
10346_ACEOF
10347
10348 LIBADD_DL="$LIBADD_DL -ldld"
10349else
Reid Spencera773bd52006-08-04 18:18:08 +000010350 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10351echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 ac_check_lib_save_LIBS=$LIBS
10356LIBS="-ldl $LIBS"
10357cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363
Reid Spencera773bd52006-08-04 18:18:08 +000010364/* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367#ifdef __cplusplus
10368extern "C"
10369#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370char dlopen ();
10371int
10372main ()
10373{
Reid Spencera773bd52006-08-04 18:18:08 +000010374return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375 ;
10376 return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384esac
10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 ac_cv_lib_dl_dlopen=yes
10414else
10415 echo "$as_me: failed program was:" >&5
10416sed 's/^/| /' conftest.$ac_ext >&5
10417
Reid Spencera773bd52006-08-04 18:18:08 +000010418 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419fi
Reid Spencera773bd52006-08-04 18:18:08 +000010420
Bill Wendlingebcceee2009-04-18 11:20:33 +000010421rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422 conftest$ac_exeext conftest.$ac_ext
10423LIBS=$ac_check_lib_save_LIBS
10424fi
Reid Spencera773bd52006-08-04 18:18:08 +000010425{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10426echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427if test $ac_cv_lib_dl_dlopen = yes; then
10428
10429cat >>confdefs.h <<\_ACEOF
10430#define HAVE_LIBDL 1
10431_ACEOF
10432
10433 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10434else
10435 cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h. */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h. */
10441#if HAVE_DLFCN_H
10442# include <dlfcn.h>
10443#endif
10444
10445int
10446main ()
10447{
10448dlopen(0, 0);
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010454if { (ac_try="$ac_link"
10455case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458esac
10459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010466 (exit $ac_status); } &&
10467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468 { (case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_try") 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10481esac
10482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_try") 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487
10488cat >>confdefs.h <<\_ACEOF
10489#define HAVE_LIBDL 1
10490_ACEOF
10491 libltdl_cv_func_dlopen="yes"
10492else
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
Reid Spencera773bd52006-08-04 18:18:08 +000010496 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10497echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 ac_check_lib_save_LIBS=$LIBS
10502LIBS="-lsvld $LIBS"
10503cat >conftest.$ac_ext <<_ACEOF
10504/* confdefs.h. */
10505_ACEOF
10506cat confdefs.h >>conftest.$ac_ext
10507cat >>conftest.$ac_ext <<_ACEOF
10508/* end confdefs.h. */
10509
Reid Spencera773bd52006-08-04 18:18:08 +000010510/* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513#ifdef __cplusplus
10514extern "C"
10515#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516char dlopen ();
10517int
10518main ()
10519{
Reid Spencera773bd52006-08-04 18:18:08 +000010520return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010526if { (ac_try="$ac_link"
10527case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530esac
10531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543esac
10544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 ac_cv_lib_svld_dlopen=yes
10560else
10561 echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
Reid Spencera773bd52006-08-04 18:18:08 +000010564 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565fi
Reid Spencera773bd52006-08-04 18:18:08 +000010566
Bill Wendlingebcceee2009-04-18 11:20:33 +000010567rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568 conftest$ac_exeext conftest.$ac_ext
10569LIBS=$ac_check_lib_save_LIBS
10570fi
Reid Spencera773bd52006-08-04 18:18:08 +000010571{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10572echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573if test $ac_cv_lib_svld_dlopen = yes; then
10574
10575cat >>confdefs.h <<\_ACEOF
10576#define HAVE_LIBDL 1
10577_ACEOF
10578
10579 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10580else
Reid Spencera773bd52006-08-04 18:18:08 +000010581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10582echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10585else
10586 ac_check_lib_save_LIBS=$LIBS
10587LIBS="-ldld $LIBS"
10588cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h. */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */
10594
Reid Spencera773bd52006-08-04 18:18:08 +000010595/* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598#ifdef __cplusplus
10599extern "C"
10600#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601char dld_link ();
10602int
10603main ()
10604{
Reid Spencera773bd52006-08-04 18:18:08 +000010605return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010611if { (ac_try="$ac_link"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 ac_cv_lib_dld_dld_link=yes
10645else
10646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
Reid Spencera773bd52006-08-04 18:18:08 +000010649 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650fi
Reid Spencera773bd52006-08-04 18:18:08 +000010651
Bill Wendlingebcceee2009-04-18 11:20:33 +000010652rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653 conftest$ac_exeext conftest.$ac_ext
10654LIBS=$ac_check_lib_save_LIBS
10655fi
Reid Spencera773bd52006-08-04 18:18:08 +000010656{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10657echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658if test $ac_cv_lib_dld_dld_link = yes; then
10659
10660cat >>confdefs.h <<\_ACEOF
10661#define HAVE_DLD 1
10662_ACEOF
10663
10664 LIBADD_DL="$LIBADD_DL -ldld"
10665else
Reid Spencera773bd52006-08-04 18:18:08 +000010666 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10667echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
10677/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679#define _dyld_func_lookup innocuous__dyld_func_lookup
10680
10681/* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char _dyld_func_lookup (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
10685
10686#ifdef __STDC__
10687# include <limits.h>
10688#else
10689# include <assert.h>
10690#endif
10691
10692#undef _dyld_func_lookup
10693
Reid Spencera773bd52006-08-04 18:18:08 +000010694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697#ifdef __cplusplus
10698extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700char _dyld_func_lookup ();
10701/* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010704#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706#endif
10707
10708int
10709main ()
10710{
Reid Spencera773bd52006-08-04 18:18:08 +000010711return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 ;
10713 return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010717if { (ac_try="$ac_link"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ac_cv_func__dyld_func_lookup=yes
10751else
10752 echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
Reid Spencera773bd52006-08-04 18:18:08 +000010755 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756fi
Reid Spencera773bd52006-08-04 18:18:08 +000010757
Bill Wendlingebcceee2009-04-18 11:20:33 +000010758rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759 conftest$ac_exeext conftest.$ac_ext
10760fi
Reid Spencera773bd52006-08-04 18:18:08 +000010761{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10762echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763if test $ac_cv_func__dyld_func_lookup = yes; then
10764
10765cat >>confdefs.h <<\_ACEOF
10766#define HAVE_DYLD 1
10767_ACEOF
10768
10769fi
10770
10771
10772fi
10773
10774
10775fi
10776
10777
10778fi
Reid Spencera773bd52006-08-04 18:18:08 +000010779
Bill Wendlingebcceee2009-04-18 11:20:33 +000010780rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781 conftest$ac_exeext conftest.$ac_ext
10782
10783fi
10784
10785
10786fi
10787
10788
10789fi
10790
10791
10792if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10793then
10794 lt_save_LIBS="$LIBS"
10795 LIBS="$LIBS $LIBADD_DL"
10796
10797for ac_func in dlerror
10798do
10799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813#define $ac_func innocuous_$ac_func
10814
10815/* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char $ac_func (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10819
10820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef $ac_func
10827
Reid Spencera773bd52006-08-04 18:18:08 +000010828/* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831#ifdef __cplusplus
10832extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834char $ac_func ();
10835/* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010838#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840#endif
10841
10842int
10843main ()
10844{
Reid Spencera773bd52006-08-04 18:18:08 +000010845return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884 eval "$as_ac_var=yes"
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
Reid Spencera773bd52006-08-04 18:18:08 +000010889 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890fi
Reid Spencera773bd52006-08-04 18:18:08 +000010891
Bill Wendlingebcceee2009-04-18 11:20:33 +000010892rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 conftest$ac_exeext conftest.$ac_ext
10894fi
Reid Spencera773bd52006-08-04 18:18:08 +000010895ac_res=`eval echo '${'$as_ac_var'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898if test `eval echo '${'$as_ac_var'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904done
10905
10906 LIBS="$lt_save_LIBS"
10907fi
10908ac_ext=c
10909ac_cpp='$CPP $CPPFLAGS'
10910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912ac_compiler_gnu=$ac_cv_c_compiler_gnu
10913
10914
10915
Reid Spencera773bd52006-08-04 18:18:08 +000010916{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10917echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 ac_cv_sys_symbol_underscore=no
10922 cat > conftest.$ac_ext <<EOF
10923void nm_test_func(){}
10924int main(){nm_test_func;return 0;}
10925EOF
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; then
10931 # Now try to grab the symbols.
10932 ac_nlist=conftest.nm
10933 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10934 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && test -s "$ac_nlist"; then
10938 # See whether the symbols have a leading underscore.
10939 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10940 ac_cv_sys_symbol_underscore=yes
10941 else
10942 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10943 :
10944 else
10945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10946 fi
10947 fi
10948 else
10949 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10950 fi
10951 else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.c >&5
10954 fi
10955 rm -rf conftest*
10956
10957fi
Reid Spencera773bd52006-08-04 18:18:08 +000010958{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10959echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960
10961
10962if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10963 if test x"$libltdl_cv_func_dlopen" = xyes ||
10964 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010965 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10966echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967if test "${libltdl_cv_need_uscore+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 libltdl_cv_need_uscore=unknown
10971 save_LIBS="$LIBS"
10972 LIBS="$LIBS $LIBADD_DL"
10973 if test "$cross_compiling" = yes; then :
10974 libltdl_cv_need_uscore=cross
10975else
10976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10977 lt_status=$lt_dlunknown
10978 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000010979#line 10979 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980#include "confdefs.h"
10981
10982#if HAVE_DLFCN_H
10983#include <dlfcn.h>
10984#endif
10985
10986#include <stdio.h>
10987
10988#ifdef RTLD_GLOBAL
10989# define LT_DLGLOBAL RTLD_GLOBAL
10990#else
10991# ifdef DL_GLOBAL
10992# define LT_DLGLOBAL DL_GLOBAL
10993# else
10994# define LT_DLGLOBAL 0
10995# endif
10996#endif
10997
10998/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10999 find out it does not work in some platform. */
11000#ifndef LT_DLLAZY_OR_NOW
11001# ifdef RTLD_LAZY
11002# define LT_DLLAZY_OR_NOW RTLD_LAZY
11003# else
11004# ifdef DL_LAZY
11005# define LT_DLLAZY_OR_NOW DL_LAZY
11006# else
11007# ifdef RTLD_NOW
11008# define LT_DLLAZY_OR_NOW RTLD_NOW
11009# else
11010# ifdef DL_NOW
11011# define LT_DLLAZY_OR_NOW DL_NOW
11012# else
11013# define LT_DLLAZY_OR_NOW 0
11014# endif
11015# endif
11016# endif
11017# endif
11018#endif
11019
11020#ifdef __cplusplus
11021extern "C" void exit (int);
11022#endif
11023
11024void fnord() { int i=42;}
11025int main ()
11026{
11027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11028 int status = $lt_dlunknown;
11029
11030 if (self)
11031 {
11032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11033 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11034 /* dlclose (self); */
11035 }
Reid Spencera773bd52006-08-04 18:18:08 +000011036 else
11037 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038
11039 exit (status);
11040}
11041EOF
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011047 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048 lt_status=$?
11049 case x$lt_status in
11050 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11051 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011052 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053 esac
11054 else :
11055 # compilation failed
11056
11057 fi
11058fi
11059rm -fr conftest*
11060
11061 LIBS="$save_LIBS"
11062
11063fi
Reid Spencera773bd52006-08-04 18:18:08 +000011064{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11065echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 fi
11067fi
11068
11069if test x"$libltdl_cv_need_uscore" = xyes; then
11070
11071cat >>confdefs.h <<\_ACEOF
11072#define NEED_USCORE 1
11073_ACEOF
11074
11075fi
11076
11077
Reid Spencera773bd52006-08-04 18:18:08 +000011078{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11079echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 # PORTME does your system automatically load deplibs for dlopen?
11084 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11085 # For now, we just catch OSes we know something about -- in the
11086 # future, we'll try test this programmatically.
11087 libltdl_cv_sys_dlopen_deplibs=unknown
11088 case "$host_os" in
11089 aix3*|aix4.1.*|aix4.2.*)
11090 # Unknown whether this is true for these versions of AIX, but
11091 # we want this `case' here to explicitly catch those versions.
11092 libltdl_cv_sys_dlopen_deplibs=unknown
11093 ;;
11094 aix[45]*)
11095 libltdl_cv_sys_dlopen_deplibs=yes
11096 ;;
11097 darwin*)
11098 # Assuming the user has installed a libdl from somewhere, this is true
11099 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11100 libltdl_cv_sys_dlopen_deplibs=yes
11101 ;;
11102 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11103 # GNU and its variants, using gnu ld.so (Glibc)
11104 libltdl_cv_sys_dlopen_deplibs=yes
11105 ;;
11106 hpux10*|hpux11*)
11107 libltdl_cv_sys_dlopen_deplibs=yes
11108 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011109 interix*)
11110 libltdl_cv_sys_dlopen_deplibs=yes
11111 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112 irix[12345]*|irix6.[01]*)
11113 # Catch all versions of IRIX before 6.2, and indicate that we don't
11114 # know how it worked for any of those versions.
11115 libltdl_cv_sys_dlopen_deplibs=unknown
11116 ;;
11117 irix*)
11118 # The case above catches anything before 6.2, and it's known that
11119 # at 6.2 and later dlopen does load deplibs.
11120 libltdl_cv_sys_dlopen_deplibs=yes
11121 ;;
11122 netbsd*)
11123 libltdl_cv_sys_dlopen_deplibs=yes
11124 ;;
11125 openbsd*)
11126 libltdl_cv_sys_dlopen_deplibs=yes
11127 ;;
11128 osf[1234]*)
11129 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11130 # it did *not* use an RPATH in a shared library to find objects the
11131 # library depends on, so we explictly say `no'.
11132 libltdl_cv_sys_dlopen_deplibs=no
11133 ;;
11134 osf5.0|osf5.0a|osf5.1)
11135 # dlopen *does* load deplibs and with the right loader patch applied
11136 # it even uses RPATH in a shared library to search for shared objects
11137 # that the library depends on, but there's no easy way to know if that
11138 # patch is installed. Since this is the case, all we can really
11139 # say is unknown -- it depends on the patch being installed. If
11140 # it is, this changes to `yes'. Without it, it would be `no'.
11141 libltdl_cv_sys_dlopen_deplibs=unknown
11142 ;;
11143 osf*)
11144 # the two cases above should catch all versions of osf <= 5.1. Read
11145 # the comments above for what we know about them.
11146 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11147 # is used to find them so we can finally say `yes'.
11148 libltdl_cv_sys_dlopen_deplibs=yes
11149 ;;
11150 solaris*)
11151 libltdl_cv_sys_dlopen_deplibs=yes
11152 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11154 libltdl_cv_sys_dlopen_deplibs=yes
11155 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156 esac
11157
11158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11160echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11162
11163cat >>confdefs.h <<\_ACEOF
11164#define LTDL_DLOPEN_DEPLIBS 1
11165_ACEOF
11166
11167fi
11168
11169
11170for ac_header in argz.h
11171do
11172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178fi
Reid Spencera773bd52006-08-04 18:18:08 +000011179ac_res=`eval echo '${'$as_ac_Header'}'`
11180 { echo "$as_me:$LINENO: result: $ac_res" >&5
11181echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182else
11183 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
11192$ac_includes_default
11193#include <$ac_header>
11194_ACEOF
11195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011196if { (ac_try="$ac_compile"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 ac_header_compiler=yes
11230else
11231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
Reid Spencera773bd52006-08-04 18:18:08 +000011234 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235fi
Reid Spencera773bd52006-08-04 18:18:08 +000011236
11237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240
11241# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#include <$ac_header>
11251_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011252if { (ac_try="$ac_cpp conftest.$ac_ext"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268 else
11269 ac_cpp_err=
11270 fi
11271else
11272 ac_cpp_err=yes
11273fi
11274if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275 ac_header_preproc=yes
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_header_preproc=no
11281fi
Reid Spencera773bd52006-08-04 18:18:08 +000011282
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286
11287# So? What about this header?
11288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289 yes:no: )
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11295 ;;
11296 no:yes:* )
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011309 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011310## ----------------------------------- ##
11311## Report this to llvmbugs@cs.uiuc.edu ##
11312## ----------------------------------- ##
11313_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011314 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315 ;;
11316esac
Reid Spencera773bd52006-08-04 18:18:08 +000011317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321else
11322 eval "$as_ac_Header=\$ac_header_preproc"
11323fi
Reid Spencera773bd52006-08-04 18:18:08 +000011324ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327
11328fi
11329if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330 cat >>confdefs.h <<_ACEOF
11331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11332_ACEOF
11333
11334fi
11335
11336done
11337
11338
Reid Spencera773bd52006-08-04 18:18:08 +000011339{ echo "$as_me:$LINENO: checking for error_t" >&5
11340echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341if test "${ac_cv_type_error_t+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
11344 cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350#if HAVE_ARGZ_H
11351# include <argz.h>
11352#endif
11353
Reid Spencera773bd52006-08-04 18:18:08 +000011354typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355int
11356main ()
11357{
Reid Spencera773bd52006-08-04 18:18:08 +000011358if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011360if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361 return 0;
11362 ;
11363 return 0;
11364}
11365_ACEOF
11366rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011367if { (ac_try="$ac_compile"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400 ac_cv_type_error_t=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
Reid Spencera773bd52006-08-04 18:18:08 +000011405 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406fi
Reid Spencera773bd52006-08-04 18:18:08 +000011407
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011409fi
Reid Spencera773bd52006-08-04 18:18:08 +000011410{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11411echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412if test $ac_cv_type_error_t = yes; then
11413
11414cat >>confdefs.h <<_ACEOF
11415#define HAVE_ERROR_T 1
11416_ACEOF
11417
11418
11419else
11420
11421cat >>confdefs.h <<\_ACEOF
11422#define error_t int
11423_ACEOF
11424
11425fi
11426
11427
11428
11429
11430
11431
11432
11433for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11434do
11435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449#define $ac_func innocuous_$ac_func
11450
11451/* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11455
11456#ifdef __STDC__
11457# include <limits.h>
11458#else
11459# include <assert.h>
11460#endif
11461
11462#undef $ac_func
11463
Reid Spencera773bd52006-08-04 18:18:08 +000011464/* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467#ifdef __cplusplus
11468extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470char $ac_func ();
11471/* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011474#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476#endif
11477
11478int
11479main ()
11480{
Reid Spencera773bd52006-08-04 18:18:08 +000011481return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011487if { (ac_try="$ac_link"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 eval "$as_ac_var=yes"
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
Reid Spencera773bd52006-08-04 18:18:08 +000011525 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526fi
Reid Spencera773bd52006-08-04 18:18:08 +000011527
Bill Wendlingebcceee2009-04-18 11:20:33 +000011528rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 conftest$ac_exeext conftest.$ac_ext
11530fi
Reid Spencera773bd52006-08-04 18:18:08 +000011531ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537_ACEOF
11538
11539fi
11540done
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11570 stdio.h unistd.h
11571do
11572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578fi
Reid Spencera773bd52006-08-04 18:18:08 +000011579ac_res=`eval echo '${'$as_ac_Header'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582else
11583 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011584{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
11592$ac_includes_default
11593#include <$ac_header>
11594_ACEOF
11595rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011596if { (ac_try="$ac_compile"
11597case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600esac
11601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_try") 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629 ac_header_compiler=yes
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
Reid Spencera773bd52006-08-04 18:18:08 +000011634 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635fi
Reid Spencera773bd52006-08-04 18:18:08 +000011636
11637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640
11641# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011642{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650#include <$ac_header>
11651_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011652if { (ac_try="$ac_cpp conftest.$ac_ext"
11653case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011664 (exit $ac_status); } >/dev/null; then
11665 if test -s conftest.err; then
11666 ac_cpp_err=$ac_c_preproc_warn_flag
11667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668 else
11669 ac_cpp_err=
11670 fi
11671else
11672 ac_cpp_err=yes
11673fi
11674if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 ac_header_preproc=yes
11676else
11677 echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_header_preproc=no
11681fi
Reid Spencera773bd52006-08-04 18:18:08 +000011682
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686
11687# So? What about this header?
11688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689 yes:no: )
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694 ac_header_preproc=yes
11695 ;;
11696 no:yes:* )
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011709 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710## ----------------------------------- ##
11711## Report this to llvmbugs@cs.uiuc.edu ##
11712## ----------------------------------- ##
11713_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011714 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 ;;
11716esac
Reid Spencera773bd52006-08-04 18:18:08 +000011717{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721else
11722 eval "$as_ac_Header=\$ac_header_preproc"
11723fi
Reid Spencera773bd52006-08-04 18:18:08 +000011724ac_res=`eval echo '${'$as_ac_Header'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727
11728fi
11729if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11732_ACEOF
11733
11734fi
11735
11736done
11737
11738
11739
11740
11741
11742for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11743do
11744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750fi
Reid Spencera773bd52006-08-04 18:18:08 +000011751ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754else
11755 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011756{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758cat >conftest.$ac_ext <<_ACEOF
11759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
11764$ac_includes_default
11765#include <$ac_header>
11766_ACEOF
11767rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011768if { (ac_try="$ac_compile"
11769case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782 { (case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_try") 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801 ac_header_compiler=yes
11802else
11803 echo "$as_me: failed program was:" >&5
11804sed 's/^/| /' conftest.$ac_ext >&5
11805
Reid Spencera773bd52006-08-04 18:18:08 +000011806 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807fi
Reid Spencera773bd52006-08-04 18:18:08 +000011808
11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812
11813# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822#include <$ac_header>
11823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011824if { (ac_try="$ac_cpp conftest.$ac_ext"
11825case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 else
11841 ac_cpp_err=
11842 fi
11843else
11844 ac_cpp_err=yes
11845fi
11846if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011847 ac_header_preproc=yes
11848else
11849 echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_header_preproc=no
11853fi
Reid Spencera773bd52006-08-04 18:18:08 +000011854
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858
11859# So? What about this header?
11860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861 yes:no: )
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11867 ;;
11868 no:yes:* )
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011881 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882## ----------------------------------- ##
11883## Report this to llvmbugs@cs.uiuc.edu ##
11884## ----------------------------------- ##
11885_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011886 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887 ;;
11888esac
Reid Spencera773bd52006-08-04 18:18:08 +000011889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 eval "$as_ac_Header=\$ac_header_preproc"
11895fi
Reid Spencera773bd52006-08-04 18:18:08 +000011896ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899
11900fi
11901if test `eval echo '${'$as_ac_Header'}'` = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11904_ACEOF
11905
11906fi
11907
11908done
11909
11910
11911
11912for ac_header in string.h strings.h
11913do
11914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920fi
Reid Spencera773bd52006-08-04 18:18:08 +000011921ac_res=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924else
11925 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
11934$ac_includes_default
11935#include <$ac_header>
11936_ACEOF
11937rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011938if { (ac_try="$ac_compile"
11939case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942esac
11943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest.$ac_objext'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971 ac_header_compiler=yes
11972else
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
Reid Spencera773bd52006-08-04 18:18:08 +000011976 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977fi
Reid Spencera773bd52006-08-04 18:18:08 +000011978
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982
11983# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011986cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992#include <$ac_header>
11993_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011994if { (ac_try="$ac_cpp conftest.$ac_ext"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012006 (exit $ac_status); } >/dev/null; then
12007 if test -s conftest.err; then
12008 ac_cpp_err=$ac_c_preproc_warn_flag
12009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12010 else
12011 ac_cpp_err=
12012 fi
12013else
12014 ac_cpp_err=yes
12015fi
12016if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017 ac_header_preproc=yes
12018else
12019 echo "$as_me: failed program was:" >&5
12020sed 's/^/| /' conftest.$ac_ext >&5
12021
12022 ac_header_preproc=no
12023fi
Reid Spencera773bd52006-08-04 18:18:08 +000012024
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12027echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028
12029# So? What about this header?
12030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12031 yes:no: )
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12036 ac_header_preproc=yes
12037 ;;
12038 no:yes:* )
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012051 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052## ----------------------------------- ##
12053## Report this to llvmbugs@cs.uiuc.edu ##
12054## ----------------------------------- ##
12055_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012056 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057 ;;
12058esac
Reid Spencera773bd52006-08-04 18:18:08 +000012059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 eval "$as_ac_Header=\$ac_header_preproc"
12065fi
Reid Spencera773bd52006-08-04 18:18:08 +000012066ac_res=`eval echo '${'$as_ac_Header'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069
12070fi
12071if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12074_ACEOF
12075 break
12076fi
12077
12078done
12079
12080
12081
12082
12083for ac_func in strchr index
12084do
12085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099#define $ac_func innocuous_$ac_func
12100
12101/* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12105
12106#ifdef __STDC__
12107# include <limits.h>
12108#else
12109# include <assert.h>
12110#endif
12111
12112#undef $ac_func
12113
Reid Spencera773bd52006-08-04 18:18:08 +000012114/* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117#ifdef __cplusplus
12118extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120char $ac_func ();
12121/* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012124#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012125choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126#endif
12127
12128int
12129main ()
12130{
Reid Spencera773bd52006-08-04 18:18:08 +000012131return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 ;
12133 return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012137if { (ac_try="$ac_link"
12138case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012149 (exit $ac_status); } &&
12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164esac
12165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170 eval "$as_ac_var=yes"
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
Reid Spencera773bd52006-08-04 18:18:08 +000012175 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176fi
Reid Spencera773bd52006-08-04 18:18:08 +000012177
Bill Wendlingebcceee2009-04-18 11:20:33 +000012178rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179 conftest$ac_exeext conftest.$ac_ext
12180fi
Reid Spencera773bd52006-08-04 18:18:08 +000012181ac_res=`eval echo '${'$as_ac_var'}'`
12182 { echo "$as_me:$LINENO: result: $ac_res" >&5
12183echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012184if test `eval echo '${'$as_ac_var'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12187_ACEOF
12188 break
12189fi
12190done
12191
12192
12193
12194for ac_func in strrchr rindex
12195do
12196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012197{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202 cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210#define $ac_func innocuous_$ac_func
12211
12212/* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char $ac_func (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12216
12217#ifdef __STDC__
12218# include <limits.h>
12219#else
12220# include <assert.h>
12221#endif
12222
12223#undef $ac_func
12224
Reid Spencera773bd52006-08-04 18:18:08 +000012225/* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228#ifdef __cplusplus
12229extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012231char $ac_func ();
12232/* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012235#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012236choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237#endif
12238
12239int
12240main ()
12241{
Reid Spencera773bd52006-08-04 18:18:08 +000012242return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 ;
12244 return 0;
12245}
12246_ACEOF
12247rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012248if { (ac_try="$ac_link"
12249case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252esac
12253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265esac
12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281 eval "$as_ac_var=yes"
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
Reid Spencera773bd52006-08-04 18:18:08 +000012286 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012287fi
Reid Spencera773bd52006-08-04 18:18:08 +000012288
Bill Wendlingebcceee2009-04-18 11:20:33 +000012289rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012290 conftest$ac_exeext conftest.$ac_ext
12291fi
Reid Spencera773bd52006-08-04 18:18:08 +000012292ac_res=`eval echo '${'$as_ac_var'}'`
12293 { echo "$as_me:$LINENO: result: $ac_res" >&5
12294echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295if test `eval echo '${'$as_ac_var'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298_ACEOF
12299 break
12300fi
12301done
12302
12303
12304
12305for ac_func in memcpy bcopy
12306do
12307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012308{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12310if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313 cat >conftest.$ac_ext <<_ACEOF
12314/* confdefs.h. */
12315_ACEOF
12316cat confdefs.h >>conftest.$ac_ext
12317cat >>conftest.$ac_ext <<_ACEOF
12318/* end confdefs.h. */
12319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12321#define $ac_func innocuous_$ac_func
12322
12323/* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char $ac_func (); below.
12325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326 <limits.h> exists even on freestanding compilers. */
12327
12328#ifdef __STDC__
12329# include <limits.h>
12330#else
12331# include <assert.h>
12332#endif
12333
12334#undef $ac_func
12335
Reid Spencera773bd52006-08-04 18:18:08 +000012336/* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012339#ifdef __cplusplus
12340extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012342char $ac_func ();
12343/* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012346#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012348#endif
12349
12350int
12351main ()
12352{
Reid Spencera773bd52006-08-04 18:18:08 +000012353return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012359if { (ac_try="$ac_link"
12360case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012392 eval "$as_ac_var=yes"
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
Reid Spencera773bd52006-08-04 18:18:08 +000012397 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012398fi
Reid Spencera773bd52006-08-04 18:18:08 +000012399
Bill Wendlingebcceee2009-04-18 11:20:33 +000012400rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012401 conftest$ac_exeext conftest.$ac_ext
12402fi
Reid Spencera773bd52006-08-04 18:18:08 +000012403ac_res=`eval echo '${'$as_ac_var'}'`
12404 { echo "$as_me:$LINENO: result: $ac_res" >&5
12405echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406if test `eval echo '${'$as_ac_var'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12409_ACEOF
12410 break
12411fi
12412done
12413
12414
12415
12416for ac_func in memmove strcmp
12417do
12418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012419{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423else
12424 cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432#define $ac_func innocuous_$ac_func
12433
12434/* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char $ac_func (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12438
12439#ifdef __STDC__
12440# include <limits.h>
12441#else
12442# include <assert.h>
12443#endif
12444
12445#undef $ac_func
12446
Reid Spencera773bd52006-08-04 18:18:08 +000012447/* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450#ifdef __cplusplus
12451extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012452#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453char $ac_func ();
12454/* The GNU C library defines this for functions which it implements
12455 to always fail with ENOSYS. Some functions are actually named
12456 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012457#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012458choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459#endif
12460
12461int
12462main ()
12463{
Reid Spencera773bd52006-08-04 18:18:08 +000012464return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012470if { (ac_try="$ac_link"
12471case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474esac
12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487esac
12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
12498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503 eval "$as_ac_var=yes"
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
Reid Spencera773bd52006-08-04 18:18:08 +000012508 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509fi
Reid Spencera773bd52006-08-04 18:18:08 +000012510
Bill Wendlingebcceee2009-04-18 11:20:33 +000012511rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012512 conftest$ac_exeext conftest.$ac_ext
12513fi
Reid Spencera773bd52006-08-04 18:18:08 +000012514ac_res=`eval echo '${'$as_ac_var'}'`
12515 { echo "$as_me:$LINENO: result: $ac_res" >&5
12516echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517if test `eval echo '${'$as_ac_var'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12520_ACEOF
12521
12522fi
12523done
12524
12525
12526
12527
12528for ac_func in closedir opendir readdir
12529do
12530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012531{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12533if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12544#define $ac_func innocuous_$ac_func
12545
12546/* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func (); below.
12548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549 <limits.h> exists even on freestanding compilers. */
12550
12551#ifdef __STDC__
12552# include <limits.h>
12553#else
12554# include <assert.h>
12555#endif
12556
12557#undef $ac_func
12558
Reid Spencera773bd52006-08-04 18:18:08 +000012559/* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012562#ifdef __cplusplus
12563extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565char $ac_func ();
12566/* The GNU C library defines this for functions which it implements
12567 to always fail with ENOSYS. Some functions are actually named
12568 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012569#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571#endif
12572
12573int
12574main ()
12575{
Reid Spencera773bd52006-08-04 18:18:08 +000012576return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577 ;
12578 return 0;
12579}
12580_ACEOF
12581rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012582if { (ac_try="$ac_link"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609esac
12610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615 eval "$as_ac_var=yes"
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
Reid Spencera773bd52006-08-04 18:18:08 +000012620 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621fi
Reid Spencera773bd52006-08-04 18:18:08 +000012622
Bill Wendlingebcceee2009-04-18 11:20:33 +000012623rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012624 conftest$ac_exeext conftest.$ac_ext
12625fi
Reid Spencera773bd52006-08-04 18:18:08 +000012626ac_res=`eval echo '${'$as_ac_var'}'`
12627 { echo "$as_me:$LINENO: result: $ac_res" >&5
12628echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012629if test `eval echo '${'$as_ac_var'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632_ACEOF
12633
12634fi
12635done
12636
12637
Reid Spencera773bd52006-08-04 18:18:08 +000012638# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012640 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641 case $enableval in
12642 yes) enable_shared=yes ;;
12643 no) enable_shared=no ;;
12644 *)
12645 enable_shared=no
12646 # Look at the argument we got. We use all the common list separators.
12647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12648 for pkg in $enableval; do
12649 IFS="$lt_save_ifs"
12650 if test "X$pkg" = "X$p"; then
12651 enable_shared=yes
12652 fi
12653 done
12654 IFS="$lt_save_ifs"
12655 ;;
12656 esac
12657else
12658 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012659fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012660
Reid Spencera773bd52006-08-04 18:18:08 +000012661
12662# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012664 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665 case $enableval in
12666 yes) enable_static=yes ;;
12667 no) enable_static=no ;;
12668 *)
12669 enable_static=no
12670 # Look at the argument we got. We use all the common list separators.
12671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672 for pkg in $enableval; do
12673 IFS="$lt_save_ifs"
12674 if test "X$pkg" = "X$p"; then
12675 enable_static=yes
12676 fi
12677 done
12678 IFS="$lt_save_ifs"
12679 ;;
12680 esac
12681else
12682 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012683fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684
Reid Spencera773bd52006-08-04 18:18:08 +000012685
12686# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012687if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012688 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689 case $enableval in
12690 yes) enable_fast_install=yes ;;
12691 no) enable_fast_install=no ;;
12692 *)
12693 enable_fast_install=no
12694 # Look at the argument we got. We use all the common list separators.
12695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12696 for pkg in $enableval; do
12697 IFS="$lt_save_ifs"
12698 if test "X$pkg" = "X$p"; then
12699 enable_fast_install=yes
12700 fi
12701 done
12702 IFS="$lt_save_ifs"
12703 ;;
12704 esac
12705else
12706 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012707fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708
Reid Spencera773bd52006-08-04 18:18:08 +000012709
12710{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12711echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712if test "${lt_cv_path_SED+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 # Loop through the user's path and test for sed and gsed.
12716# Then use that list of sed's as ones to test for truncation.
12717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718for as_dir in $PATH
12719do
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
12722 for lt_ac_prog in sed gsed; do
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12725 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12726 fi
12727 done
12728 done
12729done
12730lt_ac_max=0
12731lt_ac_count=0
12732# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12733# along with /bin/sed that truncates output.
12734for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012735 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736 cat /dev/null > conftest.in
12737 lt_ac_count=0
12738 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12739 # Check for GNU sed and select it if it is found.
12740 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12741 lt_cv_path_SED=$lt_ac_sed
12742 break
12743 fi
12744 while true; do
12745 cat conftest.in conftest.in >conftest.tmp
12746 mv conftest.tmp conftest.in
12747 cp conftest.in conftest.nl
12748 echo >>conftest.nl
12749 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12750 cmp -s conftest.out conftest.nl || break
12751 # 10000 chars as input seems more than enough
12752 test $lt_ac_count -gt 10 && break
12753 lt_ac_count=`expr $lt_ac_count + 1`
12754 if test $lt_ac_count -gt $lt_ac_max; then
12755 lt_ac_max=$lt_ac_count
12756 lt_cv_path_SED=$lt_ac_sed
12757 fi
12758 done
12759done
12760
12761fi
12762
12763SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012764{ echo "$as_me:$LINENO: result: $SED" >&5
12765echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766
12767
Reid Spencera773bd52006-08-04 18:18:08 +000012768# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012769if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012770 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012771else
12772 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012773fi
12774
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012775ac_prog=ld
12776if test "$GCC" = yes; then
12777 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012778 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12779echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012780 case $host in
12781 *-*-mingw*)
12782 # gcc leaves a trailing carriage return which upsets mingw
12783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12784 *)
12785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12786 esac
12787 case $ac_prog in
12788 # Accept absolute paths.
12789 [\\/]* | ?:[\\/]*)
12790 re_direlt='/[^/][^/]*/\.\./'
12791 # Canonicalize the pathname of ld
12792 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12794 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12795 done
12796 test -z "$LD" && LD="$ac_prog"
12797 ;;
12798 "")
12799 # If it fails, then pretend we aren't using GCC.
12800 ac_prog=ld
12801 ;;
12802 *)
12803 # If it is relative, then search for the first ld in PATH.
12804 with_gnu_ld=unknown
12805 ;;
12806 esac
12807elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012808 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12809echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012810else
Reid Spencera773bd52006-08-04 18:18:08 +000012811 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12812echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012813fi
12814if test "${lt_cv_path_LD+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816else
12817 if test -z "$LD"; then
12818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12819 for ac_dir in $PATH; do
12820 IFS="$lt_save_ifs"
12821 test -z "$ac_dir" && ac_dir=.
12822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12823 lt_cv_path_LD="$ac_dir/$ac_prog"
12824 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012825 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012826 # Break only if it was the GNU/non-GNU ld that we prefer.
12827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12828 *GNU* | *'with BFD'*)
12829 test "$with_gnu_ld" != no && break
12830 ;;
12831 *)
12832 test "$with_gnu_ld" != yes && break
12833 ;;
12834 esac
12835 fi
12836 done
12837 IFS="$lt_save_ifs"
12838else
12839 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12840fi
12841fi
12842
12843LD="$lt_cv_path_LD"
12844if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012845 { echo "$as_me:$LINENO: result: $LD" >&5
12846echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012847else
Reid Spencera773bd52006-08-04 18:18:08 +000012848 { echo "$as_me:$LINENO: result: no" >&5
12849echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012850fi
12851test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12852echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12853 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012854{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12855echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856if test "${lt_cv_prog_gnu_ld+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
Reid Spencera773bd52006-08-04 18:18:08 +000012859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012860case `$LD -v 2>&1 </dev/null` in
12861*GNU* | *'with BFD'*)
12862 lt_cv_prog_gnu_ld=yes
12863 ;;
12864*)
12865 lt_cv_prog_gnu_ld=no
12866 ;;
12867esac
12868fi
Reid Spencera773bd52006-08-04 18:18:08 +000012869{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12870echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012871with_gnu_ld=$lt_cv_prog_gnu_ld
12872
12873
Reid Spencera773bd52006-08-04 18:18:08 +000012874{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12875echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012876if test "${lt_cv_ld_reload_flag+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878else
12879 lt_cv_ld_reload_flag='-r'
12880fi
Reid Spencera773bd52006-08-04 18:18:08 +000012881{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12882echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012883reload_flag=$lt_cv_ld_reload_flag
12884case $reload_flag in
12885"" | " "*) ;;
12886*) reload_flag=" $reload_flag" ;;
12887esac
12888reload_cmds='$LD$reload_flag -o $output$reload_objs'
12889case $host_os in
12890 darwin*)
12891 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012893 else
12894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12895 fi
12896 ;;
12897esac
12898
Reid Spencera773bd52006-08-04 18:18:08 +000012899{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12900echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901if test "${lt_cv_deplibs_check_method+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 lt_cv_file_magic_cmd='$MAGIC_CMD'
12905lt_cv_file_magic_test_file=
12906lt_cv_deplibs_check_method='unknown'
12907# Need to set the preceding variable on all platforms that support
12908# interlibrary dependencies.
12909# 'none' -- dependencies not supported.
12910# `unknown' -- same as none, but documents that we really don't know.
12911# 'pass_all' -- all dependencies passed with no checks.
12912# 'test_compile' -- check by making test program.
12913# 'file_magic [[regex]]' -- check by looking for files in library path
12914# which responds to the $file_magic_cmd with a given extended regex.
12915# If you have `file' or equivalent on your system and you're not sure
12916# whether `pass_all' will *always* work, you probably want this one.
12917
12918case $host_os in
12919aix4* | aix5*)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
12922
12923beos*)
12924 lt_cv_deplibs_check_method=pass_all
12925 ;;
12926
12927bsdi[45]*)
12928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12929 lt_cv_file_magic_cmd='/usr/bin/file -L'
12930 lt_cv_file_magic_test_file=/shlib/libc.so
12931 ;;
12932
12933cygwin*)
12934 # func_win32_libid is a shell function defined in ltmain.sh
12935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12936 lt_cv_file_magic_cmd='func_win32_libid'
12937 ;;
12938
12939mingw* | pw32*)
12940 # Base MSYS/MinGW do not provide the 'file' command needed by
12941 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12943 lt_cv_file_magic_cmd='$OBJDUMP -f'
12944 ;;
12945
12946darwin* | rhapsody*)
12947 lt_cv_deplibs_check_method=pass_all
12948 ;;
12949
Reid Spencera773bd52006-08-04 18:18:08 +000012950freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012951 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12952 case $host_cpu in
12953 i*86 )
12954 # Not sure whether the presence of OpenBSD here was a mistake.
12955 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012956 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 +000012957 lt_cv_file_magic_cmd=/usr/bin/file
12958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12959 ;;
12960 esac
12961 else
12962 lt_cv_deplibs_check_method=pass_all
12963 fi
12964 ;;
12965
12966gnu*)
12967 lt_cv_deplibs_check_method=pass_all
12968 ;;
12969
12970hpux10.20* | hpux11*)
12971 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012972 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012973 ia64*)
12974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12976 ;;
12977 hppa*64*)
12978 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]'
12979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12980 ;;
12981 *)
12982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12984 ;;
12985 esac
12986 ;;
12987
Reid Spencera773bd52006-08-04 18:18:08 +000012988interix3*)
12989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12991 ;;
12992
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012993irix5* | irix6* | nonstopux*)
12994 case $LD in
12995 *-32|*"-32 ") libmagic=32-bit;;
12996 *-n32|*"-n32 ") libmagic=N32;;
12997 *-64|*"-64 ") libmagic=64-bit;;
12998 *) libmagic=never-match;;
12999 esac
13000 lt_cv_deplibs_check_method=pass_all
13001 ;;
13002
13003# This must be Linux ELF.
13004linux*)
13005 lt_cv_deplibs_check_method=pass_all
13006 ;;
13007
13008netbsd*)
13009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13011 else
13012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13013 fi
13014 ;;
13015
13016newos6*)
13017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13018 lt_cv_file_magic_cmd=/usr/bin/file
13019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13020 ;;
13021
13022nto-qnx*)
13023 lt_cv_deplibs_check_method=unknown
13024 ;;
13025
13026openbsd*)
13027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13029 else
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13031 fi
13032 ;;
13033
13034osf3* | osf4* | osf5*)
13035 lt_cv_deplibs_check_method=pass_all
13036 ;;
13037
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013038solaris*)
13039 lt_cv_deplibs_check_method=pass_all
13040 ;;
13041
Reid Spencera773bd52006-08-04 18:18:08 +000013042sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043 case $host_vendor in
13044 motorola)
13045 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]'
13046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13047 ;;
13048 ncr)
13049 lt_cv_deplibs_check_method=pass_all
13050 ;;
13051 sequent)
13052 lt_cv_file_magic_cmd='/bin/file'
13053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13054 ;;
13055 sni)
13056 lt_cv_file_magic_cmd='/bin/file'
13057 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13058 lt_cv_file_magic_test_file=/lib/libc.so
13059 ;;
13060 siemens)
13061 lt_cv_deplibs_check_method=pass_all
13062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013063 pc)
13064 lt_cv_deplibs_check_method=pass_all
13065 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013066 esac
13067 ;;
13068
Reid Spencera773bd52006-08-04 18:18:08 +000013069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013070 lt_cv_deplibs_check_method=pass_all
13071 ;;
13072esac
13073
13074fi
Reid Spencera773bd52006-08-04 18:18:08 +000013075{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13076echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013077file_magic_cmd=$lt_cv_file_magic_cmd
13078deplibs_check_method=$lt_cv_deplibs_check_method
13079test -z "$deplibs_check_method" && deplibs_check_method=unknown
13080
13081
13082
13083# If no C compiler was specified, use CC.
13084LTCC=${LTCC-"$CC"}
13085
Reid Spencera773bd52006-08-04 18:18:08 +000013086# If no C compiler flags were specified, use CFLAGS.
13087LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13088
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013089# Allow CC to be a program name with arguments.
13090compiler=$CC
13091
Reid Spencera773bd52006-08-04 18:18:08 +000013092# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013093if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013094 enableval=$enable_libtool_lock;
13095fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013096
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013097test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13098
13099# Some flags need to be propagated to the compiler or linker for good
13100# libtool support.
13101case $host in
13102ia64-*-hpux*)
13103 # Find out which ABI we are using.
13104 echo 'int i;' > conftest.$ac_ext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; then
13110 case `/usr/bin/file conftest.$ac_objext` in
13111 *ELF-32*)
13112 HPUX_IA64_MODE="32"
13113 ;;
13114 *ELF-64*)
13115 HPUX_IA64_MODE="64"
13116 ;;
13117 esac
13118 fi
13119 rm -rf conftest*
13120 ;;
13121*-*-irix6*)
13122 # Find out which ABI we are using.
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000013123 echo '#line 13123 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; then
13129 if test "$lt_cv_prog_gnu_ld" = yes; then
13130 case `/usr/bin/file conftest.$ac_objext` in
13131 *32-bit*)
13132 LD="${LD-ld} -melf32bsmip"
13133 ;;
13134 *N32*)
13135 LD="${LD-ld} -melf32bmipn32"
13136 ;;
13137 *64-bit*)
13138 LD="${LD-ld} -melf64bmip"
13139 ;;
13140 esac
13141 else
13142 case `/usr/bin/file conftest.$ac_objext` in
13143 *32-bit*)
13144 LD="${LD-ld} -32"
13145 ;;
13146 *N32*)
13147 LD="${LD-ld} -n32"
13148 ;;
13149 *64-bit*)
13150 LD="${LD-ld} -64"
13151 ;;
13152 esac
13153 fi
13154 fi
13155 rm -rf conftest*
13156 ;;
13157
13158x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13159 # Find out which ABI we are using.
13160 echo 'int i;' > conftest.$ac_ext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013166 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013167 *32-bit*)
13168 case $host in
13169 x86_64-*linux*)
13170 LD="${LD-ld} -m elf_i386"
13171 ;;
13172 ppc64-*linux*|powerpc64-*linux*)
13173 LD="${LD-ld} -m elf32ppclinux"
13174 ;;
13175 s390x-*linux*)
13176 LD="${LD-ld} -m elf_s390"
13177 ;;
13178 sparc64-*linux*)
13179 LD="${LD-ld} -m elf32_sparc"
13180 ;;
13181 esac
13182 ;;
13183 *64-bit*)
13184 case $host in
13185 x86_64-*linux*)
13186 LD="${LD-ld} -m elf_x86_64"
13187 ;;
13188 ppc*-*linux*|powerpc*-*linux*)
13189 LD="${LD-ld} -m elf64ppc"
13190 ;;
13191 s390*-*linux*)
13192 LD="${LD-ld} -m elf64_s390"
13193 ;;
13194 sparc*-*linux*)
13195 LD="${LD-ld} -m elf64_sparc"
13196 ;;
13197 esac
13198 ;;
13199 esac
13200 fi
13201 rm -rf conftest*
13202 ;;
13203
13204*-*-sco3.2v5*)
13205 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13206 SAVE_CFLAGS="$CFLAGS"
13207 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013208 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13209echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013210if test "${lt_cv_cc_needs_belf+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212else
13213 ac_ext=c
13214ac_cpp='$CPP $CPPFLAGS'
13215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217ac_compiler_gnu=$ac_cv_c_compiler_gnu
13218
13219 cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
13225
Reid Spencera773bd52006-08-04 18:18:08 +000013226int
13227main ()
13228{
13229
13230 ;
13231 return 0;
13232}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013233_ACEOF
13234rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013235if { (ac_try="$ac_link"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252esac
13253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest$ac_exeext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013268 lt_cv_cc_needs_belf=yes
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
Reid Spencera773bd52006-08-04 18:18:08 +000013273 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013274fi
Reid Spencera773bd52006-08-04 18:18:08 +000013275
Bill Wendlingebcceee2009-04-18 11:20:33 +000013276rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013277 conftest$ac_exeext conftest.$ac_ext
13278 ac_ext=c
13279ac_cpp='$CPP $CPPFLAGS'
13280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282ac_compiler_gnu=$ac_cv_c_compiler_gnu
13283
13284fi
Reid Spencera773bd52006-08-04 18:18:08 +000013285{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13286echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13289 CFLAGS="$SAVE_CFLAGS"
13290 fi
13291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013292sparc*-*solaris*)
13293 # Find out which ABI we are using.
13294 echo 'int i;' > conftest.$ac_ext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; then
13300 case `/usr/bin/file conftest.o` in
13301 *64-bit*)
13302 case $lt_cv_prog_gnu_ld in
13303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13304 *) LD="${LD-ld} -64" ;;
13305 esac
13306 ;;
13307 esac
13308 fi
13309 rm -rf conftest*
13310 ;;
13311
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013312
13313esac
13314
13315need_locks="$enable_libtool_lock"
13316
13317
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318
13319
13320if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13321 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13322 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013323 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013324ac_cpp='$CXXCPP $CPPFLAGS'
13325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013328{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13329echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013330if test -z "$CXXCPP"; then
13331 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333else
John Criswell47fdd832003-07-14 16:52:07 +000013334 # Double quotes because CXXCPP needs to be expanded
13335 for CXXCPP in "$CXX -E" "/lib/cpp"
13336 do
13337 ac_preproc_ok=false
13338for ac_cxx_preproc_warn_flag in '' yes
13339do
13340 # Use a header file that comes with gcc, so configuring glibc
13341 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013344 # On the NeXT, cc -E runs the code through the compiler's parser,
13345 # not just through cpp. "Syntax error" is here to catch this case.
13346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352#ifdef __STDC__
13353# include <limits.h>
13354#else
13355# include <assert.h>
13356#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013357 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013358_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013359if { (ac_try="$ac_cpp conftest.$ac_ext"
13360case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013366 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013367 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013371 (exit $ac_status); } >/dev/null; then
13372 if test -s conftest.err; then
13373 ac_cpp_err=$ac_cxx_preproc_warn_flag
13374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13375 else
13376 ac_cpp_err=
13377 fi
13378else
13379 ac_cpp_err=yes
13380fi
13381if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013382 :
13383else
13384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013385sed 's/^/| /' conftest.$ac_ext >&5
13386
John Criswell47fdd832003-07-14 16:52:07 +000013387 # Broken: fails on valid input.
13388continue
13389fi
Reid Spencera773bd52006-08-04 18:18:08 +000013390
John Criswell47fdd832003-07-14 16:52:07 +000013391rm -f conftest.err conftest.$ac_ext
13392
Reid Spencera773bd52006-08-04 18:18:08 +000013393 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013394 # can be detected and how.
13395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013401#include <ac_nonexistent.h>
13402_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013403if { (ac_try="$ac_cpp conftest.$ac_ext"
13404case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013410 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013411 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013415 (exit $ac_status); } >/dev/null; then
13416 if test -s conftest.err; then
13417 ac_cpp_err=$ac_cxx_preproc_warn_flag
13418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13419 else
13420 ac_cpp_err=
13421 fi
13422else
13423 ac_cpp_err=yes
13424fi
13425if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013426 # Broken: success on invalid input.
13427continue
13428else
13429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013430sed 's/^/| /' conftest.$ac_ext >&5
13431
John Criswell47fdd832003-07-14 16:52:07 +000013432 # Passes both tests.
13433ac_preproc_ok=:
13434break
13435fi
Reid Spencera773bd52006-08-04 18:18:08 +000013436
John Criswell47fdd832003-07-14 16:52:07 +000013437rm -f conftest.err conftest.$ac_ext
13438
13439done
13440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13441rm -f conftest.err conftest.$ac_ext
13442if $ac_preproc_ok; then
13443 break
John Criswell7a73b802003-06-30 21:59:07 +000013444fi
13445
John Criswell47fdd832003-07-14 16:52:07 +000013446 done
13447 ac_cv_prog_CXXCPP=$CXXCPP
13448
13449fi
13450 CXXCPP=$ac_cv_prog_CXXCPP
13451else
13452 ac_cv_prog_CXXCPP=$CXXCPP
13453fi
Reid Spencera773bd52006-08-04 18:18:08 +000013454{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13455echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013456ac_preproc_ok=false
13457for ac_cxx_preproc_warn_flag in '' yes
13458do
13459 # Use a header file that comes with gcc, so configuring glibc
13460 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13462 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013463 # On the NeXT, cc -E runs the code through the compiler's parser,
13464 # not just through cpp. "Syntax error" is here to catch this case.
13465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471#ifdef __STDC__
13472# include <limits.h>
13473#else
13474# include <assert.h>
13475#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013476 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013478if { (ac_try="$ac_cpp conftest.$ac_ext"
13479case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013485 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013486 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013490 (exit $ac_status); } >/dev/null; then
13491 if test -s conftest.err; then
13492 ac_cpp_err=$ac_cxx_preproc_warn_flag
13493 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13494 else
13495 ac_cpp_err=
13496 fi
13497else
13498 ac_cpp_err=yes
13499fi
13500if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013501 :
13502else
13503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013504sed 's/^/| /' conftest.$ac_ext >&5
13505
John Criswell47fdd832003-07-14 16:52:07 +000013506 # Broken: fails on valid input.
13507continue
13508fi
Reid Spencera773bd52006-08-04 18:18:08 +000013509
John Criswell47fdd832003-07-14 16:52:07 +000013510rm -f conftest.err conftest.$ac_ext
13511
Reid Spencera773bd52006-08-04 18:18:08 +000013512 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013513 # can be detected and how.
13514 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013520#include <ac_nonexistent.h>
13521_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013522if { (ac_try="$ac_cpp conftest.$ac_ext"
13523case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526esac
13527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013529 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013530 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013534 (exit $ac_status); } >/dev/null; then
13535 if test -s conftest.err; then
13536 ac_cpp_err=$ac_cxx_preproc_warn_flag
13537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13538 else
13539 ac_cpp_err=
13540 fi
13541else
13542 ac_cpp_err=yes
13543fi
13544if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013545 # Broken: success on invalid input.
13546continue
13547else
13548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013549sed 's/^/| /' conftest.$ac_ext >&5
13550
John Criswell47fdd832003-07-14 16:52:07 +000013551 # Passes both tests.
13552ac_preproc_ok=:
13553break
13554fi
Reid Spencera773bd52006-08-04 18:18:08 +000013555
John Criswell47fdd832003-07-14 16:52:07 +000013556rm -f conftest.err conftest.$ac_ext
13557
13558done
13559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13560rm -f conftest.err conftest.$ac_ext
13561if $ac_preproc_ok; then
13562 :
13563else
John Criswell0c38eaf2003-09-10 15:17:25 +000013564 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13565See \`config.log' for more details." >&5
13566echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13567See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013568 { (exit 1); exit 1; }; }
13569fi
13570
Reid Spencera773bd52006-08-04 18:18:08 +000013571ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013572ac_cpp='$CXXCPP $CPPFLAGS'
13573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13576
Reid Spencer2706f8c2004-09-19 23:53:36 +000013577fi
13578
John Criswell47fdd832003-07-14 16:52:07 +000013579
13580ac_ext=f
13581ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13582ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13584if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013585 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 +000013586 do
13587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013591if test "${ac_cv_prog_F77+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593else
13594 if test -n "$F77"; then
13595 ac_cv_prog_F77="$F77" # Let the user override the test.
13596else
13597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598for as_dir in $PATH
13599do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013603 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 +000013604 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13607 fi
13608done
13609done
Reid Spencera773bd52006-08-04 18:18:08 +000013610IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013611
13612fi
13613fi
13614F77=$ac_cv_prog_F77
13615if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013616 { echo "$as_me:$LINENO: result: $F77" >&5
13617echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013618else
Reid Spencera773bd52006-08-04 18:18:08 +000013619 { echo "$as_me:$LINENO: result: no" >&5
13620echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013621fi
13622
Reid Spencera773bd52006-08-04 18:18:08 +000013623
John Criswell47fdd832003-07-14 16:52:07 +000013624 test -n "$F77" && break
13625 done
13626fi
13627if test -z "$F77"; then
13628 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013629 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 +000013630do
13631 # Extract the first word of "$ac_prog", so it can be a program name with args.
13632set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013635if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 if test -n "$ac_ct_F77"; then
13639 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13640else
13641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642for as_dir in $PATH
13643do
13644 IFS=$as_save_IFS
13645 test -z "$as_dir" && as_dir=.
13646 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013647 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 +000013648 ac_cv_prog_ac_ct_F77="$ac_prog"
13649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13650 break 2
13651 fi
13652done
13653done
Reid Spencera773bd52006-08-04 18:18:08 +000013654IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013655
13656fi
13657fi
13658ac_ct_F77=$ac_cv_prog_ac_ct_F77
13659if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013660 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13661echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013662else
Reid Spencera773bd52006-08-04 18:18:08 +000013663 { echo "$as_me:$LINENO: result: no" >&5
13664echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013665fi
13666
Reid Spencera773bd52006-08-04 18:18:08 +000013667
John Criswell47fdd832003-07-14 16:52:07 +000013668 test -n "$ac_ct_F77" && break
13669done
13670
Reid Spencera773bd52006-08-04 18:18:08 +000013671 if test "x$ac_ct_F77" = x; then
13672 F77=""
13673 else
13674 case $cross_compiling:$ac_tool_warned in
13675yes:)
13676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13677whose name does not start with the host triplet. If you think this
13678configuration is useful to you, please write to autoconf@gnu.org." >&5
13679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13680whose name does not start with the host triplet. If you think this
13681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13682ac_tool_warned=yes ;;
13683esac
13684 F77=$ac_ct_F77
13685 fi
John Criswell47fdd832003-07-14 16:52:07 +000013686fi
13687
13688
13689# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013690echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013691ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013692{ (ac_try="$ac_compiler --version >&5"
13693case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013702{ (ac_try="$ac_compiler -v >&5"
13703case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706esac
13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013712{ (ac_try="$ac_compiler -V >&5"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013723
13724# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013725# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013726ac_save_ext=$ac_ext
13727ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013728{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13729echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013730if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732else
13733 cat >conftest.$ac_ext <<_ACEOF
13734 program main
13735#ifndef __GNUC__
13736 choke me
13737#endif
13738
13739 end
13740_ACEOF
13741rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013742if { (ac_try="$ac_compile"
13743case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746esac
13747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013775 ac_compiler_gnu=yes
13776else
13777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013778sed 's/^/| /' conftest.$ac_ext >&5
13779
Reid Spencera773bd52006-08-04 18:18:08 +000013780 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013781fi
Reid Spencera773bd52006-08-04 18:18:08 +000013782
13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013784ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13785
13786fi
Reid Spencera773bd52006-08-04 18:18:08 +000013787{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13788echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013789ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013790ac_test_FFLAGS=${FFLAGS+set}
13791ac_save_FFLAGS=$FFLAGS
13792FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013793{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13794echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013795if test "${ac_cv_prog_f77_g+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 FFLAGS=-g
13799cat >conftest.$ac_ext <<_ACEOF
13800 program main
13801
13802 end
13803_ACEOF
13804rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013805if { (ac_try="$ac_compile"
13806case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809esac
13810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822esac
13823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013838 ac_cv_prog_f77_g=yes
13839else
13840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013841sed 's/^/| /' conftest.$ac_ext >&5
13842
Reid Spencera773bd52006-08-04 18:18:08 +000013843 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013844fi
Reid Spencera773bd52006-08-04 18:18:08 +000013845
13846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013847
13848fi
Reid Spencera773bd52006-08-04 18:18:08 +000013849{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13850echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013851if test "$ac_test_FFLAGS" = set; then
13852 FFLAGS=$ac_save_FFLAGS
13853elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013854 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013855 FFLAGS="-g -O2"
13856 else
13857 FFLAGS="-g"
13858 fi
13859else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013861 FFLAGS="-O2"
13862 else
13863 FFLAGS=
13864 fi
13865fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866
13867G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013868ac_ext=c
13869ac_cpp='$CPP $CPPFLAGS'
13870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873
13874
13875
13876# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13877
13878# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013879{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13880echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013881if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013885 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013886
13887 case $build_os in
13888 msdosdjgpp*)
13889 # On DJGPP, this test can blow up pretty badly due to problems in libc
13890 # (any single argument exceeding 2000 bytes causes a buffer overrun
13891 # during glob expansion). Even if it were fixed, the result of this
13892 # check would be larger than it should be.
13893 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13894 ;;
13895
13896 gnu*)
13897 # Under GNU Hurd, this test is not required because there is
13898 # no limit to the length of command line arguments.
13899 # Libtool will interpret -1 as no limit whatsoever
13900 lt_cv_sys_max_cmd_len=-1;
13901 ;;
13902
13903 cygwin* | mingw*)
13904 # On Win9x/ME, this test blows up -- it succeeds, but takes
13905 # about 5 minutes as the teststring grows exponentially.
13906 # Worse, since 9x/ME are not pre-emptively multitasking,
13907 # you end up with a "frozen" computer, even though with patience
13908 # the test eventually succeeds (with a max line length of 256k).
13909 # Instead, let's just punt: use the minimum linelength reported by
13910 # all of the supported platforms: 8192 (on NT/2K/XP).
13911 lt_cv_sys_max_cmd_len=8192;
13912 ;;
13913
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914 amigaos*)
13915 # On AmigaOS with pdksh, this test takes hours, literally.
13916 # So we just punt and use a minimum line length of 8192.
13917 lt_cv_sys_max_cmd_len=8192;
13918 ;;
13919
Reid Spencera773bd52006-08-04 18:18:08 +000013920 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013921 # This has been around since 386BSD, at least. Likely further.
13922 if test -x /sbin/sysctl; then
13923 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13924 elif test -x /usr/sbin/sysctl; then
13925 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13926 else
Reid Spencera773bd52006-08-04 18:18:08 +000013927 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928 fi
13929 # And add a safety zone
13930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013932 ;;
13933
Reid Spencera773bd52006-08-04 18:18:08 +000013934 interix*)
13935 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13936 lt_cv_sys_max_cmd_len=196608
13937 ;;
13938
13939 osf*)
13940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13942 # nice to cause kernel panics so lets avoid the loop below.
13943 # First set a reasonable default.
13944 lt_cv_sys_max_cmd_len=16384
13945 #
13946 if test -x /sbin/sysconfig; then
13947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13949 esac
13950 fi
13951 ;;
13952 sco3.2v5*)
13953 lt_cv_sys_max_cmd_len=102400
13954 ;;
13955 sysv5* | sco5v6* | sysv4.2uw2*)
13956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13957 if test -n "$kargmax"; then
13958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13959 else
13960 lt_cv_sys_max_cmd_len=32768
13961 fi
13962 ;;
13963 *)
John Criswell47fdd832003-07-14 16:52:07 +000013964 # If test is not a shell built-in, we'll probably end up computing a
13965 # maximum length that is only half of the actual maximum length, but
13966 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13968 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13969 = "XX$teststring") >/dev/null 2>&1 &&
13970 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013971 lt_cv_sys_max_cmd_len=$new_result &&
13972 test $i != 17 # 1/2 MB should be enough
13973 do
13974 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013975 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013976 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013977 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013978 # Add a significant safety factor because C++ compilers can tack on massive
13979 # amounts of additional arguments before passing them to the linker.
13980 # It appears as though 1/2 is a usable value.
13981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13982 ;;
13983 esac
13984
13985fi
13986
13987if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013988 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13989echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013990else
Reid Spencera773bd52006-08-04 18:18:08 +000013991 { echo "$as_me:$LINENO: result: none" >&5
13992echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013993fi
13994
13995
13996
13997
13998# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013999{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14000echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014001if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003else
14004
14005# These are sane defaults that work on at least a few old systems.
14006# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14007
14008# Character class describing NM global symbol codes.
14009symcode='[BCDEGRST]'
14010
14011# Regexp to match symbols that can be accessed directly from C.
14012sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14013
John Criswell47fdd832003-07-14 16:52:07 +000014014# Transform an extracted symbol line into a proper C declaration
14015lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14016
14017# Transform an extracted symbol line into symbol name and symbol address
14018lt_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'"
14019
14020# Define system-specific variables.
14021case $host_os in
14022aix*)
14023 symcode='[BCDT]'
14024 ;;
14025cygwin* | mingw* | pw32*)
14026 symcode='[ABCDGISTW]'
14027 ;;
14028hpux*) # Its linker distinguishes data from code symbols
14029 if test "$host_cpu" = ia64; then
14030 symcode='[ABCDEGRST]'
14031 fi
14032 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14033 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'"
14034 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014035linux*)
14036 if test "$host_cpu" = ia64; then
14037 symcode='[ABCDGIRSTW]'
14038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14039 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'"
14040 fi
14041 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014042irix* | nonstopux*)
14043 symcode='[BCDEGRST]'
14044 ;;
14045osf*)
14046 symcode='[BCDEGQRST]'
14047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014048solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014049 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014050 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014051sco3.2v5*)
14052 symcode='[DT]'
14053 ;;
14054sysv4.2uw2*)
14055 symcode='[DT]'
14056 ;;
14057sysv5* | sco5v6* | unixware* | OpenUNIX*)
14058 symcode='[ABDT]'
14059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014060sysv4)
14061 symcode='[DFNSTU]'
14062 ;;
14063esac
14064
14065# Handle CRLF in mingw tool chain
14066opt_cr=
14067case $build_os in
14068mingw*)
14069 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14070 ;;
14071esac
14072
14073# If we're using GNU nm, then use its standard symbol codes.
14074case `$NM -V 2>&1` in
14075*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014076 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014077esac
14078
14079# Try without a prefix undercore, then with it.
14080for ac_symprfx in "" "_"; do
14081
Reid Spencera773bd52006-08-04 18:18:08 +000014082 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14083 symxfrm="\\1 $ac_symprfx\\2 \\2"
14084
John Criswell47fdd832003-07-14 16:52:07 +000014085 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014086 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 +000014087
14088 # Check to see that the pipe works correctly.
14089 pipe_works=no
14090
14091 rm -f conftest*
14092 cat > conftest.$ac_ext <<EOF
14093#ifdef __cplusplus
14094extern "C" {
14095#endif
14096char nm_test_var;
14097void nm_test_func(){}
14098#ifdef __cplusplus
14099}
14100#endif
14101int main(){nm_test_var='a';nm_test_func();return(0);}
14102EOF
14103
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; then
14109 # Now try to grab the symbols.
14110 nlist=conftest.nm
14111 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14112 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && test -s "$nlist"; then
14116 # Try sorting and uniquifying the output.
14117 if sort "$nlist" | uniq > "$nlist"T; then
14118 mv -f "$nlist"T "$nlist"
14119 else
14120 rm -f "$nlist"T
14121 fi
14122
14123 # Make sure that we snagged all the symbols we need.
14124 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14125 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14126 cat <<EOF > conftest.$ac_ext
14127#ifdef __cplusplus
14128extern "C" {
14129#endif
14130
14131EOF
14132 # Now generate the symbol file.
14133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14134
14135 cat <<EOF >> conftest.$ac_ext
14136#if defined (__STDC__) && __STDC__
14137# define lt_ptr_t void *
14138#else
14139# define lt_ptr_t char *
14140# define const
14141#endif
14142
14143/* The mapping between symbol names and symbols. */
14144const struct {
14145 const char *name;
14146 lt_ptr_t address;
14147}
14148lt_preloaded_symbols[] =
14149{
14150EOF
14151 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14152 cat <<\EOF >> conftest.$ac_ext
14153 {0, (lt_ptr_t) 0}
14154};
14155
14156#ifdef __cplusplus
14157}
14158#endif
14159EOF
14160 # Now try linking the two files.
14161 mv conftest.$ac_objext conftstm.$ac_objext
14162 lt_save_LIBS="$LIBS"
14163 lt_save_CFLAGS="$CFLAGS"
14164 LIBS="conftstm.$ac_objext"
14165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167 (eval $ac_link) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14171 pipe_works=yes
14172 fi
14173 LIBS="$lt_save_LIBS"
14174 CFLAGS="$lt_save_CFLAGS"
14175 else
14176 echo "cannot find nm_test_func in $nlist" >&5
14177 fi
14178 else
14179 echo "cannot find nm_test_var in $nlist" >&5
14180 fi
14181 else
14182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14183 fi
14184 else
14185 echo "$progname: failed program was:" >&5
14186 cat conftest.$ac_ext >&5
14187 fi
14188 rm -f conftest* conftst*
14189
14190 # Do not use the global_symbol_pipe unless it works.
14191 if test "$pipe_works" = yes; then
14192 break
14193 else
14194 lt_cv_sys_global_symbol_pipe=
14195 fi
14196done
14197
14198fi
14199
14200if test -z "$lt_cv_sys_global_symbol_pipe"; then
14201 lt_cv_sys_global_symbol_to_cdecl=
14202fi
14203if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014204 { echo "$as_me:$LINENO: result: failed" >&5
14205echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014206else
Reid Spencera773bd52006-08-04 18:18:08 +000014207 { echo "$as_me:$LINENO: result: ok" >&5
14208echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014209fi
14210
Reid Spencera773bd52006-08-04 18:18:08 +000014211{ echo "$as_me:$LINENO: checking for objdir" >&5
14212echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014213if test "${lt_cv_objdir+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 rm -f .libs 2>/dev/null
14217mkdir .libs 2>/dev/null
14218if test -d .libs; then
14219 lt_cv_objdir=.libs
14220else
14221 # MS-DOS does not allow filenames that begin with a dot.
14222 lt_cv_objdir=_libs
14223fi
14224rmdir .libs 2>/dev/null
14225fi
Reid Spencera773bd52006-08-04 18:18:08 +000014226{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14227echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014228objdir=$lt_cv_objdir
14229
14230
14231
14232
14233
14234case $host_os in
14235aix3*)
14236 # AIX sometimes has problems with the GCC collect2 program. For some
14237 # reason, if we set the COLLECT_NAMES environment variable, the problems
14238 # vanish in a puff of smoke.
14239 if test "X${COLLECT_NAMES+set}" != Xset; then
14240 COLLECT_NAMES=
14241 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014242 fi
14243 ;;
14244esac
14245
John Criswell47fdd832003-07-14 16:52:07 +000014246# Sed substitution that helps us do robust quoting. It backslashifies
14247# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014248Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014249sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14250
14251# Same as above, but do not quote variable references.
14252double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14253
14254# Sed substitution to delay expansion of an escaped shell variable in a
14255# double_quote_subst'ed string.
14256delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14257
14258# Sed substitution to avoid accidental globbing in evaled expressions
14259no_glob_subst='s/\*/\\\*/g'
14260
14261# Constants:
14262rm="rm -f"
14263
14264# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014265default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014266can_build_shared=yes
14267
Reid Spencera773bd52006-08-04 18:18:08 +000014268# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014269# which needs '.lib').
14270libext=a
14271ltmain="$ac_aux_dir/ltmain.sh"
14272ofile="$default_ofile"
14273with_gnu_ld="$lt_cv_prog_gnu_ld"
14274
14275if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014280if test "${ac_cv_prog_AR+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283 if test -n "$AR"; then
14284 ac_cv_prog_AR="$AR" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014292 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 +000014293 ac_cv_prog_AR="${ac_tool_prefix}ar"
14294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298done
Reid Spencera773bd52006-08-04 18:18:08 +000014299IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014300
14301fi
14302fi
14303AR=$ac_cv_prog_AR
14304if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014305 { echo "$as_me:$LINENO: result: $AR" >&5
14306echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014307else
Reid Spencera773bd52006-08-04 18:18:08 +000014308 { echo "$as_me:$LINENO: result: no" >&5
14309echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014310fi
14311
Reid Spencera773bd52006-08-04 18:18:08 +000014312
John Criswell47fdd832003-07-14 16:52:07 +000014313fi
14314if test -z "$ac_cv_prog_AR"; then
14315 ac_ct_AR=$AR
14316 # Extract the first word of "ar", so it can be a program name with args.
14317set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014320if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322else
14323 if test -n "$ac_ct_AR"; then
14324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14325else
14326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327for as_dir in $PATH
14328do
14329 IFS=$as_save_IFS
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014332 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 +000014333 ac_cv_prog_ac_ct_AR="ar"
14334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 break 2
14336 fi
14337done
14338done
Reid Spencera773bd52006-08-04 18:18:08 +000014339IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014340
John Criswell47fdd832003-07-14 16:52:07 +000014341fi
14342fi
14343ac_ct_AR=$ac_cv_prog_ac_ct_AR
14344if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014345 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14346echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014347else
Reid Spencera773bd52006-08-04 18:18:08 +000014348 { echo "$as_me:$LINENO: result: no" >&5
14349echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014350fi
14351
Reid Spencera773bd52006-08-04 18:18:08 +000014352 if test "x$ac_ct_AR" = x; then
14353 AR="false"
14354 else
14355 case $cross_compiling:$ac_tool_warned in
14356yes:)
14357{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14358whose name does not start with the host triplet. If you think this
14359configuration is useful to you, please write to autoconf@gnu.org." >&5
14360echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14361whose name does not start with the host triplet. If you think this
14362configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14363ac_tool_warned=yes ;;
14364esac
14365 AR=$ac_ct_AR
14366 fi
John Criswell47fdd832003-07-14 16:52:07 +000014367else
14368 AR="$ac_cv_prog_AR"
14369fi
14370
John Criswell7a73b802003-06-30 21:59:07 +000014371if test -n "$ac_tool_prefix"; then
14372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14373set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014376if test "${ac_cv_prog_RANLIB+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378else
14379 if test -n "$RANLIB"; then
14380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14381else
14382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383for as_dir in $PATH
14384do
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014388 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 +000014389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14392 fi
14393done
14394done
Reid Spencera773bd52006-08-04 18:18:08 +000014395IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014396
14397fi
14398fi
14399RANLIB=$ac_cv_prog_RANLIB
14400if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14402echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014403else
Reid Spencera773bd52006-08-04 18:18:08 +000014404 { echo "$as_me:$LINENO: result: no" >&5
14405echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014406fi
14407
Reid Spencera773bd52006-08-04 18:18:08 +000014408
John Criswell7a73b802003-06-30 21:59:07 +000014409fi
14410if test -z "$ac_cv_prog_RANLIB"; then
14411 ac_ct_RANLIB=$RANLIB
14412 # Extract the first word of "ranlib", so it can be a program name with args.
14413set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014416if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419 if test -n "$ac_ct_RANLIB"; then
14420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14421else
14422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423for as_dir in $PATH
14424do
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014428 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 +000014429 ac_cv_prog_ac_ct_RANLIB="ranlib"
14430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 break 2
14432 fi
14433done
14434done
Reid Spencera773bd52006-08-04 18:18:08 +000014435IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014436
John Criswell7a73b802003-06-30 21:59:07 +000014437fi
14438fi
14439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14440if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14442echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014443else
Reid Spencera773bd52006-08-04 18:18:08 +000014444 { echo "$as_me:$LINENO: result: no" >&5
14445echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014446fi
14447
Reid Spencera773bd52006-08-04 18:18:08 +000014448 if test "x$ac_ct_RANLIB" = x; then
14449 RANLIB=":"
14450 else
14451 case $cross_compiling:$ac_tool_warned in
14452yes:)
14453{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14454whose name does not start with the host triplet. If you think this
14455configuration is useful to you, please write to autoconf@gnu.org." >&5
14456echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14457whose name does not start with the host triplet. If you think this
14458configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14459ac_tool_warned=yes ;;
14460esac
14461 RANLIB=$ac_ct_RANLIB
14462 fi
John Criswell7a73b802003-06-30 21:59:07 +000014463else
14464 RANLIB="$ac_cv_prog_RANLIB"
14465fi
14466
14467if test -n "$ac_tool_prefix"; then
14468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14469set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014472if test "${ac_cv_prog_STRIP+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475 if test -n "$STRIP"; then
14476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14477else
14478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479for as_dir in $PATH
14480do
14481 IFS=$as_save_IFS
14482 test -z "$as_dir" && as_dir=.
14483 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014484 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 +000014485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14487 break 2
14488 fi
14489done
14490done
Reid Spencera773bd52006-08-04 18:18:08 +000014491IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014492
14493fi
14494fi
14495STRIP=$ac_cv_prog_STRIP
14496if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014497 { echo "$as_me:$LINENO: result: $STRIP" >&5
14498echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014499else
Reid Spencera773bd52006-08-04 18:18:08 +000014500 { echo "$as_me:$LINENO: result: no" >&5
14501echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014502fi
14503
Reid Spencera773bd52006-08-04 18:18:08 +000014504
John Criswell7a73b802003-06-30 21:59:07 +000014505fi
14506if test -z "$ac_cv_prog_STRIP"; then
14507 ac_ct_STRIP=$STRIP
14508 # Extract the first word of "strip", so it can be a program name with args.
14509set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014512if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514else
14515 if test -n "$ac_ct_STRIP"; then
14516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14517else
14518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519for as_dir in $PATH
14520do
14521 IFS=$as_save_IFS
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014524 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 +000014525 ac_cv_prog_ac_ct_STRIP="strip"
14526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14527 break 2
14528 fi
14529done
14530done
Reid Spencera773bd52006-08-04 18:18:08 +000014531IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014532
John Criswell7a73b802003-06-30 21:59:07 +000014533fi
14534fi
14535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14536if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014537 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14538echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014539else
Reid Spencera773bd52006-08-04 18:18:08 +000014540 { echo "$as_me:$LINENO: result: no" >&5
14541echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014542fi
14543
Reid Spencera773bd52006-08-04 18:18:08 +000014544 if test "x$ac_ct_STRIP" = x; then
14545 STRIP=":"
14546 else
14547 case $cross_compiling:$ac_tool_warned in
14548yes:)
14549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14550whose name does not start with the host triplet. If you think this
14551configuration is useful to you, please write to autoconf@gnu.org." >&5
14552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14553whose name does not start with the host triplet. If you think this
14554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14555ac_tool_warned=yes ;;
14556esac
14557 STRIP=$ac_ct_STRIP
14558 fi
John Criswell7a73b802003-06-30 21:59:07 +000014559else
14560 STRIP="$ac_cv_prog_STRIP"
14561fi
14562
14563
John Criswell7a73b802003-06-30 21:59:07 +000014564old_CC="$CC"
14565old_CFLAGS="$CFLAGS"
14566
14567# Set sane defaults for various variables
14568test -z "$AR" && AR=ar
14569test -z "$AR_FLAGS" && AR_FLAGS=cru
14570test -z "$AS" && AS=as
14571test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014572test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014573test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014574test -z "$DLLTOOL" && DLLTOOL=dlltool
14575test -z "$LD" && LD=ld
14576test -z "$LN_S" && LN_S="ln -s"
14577test -z "$MAGIC_CMD" && MAGIC_CMD=file
14578test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014579test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014580test -z "$OBJDUMP" && OBJDUMP=objdump
14581test -z "$RANLIB" && RANLIB=:
14582test -z "$STRIP" && STRIP=:
14583test -z "$ac_objext" && ac_objext=o
14584
John Criswell7a73b802003-06-30 21:59:07 +000014585# Determine commands to create old-style static archives.
14586old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14587old_postinstall_cmds='chmod 644 $oldlib'
14588old_postuninstall_cmds=
14589
14590if test -n "$RANLIB"; then
14591 case $host_os in
14592 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014594 ;;
14595 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014597 ;;
14598 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014599 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014600fi
14601
Reid Spencera773bd52006-08-04 18:18:08 +000014602for cc_temp in $compiler""; do
14603 case $cc_temp in
14604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606 \-*) ;;
14607 *) break;;
14608 esac
14609done
14610cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14611
Reid Spencer2706f8c2004-09-19 23:53:36 +000014612
John Criswell47fdd832003-07-14 16:52:07 +000014613# Only perform the check for file, if the check method requires it
14614case $deplibs_check_method in
14615file_magic*)
14616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014617 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14618echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014621else
John Criswell47fdd832003-07-14 16:52:07 +000014622 case $MAGIC_CMD in
14623[\\/*] | ?:[\\/]*)
14624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14625 ;;
14626*)
14627 lt_save_MAGIC_CMD="$MAGIC_CMD"
14628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14630 for ac_dir in $ac_dummy; do
14631 IFS="$lt_save_ifs"
14632 test -z "$ac_dir" && ac_dir=.
14633 if test -f $ac_dir/${ac_tool_prefix}file; then
14634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14635 if test -n "$file_magic_test_file"; then
14636 case $deplibs_check_method in
14637 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14641 $EGREP "$file_magic_regex" > /dev/null; then
14642 :
14643 else
14644 cat <<EOF 1>&2
14645
14646*** Warning: the command libtool uses to detect shared libraries,
14647*** $file_magic_cmd, produces output that libtool cannot recognize.
14648*** The result is that libtool may fail to recognize shared libraries
14649*** as such. This will affect the creation of libtool libraries that
14650*** depend on shared libraries, but programs linked with such libtool
14651*** libraries will work regardless of this problem. Nevertheless, you
14652*** may want to report the problem to your system manager and/or to
14653*** bug-libtool@gnu.org
14654
14655EOF
14656 fi ;;
14657 esac
14658 fi
14659 break
14660 fi
14661 done
14662 IFS="$lt_save_ifs"
14663 MAGIC_CMD="$lt_save_MAGIC_CMD"
14664 ;;
14665esac
John Criswell7a73b802003-06-30 21:59:07 +000014666fi
John Criswell7a73b802003-06-30 21:59:07 +000014667
John Criswell47fdd832003-07-14 16:52:07 +000014668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14669if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014670 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14671echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014672else
Reid Spencera773bd52006-08-04 18:18:08 +000014673 { echo "$as_me:$LINENO: result: no" >&5
14674echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014675fi
John Criswell7a73b802003-06-30 21:59:07 +000014676
John Criswell47fdd832003-07-14 16:52:07 +000014677if test -z "$lt_cv_path_MAGIC_CMD"; then
14678 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014679 { echo "$as_me:$LINENO: checking for file" >&5
14680echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014681if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683else
14684 case $MAGIC_CMD in
14685[\\/*] | ?:[\\/]*)
14686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14687 ;;
14688*)
14689 lt_save_MAGIC_CMD="$MAGIC_CMD"
14690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14692 for ac_dir in $ac_dummy; do
14693 IFS="$lt_save_ifs"
14694 test -z "$ac_dir" && ac_dir=.
14695 if test -f $ac_dir/file; then
14696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14697 if test -n "$file_magic_test_file"; then
14698 case $deplibs_check_method in
14699 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703 $EGREP "$file_magic_regex" > /dev/null; then
14704 :
14705 else
14706 cat <<EOF 1>&2
14707
14708*** Warning: the command libtool uses to detect shared libraries,
14709*** $file_magic_cmd, produces output that libtool cannot recognize.
14710*** The result is that libtool may fail to recognize shared libraries
14711*** as such. This will affect the creation of libtool libraries that
14712*** depend on shared libraries, but programs linked with such libtool
14713*** libraries will work regardless of this problem. Nevertheless, you
14714*** may want to report the problem to your system manager and/or to
14715*** bug-libtool@gnu.org
14716
14717EOF
14718 fi ;;
14719 esac
14720 fi
14721 break
14722 fi
14723 done
14724 IFS="$lt_save_ifs"
14725 MAGIC_CMD="$lt_save_MAGIC_CMD"
14726 ;;
14727esac
14728fi
14729
14730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014732 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14733echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014734else
Reid Spencera773bd52006-08-04 18:18:08 +000014735 { echo "$as_me:$LINENO: result: no" >&5
14736echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014737fi
14738
14739 else
14740 MAGIC_CMD=:
14741 fi
14742fi
14743
14744 fi
14745 ;;
14746esac
14747
Reid Spencer17795972004-11-18 09:47:37 +000014748enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014749enable_win32_dll=no
14750
Reid Spencera773bd52006-08-04 18:18:08 +000014751# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014752if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014753 enableval=$enable_libtool_lock;
14754fi
John Criswell47fdd832003-07-14 16:52:07 +000014755
John Criswell47fdd832003-07-14 16:52:07 +000014756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14757
John Criswell7a73b802003-06-30 21:59:07 +000014758
Reid Spencera773bd52006-08-04 18:18:08 +000014759# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014760if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014761 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014762else
14763 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014764fi
14765
John Criswell7a73b802003-06-30 21:59:07 +000014766test -z "$pic_mode" && pic_mode=default
14767
John Criswell47fdd832003-07-14 16:52:07 +000014768# Use C for the default configuration in the libtool script
14769tagname=
14770lt_save_CC="$CC"
14771ac_ext=c
14772ac_cpp='$CPP $CPPFLAGS'
14773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
14777
14778# Source file extension for C test sources.
14779ac_ext=c
14780
14781# Object file extension for compiled C test sources.
14782objext=o
14783objext=$objext
14784
14785# Code to be used in simple compile tests
14786lt_simple_compile_test_code="int some_variable = 0;\n"
14787
14788# Code to be used in simple link tests
14789lt_simple_link_test_code='int main(){return(0);}\n'
14790
14791
14792# If no C compiler was specified, use CC.
14793LTCC=${LTCC-"$CC"}
14794
Reid Spencera773bd52006-08-04 18:18:08 +000014795# If no C compiler flags were specified, use CFLAGS.
14796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14797
John Criswell47fdd832003-07-14 16:52:07 +000014798# Allow CC to be a program name with arguments.
14799compiler=$CC
14800
14801
Reid Spencera773bd52006-08-04 18:18:08 +000014802# save warnings/boilerplate of simple test code
14803ac_outfile=conftest.$ac_objext
14804printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14805eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14806_lt_compiler_boilerplate=`cat conftest.err`
14807$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014808
Reid Spencera773bd52006-08-04 18:18:08 +000014809ac_outfile=conftest.$ac_objext
14810printf "$lt_simple_link_test_code" >conftest.$ac_ext
14811eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14812_lt_linker_boilerplate=`cat conftest.err`
14813$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014814
14815
John Criswell47fdd832003-07-14 16:52:07 +000014816
14817lt_prog_compiler_no_builtin_flag=
14818
14819if test "$GCC" = yes; then
14820 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14821
Reid Spencer2706f8c2004-09-19 23:53:36 +000014822
Reid Spencera773bd52006-08-04 18:18:08 +000014823{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14824echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014825if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828 lt_cv_prog_compiler_rtti_exceptions=no
14829 ac_outfile=conftest.$ac_objext
14830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14831 lt_compiler_flag="-fno-rtti -fno-exceptions"
14832 # Insert the option either (1) after the last *FLAGS variable, or
14833 # (2) before a word containing "conftest.", or (3) at the end.
14834 # Note that $ac_compile itself does not contain backslashes and begins
14835 # with a dollar sign (not a hyphen), so the echo should work correctly.
14836 # The option is referenced via a variable to avoid confusing sed.
14837 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000014841 (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014842 (eval "$lt_compile" 2>conftest.err)
14843 ac_status=$?
14844 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000014845 echo "$as_me:14845: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014846 if (exit $ac_status) && test -s "$ac_outfile"; then
14847 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014848 # So say no if there are warnings other than the usual output.
14849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014852 lt_cv_prog_compiler_rtti_exceptions=yes
14853 fi
14854 fi
14855 $rm conftest*
14856
14857fi
Reid Spencera773bd52006-08-04 18:18:08 +000014858{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14859echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014860
14861if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14862 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14863else
14864 :
14865fi
14866
14867fi
14868
14869lt_prog_compiler_wl=
14870lt_prog_compiler_pic=
14871lt_prog_compiler_static=
14872
Reid Spencera773bd52006-08-04 18:18:08 +000014873{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14874echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014875
14876 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014877 lt_prog_compiler_wl='-Wl,'
14878 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014879
14880 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014881 aix*)
14882 # All AIX code is PIC.
14883 if test "$host_cpu" = ia64; then
14884 # AIX 5 now supports IA64 processor
14885 lt_prog_compiler_static='-Bstatic'
14886 fi
John Criswell7a73b802003-06-30 21:59:07 +000014887 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014888
John Criswell7a73b802003-06-30 21:59:07 +000014889 amigaos*)
14890 # FIXME: we need at least 68020 code to build shared libraries, but
14891 # adding the `-m68020' flag to GCC prevents building anything better,
14892 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014893 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014895
14896 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014897 # PIC is the default for these OSes.
14898 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014899
14900 mingw* | pw32* | os2*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 lt_prog_compiler_pic='-DDLL_EXPORT'
14904 ;;
14905
John Criswell7a73b802003-06-30 21:59:07 +000014906 darwin* | rhapsody*)
14907 # PIC is the default on this platform
14908 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014909 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014910 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014911
Reid Spencera773bd52006-08-04 18:18:08 +000014912 interix3*)
14913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14914 # Instead, we relocate shared libraries at runtime.
14915 ;;
14916
John Criswell47fdd832003-07-14 16:52:07 +000014917 msdosdjgpp*)
14918 # Just because we use GCC doesn't mean we suddenly get shared libraries
14919 # on systems that don't support them.
14920 lt_prog_compiler_can_build_shared=no
14921 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014922 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014923
John Criswell7a73b802003-06-30 21:59:07 +000014924 sysv4*MP*)
14925 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014926 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014927 fi
14928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929
14930 hpux*)
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014933 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014934 hppa*64*|ia64*)
14935 # +Z the default
14936 ;;
14937 *)
14938 lt_prog_compiler_pic='-fPIC'
14939 ;;
14940 esac
14941 ;;
14942
John Criswell7a73b802003-06-30 21:59:07 +000014943 *)
John Criswell47fdd832003-07-14 16:52:07 +000014944 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014945 ;;
14946 esac
14947 else
John Criswell47fdd832003-07-14 16:52:07 +000014948 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014949 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014950 aix*)
14951 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014952 if test "$host_cpu" = ia64; then
14953 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014954 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014955 else
John Criswell47fdd832003-07-14 16:52:07 +000014956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014957 fi
14958 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014959 darwin*)
14960 # PIC is the default on this platform
14961 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014962 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014963 xlc*)
14964 lt_prog_compiler_pic='-qnocommon'
14965 lt_prog_compiler_wl='-Wl,'
14966 ;;
14967 esac
14968 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014969
John Criswell47fdd832003-07-14 16:52:07 +000014970 mingw* | pw32* | os2*)
14971 # This hack is so that the source file can tell whether it is being
14972 # built for inclusion in a dll (and should export symbols for example).
14973 lt_prog_compiler_pic='-DDLL_EXPORT'
14974 ;;
14975
John Criswell7a73b802003-06-30 21:59:07 +000014976 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014977 lt_prog_compiler_wl='-Wl,'
14978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14979 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014980 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014981 hppa*64*|ia64*)
14982 # +Z the default
14983 ;;
14984 *)
14985 lt_prog_compiler_pic='+Z'
14986 ;;
14987 esac
14988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14989 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014990 ;;
14991
John Criswell47fdd832003-07-14 16:52:07 +000014992 irix5* | irix6* | nonstopux*)
14993 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014994 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014995 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014996 ;;
14997
14998 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014999 lt_prog_compiler_pic='-KPIC'
15000 lt_prog_compiler_static='-Bstatic'
15001 ;;
15002
15003 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015004 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015005 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015006 lt_prog_compiler_wl='-Wl,'
15007 lt_prog_compiler_pic='-KPIC'
15008 lt_prog_compiler_static='-static'
15009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015010 pgcc* | pgf77* | pgf90* | pgf95*)
15011 # Portland Group compilers (*not* the Pentium gcc compiler,
15012 # which looks to be a dead project)
15013 lt_prog_compiler_wl='-Wl,'
15014 lt_prog_compiler_pic='-fpic'
15015 lt_prog_compiler_static='-Bstatic'
15016 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015017 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015018 lt_prog_compiler_wl='-Wl,'
15019 # All Alpha code is PIC.
15020 lt_prog_compiler_static='-non_shared'
15021 ;;
15022 esac
John Criswell7a73b802003-06-30 21:59:07 +000015023 ;;
15024
15025 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015026 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015027 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015028 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015029 ;;
15030
John Criswell7a73b802003-06-30 21:59:07 +000015031 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015032 lt_prog_compiler_pic='-KPIC'
15033 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015034 case $cc_basename in
15035 f77* | f90* | f95*)
15036 lt_prog_compiler_wl='-Qoption ld ';;
15037 *)
15038 lt_prog_compiler_wl='-Wl,';;
15039 esac
John Criswell7a73b802003-06-30 21:59:07 +000015040 ;;
15041
15042 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015043 lt_prog_compiler_wl='-Qoption ld '
15044 lt_prog_compiler_pic='-PIC'
15045 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015046 ;;
15047
Reid Spencera773bd52006-08-04 18:18:08 +000015048 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015049 lt_prog_compiler_wl='-Wl,'
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015052 ;;
15053
15054 sysv4*MP*)
15055 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015056 lt_prog_compiler_pic='-Kconform_pic'
15057 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015058 fi
15059 ;;
15060
Reid Spencera773bd52006-08-04 18:18:08 +000015061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15062 lt_prog_compiler_wl='-Wl,'
15063 lt_prog_compiler_pic='-KPIC'
15064 lt_prog_compiler_static='-Bstatic'
15065 ;;
15066
15067 unicos*)
15068 lt_prog_compiler_wl='-Wl,'
15069 lt_prog_compiler_can_build_shared=no
15070 ;;
15071
John Criswell47fdd832003-07-14 16:52:07 +000015072 uts4*)
15073 lt_prog_compiler_pic='-pic'
15074 lt_prog_compiler_static='-Bstatic'
15075 ;;
15076
John Criswell7a73b802003-06-30 21:59:07 +000015077 *)
John Criswell47fdd832003-07-14 16:52:07 +000015078 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015079 ;;
15080 esac
15081 fi
15082
Reid Spencera773bd52006-08-04 18:18:08 +000015083{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15084echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015085
John Criswell47fdd832003-07-14 16:52:07 +000015086#
15087# Check to make sure the PIC flag actually works.
15088#
15089if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015090
Reid Spencera773bd52006-08-04 18:18:08 +000015091{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15092echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015093if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
John Criswell47fdd832003-07-14 16:52:07 +000015096 lt_prog_compiler_pic_works=no
15097 ac_outfile=conftest.$ac_objext
15098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15100 # Insert the option either (1) after the last *FLAGS variable, or
15101 # (2) before a word containing "conftest.", or (3) at the end.
15102 # Note that $ac_compile itself does not contain backslashes and begins
15103 # with a dollar sign (not a hyphen), so the echo should work correctly.
15104 # The option is referenced via a variable to avoid confusing sed.
15105 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15108 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000015109 (eval echo "\"\$as_me:15109: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015110 (eval "$lt_compile" 2>conftest.err)
15111 ac_status=$?
15112 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000015113 echo "$as_me:15113: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015114 if (exit $ac_status) && test -s "$ac_outfile"; then
15115 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015116 # So say no if there are warnings other than the usual output.
15117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015120 lt_prog_compiler_pic_works=yes
15121 fi
15122 fi
15123 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015124
John Criswell47fdd832003-07-14 16:52:07 +000015125fi
Reid Spencera773bd52006-08-04 18:18:08 +000015126{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15127echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015128
John Criswell47fdd832003-07-14 16:52:07 +000015129if test x"$lt_prog_compiler_pic_works" = xyes; then
15130 case $lt_prog_compiler_pic in
15131 "" | " "*) ;;
15132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15133 esac
John Criswell7a73b802003-06-30 21:59:07 +000015134else
John Criswell47fdd832003-07-14 16:52:07 +000015135 lt_prog_compiler_pic=
15136 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015137fi
15138
John Criswell7a73b802003-06-30 21:59:07 +000015139fi
Reid Spencera773bd52006-08-04 18:18:08 +000015140case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015141 # For platforms which do not support PIC, -DPIC is meaningless:
15142 *djgpp*)
15143 lt_prog_compiler_pic=
15144 ;;
15145 *)
15146 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15147 ;;
15148esac
John Criswell7a73b802003-06-30 21:59:07 +000015149
Reid Spencera773bd52006-08-04 18:18:08 +000015150#
15151# Check to make sure the static flag actually works.
15152#
15153wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15154{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15155echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15156if test "${lt_prog_compiler_static_works+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 lt_prog_compiler_static_works=no
15160 save_LDFLAGS="$LDFLAGS"
15161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15162 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15164 # The linker can only warn and ignore the option if not recognized
15165 # So say no if there are warnings
15166 if test -s conftest.err; then
15167 # Append any errors to the config.log.
15168 cat conftest.err 1>&5
15169 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_prog_compiler_static_works=yes
15173 fi
15174 else
15175 lt_prog_compiler_static_works=yes
15176 fi
15177 fi
15178 $rm conftest*
15179 LDFLAGS="$save_LDFLAGS"
15180
15181fi
15182{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15183echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15184
15185if test x"$lt_prog_compiler_static_works" = xyes; then
15186 :
15187else
15188 lt_prog_compiler_static=
15189fi
15190
15191
15192{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15193echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015194if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196else
John Criswell47fdd832003-07-14 16:52:07 +000015197 lt_cv_prog_compiler_c_o=no
15198 $rm -r conftest 2>/dev/null
15199 mkdir conftest
15200 cd conftest
15201 mkdir out
15202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015203
John Criswell47fdd832003-07-14 16:52:07 +000015204 lt_compiler_flag="-o out/conftest2.$ac_objext"
15205 # Insert the option either (1) after the last *FLAGS variable, or
15206 # (2) before a word containing "conftest.", or (3) at the end.
15207 # Note that $ac_compile itself does not contain backslashes and begins
15208 # with a dollar sign (not a hyphen), so the echo should work correctly.
15209 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000015213 (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015214 (eval "$lt_compile" 2>out/conftest.err)
15215 ac_status=$?
15216 cat out/conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000015217 echo "$as_me:15217: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15219 then
15220 # The compiler can only warn and ignore the option if not recognized
15221 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015225 lt_cv_prog_compiler_c_o=yes
15226 fi
15227 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015228 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015229 $rm conftest*
15230 # SGI C++ compiler will create directory out/ii_files/ for
15231 # template instantiation
15232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15233 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015234 cd ..
15235 rmdir conftest
15236 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015237
15238fi
Reid Spencera773bd52006-08-04 18:18:08 +000015239{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15240echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015241
John Criswell7a73b802003-06-30 21:59:07 +000015242
John Criswell7a73b802003-06-30 21:59:07 +000015243hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015244if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015245 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015246 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15247echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015248 hard_links=yes
15249 $rm conftest*
15250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15251 touch conftest.a
15252 ln conftest.a conftest.b 2>&5 || hard_links=no
15253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015254 { echo "$as_me:$LINENO: result: $hard_links" >&5
15255echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015256 if test "$hard_links" = no; then
15257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15258echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15259 need_locks=warn
15260 fi
15261else
15262 need_locks=no
15263fi
John Criswell7a73b802003-06-30 21:59:07 +000015264
Reid Spencera773bd52006-08-04 18:18:08 +000015265{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15266echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015267
15268 runpath_var=
15269 allow_undefined_flag=
15270 enable_shared_with_static_runtimes=no
15271 archive_cmds=
15272 archive_expsym_cmds=
15273 old_archive_From_new_cmds=
15274 old_archive_from_expsyms_cmds=
15275 export_dynamic_flag_spec=
15276 whole_archive_flag_spec=
15277 thread_safe_flag_spec=
15278 hardcode_libdir_flag_spec=
15279 hardcode_libdir_flag_spec_ld=
15280 hardcode_libdir_separator=
15281 hardcode_direct=no
15282 hardcode_minus_L=no
15283 hardcode_shlibpath_var=unsupported
15284 link_all_deplibs=unknown
15285 hardcode_automatic=no
15286 module_cmds=
15287 module_expsym_cmds=
15288 always_export_symbols=no
15289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15290 # include_expsyms should be a list of space-separated symbols to be *always*
15291 # included in the symbol list
15292 include_expsyms=
15293 # exclude_expsyms can be an extended regexp of symbols to exclude
15294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15296 # as well as any symbol that contains `d'.
15297 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15299 # platforms (ab)use it in PIC code, but their linkers get confused if
15300 # the symbol is explicitly referenced. Since portable code cannot
15301 # rely on this symbol name, it's probably fine to never include it in
15302 # preloaded symbol tables.
15303 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015304 # Just being paranoid about ensuring that cc_basename is set.
15305 for cc_temp in $compiler""; do
15306 case $cc_temp in
15307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15309 \-*) ;;
15310 *) break;;
15311 esac
15312done
15313cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015314
15315 case $host_os in
15316 cygwin* | mingw* | pw32*)
15317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15318 # When not using gcc, we currently assume that we are using
15319 # Microsoft Visual C++.
15320 if test "$GCC" != yes; then
15321 with_gnu_ld=no
15322 fi
15323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015324 interix*)
15325 # we just hope/assume this is gcc and not c89 (= MSVC++)
15326 with_gnu_ld=yes
15327 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015328 openbsd*)
15329 with_gnu_ld=no
15330 ;;
15331 esac
15332
15333 ld_shlibs=yes
15334 if test "$with_gnu_ld" = yes; then
15335 # If archive_cmds runs LD, not CC, wlarc should be empty
15336 wlarc='${wl}'
15337
Reid Spencera773bd52006-08-04 18:18:08 +000015338 # Set some defaults for GNU ld with shared library support. These
15339 # are reset later if shared libraries are not supported. Putting them
15340 # here allows them to be overridden if necessary.
15341 runpath_var=LD_RUN_PATH
15342 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15343 export_dynamic_flag_spec='${wl}--export-dynamic'
15344 # ancient GNU ld didn't support --whole-archive et. al.
15345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15346 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15347 else
15348 whole_archive_flag_spec=
15349 fi
15350 supports_anon_versioning=no
15351 case `$LD -v 2>/dev/null` in
15352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355 *\ 2.11.*) ;; # other 2.11 versions
15356 *) supports_anon_versioning=yes ;;
15357 esac
15358
John Criswell47fdd832003-07-14 16:52:07 +000015359 # See if GNU ld supports shared libraries.
15360 case $host_os in
15361 aix3* | aix4* | aix5*)
15362 # On AIX/PPC, the GNU linker is very broken
15363 if test "$host_cpu" != ia64; then
15364 ld_shlibs=no
15365 cat <<EOF 1>&2
15366
15367*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15368*** to be unable to reliably create shared libraries on AIX.
15369*** Therefore, libtool is disabling shared libraries support. If you
15370*** really care for shared libraries, you may want to modify your PATH
15371*** so that a non-GNU linker is found, and then restart.
15372
15373EOF
15374 fi
15375 ;;
15376
15377 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015378 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 +000015379 hardcode_libdir_flag_spec='-L$libdir'
15380 hardcode_minus_L=yes
15381
15382 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15383 # that the semantics of dynamic libraries on AmigaOS, at least up
15384 # to version 4, is to share data among multiple programs linked
15385 # with the same dynamic library. Since this doesn't match the
15386 # behavior of shared libraries on other platforms, we can't use
15387 # them.
15388 ld_shlibs=no
15389 ;;
15390
15391 beos*)
15392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15393 allow_undefined_flag=unsupported
15394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15395 # support --undefined. This deserves some investigation. FIXME
15396 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397 else
15398 ld_shlibs=no
15399 fi
15400 ;;
15401
15402 cygwin* | mingw* | pw32*)
15403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15404 # as there is no search path for DLLs.
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 allow_undefined_flag=unsupported
15407 always_export_symbols=no
15408 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015409 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 +000015410
15411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015412 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 +000015413 # If the export-symbols file already is a .def file (1st line
15414 # is EXPORTS), use it as is; otherwise, prepend...
15415 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15416 cp $export_symbols $output_objdir/$soname.def;
15417 else
15418 echo EXPORTS > $output_objdir/$soname.def;
15419 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015420 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15422 else
15423 ld_shlibs=no
15424 fi
15425 ;;
15426
15427 interix3*)
15428 hardcode_direct=no
15429 hardcode_shlibpath_var=no
15430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15431 export_dynamic_flag_spec='${wl}-E'
15432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15433 # Instead, shared libraries are loaded at an image base (0x10000000 by
15434 # default) and relocated if they conflict, which is a slow very memory
15435 # consuming and fragmenting process. To avoid this, we pick a random,
15436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15439 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'
15440 ;;
15441
15442 linux*)
15443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15444 tmp_addflag=
15445 case $cc_basename,$host_cpu in
15446 pgcc*) # Portland Group C compiler
15447 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'
15448 tmp_addflag=' $pic_flag'
15449 ;;
15450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15451 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'
15452 tmp_addflag=' $pic_flag -Mnomain' ;;
15453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15454 tmp_addflag=' -i_dynamic' ;;
15455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15456 tmp_addflag=' -i_dynamic -nofor_main' ;;
15457 ifc* | ifort*) # Intel Fortran compiler
15458 tmp_addflag=' -nofor_main' ;;
15459 esac
15460 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461
15462 if test $supports_anon_versioning = yes; then
15463 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15465 $echo "local: *; };" >> $output_objdir/$libname.ver~
15466 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15467 fi
John Criswell47fdd832003-07-14 16:52:07 +000015468 else
15469 ld_shlibs=no
15470 fi
15471 ;;
15472
15473 netbsd*)
15474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15475 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15476 wlarc=
15477 else
15478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15480 fi
15481 ;;
15482
Reid Spencera773bd52006-08-04 18:18:08 +000015483 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15485 ld_shlibs=no
15486 cat <<EOF 1>&2
15487
15488*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15489*** create shared libraries on Solaris systems. Therefore, libtool
15490*** is disabling shared libraries support. We urge you to upgrade GNU
15491*** binutils to release 2.9.1 or newer. Another option is to modify
15492*** your PATH or compiler configuration so that the native linker is
15493*** used, and then restart.
15494
15495EOF
15496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15499 else
15500 ld_shlibs=no
15501 fi
15502 ;;
15503
Reid Spencera773bd52006-08-04 18:18:08 +000015504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15505 case `$LD -v 2>&1` in
15506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15507 ld_shlibs=no
15508 cat <<_LT_EOF 1>&2
15509
15510*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15511*** reliably create shared libraries on SCO systems. Therefore, libtool
15512*** is disabling shared libraries support. We urge you to upgrade GNU
15513*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15514*** your PATH or compiler configuration so that the native linker is
15515*** used, and then restart.
15516
15517_LT_EOF
15518 ;;
15519 *)
15520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15521 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15524 else
15525 ld_shlibs=no
15526 fi
15527 ;;
15528 esac
15529 ;;
15530
John Criswell47fdd832003-07-14 16:52:07 +000015531 sunos4*)
15532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15533 wlarc=
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15536 ;;
15537
15538 *)
15539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542 else
15543 ld_shlibs=no
15544 fi
15545 ;;
15546 esac
15547
Reid Spencera773bd52006-08-04 18:18:08 +000015548 if test "$ld_shlibs" = no; then
15549 runpath_var=
15550 hardcode_libdir_flag_spec=
15551 export_dynamic_flag_spec=
15552 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015553 fi
15554 else
15555 # PORTME fill in a description of your system's linker (not GNU ld)
15556 case $host_os in
15557 aix3*)
15558 allow_undefined_flag=unsupported
15559 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015560 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 +000015561 # Note: this linker hardcodes the directories in LIBPATH if there
15562 # are no directories specified by -L.
15563 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015565 # Neither direct hardcoding nor static linking is supported with a
15566 # broken collect2.
15567 hardcode_direct=unsupported
15568 fi
15569 ;;
15570
15571 aix4* | aix5*)
15572 if test "$host_cpu" = ia64; then
15573 # On IA64, the linker does run time linking by default, so we don't
15574 # have to do anything special.
15575 aix_use_runtimelinking=no
15576 exp_sym_flag='-Bexport'
15577 no_entry_flag=""
15578 else
15579 # If we're using GNU nm, then we don't want the "-C" option.
15580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15582 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'
15583 else
15584 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'
15585 fi
15586 aix_use_runtimelinking=no
15587
15588 # Test if we are trying to use run time linking or normal
15589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15590 # need to do runtime linking.
15591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15592 for ld_flag in $LDFLAGS; do
15593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15594 aix_use_runtimelinking=yes
15595 break
15596 fi
15597 done
Reid Spencera773bd52006-08-04 18:18:08 +000015598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015599 esac
15600
15601 exp_sym_flag='-bexport'
15602 no_entry_flag='-bnoentry'
15603 fi
15604
15605 # When large executables or shared objects are built, AIX ld can
15606 # have problems creating the table of contents. If linking a library
15607 # or program results in "error TOC overflow" add -mminimal-toc to
15608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15610
15611 archive_cmds=''
15612 hardcode_direct=yes
15613 hardcode_libdir_separator=':'
15614 link_all_deplibs=yes
15615
15616 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015617 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015618 # We only want to do this on AIX 4.2 and lower, the check
15619 # below for broken collect2 doesn't work under 4.3+
15620 collect2name=`${CC} -print-prog-name=collect2`
15621 if test -f "$collect2name" && \
15622 strings "$collect2name" | grep resolve_lib_name >/dev/null
15623 then
15624 # We have reworked collect2
15625 hardcode_direct=yes
15626 else
15627 # We have old collect2
15628 hardcode_direct=unsupported
15629 # It fails to find uninstalled libraries when the uninstalled
15630 # path is not listed in the libpath. Setting hardcode_minus_L
15631 # to unsupported forces relinking
15632 hardcode_minus_L=yes
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 hardcode_libdir_separator=
15635 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015636 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015637 esac
15638 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015639 if test "$aix_use_runtimelinking" = yes; then
15640 shared_flag="$shared_flag "'${wl}-G'
15641 fi
John Criswell47fdd832003-07-14 16:52:07 +000015642 else
15643 # not using gcc
15644 if test "$host_cpu" = ia64; then
15645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15646 # chokes on -Wl,-G. The following line is correct:
15647 shared_flag='-G'
15648 else
Reid Spencera773bd52006-08-04 18:18:08 +000015649 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015650 shared_flag='${wl}-G'
15651 else
15652 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015653 fi
John Criswell47fdd832003-07-14 16:52:07 +000015654 fi
15655 fi
15656
15657 # It seems that -bexpall does not export symbols beginning with
15658 # underscore (_), so it is better to generate a list of symbols to export.
15659 always_export_symbols=yes
15660 if test "$aix_use_runtimelinking" = yes; then
15661 # Warning - without using the other runtime loading flags (-brtl),
15662 # -berok will link without error, but may produce a broken library.
15663 allow_undefined_flag='-berok'
15664 # Determine the default libpath from the value encoded in an empty executable.
15665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015666/* confdefs.h. */
15667_ACEOF
15668cat confdefs.h >>conftest.$ac_ext
15669cat >>conftest.$ac_ext <<_ACEOF
15670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015671
John Criswell7a73b802003-06-30 21:59:07 +000015672int
15673main ()
15674{
John Criswell47fdd832003-07-14 16:52:07 +000015675
John Criswell7a73b802003-06-30 21:59:07 +000015676 ;
15677 return 0;
15678}
15679_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015680rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015681if { (ac_try="$ac_link"
15682case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015688 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698esac
15699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest$ac_exeext'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708esac
15709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015714
John Criswell47fdd832003-07-14 16:52:07 +000015715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15716}'`
15717# Check for a 64-bit object if we didn't find anything.
15718if 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; }
15719}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015720else
15721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015722sed 's/^/| /' conftest.$ac_ext >&5
15723
Reid Spencera773bd52006-08-04 18:18:08 +000015724
John Criswell7a73b802003-06-30 21:59:07 +000015725fi
Reid Spencera773bd52006-08-04 18:18:08 +000015726
Bill Wendlingebcceee2009-04-18 11:20:33 +000015727rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015728 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015730
John Criswell47fdd832003-07-14 16:52:07 +000015731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015732 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 +000015733 else
15734 if test "$host_cpu" = ia64; then
15735 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15736 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015737 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 +000015738 else
15739 # Determine the default libpath from the value encoded in an empty executable.
15740 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015741/* confdefs.h. */
15742_ACEOF
15743cat confdefs.h >>conftest.$ac_ext
15744cat >>conftest.$ac_ext <<_ACEOF
15745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015746
John Criswell47fdd832003-07-14 16:52:07 +000015747int
15748main ()
15749{
John Criswell7a73b802003-06-30 21:59:07 +000015750
John Criswell47fdd832003-07-14 16:52:07 +000015751 ;
15752 return 0;
15753}
15754_ACEOF
15755rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015756if { (ac_try="$ac_link"
15757case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015768 (exit $ac_status); } &&
15769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773esac
15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest$ac_exeext'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015789
John Criswell47fdd832003-07-14 16:52:07 +000015790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15791}'`
15792# Check for a 64-bit object if we didn't find anything.
15793if 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; }
15794}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015795else
John Criswell47fdd832003-07-14 16:52:07 +000015796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015797sed 's/^/| /' conftest.$ac_ext >&5
15798
Reid Spencera773bd52006-08-04 18:18:08 +000015799
John Criswell47fdd832003-07-14 16:52:07 +000015800fi
Reid Spencera773bd52006-08-04 18:18:08 +000015801
Bill Wendlingebcceee2009-04-18 11:20:33 +000015802rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015803 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015805
John Criswell47fdd832003-07-14 16:52:07 +000015806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15807 # Warning - without using the other run time loading flags,
15808 # -berok will link without error, but may produce a broken library.
15809 no_undefined_flag=' ${wl}-bernotok'
15810 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015811 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015812 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015813 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015814 # This is similar to how AIX traditionally builds its shared libraries.
15815 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 +000015816 fi
15817 fi
John Criswell7a73b802003-06-30 21:59:07 +000015818 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015819
15820 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015821 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 +000015822 hardcode_libdir_flag_spec='-L$libdir'
15823 hardcode_minus_L=yes
15824 # see comment about different semantics on the GNU ld section
15825 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015826 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015827
Reid Spencer2706f8c2004-09-19 23:53:36 +000015828 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015829 export_dynamic_flag_spec=-rdynamic
15830 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015831
John Criswell47fdd832003-07-14 16:52:07 +000015832 cygwin* | mingw* | pw32*)
15833 # When not using gcc, we currently assume that we are using
15834 # Microsoft Visual C++.
15835 # hardcode_libdir_flag_spec is actually meaningless, as there is
15836 # no search path for DLLs.
15837 hardcode_libdir_flag_spec=' '
15838 allow_undefined_flag=unsupported
15839 # Tell ltmain to make .lib files, not .a files.
15840 libext=lib
15841 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015842 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015843 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015845 # The linker will automatically build a .lib file if we build a DLL.
15846 old_archive_From_new_cmds='true'
15847 # FIXME: Should let the user specify the lib program.
15848 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15849 fix_srcfile_path='`cygpath -w "$srcfile"`'
15850 enable_shared_with_static_runtimes=yes
15851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015852
John Criswell47fdd832003-07-14 16:52:07 +000015853 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015854 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015855 rhapsody* | darwin1.[012])
15856 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15857 ;;
15858 *) # Darwin 1.3 on
15859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15860 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861 else
15862 case ${MACOSX_DEPLOYMENT_TARGET} in
15863 10.[012])
15864 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15865 ;;
15866 10.*)
15867 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15868 ;;
15869 esac
15870 fi
15871 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015872 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015874 hardcode_direct=no
15875 hardcode_automatic=yes
15876 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015877 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015878 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 if test "$GCC" = yes ; then
15880 output_verbose_link_cmd='echo'
15881 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15882 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015883 # 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 +000015884 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}'
15885 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 +000015886 else
Reid Spencera773bd52006-08-04 18:18:08 +000015887 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015888 xlc*)
15889 output_verbose_link_cmd='echo'
15890 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15891 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015892 # 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 +000015893 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}'
15894 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 +000015895 ;;
15896 *)
15897 ld_shlibs=no
15898 ;;
15899 esac
John Criswell7a73b802003-06-30 21:59:07 +000015900 fi
John Criswell47fdd832003-07-14 16:52:07 +000015901 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015902
John Criswell47fdd832003-07-14 16:52:07 +000015903 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015905 hardcode_libdir_flag_spec='-L$libdir'
15906 hardcode_shlibpath_var=no
15907 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015908
John Criswell47fdd832003-07-14 16:52:07 +000015909 freebsd1*)
15910 ld_shlibs=no
15911 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015912
John Criswell47fdd832003-07-14 16:52:07 +000015913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15914 # support. Future versions do this automatically, but an explicit c++rt0.o
15915 # does not break anything, and helps significantly (at the cost of a little
15916 # extra space).
15917 freebsd2.2*)
15918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15919 hardcode_libdir_flag_spec='-R$libdir'
15920 hardcode_direct=yes
15921 hardcode_shlibpath_var=no
15922 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015923
John Criswell47fdd832003-07-14 16:52:07 +000015924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15925 freebsd2*)
15926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_direct=yes
15928 hardcode_minus_L=yes
15929 hardcode_shlibpath_var=no
15930 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015931
John Criswell47fdd832003-07-14 16:52:07 +000015932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015933 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015934 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15935 hardcode_libdir_flag_spec='-R$libdir'
15936 hardcode_direct=yes
15937 hardcode_shlibpath_var=no
15938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015939
John Criswell47fdd832003-07-14 16:52:07 +000015940 hpux9*)
15941 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015942 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 +000015943 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015944 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 +000015945 fi
15946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15947 hardcode_libdir_separator=:
15948 hardcode_direct=yes
15949
15950 # hardcode_minus_L: Not really in the search PATH,
15951 # but as the default location of the library.
15952 hardcode_minus_L=yes
15953 export_dynamic_flag_spec='${wl}-E'
15954 ;;
15955
Reid Spencera773bd52006-08-04 18:18:08 +000015956 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015958 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15959 else
15960 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15961 fi
15962 if test "$with_gnu_ld" = no; then
15963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator=:
15965
15966 hardcode_direct=yes
15967 export_dynamic_flag_spec='${wl}-E'
15968
15969 # hardcode_minus_L: Not really in the search PATH,
15970 # but as the default location of the library.
15971 hardcode_minus_L=yes
15972 fi
15973 ;;
15974
15975 hpux11*)
15976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15977 case $host_cpu in
15978 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015981 ia64*)
15982 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15983 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015984 *)
15985 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15986 ;;
15987 esac
15988 else
Reid Spencera773bd52006-08-04 18:18:08 +000015989 case $host_cpu in
15990 hppa*64*)
15991 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992 ;;
15993 ia64*)
15994 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015995 ;;
15996 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015997 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 +000015998 ;;
15999 esac
16000 fi
16001 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16003 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016004
Reid Spencera773bd52006-08-04 18:18:08 +000016005 case $host_cpu in
16006 hppa*64*|ia64*)
16007 hardcode_libdir_flag_spec_ld='+b $libdir'
16008 hardcode_direct=no
16009 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016010 ;;
16011 *)
John Criswell47fdd832003-07-14 16:52:07 +000016012 hardcode_direct=yes
16013 export_dynamic_flag_spec='${wl}-E'
16014
16015 # hardcode_minus_L: Not really in the search PATH,
16016 # but as the default location of the library.
16017 hardcode_minus_L=yes
16018 ;;
16019 esac
16020 fi
16021 ;;
16022
16023 irix5* | irix6* | nonstopux*)
16024 if test "$GCC" = yes; then
16025 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'
16026 else
16027 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'
16028 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16029 fi
16030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16031 hardcode_libdir_separator=:
16032 link_all_deplibs=yes
16033 ;;
16034
16035 netbsd*)
16036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16038 else
16039 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16040 fi
16041 hardcode_libdir_flag_spec='-R$libdir'
16042 hardcode_direct=yes
16043 hardcode_shlibpath_var=no
16044 ;;
16045
16046 newsos6)
16047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_direct=yes
16049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator=:
16051 hardcode_shlibpath_var=no
16052 ;;
16053
16054 openbsd*)
16055 hardcode_direct=yes
16056 hardcode_shlibpath_var=no
16057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016059 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 +000016060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16061 export_dynamic_flag_spec='${wl}-E'
16062 else
16063 case $host_os in
16064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_libdir_flag_spec='-R$libdir'
16067 ;;
16068 *)
16069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16071 ;;
16072 esac
16073 fi
16074 ;;
16075
16076 os2*)
16077 hardcode_libdir_flag_spec='-L$libdir'
16078 hardcode_minus_L=yes
16079 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016080 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 +000016081 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16082 ;;
16083
16084 osf3*)
16085 if test "$GCC" = yes; then
16086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16087 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'
16088 else
16089 allow_undefined_flag=' -expect_unresolved \*'
16090 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'
16091 fi
16092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16093 hardcode_libdir_separator=:
16094 ;;
16095
16096 osf4* | osf5*) # as osf3* with the addition of -msym flag
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16101 else
16102 allow_undefined_flag=' -expect_unresolved \*'
16103 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 +000016104 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 +000016105 $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 +000016106
John Criswell47fdd832003-07-14 16:52:07 +000016107 # Both c and cxx compiler support -rpath directly
16108 hardcode_libdir_flag_spec='-rpath $libdir'
16109 fi
16110 hardcode_libdir_separator=:
16111 ;;
16112
John Criswell47fdd832003-07-14 16:52:07 +000016113 solaris*)
16114 no_undefined_flag=' -z text'
16115 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016116 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016117 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016118 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119 $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 +000016120 else
Reid Spencera773bd52006-08-04 18:18:08 +000016121 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016122 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016123 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16124 $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 +000016125 fi
16126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_shlibpath_var=no
16128 case $host_os in
16129 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016130 *)
16131 # The compiler driver will combine linker options so we
16132 # cannot just pass the convience library names through
16133 # without $wl, iff we do not link with $LD.
16134 # Luckily, gcc supports the same syntax we need for Sun Studio.
16135 # Supported since Solaris 2.6 (maybe 2.5.1?)
16136 case $wlarc in
16137 '')
16138 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16139 *)
16140 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' ;;
16141 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016142 esac
16143 link_all_deplibs=yes
16144 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016145
John Criswell47fdd832003-07-14 16:52:07 +000016146 sunos4*)
16147 if test "x$host_vendor" = xsequent; then
16148 # Use $CC to link under sequent, because it throws in some extra .o
16149 # files that make .init and .fini sections work.
16150 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16151 else
16152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16153 fi
16154 hardcode_libdir_flag_spec='-L$libdir'
16155 hardcode_direct=yes
16156 hardcode_minus_L=yes
16157 hardcode_shlibpath_var=no
16158 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016159
John Criswell47fdd832003-07-14 16:52:07 +000016160 sysv4)
16161 case $host_vendor in
16162 sni)
16163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_direct=yes # is this really true???
16165 ;;
16166 siemens)
16167 ## LD is ld it makes a PLAMLIB
16168 ## CC just makes a GrossModule.
16169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16170 reload_cmds='$CC -r -o $output$reload_objs'
16171 hardcode_direct=no
16172 ;;
16173 motorola)
16174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16176 ;;
16177 esac
16178 runpath_var='LD_RUN_PATH'
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 sysv4.3*)
16183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184 hardcode_shlibpath_var=no
16185 export_dynamic_flag_spec='-Bexport'
16186 ;;
16187
16188 sysv4*MP*)
16189 if test -d /usr/nec; then
16190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_shlibpath_var=no
16192 runpath_var=LD_RUN_PATH
16193 hardcode_runpath_var=yes
16194 ld_shlibs=yes
16195 fi
16196 ;;
16197
Reid Spencera773bd52006-08-04 18:18:08 +000016198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16199 no_undefined_flag='${wl}-z,text'
16200 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016201 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016202 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016203
John Criswell47fdd832003-07-14 16:52:07 +000016204 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016205 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 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 +000016207 else
Reid Spencera773bd52006-08-04 18:18:08 +000016208 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 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 +000016210 fi
John Criswell47fdd832003-07-14 16:52:07 +000016211 ;;
16212
Reid Spencera773bd52006-08-04 18:18:08 +000016213 sysv5* | sco3.2v5* | sco5v6*)
16214 # Note: We can NOT use -z defs as we might desire, because we do not
16215 # link with -lc, and that would cause any symbols used from libc to
16216 # always be unresolved, which means just about no library would
16217 # ever link correctly. If we're not using GNU ld we use -z text
16218 # though, which does catch some bad symbols but isn't as heavy-handed
16219 # as -z defs.
16220 no_undefined_flag='${wl}-z,text'
16221 allow_undefined_flag='${wl}-z,nodefs'
16222 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016223 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016224 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16225 hardcode_libdir_separator=':'
16226 link_all_deplibs=yes
16227 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016228 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016229
16230 if test "$GCC" = yes; then
16231 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 else
16234 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 fi
John Criswell47fdd832003-07-14 16:52:07 +000016237 ;;
16238
16239 uts4*)
16240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16241 hardcode_libdir_flag_spec='-L$libdir'
16242 hardcode_shlibpath_var=no
16243 ;;
16244
16245 *)
16246 ld_shlibs=no
16247 ;;
16248 esac
16249 fi
16250
Reid Spencera773bd52006-08-04 18:18:08 +000016251{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16252echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016253test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016254
John Criswell47fdd832003-07-14 16:52:07 +000016255#
16256# Do we need to explicitly link libc?
16257#
16258case "x$archive_cmds_need_lc" in
16259x|xyes)
16260 # Assume -lc should be added
16261 archive_cmds_need_lc=yes
16262
16263 if test "$enable_shared" = yes && test "$GCC" = yes; then
16264 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016265 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016266 # FIXME: we may have to deal with multi-command sequences.
16267 ;;
16268 '$CC '*)
16269 # Test whether the compiler implicitly links with -lc since on some
16270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16271 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16273echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016274 $rm conftest*
16275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16276
16277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278 (eval $ac_compile) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } 2>conftest.err; then
16282 soname=conftest
16283 lib=conftest
16284 libobjs=conftest.$ac_objext
16285 deplibs=
16286 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016287 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016288 compiler_flags=-v
16289 linker_flags=-v
16290 verstring=
16291 output_objdir=.
16292 libname=conftest
16293 lt_save_allow_undefined_flag=$allow_undefined_flag
16294 allow_undefined_flag=
16295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16296 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }
16300 then
16301 archive_cmds_need_lc=no
16302 else
16303 archive_cmds_need_lc=yes
16304 fi
16305 allow_undefined_flag=$lt_save_allow_undefined_flag
16306 else
16307 cat conftest.err 1>&5
16308 fi
16309 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16311echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016312 ;;
16313 esac
16314 fi
16315 ;;
16316esac
16317
Reid Spencera773bd52006-08-04 18:18:08 +000016318{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16319echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016320library_names_spec=
16321libname_spec='lib$name'
16322soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016323shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016324postinstall_cmds=
16325postuninstall_cmds=
16326finish_cmds=
16327finish_eval=
16328shlibpath_var=
16329shlibpath_overrides_runpath=unknown
16330version_type=none
16331dynamic_linker="$host_os ld.so"
16332sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016333if test "$GCC" = yes; then
16334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16336 # if the path contains ";" then we assume it to be the separator
16337 # otherwise default to the standard path separator (i.e. ":") - it is
16338 # assumed that no part of a normal pathname contains ";" but that should
16339 # okay in the real world where ";" in dirpaths is itself problematic.
16340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16341 else
16342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16343 fi
16344else
16345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16346fi
16347need_lib_prefix=unknown
16348hardcode_into_libs=no
16349
16350# when you set need_version to no, make sure it does not cause -set_version
16351# flags to be left without arguments
16352need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016353
16354case $host_os in
16355aix3*)
16356 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016358 shlibpath_var=LIBPATH
16359
John Criswell47fdd832003-07-14 16:52:07 +000016360 # AIX 3 has no versioning support, so we append a major version to the name.
16361 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016362 ;;
16363
16364aix4* | aix5*)
16365 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016366 need_lib_prefix=no
16367 need_version=no
16368 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016369 if test "$host_cpu" = ia64; then
16370 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016372 shlibpath_var=LD_LIBRARY_PATH
16373 else
16374 # With GCC up to 2.95.x, collect2 would create an import file
16375 # for dependence libraries. The import file would start with
16376 # the line `#! .'. This would cause the generated library to
16377 # depend on `.', always an invalid library. This was fixed in
16378 # development snapshots of GCC prior to 3.0.
16379 case $host_os in
16380 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16382 echo ' yes '
16383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16384 :
16385 else
16386 can_build_shared=no
16387 fi
16388 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016389 esac
John Criswell47fdd832003-07-14 16:52:07 +000016390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16391 # soname into executable. Probably we can add versioning support to
16392 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016393 if test "$aix_use_runtimelinking" = yes; then
16394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16395 # instead of lib<name>.a to let people know that these are not
16396 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016398 else
16399 # We preserve .a as extension for shared libraries through AIX4.2
16400 # and later when we are not doing run time linking.
16401 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016402 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016403 fi
16404 shlibpath_var=LIBPATH
16405 fi
16406 ;;
16407
16408amigaos*)
16409 library_names_spec='$libname.ixlibrary $libname.a'
16410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411 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 +000016412 ;;
16413
16414beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016415 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016416 dynamic_linker="$host_os ld.so"
16417 shlibpath_var=LIBRARY_PATH
16418 ;;
16419
Reid Spencer2706f8c2004-09-19 23:53:36 +000016420bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016421 version_type=linux
16422 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016429 # the default ld.so.conf also contains /usr/contrib/lib and
16430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16431 # libtool to hard-code these into programs
16432 ;;
16433
16434cygwin* | mingw* | pw32*)
16435 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016436 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016437 need_version=no
16438 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016439
John Criswell7a73b802003-06-30 21:59:07 +000016440 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016441 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016442 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016444 postinstall_cmds='base_file=`basename \${file}`~
16445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16446 dldir=$destdir/`dirname \$dlpath`~
16447 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016448 $install_prog $dir/$dlname \$dldir/$dlname~
16449 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16451 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016452 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016453 shlibpath_overrides_runpath=yes
16454
16455 case $host_os in
16456 cygwin*)
16457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16458 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 +000016459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016460 ;;
16461 mingw*)
16462 # MinGW DLLs use traditional 'lib' prefix
16463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16466 # It is most probably a Windows format PATH printed by
16467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16468 # path with ; separators, and with drive letters. We can handle the
16469 # drive letters (cygwin fileutils understands them), so leave them,
16470 # especially as we might pass files found there to a mingw objdump,
16471 # which wouldn't understand a cygwinified path. Ahh.
16472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16473 else
16474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16475 fi
16476 ;;
16477 pw32*)
16478 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016479 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 +000016480 ;;
16481 esac
John Criswell7a73b802003-06-30 21:59:07 +000016482 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016483
John Criswell7a73b802003-06-30 21:59:07 +000016484 *)
John Criswell47fdd832003-07-14 16:52:07 +000016485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016486 ;;
16487 esac
16488 dynamic_linker='Win32 ld.exe'
16489 # FIXME: first we should search . and the directory the executable is in
16490 shlibpath_var=PATH
16491 ;;
16492
16493darwin* | rhapsody*)
16494 dynamic_linker="$host_os dyld"
16495 version_type=darwin
16496 need_lib_prefix=no
16497 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016499 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016500 shlibpath_overrides_runpath=yes
16501 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016502 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016504 if test "$GCC" = yes; then
16505 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"`
16506 else
16507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016508 fi
16509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16510 ;;
16511
16512dgux*)
16513 version_type=linux
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016519 ;;
16520
16521freebsd1*)
16522 dynamic_linker=no
16523 ;;
16524
Reid Spencer2706f8c2004-09-19 23:53:36 +000016525kfreebsd*-gnu)
16526 version_type=linux
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 shlibpath_overrides_runpath=no
16533 hardcode_into_libs=yes
16534 dynamic_linker='GNU ld.so'
16535 ;;
16536
Reid Spencera773bd52006-08-04 18:18:08 +000016537freebsd* | dragonfly*)
16538 # DragonFly does not have aout. When/if they implement a new
16539 # versioning mechanism, adjust this.
16540 if test -x /usr/bin/objformat; then
16541 objformat=`/usr/bin/objformat`
16542 else
16543 case $host_os in
16544 freebsd[123]*) objformat=aout ;;
16545 *) objformat=elf ;;
16546 esac
16547 fi
John Criswell7a73b802003-06-30 21:59:07 +000016548 version_type=freebsd-$objformat
16549 case $version_type in
16550 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016552 need_version=no
16553 need_lib_prefix=no
16554 ;;
16555 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016557 need_version=yes
16558 ;;
16559 esac
16560 shlibpath_var=LD_LIBRARY_PATH
16561 case $host_os in
16562 freebsd2*)
16563 shlibpath_overrides_runpath=yes
16564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016565 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016566 shlibpath_overrides_runpath=yes
16567 hardcode_into_libs=yes
16568 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016574 freebsd*) # from 4.6 on
16575 shlibpath_overrides_runpath=yes
16576 hardcode_into_libs=yes
16577 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016578 esac
16579 ;;
16580
16581gnu*)
16582 version_type=linux
16583 need_lib_prefix=no
16584 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016587 shlibpath_var=LD_LIBRARY_PATH
16588 hardcode_into_libs=yes
16589 ;;
16590
16591hpux9* | hpux10* | hpux11*)
16592 # Give a soname corresponding to the major version so that dld.sl refuses to
16593 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016594 version_type=sunos
16595 need_lib_prefix=no
16596 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016597 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016598 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016599 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016600 hardcode_into_libs=yes
16601 dynamic_linker="$host_os dld.so"
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605 soname_spec='${libname}${release}${shared_ext}$major'
16606 if test "X$HPUX_IA64_MODE" = X32; then
16607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16608 else
16609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16610 fi
16611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16612 ;;
16613 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016615 hardcode_into_libs=yes
16616 dynamic_linker="$host_os dld.sl"
16617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16623 ;;
16624 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016625 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016626 dynamic_linker="$host_os dld.sl"
16627 shlibpath_var=SHLIB_PATH
16628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 ;;
16632 esac
John Criswell7a73b802003-06-30 21:59:07 +000016633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16634 postinstall_cmds='chmod 555 $lib'
16635 ;;
16636
Reid Spencera773bd52006-08-04 18:18:08 +000016637interix3*)
16638 version_type=linux
16639 need_lib_prefix=no
16640 need_version=no
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16647 ;;
16648
John Criswell47fdd832003-07-14 16:52:07 +000016649irix5* | irix6* | nonstopux*)
16650 case $host_os in
16651 nonstopux*) version_type=nonstopux ;;
16652 *)
16653 if test "$lt_cv_prog_gnu_ld" = yes; then
16654 version_type=linux
16655 else
16656 version_type=irix
16657 fi ;;
16658 esac
John Criswell7a73b802003-06-30 21:59:07 +000016659 need_lib_prefix=no
16660 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016661 soname_spec='${libname}${release}${shared_ext}$major'
16662 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 +000016663 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016664 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016665 libsuff= shlibsuff=
16666 ;;
16667 *)
16668 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670 libsuff= shlibsuff= libmagic=32-bit;;
16671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672 libsuff=32 shlibsuff=N32 libmagic=N32;;
16673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016675 *) libsuff= shlibsuff= libmagic=never-match;;
16676 esac
16677 ;;
16678 esac
16679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680 shlibpath_overrides_runpath=no
16681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016683 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016684 ;;
16685
16686# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016687linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016688 dynamic_linker=no
16689 ;;
16690
16691# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016692linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016693 version_type=linux
16694 need_lib_prefix=no
16695 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=no
16701 # This implies no fast_install, which is unacceptable.
16702 # Some rework will be needed to allow for fast_install
16703 # before this can be enabled.
16704 hardcode_into_libs=yes
16705
Reid Spencer2706f8c2004-09-19 23:53:36 +000016706 # Append ld.so.conf contents to the search path
16707 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016708 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 +000016709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16710 fi
16711
John Criswell7a73b802003-06-30 21:59:07 +000016712 # We used to test for /lib/ld.so.1 and disable shared libraries on
16713 # powerpc, because MkLinux only supported shared libraries with the
16714 # GNU dynamic linker. Since this was broken with cross compilers,
16715 # most powerpc-linux boxes support dynamic linking these days and
16716 # people can always --disable-shared, the test was removed, and we
16717 # assume the GNU/Linux dynamic linker is in use.
16718 dynamic_linker='GNU/Linux ld.so'
16719 ;;
16720
Reid Spencer2706f8c2004-09-19 23:53:36 +000016721knetbsd*-gnu)
16722 version_type=linux
16723 need_lib_prefix=no
16724 need_version=no
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 shlibpath_overrides_runpath=no
16729 hardcode_into_libs=yes
16730 dynamic_linker='GNU ld.so'
16731 ;;
16732
John Criswell7a73b802003-06-30 21:59:07 +000016733netbsd*)
16734 version_type=sunos
16735 need_lib_prefix=no
16736 need_version=no
16737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740 dynamic_linker='NetBSD (a.out) ld.so'
16741 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016743 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016744 dynamic_linker='NetBSD ld.elf_so'
16745 fi
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16749 ;;
16750
16751newsos6)
16752 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 ;;
16757
Reid Spencer2706f8c2004-09-19 23:53:36 +000016758nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016759 version_type=linux
16760 need_lib_prefix=no
16761 need_version=no
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 ;;
16767
16768openbsd*)
16769 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016770 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016771 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16773 case $host_os in
16774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16775 *) need_version=no ;;
16776 esac
John Criswell47fdd832003-07-14 16:52:07 +000016777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016780 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 +000016781 case $host_os in
16782 openbsd2.[89] | openbsd2.[89].*)
16783 shlibpath_overrides_runpath=no
16784 ;;
16785 *)
16786 shlibpath_overrides_runpath=yes
16787 ;;
16788 esac
John Criswell7a73b802003-06-30 21:59:07 +000016789 else
16790 shlibpath_overrides_runpath=yes
16791 fi
John Criswell7a73b802003-06-30 21:59:07 +000016792 ;;
16793
16794os2*)
16795 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016796 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016797 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016798 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016799 dynamic_linker='OS/2 ld.exe'
16800 shlibpath_var=LIBPATH
16801 ;;
16802
16803osf3* | osf4* | osf5*)
16804 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016805 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016806 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016807 soname_spec='${libname}${release}${shared_ext}$major'
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016809 shlibpath_var=LD_LIBRARY_PATH
16810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16812 ;;
16813
John Criswell7a73b802003-06-30 21:59:07 +000016814solaris*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016820 shlibpath_var=LD_LIBRARY_PATH
16821 shlibpath_overrides_runpath=yes
16822 hardcode_into_libs=yes
16823 # ldd complains unless libraries are executable
16824 postinstall_cmds='chmod +x $lib'
16825 ;;
16826
16827sunos4*)
16828 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 shlibpath_overrides_runpath=yes
16833 if test "$with_gnu_ld" = yes; then
16834 need_lib_prefix=no
16835 fi
16836 need_version=yes
16837 ;;
16838
Reid Spencera773bd52006-08-04 18:18:08 +000016839sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016840 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016843 shlibpath_var=LD_LIBRARY_PATH
16844 case $host_vendor in
16845 sni)
16846 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016847 need_lib_prefix=no
16848 export_dynamic_flag_spec='${wl}-Blargedynsym'
16849 runpath_var=LD_RUN_PATH
16850 ;;
16851 siemens)
16852 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016853 ;;
16854 motorola)
16855 need_lib_prefix=no
16856 need_version=no
16857 shlibpath_overrides_runpath=no
16858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16859 ;;
16860 esac
16861 ;;
16862
John Criswell7a73b802003-06-30 21:59:07 +000016863sysv4*MP*)
16864 if test -d /usr/nec ;then
16865 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16867 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016868 shlibpath_var=LD_LIBRARY_PATH
16869 fi
16870 ;;
16871
Reid Spencera773bd52006-08-04 18:18:08 +000016872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16873 version_type=freebsd-elf
16874 need_lib_prefix=no
16875 need_version=no
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 hardcode_into_libs=yes
16880 if test "$with_gnu_ld" = yes; then
16881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16882 shlibpath_overrides_runpath=no
16883 else
16884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16885 shlibpath_overrides_runpath=yes
16886 case $host_os in
16887 sco3.2v5*)
16888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16889 ;;
16890 esac
16891 fi
16892 sys_lib_dlsearch_path_spec='/usr/lib'
16893 ;;
16894
John Criswell47fdd832003-07-14 16:52:07 +000016895uts4*)
16896 version_type=linux
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 ;;
16901
John Criswell7a73b802003-06-30 21:59:07 +000016902*)
16903 dynamic_linker=no
16904 ;;
16905esac
Reid Spencera773bd52006-08-04 18:18:08 +000016906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16907echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016908test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016909
Reid Spencera773bd52006-08-04 18:18:08 +000016910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16911if test "$GCC" = yes; then
16912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16913fi
16914
16915{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016917hardcode_action=
16918if test -n "$hardcode_libdir_flag_spec" || \
16919 test -n "$runpath_var" || \
16920 test "X$hardcode_automatic" = "Xyes" ; then
16921
16922 # We can hardcode non-existant directories.
16923 if test "$hardcode_direct" != no &&
16924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16925 # have to relink, otherwise we might link with an installed library
16926 # when we should be linking with a yet-to-be-installed one
16927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16928 test "$hardcode_minus_L" != no; then
16929 # Linking always hardcodes the temporary library directory.
16930 hardcode_action=relink
16931 else
16932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16933 hardcode_action=immediate
16934 fi
16935else
16936 # We cannot hardcode anything, or else we can only hardcode existing
16937 # directories.
16938 hardcode_action=unsupported
16939fi
Reid Spencera773bd52006-08-04 18:18:08 +000016940{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16941echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016942
16943if test "$hardcode_action" = relink; then
16944 # Fast installation is not supported
16945 enable_fast_install=no
16946elif test "$shlibpath_overrides_runpath" = yes ||
16947 test "$enable_shared" = no; then
16948 # Fast installation is not necessary
16949 enable_fast_install=needless
16950fi
16951
16952striplib=
16953old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016954{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16955echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016956if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016959 { echo "$as_me:$LINENO: result: yes" >&5
16960echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016961else
16962# FIXME - insert some real tests, host_os isn't really good enough
16963 case $host_os in
16964 darwin*)
16965 if test -n "$STRIP" ; then
16966 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016967 { echo "$as_me:$LINENO: result: yes" >&5
16968echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016969 else
Reid Spencera773bd52006-08-04 18:18:08 +000016970 { echo "$as_me:$LINENO: result: no" >&5
16971echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016972fi
16973 ;;
16974 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016975 { echo "$as_me:$LINENO: result: no" >&5
16976echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016977 ;;
16978 esac
16979fi
16980
John Criswell7a73b802003-06-30 21:59:07 +000016981if test "x$enable_dlopen" != xyes; then
16982 enable_dlopen=unknown
16983 enable_dlopen_self=unknown
16984 enable_dlopen_self_static=unknown
16985else
16986 lt_cv_dlopen=no
16987 lt_cv_dlopen_libs=
16988
16989 case $host_os in
16990 beos*)
16991 lt_cv_dlopen="load_add_on"
16992 lt_cv_dlopen_libs=
16993 lt_cv_dlopen_self=yes
16994 ;;
16995
John Criswell47fdd832003-07-14 16:52:07 +000016996 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016997 lt_cv_dlopen="LoadLibrary"
16998 lt_cv_dlopen_libs=
16999 ;;
17000
John Criswell47fdd832003-07-14 16:52:07 +000017001 cygwin*)
17002 lt_cv_dlopen="dlopen"
17003 lt_cv_dlopen_libs=
17004 ;;
17005
17006 darwin*)
17007 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017008 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17009echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017010if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013 ac_check_lib_save_LIBS=$LIBS
17014LIBS="-ldl $LIBS"
17015cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017021
Reid Spencera773bd52006-08-04 18:18:08 +000017022/* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017025#ifdef __cplusplus
17026extern "C"
17027#endif
John Criswell47fdd832003-07-14 16:52:07 +000017028char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017029int
17030main ()
17031{
Reid Spencera773bd52006-08-04 18:18:08 +000017032return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017038if { (ac_try="$ac_link"
17039case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065esac
17066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017071 ac_cv_lib_dl_dlopen=yes
17072else
17073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017074sed 's/^/| /' conftest.$ac_ext >&5
17075
Reid Spencera773bd52006-08-04 18:18:08 +000017076 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078
Bill Wendlingebcceee2009-04-18 11:20:33 +000017079rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017081LIBS=$ac_check_lib_save_LIBS
17082fi
Reid Spencera773bd52006-08-04 18:18:08 +000017083{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017085if test $ac_cv_lib_dl_dlopen = yes; then
17086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17087else
17088
17089 lt_cv_dlopen="dyld"
17090 lt_cv_dlopen_libs=
17091 lt_cv_dlopen_self=yes
17092
17093fi
17094
17095 ;;
17096
John Criswell7a73b802003-06-30 21:59:07 +000017097 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017098 { echo "$as_me:$LINENO: checking for shl_load" >&5
17099echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017100if test "${ac_cv_func_shl_load+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017109/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17111#define shl_load innocuous_shl_load
17112
John Criswell7a73b802003-06-30 21:59:07 +000017113/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017114 which can conflict with char shl_load (); below.
17115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017117
John Criswell0c38eaf2003-09-10 15:17:25 +000017118#ifdef __STDC__
17119# include <limits.h>
17120#else
17121# include <assert.h>
17122#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017123
17124#undef shl_load
17125
Reid Spencera773bd52006-08-04 18:18:08 +000017126/* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017129#ifdef __cplusplus
17130extern "C"
17131#endif
John Criswell7a73b802003-06-30 21:59:07 +000017132char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017133/* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017136#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017137choke me
John Criswell7a73b802003-06-30 21:59:07 +000017138#endif
17139
John Criswell0c38eaf2003-09-10 15:17:25 +000017140int
17141main ()
17142{
Reid Spencera773bd52006-08-04 18:18:08 +000017143return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017149if { (ac_try="$ac_link"
17150case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017182 ac_cv_func_shl_load=yes
17183else
17184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017185sed 's/^/| /' conftest.$ac_ext >&5
17186
Reid Spencera773bd52006-08-04 18:18:08 +000017187 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017188fi
Reid Spencera773bd52006-08-04 18:18:08 +000017189
Bill Wendlingebcceee2009-04-18 11:20:33 +000017190rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017191 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017192fi
Reid Spencera773bd52006-08-04 18:18:08 +000017193{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17194echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017195if test $ac_cv_func_shl_load = yes; then
17196 lt_cv_dlopen="shl_load"
17197else
Reid Spencera773bd52006-08-04 18:18:08 +000017198 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17199echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017200if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 ac_check_lib_save_LIBS=$LIBS
17204LIBS="-ldld $LIBS"
17205cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017211
Reid Spencera773bd52006-08-04 18:18:08 +000017212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017215#ifdef __cplusplus
17216extern "C"
17217#endif
John Criswell7a73b802003-06-30 21:59:07 +000017218char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017219int
17220main ()
17221{
Reid Spencera773bd52006-08-04 18:18:08 +000017222return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017228if { (ac_try="$ac_link"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017261 ac_cv_lib_dld_shl_load=yes
17262else
17263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017264sed 's/^/| /' conftest.$ac_ext >&5
17265
Reid Spencera773bd52006-08-04 18:18:08 +000017266 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017267fi
Reid Spencera773bd52006-08-04 18:18:08 +000017268
Bill Wendlingebcceee2009-04-18 11:20:33 +000017269rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017270 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017271LIBS=$ac_check_lib_save_LIBS
17272fi
Reid Spencera773bd52006-08-04 18:18:08 +000017273{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17274echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017275if test $ac_cv_lib_dld_shl_load = yes; then
17276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17277else
Reid Spencera773bd52006-08-04 18:18:08 +000017278 { echo "$as_me:$LINENO: checking for dlopen" >&5
17279echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017280if test "${ac_cv_func_dlopen+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017289/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17291#define dlopen innocuous_dlopen
17292
John Criswell7a73b802003-06-30 21:59:07 +000017293/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017294 which can conflict with char dlopen (); below.
17295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017297
John Criswell0c38eaf2003-09-10 15:17:25 +000017298#ifdef __STDC__
17299# include <limits.h>
17300#else
17301# include <assert.h>
17302#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017303
17304#undef dlopen
17305
Reid Spencera773bd52006-08-04 18:18:08 +000017306/* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017309#ifdef __cplusplus
17310extern "C"
17311#endif
John Criswell7a73b802003-06-30 21:59:07 +000017312char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017313/* The GNU C library defines this for functions which it implements
17314 to always fail with ENOSYS. Some functions are actually named
17315 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017316#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017317choke me
John Criswell7a73b802003-06-30 21:59:07 +000017318#endif
17319
John Criswell0c38eaf2003-09-10 15:17:25 +000017320int
17321main ()
17322{
Reid Spencera773bd52006-08-04 18:18:08 +000017323return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017324 ;
17325 return 0;
17326}
17327_ACEOF
17328rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017329if { (ac_try="$ac_link"
17330case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333esac
17334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017362 ac_cv_func_dlopen=yes
17363else
17364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017365sed 's/^/| /' conftest.$ac_ext >&5
17366
Reid Spencera773bd52006-08-04 18:18:08 +000017367 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017368fi
Reid Spencera773bd52006-08-04 18:18:08 +000017369
Bill Wendlingebcceee2009-04-18 11:20:33 +000017370rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017371 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017372fi
Reid Spencera773bd52006-08-04 18:18:08 +000017373{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17374echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017375if test $ac_cv_func_dlopen = yes; then
17376 lt_cv_dlopen="dlopen"
17377else
Reid Spencera773bd52006-08-04 18:18:08 +000017378 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017380if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382else
17383 ac_check_lib_save_LIBS=$LIBS
17384LIBS="-ldl $LIBS"
17385cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017386/* confdefs.h. */
17387_ACEOF
17388cat confdefs.h >>conftest.$ac_ext
17389cat >>conftest.$ac_ext <<_ACEOF
17390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017391
Reid Spencera773bd52006-08-04 18:18:08 +000017392/* Override any GCC internal prototype to avoid an error.
17393 Use char because int might match the return type of a GCC
17394 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017395#ifdef __cplusplus
17396extern "C"
17397#endif
John Criswell7a73b802003-06-30 21:59:07 +000017398char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017399int
17400main ()
17401{
Reid Spencera773bd52006-08-04 18:18:08 +000017402return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017408if { (ac_try="$ac_link"
17409case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412esac
17413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435esac
17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017441 ac_cv_lib_dl_dlopen=yes
17442else
17443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017444sed 's/^/| /' conftest.$ac_ext >&5
17445
Reid Spencera773bd52006-08-04 18:18:08 +000017446 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017447fi
Reid Spencera773bd52006-08-04 18:18:08 +000017448
Bill Wendlingebcceee2009-04-18 11:20:33 +000017449rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017450 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017451LIBS=$ac_check_lib_save_LIBS
17452fi
Reid Spencera773bd52006-08-04 18:18:08 +000017453{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17454echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017455if test $ac_cv_lib_dl_dlopen = yes; then
17456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17457else
Reid Spencera773bd52006-08-04 18:18:08 +000017458 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17459echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017460if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 ac_check_lib_save_LIBS=$LIBS
17464LIBS="-lsvld $LIBS"
17465cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017471
Reid Spencera773bd52006-08-04 18:18:08 +000017472/* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017475#ifdef __cplusplus
17476extern "C"
17477#endif
John Criswell7a73b802003-06-30 21:59:07 +000017478char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017479int
17480main ()
17481{
Reid Spencera773bd52006-08-04 18:18:08 +000017482return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017488if { (ac_try="$ac_link"
17489case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017521 ac_cv_lib_svld_dlopen=yes
17522else
17523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017524sed 's/^/| /' conftest.$ac_ext >&5
17525
Reid Spencera773bd52006-08-04 18:18:08 +000017526 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017527fi
Reid Spencera773bd52006-08-04 18:18:08 +000017528
Bill Wendlingebcceee2009-04-18 11:20:33 +000017529rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017531LIBS=$ac_check_lib_save_LIBS
17532fi
Reid Spencera773bd52006-08-04 18:18:08 +000017533{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17534echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017535if test $ac_cv_lib_svld_dlopen = yes; then
17536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17537else
Reid Spencera773bd52006-08-04 18:18:08 +000017538 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17539echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017540if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17542else
17543 ac_check_lib_save_LIBS=$LIBS
17544LIBS="-ldld $LIBS"
17545cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017546/* confdefs.h. */
17547_ACEOF
17548cat confdefs.h >>conftest.$ac_ext
17549cat >>conftest.$ac_ext <<_ACEOF
17550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017551
Reid Spencera773bd52006-08-04 18:18:08 +000017552/* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017555#ifdef __cplusplus
17556extern "C"
17557#endif
John Criswell7a73b802003-06-30 21:59:07 +000017558char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017559int
17560main ()
17561{
Reid Spencera773bd52006-08-04 18:18:08 +000017562return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017568if { (ac_try="$ac_link"
17569case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572esac
17573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17595esac
17596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017601 ac_cv_lib_dld_dld_link=yes
17602else
17603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017604sed 's/^/| /' conftest.$ac_ext >&5
17605
Reid Spencera773bd52006-08-04 18:18:08 +000017606 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017607fi
Reid Spencera773bd52006-08-04 18:18:08 +000017608
Bill Wendlingebcceee2009-04-18 11:20:33 +000017609rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017610 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017611LIBS=$ac_check_lib_save_LIBS
17612fi
Reid Spencera773bd52006-08-04 18:18:08 +000017613{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17614echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017615if test $ac_cv_lib_dld_dld_link = yes; then
17616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17617fi
17618
17619
17620fi
17621
17622
17623fi
17624
17625
17626fi
17627
17628
17629fi
17630
17631
17632fi
17633
17634 ;;
17635 esac
17636
17637 if test "x$lt_cv_dlopen" != xno; then
17638 enable_dlopen=yes
17639 else
17640 enable_dlopen=no
17641 fi
17642
17643 case $lt_cv_dlopen in
17644 dlopen)
17645 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017647
17648 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017650
17651 save_LIBS="$LIBS"
17652 LIBS="$lt_cv_dlopen_libs $LIBS"
17653
Reid Spencera773bd52006-08-04 18:18:08 +000017654 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17655echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017656if test "${lt_cv_dlopen_self+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658else
17659 if test "$cross_compiling" = yes; then :
17660 lt_cv_dlopen_self=cross
17661else
John Criswell47fdd832003-07-14 16:52:07 +000017662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017663 lt_status=$lt_dlunknown
17664 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000017665#line 17665 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017666#include "confdefs.h"
17667
17668#if HAVE_DLFCN_H
17669#include <dlfcn.h>
17670#endif
17671
17672#include <stdio.h>
17673
17674#ifdef RTLD_GLOBAL
17675# define LT_DLGLOBAL RTLD_GLOBAL
17676#else
17677# ifdef DL_GLOBAL
17678# define LT_DLGLOBAL DL_GLOBAL
17679# else
17680# define LT_DLGLOBAL 0
17681# endif
17682#endif
17683
17684/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685 find out it does not work in some platform. */
17686#ifndef LT_DLLAZY_OR_NOW
17687# ifdef RTLD_LAZY
17688# define LT_DLLAZY_OR_NOW RTLD_LAZY
17689# else
17690# ifdef DL_LAZY
17691# define LT_DLLAZY_OR_NOW DL_LAZY
17692# else
17693# ifdef RTLD_NOW
17694# define LT_DLLAZY_OR_NOW RTLD_NOW
17695# else
17696# ifdef DL_NOW
17697# define LT_DLLAZY_OR_NOW DL_NOW
17698# else
17699# define LT_DLLAZY_OR_NOW 0
17700# endif
17701# endif
17702# endif
17703# endif
17704#endif
17705
17706#ifdef __cplusplus
17707extern "C" void exit (int);
17708#endif
17709
17710void fnord() { int i=42;}
17711int main ()
17712{
17713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714 int status = $lt_dlunknown;
17715
17716 if (self)
17717 {
17718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720 /* dlclose (self); */
17721 }
Reid Spencera773bd52006-08-04 18:18:08 +000017722 else
17723 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017724
17725 exit (status);
17726}
17727EOF
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729 (eval $ac_link) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017733 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017734 lt_status=$?
17735 case x$lt_status in
17736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017739 esac
17740 else :
17741 # compilation failed
17742 lt_cv_dlopen_self=no
17743 fi
17744fi
17745rm -fr conftest*
17746
17747
17748fi
Reid Spencera773bd52006-08-04 18:18:08 +000017749{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17750echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017751
17752 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17754 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17755echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017756if test "${lt_cv_dlopen_self_static+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758else
17759 if test "$cross_compiling" = yes; then :
17760 lt_cv_dlopen_self_static=cross
17761else
John Criswell47fdd832003-07-14 16:52:07 +000017762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017763 lt_status=$lt_dlunknown
17764 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000017765#line 17765 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017766#include "confdefs.h"
17767
17768#if HAVE_DLFCN_H
17769#include <dlfcn.h>
17770#endif
17771
17772#include <stdio.h>
17773
17774#ifdef RTLD_GLOBAL
17775# define LT_DLGLOBAL RTLD_GLOBAL
17776#else
17777# ifdef DL_GLOBAL
17778# define LT_DLGLOBAL DL_GLOBAL
17779# else
17780# define LT_DLGLOBAL 0
17781# endif
17782#endif
17783
17784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17785 find out it does not work in some platform. */
17786#ifndef LT_DLLAZY_OR_NOW
17787# ifdef RTLD_LAZY
17788# define LT_DLLAZY_OR_NOW RTLD_LAZY
17789# else
17790# ifdef DL_LAZY
17791# define LT_DLLAZY_OR_NOW DL_LAZY
17792# else
17793# ifdef RTLD_NOW
17794# define LT_DLLAZY_OR_NOW RTLD_NOW
17795# else
17796# ifdef DL_NOW
17797# define LT_DLLAZY_OR_NOW DL_NOW
17798# else
17799# define LT_DLLAZY_OR_NOW 0
17800# endif
17801# endif
17802# endif
17803# endif
17804#endif
17805
17806#ifdef __cplusplus
17807extern "C" void exit (int);
17808#endif
17809
17810void fnord() { int i=42;}
17811int main ()
17812{
17813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17814 int status = $lt_dlunknown;
17815
17816 if (self)
17817 {
17818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17819 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17820 /* dlclose (self); */
17821 }
Reid Spencera773bd52006-08-04 18:18:08 +000017822 else
17823 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017824
17825 exit (status);
17826}
17827EOF
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017833 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017834 lt_status=$?
17835 case x$lt_status in
17836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017839 esac
17840 else :
17841 # compilation failed
17842 lt_cv_dlopen_self_static=no
17843 fi
17844fi
17845rm -fr conftest*
17846
17847
17848fi
Reid Spencera773bd52006-08-04 18:18:08 +000017849{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17850echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017851 fi
17852
17853 CPPFLAGS="$save_CPPFLAGS"
17854 LDFLAGS="$save_LDFLAGS"
17855 LIBS="$save_LIBS"
17856 ;;
17857 esac
17858
17859 case $lt_cv_dlopen_self in
17860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17861 *) enable_dlopen_self=unknown ;;
17862 esac
17863
17864 case $lt_cv_dlopen_self_static in
17865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17866 *) enable_dlopen_self_static=unknown ;;
17867 esac
17868fi
17869
17870
Reid Spencera773bd52006-08-04 18:18:08 +000017871# Report which library types will actually be built
17872{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17873echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17874{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17875echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017876
Reid Spencera773bd52006-08-04 18:18:08 +000017877{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17878echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017879test "$can_build_shared" = "no" && enable_shared=no
17880
17881# On AIX, shared libraries and static libraries use the same namespace, and
17882# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017883case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017884aix3*)
17885 test "$enable_shared" = yes && enable_static=no
17886 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017888 postinstall_cmds='$RANLIB $lib'
17889 fi
17890 ;;
17891
Reid Spencer2706f8c2004-09-19 23:53:36 +000017892aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17894 test "$enable_shared" = yes && enable_static=no
17895 fi
John Criswell7a73b802003-06-30 21:59:07 +000017896 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017897esac
Reid Spencera773bd52006-08-04 18:18:08 +000017898{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17899echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017900
Reid Spencera773bd52006-08-04 18:18:08 +000017901{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17902echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017903# Make sure either enable_shared or enable_static is yes.
17904test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017905{ echo "$as_me:$LINENO: result: $enable_static" >&5
17906echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017907
17908# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017909# libtool distribution, otherwise you forgot to ship ltmain.sh
17910# with your package, and you will get complaints that there are
17911# no rules to generate ltmain.sh.
17912if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017913 # See if we are running on zsh, and set the options which allow our commands through
17914 # without removal of \ escapes.
17915 if test -n "${ZSH_VERSION+set}" ; then
17916 setopt NO_GLOB_SUBST
17917 fi
John Criswell7a73b802003-06-30 21:59:07 +000017918 # Now quote all the things that may contain metacharacters while being
17919 # careful not to overquote the AC_SUBSTed values. We take copies of the
17920 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017921 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 +000017922 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017923 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17924 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17925 deplibs_check_method reload_flag reload_cmds need_locks \
17926 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17927 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017928 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017929 old_postinstall_cmds old_postuninstall_cmds \
17930 compiler \
17931 CC \
17932 LD \
17933 lt_prog_compiler_wl \
17934 lt_prog_compiler_pic \
17935 lt_prog_compiler_static \
17936 lt_prog_compiler_no_builtin_flag \
17937 export_dynamic_flag_spec \
17938 thread_safe_flag_spec \
17939 whole_archive_flag_spec \
17940 enable_shared_with_static_runtimes \
17941 old_archive_cmds \
17942 old_archive_from_new_cmds \
17943 predep_objects \
17944 postdep_objects \
17945 predeps \
17946 postdeps \
17947 compiler_lib_search_path \
17948 archive_cmds \
17949 archive_expsym_cmds \
17950 postinstall_cmds \
17951 postuninstall_cmds \
17952 old_archive_from_expsyms_cmds \
17953 allow_undefined_flag \
17954 no_undefined_flag \
17955 export_symbols_cmds \
17956 hardcode_libdir_flag_spec \
17957 hardcode_libdir_flag_spec_ld \
17958 hardcode_libdir_separator \
17959 hardcode_automatic \
17960 module_cmds \
17961 module_expsym_cmds \
17962 lt_cv_prog_compiler_c_o \
17963 exclude_expsyms \
17964 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017965
17966 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017967 old_archive_cmds | \
17968 old_archive_from_new_cmds | \
17969 archive_cmds | \
17970 archive_expsym_cmds | \
17971 module_cmds | \
17972 module_expsym_cmds | \
17973 old_archive_from_expsyms_cmds | \
17974 export_symbols_cmds | \
17975 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017976 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017977 old_postinstall_cmds | old_postuninstall_cmds | \
17978 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017979 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017980 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 +000017981 ;;
17982 *)
17983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17984 ;;
17985 esac
17986 done
17987
John Criswell47fdd832003-07-14 16:52:07 +000017988 case $lt_echo in
17989 *'\$0 --fallback-echo"')
17990 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17991 ;;
17992 esac
17993
17994cfgfile="${ofile}T"
17995 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17996 $rm -f "$cfgfile"
17997 { echo "$as_me:$LINENO: creating $ofile" >&5
17998echo "$as_me: creating $ofile" >&6;}
17999
18000 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018001#! $SHELL
18002
John Criswell47fdd832003-07-14 16:52:07 +000018003# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018004# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18005# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18006#
John Criswell47fdd832003-07-14 16:52:07 +000018007# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18008# Free Software Foundation, Inc.
18009#
18010# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018011# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18012#
18013# This program is free software; you can redistribute it and/or modify
18014# it under the terms of the GNU General Public License as published by
18015# the Free Software Foundation; either version 2 of the License, or
18016# (at your option) any later version.
18017#
18018# This program is distributed in the hope that it will be useful, but
18019# WITHOUT ANY WARRANTY; without even the implied warranty of
18020# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18021# General Public License for more details.
18022#
18023# You should have received a copy of the GNU General Public License
18024# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018025# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018026#
18027# As a special exception to the GNU General Public License, if you
18028# distribute this file as part of a program that contains a
18029# configuration script generated by Autoconf, you may include it under
18030# the same distribution terms that you use for the rest of that program.
18031
John Criswell47fdd832003-07-14 16:52:07 +000018032# A sed program that does not truncate output.
18033SED=$lt_SED
18034
John Criswell7a73b802003-06-30 21:59:07 +000018035# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018036Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018037
18038# The HP-UX ksh and POSIX shell print the target directory to stdout
18039# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018040(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018041
John Criswell47fdd832003-07-14 16:52:07 +000018042# The names of the tagged configurations supported by this script.
18043available_tags=
18044
John Criswell7a73b802003-06-30 21:59:07 +000018045# ### BEGIN LIBTOOL CONFIG
18046
18047# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18048
18049# Shell to use when invoking shell scripts.
18050SHELL=$lt_SHELL
18051
18052# Whether or not to build shared libraries.
18053build_libtool_libs=$enable_shared
18054
18055# Whether or not to build static libraries.
18056build_old_libs=$enable_static
18057
18058# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018059build_libtool_need_lc=$archive_cmds_need_lc
18060
18061# Whether or not to disallow shared libs when runtime libs are static
18062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018063
18064# Whether or not to optimize for fast installation.
18065fast_install=$enable_fast_install
18066
18067# The host system.
18068host_alias=$host_alias
18069host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018070host_os=$host_os
18071
18072# The build system.
18073build_alias=$build_alias
18074build=$build
18075build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018076
18077# An echo program that does not interpret backslashes.
18078echo=$lt_echo
18079
18080# The archiver.
18081AR=$lt_AR
18082AR_FLAGS=$lt_AR_FLAGS
18083
John Criswell47fdd832003-07-14 16:52:07 +000018084# A C compiler.
18085LTCC=$lt_LTCC
18086
Reid Spencera773bd52006-08-04 18:18:08 +000018087# LTCC compiler flags.
18088LTCFLAGS=$lt_LTCFLAGS
18089
John Criswell47fdd832003-07-14 16:52:07 +000018090# A language-specific compiler.
18091CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018092
18093# Is the compiler the GNU C compiler?
18094with_gcc=$GCC
18095
John Criswell47fdd832003-07-14 16:52:07 +000018096# An ERE matcher.
18097EGREP=$lt_EGREP
18098
John Criswell7a73b802003-06-30 21:59:07 +000018099# The linker used to build libraries.
18100LD=$lt_LD
18101
18102# Whether we need hard or soft links.
18103LN_S=$lt_LN_S
18104
18105# A BSD-compatible nm program.
18106NM=$lt_NM
18107
18108# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018109STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018110
18111# Used to examine libraries when file_magic_cmd begins "file"
18112MAGIC_CMD=$MAGIC_CMD
18113
18114# Used on cygwin: DLL creation program.
18115DLLTOOL="$DLLTOOL"
18116
18117# Used on cygwin: object dumper.
18118OBJDUMP="$OBJDUMP"
18119
18120# Used on cygwin: assembler.
18121AS="$AS"
18122
18123# The name of the directory that contains temporary libtool files.
18124objdir=$objdir
18125
18126# How to create reloadable object files.
18127reload_flag=$lt_reload_flag
18128reload_cmds=$lt_reload_cmds
18129
18130# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018131wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018132
18133# Object file suffix (normally "o").
18134objext="$ac_objext"
18135
18136# Old archive suffix (normally "a").
18137libext="$libext"
18138
John Criswell47fdd832003-07-14 16:52:07 +000018139# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018140shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018141
John Criswell7a73b802003-06-30 21:59:07 +000018142# Executable file suffix (normally "").
18143exeext="$exeext"
18144
18145# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018146pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018147pic_mode=$pic_mode
18148
John Criswell47fdd832003-07-14 16:52:07 +000018149# What is the maximum length of a command?
18150max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018151
John Criswell47fdd832003-07-14 16:52:07 +000018152# Does compiler simultaneously support -c and -o options?
18153compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018154
Reid Spencera773bd52006-08-04 18:18:08 +000018155# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018156need_locks=$lt_need_locks
18157
18158# Do we need the lib prefix for modules?
18159need_lib_prefix=$need_lib_prefix
18160
18161# Do we need a version for libraries?
18162need_version=$need_version
18163
18164# Whether dlopen is supported.
18165dlopen_support=$enable_dlopen
18166
18167# Whether dlopen of programs is supported.
18168dlopen_self=$enable_dlopen_self
18169
18170# Whether dlopen of statically linked programs is supported.
18171dlopen_self_static=$enable_dlopen_self_static
18172
18173# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018174link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018175
18176# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018177no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018178
18179# Compiler flag to allow reflexive dlopens.
18180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18181
18182# Compiler flag to generate shared objects directly from archives.
18183whole_archive_flag_spec=$lt_whole_archive_flag_spec
18184
18185# Compiler flag to generate thread-safe objects.
18186thread_safe_flag_spec=$lt_thread_safe_flag_spec
18187
18188# Library versioning type.
18189version_type=$version_type
18190
18191# Format of library name prefix.
18192libname_spec=$lt_libname_spec
18193
18194# List of archive names. First name is the real one, the rest are links.
18195# The last name is the one that the linker finds with -lNAME.
18196library_names_spec=$lt_library_names_spec
18197
18198# The coded name of the library, if different from the real name.
18199soname_spec=$lt_soname_spec
18200
18201# Commands used to build and install an old-style archive.
18202RANLIB=$lt_RANLIB
18203old_archive_cmds=$lt_old_archive_cmds
18204old_postinstall_cmds=$lt_old_postinstall_cmds
18205old_postuninstall_cmds=$lt_old_postuninstall_cmds
18206
18207# Create an old-style archive from a shared archive.
18208old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18209
18210# Create a temporary old-style archive to link instead of a shared archive.
18211old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18212
18213# Commands used to build and install a shared archive.
18214archive_cmds=$lt_archive_cmds
18215archive_expsym_cmds=$lt_archive_expsym_cmds
18216postinstall_cmds=$lt_postinstall_cmds
18217postuninstall_cmds=$lt_postuninstall_cmds
18218
John Criswell47fdd832003-07-14 16:52:07 +000018219# Commands used to build a loadable module (assumed same as above if empty)
18220module_cmds=$lt_module_cmds
18221module_expsym_cmds=$lt_module_expsym_cmds
18222
John Criswell7a73b802003-06-30 21:59:07 +000018223# Commands to strip libraries.
18224old_striplib=$lt_old_striplib
18225striplib=$lt_striplib
18226
John Criswell47fdd832003-07-14 16:52:07 +000018227# Dependencies to place before the objects being linked to create a
18228# shared library.
18229predep_objects=$lt_predep_objects
18230
18231# Dependencies to place after the objects being linked to create a
18232# shared library.
18233postdep_objects=$lt_postdep_objects
18234
18235# Dependencies to place before the objects being linked to create a
18236# shared library.
18237predeps=$lt_predeps
18238
18239# Dependencies to place after the objects being linked to create a
18240# shared library.
18241postdeps=$lt_postdeps
18242
18243# The library search path used internally by the compiler when linking
18244# a shared library.
18245compiler_lib_search_path=$lt_compiler_lib_search_path
18246
John Criswell7a73b802003-06-30 21:59:07 +000018247# Method to check whether dependent libraries are shared objects.
18248deplibs_check_method=$lt_deplibs_check_method
18249
18250# Command to use when deplibs_check_method == file_magic.
18251file_magic_cmd=$lt_file_magic_cmd
18252
18253# Flag that allows shared libraries with undefined symbols to be built.
18254allow_undefined_flag=$lt_allow_undefined_flag
18255
18256# Flag that forces no undefined symbols.
18257no_undefined_flag=$lt_no_undefined_flag
18258
18259# Commands used to finish a libtool library installation in a directory.
18260finish_cmds=$lt_finish_cmds
18261
18262# Same as above, but a single script fragment to be evaled but not shown.
18263finish_eval=$lt_finish_eval
18264
18265# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018266global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018267
18268# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018269global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018270
18271# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018272global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018273
18274# This is the shared library runtime path variable.
18275runpath_var=$runpath_var
18276
18277# This is the shared library path variable.
18278shlibpath_var=$shlibpath_var
18279
18280# Is shlibpath searched before the hard-coded library search path?
18281shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18282
18283# How to hardcode a shared library path into an executable.
18284hardcode_action=$hardcode_action
18285
18286# Whether we should hardcode library paths into libraries.
18287hardcode_into_libs=$hardcode_into_libs
18288
18289# Flag to hardcode \$libdir into a binary during linking.
18290# This must work even if \$libdir does not exist.
18291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18292
John Criswell47fdd832003-07-14 16:52:07 +000018293# If ld is used when linking, flag to hardcode \$libdir into
18294# a binary during linking. This must work even if \$libdir does
18295# not exist.
18296hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18297
John Criswell7a73b802003-06-30 21:59:07 +000018298# Whether we need a single -rpath flag with a separated argument.
18299hardcode_libdir_separator=$lt_hardcode_libdir_separator
18300
John Criswell47fdd832003-07-14 16:52:07 +000018301# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018302# resulting binary.
18303hardcode_direct=$hardcode_direct
18304
18305# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18306# resulting binary.
18307hardcode_minus_L=$hardcode_minus_L
18308
18309# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18310# the resulting binary.
18311hardcode_shlibpath_var=$hardcode_shlibpath_var
18312
John Criswell47fdd832003-07-14 16:52:07 +000018313# Set to yes if building a shared library automatically hardcodes DIR into the library
18314# and all subsequent libraries and executables linked against it.
18315hardcode_automatic=$hardcode_automatic
18316
John Criswell7a73b802003-06-30 21:59:07 +000018317# Variables whose values should be saved in libtool wrapper scripts and
18318# restored at relink time.
18319variables_saved_for_relink="$variables_saved_for_relink"
18320
18321# Whether libtool must link a program against all its dependency libraries.
18322link_all_deplibs=$link_all_deplibs
18323
18324# Compile-time system search path for libraries
18325sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18326
18327# Run-time system search path for libraries
18328sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18329
18330# Fix the shell variable \$srcfile for the compiler.
18331fix_srcfile_path="$fix_srcfile_path"
18332
18333# Set to yes if exported symbols are required.
18334always_export_symbols=$always_export_symbols
18335
18336# The commands to list exported symbols.
18337export_symbols_cmds=$lt_export_symbols_cmds
18338
18339# The commands to extract the exported symbol list from a shared archive.
18340extract_expsyms_cmds=$lt_extract_expsyms_cmds
18341
18342# Symbols that should not be listed in the preloaded symbols.
18343exclude_expsyms=$lt_exclude_expsyms
18344
18345# Symbols that must always be exported.
18346include_expsyms=$lt_include_expsyms
18347
18348# ### END LIBTOOL CONFIG
18349
18350__EOF__
18351
John Criswell47fdd832003-07-14 16:52:07 +000018352
John Criswell7a73b802003-06-30 21:59:07 +000018353 case $host_os in
18354 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018355 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018356
18357# AIX sometimes has problems with the GCC collect2 program. For some
18358# reason, if we set the COLLECT_NAMES environment variable, the problems
18359# vanish in a puff of smoke.
18360if test "X${COLLECT_NAMES+set}" != Xset; then
18361 COLLECT_NAMES=
18362 export COLLECT_NAMES
18363fi
18364EOF
18365 ;;
18366 esac
18367
John Criswell7a73b802003-06-30 21:59:07 +000018368 # We use sed instead of cat because bash on DJGPP gets confused if
18369 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18370 # text mode, it properly converts lines to CR/LF. This bash problem
18371 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018372 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018373
John Criswell47fdd832003-07-14 16:52:07 +000018374 mv -f "$cfgfile" "$ofile" || \
18375 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018376 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018377
18378else
18379 # If there is no Makefile yet, we rely on a make rule to execute
18380 # `config.status --recheck' to rerun these tests and create the
18381 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18383 if test -f "$ltmain_in"; then
18384 test -f Makefile && make "$ltmain"
18385 fi
John Criswell7a73b802003-06-30 21:59:07 +000018386fi
John Criswell7a73b802003-06-30 21:59:07 +000018387
18388
John Criswell47fdd832003-07-14 16:52:07 +000018389ac_ext=c
18390ac_cpp='$CPP $CPPFLAGS'
18391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
18395CC="$lt_save_CC"
18396
18397
Reid Spencera773bd52006-08-04 18:18:08 +000018398# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018399if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018400 withval=$with_tags; tagnames="$withval"
18401fi
18402
John Criswell47fdd832003-07-14 16:52:07 +000018403
18404if test -f "$ltmain" && test -n "$tagnames"; then
18405 if test ! -f "${ofile}"; then
18406 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18407echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18408 fi
18409
18410 if test -z "$LTCC"; then
18411 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18412 if test -z "$LTCC"; then
18413 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18414echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18415 else
18416 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18417echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18418 fi
18419 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018420 if test -z "$LTCFLAGS"; then
18421 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18422 fi
John Criswell47fdd832003-07-14 16:52:07 +000018423
18424 # Extract list of available tagged configurations in $ofile.
18425 # Note that this assumes the entire list is on one line.
18426 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18427
18428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18429 for tagname in $tagnames; do
18430 IFS="$lt_save_ifs"
18431 # Check whether tagname contains only valid characters
18432 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18433 "") ;;
18434 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18435echo "$as_me: error: invalid tag name: $tagname" >&2;}
18436 { (exit 1); exit 1; }; }
18437 ;;
18438 esac
18439
18440 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18441 then
18442 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18443echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18444 { (exit 1); exit 1; }; }
18445 fi
18446
18447 # Update the list of available tags.
18448 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018449 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018450
18451 case $tagname in
18452 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18455 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018456 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018457ac_cpp='$CXXCPP $CPPFLAGS'
18458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461
18462
18463
18464
18465archive_cmds_need_lc_CXX=no
18466allow_undefined_flag_CXX=
18467always_export_symbols_CXX=no
18468archive_expsym_cmds_CXX=
18469export_dynamic_flag_spec_CXX=
18470hardcode_direct_CXX=no
18471hardcode_libdir_flag_spec_CXX=
18472hardcode_libdir_flag_spec_ld_CXX=
18473hardcode_libdir_separator_CXX=
18474hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018475hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018476hardcode_automatic_CXX=no
18477module_cmds_CXX=
18478module_expsym_cmds_CXX=
18479link_all_deplibs_CXX=unknown
18480old_archive_cmds_CXX=$old_archive_cmds
18481no_undefined_flag_CXX=
18482whole_archive_flag_spec_CXX=
18483enable_shared_with_static_runtimes_CXX=no
18484
18485# Dependencies to place before and after the object being linked:
18486predep_objects_CXX=
18487postdep_objects_CXX=
18488predeps_CXX=
18489postdeps_CXX=
18490compiler_lib_search_path_CXX=
18491
18492# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018493ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018494
18495# Object file extension for compiled C++ test sources.
18496objext=o
18497objext_CXX=$objext
18498
18499# Code to be used in simple compile tests
18500lt_simple_compile_test_code="int some_variable = 0;\n"
18501
18502# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018503lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018504
18505# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18506
18507# If no C compiler was specified, use CC.
18508LTCC=${LTCC-"$CC"}
18509
Reid Spencera773bd52006-08-04 18:18:08 +000018510# If no C compiler flags were specified, use CFLAGS.
18511LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18512
John Criswell47fdd832003-07-14 16:52:07 +000018513# Allow CC to be a program name with arguments.
18514compiler=$CC
18515
18516
Reid Spencera773bd52006-08-04 18:18:08 +000018517# save warnings/boilerplate of simple test code
18518ac_outfile=conftest.$ac_objext
18519printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18521_lt_compiler_boilerplate=`cat conftest.err`
18522$rm conftest*
18523
18524ac_outfile=conftest.$ac_objext
18525printf "$lt_simple_link_test_code" >conftest.$ac_ext
18526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18527_lt_linker_boilerplate=`cat conftest.err`
18528$rm conftest*
18529
18530
John Criswell47fdd832003-07-14 16:52:07 +000018531# Allow CC to be a program name with arguments.
18532lt_save_CC=$CC
18533lt_save_LD=$LD
18534lt_save_GCC=$GCC
18535GCC=$GXX
18536lt_save_with_gnu_ld=$with_gnu_ld
18537lt_save_path_LD=$lt_cv_path_LD
18538if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18539 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18540else
Reid Spencera773bd52006-08-04 18:18:08 +000018541 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018542fi
18543if test -n "${lt_cv_path_LDCXX+set}"; then
18544 lt_cv_path_LD=$lt_cv_path_LDCXX
18545else
Reid Spencera773bd52006-08-04 18:18:08 +000018546 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018547fi
18548test -z "${LDCXX+set}" || LD=$LDCXX
18549CC=${CXX-"c++"}
18550compiler=$CC
18551compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018552for cc_temp in $compiler""; do
18553 case $cc_temp in
18554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18556 \-*) ;;
18557 *) break;;
18558 esac
18559done
18560cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18561
John Criswell47fdd832003-07-14 16:52:07 +000018562
18563# We don't want -fno-exception wen compiling C++ code, so set the
18564# no_builtin_flag separately
18565if test "$GXX" = yes; then
18566 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18567else
18568 lt_prog_compiler_no_builtin_flag_CXX=
18569fi
18570
18571if test "$GXX" = yes; then
18572 # Set up default GNU C++ configuration
18573
18574
Reid Spencera773bd52006-08-04 18:18:08 +000018575# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018576if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018578else
18579 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018580fi
18581
John Criswell47fdd832003-07-14 16:52:07 +000018582ac_prog=ld
18583if test "$GCC" = yes; then
18584 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018585 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18586echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018587 case $host in
18588 *-*-mingw*)
18589 # gcc leaves a trailing carriage return which upsets mingw
18590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18591 *)
18592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18593 esac
18594 case $ac_prog in
18595 # Accept absolute paths.
18596 [\\/]* | ?:[\\/]*)
18597 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018598 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018599 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18600 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18601 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18602 done
18603 test -z "$LD" && LD="$ac_prog"
18604 ;;
18605 "")
18606 # If it fails, then pretend we aren't using GCC.
18607 ac_prog=ld
18608 ;;
18609 *)
18610 # If it is relative, then search for the first ld in PATH.
18611 with_gnu_ld=unknown
18612 ;;
18613 esac
18614elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018615 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18616echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018617else
Reid Spencera773bd52006-08-04 18:18:08 +000018618 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18619echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018620fi
18621if test "${lt_cv_path_LD+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623else
18624 if test -z "$LD"; then
18625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18626 for ac_dir in $PATH; do
18627 IFS="$lt_save_ifs"
18628 test -z "$ac_dir" && ac_dir=.
18629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18630 lt_cv_path_LD="$ac_dir/$ac_prog"
18631 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018632 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018633 # Break only if it was the GNU/non-GNU ld that we prefer.
18634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18635 *GNU* | *'with BFD'*)
18636 test "$with_gnu_ld" != no && break
18637 ;;
18638 *)
18639 test "$with_gnu_ld" != yes && break
18640 ;;
18641 esac
18642 fi
18643 done
18644 IFS="$lt_save_ifs"
18645else
18646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18647fi
18648fi
18649
18650LD="$lt_cv_path_LD"
18651if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018652 { echo "$as_me:$LINENO: result: $LD" >&5
18653echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018654else
Reid Spencera773bd52006-08-04 18:18:08 +000018655 { echo "$as_me:$LINENO: result: no" >&5
18656echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018657fi
18658test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18659echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18660 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018661{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18662echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018663if test "${lt_cv_prog_gnu_ld+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665else
Reid Spencera773bd52006-08-04 18:18:08 +000018666 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018667case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018668*GNU* | *'with BFD'*)
18669 lt_cv_prog_gnu_ld=yes
18670 ;;
18671*)
18672 lt_cv_prog_gnu_ld=no
18673 ;;
18674esac
18675fi
Reid Spencera773bd52006-08-04 18:18:08 +000018676{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18677echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018678with_gnu_ld=$lt_cv_prog_gnu_ld
18679
18680
18681
18682 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18683 # archiving commands below assume that GNU ld is being used.
18684 if test "$with_gnu_ld" = yes; then
18685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18686 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'
18687
18688 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18690
18691 # If archive_cmds runs LD, not CC, wlarc should be empty
18692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18693 # investigate it a little bit more. (MM)
18694 wlarc='${wl}'
18695
18696 # ancient GNU ld didn't support --whole-archive et. al.
18697 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18698 grep 'no-whole-archive' > /dev/null; then
18699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18700 else
18701 whole_archive_flag_spec_CXX=
18702 fi
18703 else
18704 with_gnu_ld=no
18705 wlarc=
18706
18707 # A generic and very simple default shared library creation
18708 # command for GNU C++ for the case where it uses the native
18709 # linker, instead of GNU ld. If possible, this setting should
18710 # overridden to take advantage of the native linker features on
18711 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018713 fi
18714
18715 # Commands to make compiler produce verbose output that lists
18716 # what "hidden" libraries, object files and flags are used when
18717 # linking a shared library.
18718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18719
18720else
18721 GXX=no
18722 with_gnu_ld=no
18723 wlarc=
18724fi
18725
18726# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018727{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18728echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018729ld_shlibs_CXX=yes
18730case $host_os in
18731 aix3*)
18732 # FIXME: insert proper C++ library support
18733 ld_shlibs_CXX=no
18734 ;;
18735 aix4* | aix5*)
18736 if test "$host_cpu" = ia64; then
18737 # On IA64, the linker does run time linking by default, so we don't
18738 # have to do anything special.
18739 aix_use_runtimelinking=no
18740 exp_sym_flag='-Bexport'
18741 no_entry_flag=""
18742 else
18743 aix_use_runtimelinking=no
18744
18745 # Test if we are trying to use run time linking or normal
18746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18747 # need to do runtime linking.
18748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18749 for ld_flag in $LDFLAGS; do
18750 case $ld_flag in
18751 *-brtl*)
18752 aix_use_runtimelinking=yes
18753 break
18754 ;;
18755 esac
18756 done
Reid Spencera773bd52006-08-04 18:18:08 +000018757 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018758 esac
18759
18760 exp_sym_flag='-bexport'
18761 no_entry_flag='-bnoentry'
18762 fi
18763
18764 # When large executables or shared objects are built, AIX ld can
18765 # have problems creating the table of contents. If linking a library
18766 # or program results in "error TOC overflow" add -mminimal-toc to
18767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18769
18770 archive_cmds_CXX=''
18771 hardcode_direct_CXX=yes
18772 hardcode_libdir_separator_CXX=':'
18773 link_all_deplibs_CXX=yes
18774
18775 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018776 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018777 # We only want to do this on AIX 4.2 and lower, the check
18778 # below for broken collect2 doesn't work under 4.3+
18779 collect2name=`${CC} -print-prog-name=collect2`
18780 if test -f "$collect2name" && \
18781 strings "$collect2name" | grep resolve_lib_name >/dev/null
18782 then
18783 # We have reworked collect2
18784 hardcode_direct_CXX=yes
18785 else
18786 # We have old collect2
18787 hardcode_direct_CXX=unsupported
18788 # It fails to find uninstalled libraries when the uninstalled
18789 # path is not listed in the libpath. Setting hardcode_minus_L
18790 # to unsupported forces relinking
18791 hardcode_minus_L_CXX=yes
18792 hardcode_libdir_flag_spec_CXX='-L$libdir'
18793 hardcode_libdir_separator_CXX=
18794 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018795 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018796 esac
18797 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018798 if test "$aix_use_runtimelinking" = yes; then
18799 shared_flag="$shared_flag "'${wl}-G'
18800 fi
John Criswell47fdd832003-07-14 16:52:07 +000018801 else
18802 # not using gcc
18803 if test "$host_cpu" = ia64; then
18804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18805 # chokes on -Wl,-G. The following line is correct:
18806 shared_flag='-G'
18807 else
18808 if test "$aix_use_runtimelinking" = yes; then
18809 shared_flag='${wl}-G'
18810 else
18811 shared_flag='${wl}-bM:SRE'
18812 fi
18813 fi
18814 fi
18815
18816 # It seems that -bexpall does not export symbols beginning with
18817 # underscore (_), so it is better to generate a list of symbols to export.
18818 always_export_symbols_CXX=yes
18819 if test "$aix_use_runtimelinking" = yes; then
18820 # Warning - without using the other runtime loading flags (-brtl),
18821 # -berok will link without error, but may produce a broken library.
18822 allow_undefined_flag_CXX='-berok'
18823 # Determine the default libpath from the value encoded in an empty executable.
18824 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018830
John Criswell47fdd832003-07-14 16:52:07 +000018831int
18832main ()
18833{
18834
18835 ;
18836 return 0;
18837}
18838_ACEOF
18839rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018840if { (ac_try="$ac_link"
18841case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867esac
18868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018873
18874aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18875}'`
18876# Check for a 64-bit object if we didn't find anything.
18877if 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; }
18878}'`; fi
18879else
18880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018881sed 's/^/| /' conftest.$ac_ext >&5
18882
Reid Spencera773bd52006-08-04 18:18:08 +000018883
John Criswell47fdd832003-07-14 16:52:07 +000018884fi
Reid Spencera773bd52006-08-04 18:18:08 +000018885
Bill Wendlingebcceee2009-04-18 11:20:33 +000018886rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018887 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18889
18890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18891
Reid Spencera773bd52006-08-04 18:18:08 +000018892 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 +000018893 else
18894 if test "$host_cpu" = ia64; then
18895 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18896 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018897 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 +000018898 else
18899 # Determine the default libpath from the value encoded in an empty executable.
18900 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018901/* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018906
John Criswell47fdd832003-07-14 16:52:07 +000018907int
18908main ()
18909{
18910
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018916if { (ac_try="$ac_link"
18917case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018949
18950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18951}'`
18952# Check for a 64-bit object if we didn't find anything.
18953if 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; }
18954}'`; fi
18955else
18956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018957sed 's/^/| /' conftest.$ac_ext >&5
18958
Reid Spencera773bd52006-08-04 18:18:08 +000018959
John Criswell47fdd832003-07-14 16:52:07 +000018960fi
Reid Spencera773bd52006-08-04 18:18:08 +000018961
Bill Wendlingebcceee2009-04-18 11:20:33 +000018962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018963 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18965
18966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18967 # Warning - without using the other run time loading flags,
18968 # -berok will link without error, but may produce a broken library.
18969 no_undefined_flag_CXX=' ${wl}-bernotok'
18970 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018971 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018972 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018973 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018974 # This is similar to how AIX traditionally builds its shared libraries.
18975 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 +000018976 fi
18977 fi
18978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018979
18980 beos*)
18981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18982 allow_undefined_flag_CXX=unsupported
18983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18984 # support --undefined. This deserves some investigation. FIXME
18985 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18986 else
18987 ld_shlibs_CXX=no
18988 fi
18989 ;;
18990
John Criswell47fdd832003-07-14 16:52:07 +000018991 chorus*)
18992 case $cc_basename in
18993 *)
18994 # FIXME: insert proper C++ library support
18995 ld_shlibs_CXX=no
18996 ;;
18997 esac
18998 ;;
18999
19000 cygwin* | mingw* | pw32*)
19001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19002 # as there is no search path for DLLs.
19003 hardcode_libdir_flag_spec_CXX='-L$libdir'
19004 allow_undefined_flag_CXX=unsupported
19005 always_export_symbols_CXX=no
19006 enable_shared_with_static_runtimes_CXX=yes
19007
19008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019009 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 +000019010 # If the export-symbols file already is a .def file (1st line
19011 # is EXPORTS), use it as is; otherwise, prepend...
19012 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19013 cp $export_symbols $output_objdir/$soname.def;
19014 else
19015 echo EXPORTS > $output_objdir/$soname.def;
19016 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019017 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019018 $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 +000019019 else
19020 ld_shlibs_CXX=no
19021 fi
19022 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019023 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019024 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019025 rhapsody* | darwin1.[012])
19026 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19027 ;;
19028 *) # Darwin 1.3 on
19029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031 else
19032 case ${MACOSX_DEPLOYMENT_TARGET} in
19033 10.[012])
19034 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19035 ;;
19036 10.*)
19037 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19038 ;;
19039 esac
19040 fi
19041 ;;
19042 esac
19043 archive_cmds_need_lc_CXX=no
19044 hardcode_direct_CXX=no
19045 hardcode_automatic_CXX=yes
19046 hardcode_shlibpath_var_CXX=unsupported
19047 whole_archive_flag_spec_CXX=''
19048 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019049
Reid Spencer2706f8c2004-09-19 23:53:36 +000019050 if test "$GXX" = yes ; then
19051 lt_int_apple_cc_single_mod=no
19052 output_verbose_link_cmd='echo'
19053 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19054 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019055 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019056 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019057 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 +000019058 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019059 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 +000019060 fi
19061 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019062 # 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 +000019063 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019064 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 +000019065 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019066 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 +000019067 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019068 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 +000019069 else
Reid Spencera773bd52006-08-04 18:18:08 +000019070 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019071 xlc*)
19072 output_verbose_link_cmd='echo'
19073 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'
19074 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019075 # 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 +000019076 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}'
19077 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 +000019078 ;;
19079 *)
19080 ld_shlibs_CXX=no
19081 ;;
19082 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019083 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019084 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019085
19086 dgux*)
19087 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019088 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19091 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019092 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019093 # Green Hills C++ Compiler
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 *)
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
19101 esac
19102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019103 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019104 # C++ shared libraries reported to be fairly broken before switch to ELF
19105 ld_shlibs_CXX=no
19106 ;;
19107 freebsd-elf*)
19108 archive_cmds_need_lc_CXX=no
19109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019110 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019111 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19112 # conventions
19113 ld_shlibs_CXX=yes
19114 ;;
19115 gnu*)
19116 ;;
19117 hpux9*)
19118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_CXX=:
19120 export_dynamic_flag_spec_CXX='${wl}-E'
19121 hardcode_direct_CXX=yes
19122 hardcode_minus_L_CXX=yes # Not in the search PATH,
19123 # but as the default
19124 # location of the library.
19125
19126 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019127 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019131 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019132 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 +000019133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19136 #
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19140 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019141 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 +000019142 ;;
19143 *)
19144 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019145 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 +000019146 else
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19149 fi
19150 ;;
19151 esac
19152 ;;
19153 hpux10*|hpux11*)
19154 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019155 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19156 hardcode_libdir_separator_CXX=:
19157
19158 case $host_cpu in
19159 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019160 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019161 ;;
19162 *)
John Criswell47fdd832003-07-14 16:52:07 +000019163 export_dynamic_flag_spec_CXX='${wl}-E'
19164 ;;
19165 esac
19166 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019167 case $host_cpu in
19168 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019169 hardcode_direct_CXX=no
19170 hardcode_shlibpath_var_CXX=no
19171 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019172 *)
19173 hardcode_direct_CXX=yes
19174 hardcode_minus_L_CXX=yes # Not in the search PATH,
19175 # but as the default
19176 # location of the library.
19177 ;;
19178 esac
19179
19180 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019181 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019185 aCC*)
19186 case $host_cpu in
19187 hppa*64*)
19188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19189 ;;
19190 ia64*)
19191 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 +000019192 ;;
19193 *)
19194 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19195 ;;
19196 esac
19197 # Commands to make compiler produce verbose output that lists
19198 # what "hidden" libraries, object files and flags are used when
19199 # linking a shared library.
19200 #
19201 # There doesn't appear to be a way to prevent this compiler from
19202 # explicitly linking system object files so we need to strip them
19203 # from the output so that they don't get included in the library
19204 # dependencies.
19205 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'
19206 ;;
19207 *)
19208 if test "$GXX" = yes; then
19209 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019210 case $host_cpu in
19211 hppa*64*)
19212 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 ;;
19214 ia64*)
19215 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 +000019216 ;;
19217 *)
19218 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'
19219 ;;
19220 esac
19221 fi
19222 else
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19225 fi
19226 ;;
19227 esac
19228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019229 interix3*)
19230 hardcode_direct_CXX=no
19231 hardcode_shlibpath_var_CXX=no
19232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19233 export_dynamic_flag_spec_CXX='${wl}-E'
19234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19235 # Instead, shared libraries are loaded at an image base (0x10000000 by
19236 # default) and relocated if they conflict, which is a slow very memory
19237 # consuming and fragmenting process. To avoid this, we pick a random,
19238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19240 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'
19241 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'
19242 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019243 irix5* | irix6*)
19244 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019245 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019246 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019247 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 +000019248
19249 # Archives containing C++ object files must be created using
19250 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19251 # necessary to make sure instantiated templates are included
19252 # in the archive.
19253 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19254 ;;
19255 *)
19256 if test "$GXX" = yes; then
19257 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019258 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 +000019259 else
19260 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'
19261 fi
19262 fi
19263 link_all_deplibs_CXX=yes
19264 ;;
19265 esac
19266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19267 hardcode_libdir_separator_CXX=:
19268 ;;
19269 linux*)
19270 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019271 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019272 # Kuck and Associates, Inc. (KAI) C++ Compiler
19273
19274 # KCC will only create a shared library if the output file
19275 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19276 # to its proper name (with version) after linking.
19277 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'
19278 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'
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19282 #
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19286 # dependencies.
19287 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'
19288
19289 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19291
19292 # Archives containing C++ object files must be created using
19293 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19294 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19295 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019296 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019297 # Intel C++
19298 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019299 # version 8.0 and above of icpc choke on multiply defined symbols
19300 # if we add $predep_objects and $postdep_objects, however 7.1 and
19301 # earlier do not add the objects themselves.
19302 case `$CC -V 2>&1` in
19303 *"Version 7."*)
19304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305 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'
19306 ;;
19307 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019308 tmp_idyn=
19309 case $host_cpu in
19310 ia64*) tmp_idyn=' -i_dynamic';;
19311 esac
19312 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19313 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 +000019314 ;;
19315 esac
John Criswell47fdd832003-07-14 16:52:07 +000019316 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19319 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19320 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019321 pgCC*)
19322 # Portland Group C++ compiler
19323 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19324 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'
19325
19326 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19328 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'
19329 ;;
19330 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019331 # Compaq C++
19332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333 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'
19334
19335 runpath_var=LD_RUN_PATH
19336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19337 hardcode_libdir_separator_CXX=:
19338
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
19342 #
19343 # There doesn't appear to be a way to prevent this compiler from
19344 # explicitly linking system object files so we need to strip them
19345 # from the output so that they don't get included in the library
19346 # dependencies.
19347 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'
19348 ;;
19349 esac
19350 ;;
19351 lynxos*)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355 m88k*)
19356 # FIXME: insert proper C++ library support
19357 ld_shlibs_CXX=no
19358 ;;
19359 mvs*)
19360 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019361 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19364 ;;
19365 *)
19366 # FIXME: insert proper C++ library support
19367 ld_shlibs_CXX=no
19368 ;;
19369 esac
19370 ;;
19371 netbsd*)
19372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19374 wlarc=
19375 hardcode_libdir_flag_spec_CXX='-R$libdir'
19376 hardcode_direct_CXX=yes
19377 hardcode_shlibpath_var_CXX=no
19378 fi
19379 # Workaround some broken pre-1.5 toolchains
19380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19381 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019382 openbsd2*)
19383 # C++ shared libraries are fairly broken
19384 ld_shlibs_CXX=no
19385 ;;
19386 openbsd*)
19387 hardcode_direct_CXX=yes
19388 hardcode_shlibpath_var_CXX=no
19389 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19392 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19393 export_dynamic_flag_spec_CXX='${wl}-E'
19394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19395 fi
19396 output_verbose_link_cmd='echo'
19397 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019398 osf3*)
19399 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019400 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019401 # Kuck and Associates, Inc. (KAI) C++ Compiler
19402
19403 # KCC will only create a shared library if the output file
19404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19405 # to its proper name (with version) after linking.
19406 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'
19407
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 hardcode_libdir_separator_CXX=:
19410
19411 # Archives containing C++ object files must be created using
19412 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19413 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19414
19415 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019416 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019417 # Rational C++ 2.4.1
19418 # FIXME: insert proper C++ library support
19419 ld_shlibs_CXX=no
19420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019421 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019423 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 +000019424
19425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19426 hardcode_libdir_separator_CXX=:
19427
19428 # Commands to make compiler produce verbose output that lists
19429 # what "hidden" libraries, object files and flags are used when
19430 # linking a shared library.
19431 #
19432 # There doesn't appear to be a way to prevent this compiler from
19433 # explicitly linking system object files so we need to strip them
19434 # from the output so that they don't get included in the library
19435 # dependencies.
19436 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'
19437 ;;
19438 *)
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019441 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 +000019442
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19450
19451 else
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19454 fi
19455 ;;
19456 esac
19457 ;;
19458 osf4* | osf5*)
19459 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019460 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019461 # Kuck and Associates, Inc. (KAI) C++ Compiler
19462
19463 # KCC will only create a shared library if the output file
19464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465 # to its proper name (with version) after linking.
19466 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'
19467
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19469 hardcode_libdir_separator_CXX=:
19470
19471 # Archives containing C++ object files must be created using
19472 # the KAI C++ compiler.
19473 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19474 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019475 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019476 # Rational C++ 2.4.1
19477 # FIXME: insert proper C++ library support
19478 ld_shlibs_CXX=no
19479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019480 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019481 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019482 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 +000019483 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19484 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019485 $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 +000019486 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019487
19488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19489 hardcode_libdir_separator_CXX=:
19490
19491 # Commands to make compiler produce verbose output that lists
19492 # what "hidden" libraries, object files and flags are used when
19493 # linking a shared library.
19494 #
19495 # There doesn't appear to be a way to prevent this compiler from
19496 # explicitly linking system object files so we need to strip them
19497 # from the output so that they don't get included in the library
19498 # dependencies.
19499 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'
19500 ;;
19501 *)
19502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019504 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 +000019505
19506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19507 hardcode_libdir_separator_CXX=:
19508
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19513
19514 else
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19517 fi
19518 ;;
19519 esac
19520 ;;
19521 psos*)
19522 # FIXME: insert proper C++ library support
19523 ld_shlibs_CXX=no
19524 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019525 sunos4*)
19526 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019527 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019528 # Sun C++ 4.x
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019532 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019533 # Lucid
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 *)
19538 # FIXME: insert proper C++ library support
19539 ld_shlibs_CXX=no
19540 ;;
19541 esac
19542 ;;
19543 solaris*)
19544 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019545 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019546 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019547 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019548 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019549 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 +000019550 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 +000019551 $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 +000019552
19553 hardcode_libdir_flag_spec_CXX='-R$libdir'
19554 hardcode_shlibpath_var_CXX=no
19555 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019556 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019557 *)
19558 # The C++ compiler is used as linker so we must use $wl
19559 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019560 # linker. We must also pass each convience library through
19561 # to the system linker between allextract/defaultextract.
19562 # The C++ compiler will combine linker options so we
19563 # cannot just pass the convience library names through
19564 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019565 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019566 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 +000019567 ;;
19568 esac
19569 link_all_deplibs_CXX=yes
19570
Reid Spencera773bd52006-08-04 18:18:08 +000019571 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019572
19573 # Archives containing C++ object files must be created using
19574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19575 # necessary to make sure instantiated templates are included
19576 # in the archive.
19577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19578 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019579 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019580 # Green Hills C++ Compiler
19581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19582
19583 # The C++ compiler must be used to create the archive.
19584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19585 ;;
19586 *)
19587 # GNU C++ compiler with Solaris linker
19588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19590 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019591 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 +000019592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19594
John Criswell47fdd832003-07-14 16:52:07 +000019595 # Commands to make compiler produce verbose output that lists
19596 # what "hidden" libraries, object files and flags are used when
19597 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019598 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019599 else
19600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19601 # platform.
19602 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 +000019603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19604 $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 +000019605
19606 # Commands to make compiler produce verbose output that lists
19607 # what "hidden" libraries, object files and flags are used when
19608 # linking a shared library.
19609 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19610 fi
19611
19612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19613 fi
19614 ;;
19615 esac
19616 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019617 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19618 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019619 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019620 hardcode_shlibpath_var_CXX=no
19621 runpath_var='LD_RUN_PATH'
19622
19623 case $cc_basename in
19624 CC*)
19625 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627 ;;
19628 *)
19629 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19631 ;;
19632 esac
19633 ;;
19634 sysv5* | sco3.2v5* | sco5v6*)
19635 # Note: We can NOT use -z defs as we might desire, because we do not
19636 # link with -lc, and that would cause any symbols used from libc to
19637 # always be unresolved, which means just about no library would
19638 # ever link correctly. If we're not using GNU ld we use -z text
19639 # though, which does catch some bad symbols but isn't as heavy-handed
19640 # as -z defs.
19641 # For security reasons, it is highly recommended that you always
19642 # use absolute paths for naming shared libraries, and exclude the
19643 # DT_RUNPATH tag from executables and libraries. But doing so
19644 # requires that you compile everything twice, which is a pain.
19645 # So that behaviour is only enabled if SCOABSPATH is set to a
19646 # non-empty value in the environment. Most likely only useful for
19647 # creating official distributions of packages.
19648 # This is a hack until libtool officially supports absolute path
19649 # names for shared libraries.
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 allow_undefined_flag_CXX='${wl}-z,nodefs'
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_shlibpath_var_CXX=no
19654 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19655 hardcode_libdir_separator_CXX=':'
19656 link_all_deplibs_CXX=yes
19657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658 runpath_var='LD_RUN_PATH'
19659
19660 case $cc_basename in
19661 CC*)
19662 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 ;;
19665 *)
19666 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19667 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19668 ;;
19669 esac
John Criswell47fdd832003-07-14 16:52:07 +000019670 ;;
19671 tandem*)
19672 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019673 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019674 # NonStop-UX NCC 3.20
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19677 ;;
19678 *)
19679 # FIXME: insert proper C++ library support
19680 ld_shlibs_CXX=no
19681 ;;
19682 esac
19683 ;;
19684 vxworks*)
19685 # FIXME: insert proper C++ library support
19686 ld_shlibs_CXX=no
19687 ;;
19688 *)
19689 # FIXME: insert proper C++ library support
19690 ld_shlibs_CXX=no
19691 ;;
19692esac
Reid Spencera773bd52006-08-04 18:18:08 +000019693{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19694echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019695test "$ld_shlibs_CXX" = no && can_build_shared=no
19696
19697GCC_CXX="$GXX"
19698LD_CXX="$LD"
19699
John Criswell47fdd832003-07-14 16:52:07 +000019700
19701cat > conftest.$ac_ext <<EOF
19702class Foo
19703{
19704public:
19705 Foo (void) { a = 0; }
19706private:
19707 int a;
19708};
19709EOF
19710
19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19712 (eval $ac_compile) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; then
19716 # Parse the compiler output and extract the necessary
19717 # objects, libraries and library flags.
19718
19719 # Sentinel used to keep track of whether or not we are before
19720 # the conftest object file.
19721 pre_test_object_deps_done=no
19722
19723 # The `*' in the case matches for architectures that use `case' in
19724 # $output_verbose_cmd can trigger glob expansion during the loop
19725 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019726 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019727
19728 for p in `eval $output_verbose_link_cmd`; do
19729 case $p in
19730
19731 -L* | -R* | -l*)
19732 # Some compilers place space between "-{L,R}" and the path.
19733 # Remove the space.
19734 if test $p = "-L" \
19735 || test $p = "-R"; then
19736 prev=$p
19737 continue
19738 else
19739 prev=
19740 fi
19741
19742 if test "$pre_test_object_deps_done" = no; then
19743 case $p in
19744 -L* | -R*)
19745 # Internal compiler library paths should come after those
19746 # provided the user. The postdeps already come after the
19747 # user supplied libs so there is no need to process them.
19748 if test -z "$compiler_lib_search_path_CXX"; then
19749 compiler_lib_search_path_CXX="${prev}${p}"
19750 else
19751 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19752 fi
19753 ;;
19754 # The "-l" case would never come before the object being
19755 # linked, so don't bother handling this case.
19756 esac
19757 else
19758 if test -z "$postdeps_CXX"; then
19759 postdeps_CXX="${prev}${p}"
19760 else
19761 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19762 fi
19763 fi
19764 ;;
19765
19766 *.$objext)
19767 # This assumes that the test object file only shows up
19768 # once in the compiler output.
19769 if test "$p" = "conftest.$objext"; then
19770 pre_test_object_deps_done=yes
19771 continue
19772 fi
19773
19774 if test "$pre_test_object_deps_done" = no; then
19775 if test -z "$predep_objects_CXX"; then
19776 predep_objects_CXX="$p"
19777 else
19778 predep_objects_CXX="$predep_objects_CXX $p"
19779 fi
19780 else
19781 if test -z "$postdep_objects_CXX"; then
19782 postdep_objects_CXX="$p"
19783 else
19784 postdep_objects_CXX="$postdep_objects_CXX $p"
19785 fi
19786 fi
19787 ;;
19788
19789 *) ;; # Ignore the rest.
19790
19791 esac
19792 done
19793
19794 # Clean up.
19795 rm -f a.out a.exe
19796else
19797 echo "libtool.m4: error: problem compiling CXX test program"
19798fi
19799
19800$rm -f confest.$objext
19801
Reid Spencera773bd52006-08-04 18:18:08 +000019802# PORTME: override above test on systems where it is broken
19803case $host_os in
19804interix3*)
19805 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19806 # hack all around it, let's just trust "g++" to DTRT.
19807 predep_objects_CXX=
19808 postdep_objects_CXX=
19809 postdeps_CXX=
19810 ;;
19811
19812solaris*)
19813 case $cc_basename in
19814 CC*)
19815 # Adding this requires a known-good setup of shared libraries for
19816 # Sun compiler versions before 5.6, else PIC objects from an old
19817 # archive will be linked into the output, leading to subtle bugs.
19818 postdeps_CXX='-lCstd -lCrun'
19819 ;;
19820 esac
19821 ;;
19822esac
19823
19824
John Criswell47fdd832003-07-14 16:52:07 +000019825case " $postdeps_CXX " in
19826*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19827esac
19828
19829lt_prog_compiler_wl_CXX=
19830lt_prog_compiler_pic_CXX=
19831lt_prog_compiler_static_CXX=
19832
Reid Spencera773bd52006-08-04 18:18:08 +000019833{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19834echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019835
19836 # C++ specific cases for pic, static, wl, etc.
19837 if test "$GXX" = yes; then
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 lt_prog_compiler_static_CXX='-static'
19840
19841 case $host_os in
19842 aix*)
19843 # All AIX code is PIC.
19844 if test "$host_cpu" = ia64; then
19845 # AIX 5 now supports IA64 processor
19846 lt_prog_compiler_static_CXX='-Bstatic'
19847 fi
19848 ;;
19849 amigaos*)
19850 # FIXME: we need at least 68020 code to build shared libraries, but
19851 # adding the `-m68020' flag to GCC prevents building anything better,
19852 # like `-m68040'.
19853 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19854 ;;
19855 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19856 # PIC is the default for these OSes.
19857 ;;
19858 mingw* | os2* | pw32*)
19859 # This hack is so that the source file can tell whether it is being
19860 # built for inclusion in a dll (and should export symbols for example).
19861 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19862 ;;
19863 darwin* | rhapsody*)
19864 # PIC is the default on this platform
19865 # Common symbols not allowed in MH_DYLIB files
19866 lt_prog_compiler_pic_CXX='-fno-common'
19867 ;;
19868 *djgpp*)
19869 # DJGPP does not support shared libraries at all
19870 lt_prog_compiler_pic_CXX=
19871 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019872 interix3*)
19873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19874 # Instead, we relocate shared libraries at runtime.
19875 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019876 sysv4*MP*)
19877 if test -d /usr/nec; then
19878 lt_prog_compiler_pic_CXX=-Kconform_pic
19879 fi
19880 ;;
19881 hpux*)
19882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19883 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019884 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019885 hppa*64*|ia64*)
19886 ;;
19887 *)
19888 lt_prog_compiler_pic_CXX='-fPIC'
19889 ;;
19890 esac
19891 ;;
19892 *)
19893 lt_prog_compiler_pic_CXX='-fPIC'
19894 ;;
19895 esac
19896 else
19897 case $host_os in
19898 aix4* | aix5*)
19899 # All AIX code is PIC.
19900 if test "$host_cpu" = ia64; then
19901 # AIX 5 now supports IA64 processor
19902 lt_prog_compiler_static_CXX='-Bstatic'
19903 else
19904 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19905 fi
19906 ;;
19907 chorus*)
19908 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019909 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019910 # Green Hills C++ Compiler
19911 # _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"
19912 ;;
19913 esac
19914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019915 darwin*)
19916 # PIC is the default on this platform
19917 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019918 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019919 xlc*)
19920 lt_prog_compiler_pic_CXX='-qnocommon'
19921 lt_prog_compiler_wl_CXX='-Wl,'
19922 ;;
19923 esac
19924 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019925 dgux*)
19926 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019927 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019928 lt_prog_compiler_pic_CXX='-KPIC'
19929 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019930 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019931 # Green Hills C++ Compiler
19932 lt_prog_compiler_pic_CXX='-pic'
19933 ;;
19934 *)
19935 ;;
19936 esac
19937 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019938 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019939 # FreeBSD uses GNU C++
19940 ;;
19941 hpux9* | hpux10* | hpux11*)
19942 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019943 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019944 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019945 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019946 if test "$host_cpu" != ia64; then
19947 lt_prog_compiler_pic_CXX='+Z'
19948 fi
19949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019950 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019951 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019952 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19953 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019954 hppa*64*|ia64*)
19955 # +Z the default
19956 ;;
19957 *)
19958 lt_prog_compiler_pic_CXX='+Z'
19959 ;;
19960 esac
19961 ;;
19962 *)
19963 ;;
19964 esac
19965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019966 interix*)
19967 # This is c89, which is MS Visual C++ (no shared libs)
19968 # Anyone wants to do a port?
19969 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019970 irix5* | irix6* | nonstopux*)
19971 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019972 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019973 lt_prog_compiler_wl_CXX='-Wl,'
19974 lt_prog_compiler_static_CXX='-non_shared'
19975 # CC pic flag -KPIC is the default.
19976 ;;
19977 *)
19978 ;;
19979 esac
19980 ;;
19981 linux*)
19982 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019983 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019984 # KAI C++ Compiler
19985 lt_prog_compiler_wl_CXX='--backend -Wl,'
19986 lt_prog_compiler_pic_CXX='-fPIC'
19987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019988 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019989 # Intel C++
19990 lt_prog_compiler_wl_CXX='-Wl,'
19991 lt_prog_compiler_pic_CXX='-KPIC'
19992 lt_prog_compiler_static_CXX='-static'
19993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019994 pgCC*)
19995 # Portland Group C++ compiler.
19996 lt_prog_compiler_wl_CXX='-Wl,'
19997 lt_prog_compiler_pic_CXX='-fpic'
19998 lt_prog_compiler_static_CXX='-Bstatic'
19999 ;;
20000 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020001 # Compaq C++
20002 # Make sure the PIC flag is empty. It appears that all Alpha
20003 # Linux and Compaq Tru64 Unix objects are PIC.
20004 lt_prog_compiler_pic_CXX=
20005 lt_prog_compiler_static_CXX='-non_shared'
20006 ;;
20007 *)
20008 ;;
20009 esac
20010 ;;
20011 lynxos*)
20012 ;;
20013 m88k*)
20014 ;;
20015 mvs*)
20016 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020017 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020018 lt_prog_compiler_pic_CXX='-W c,exportall'
20019 ;;
20020 *)
20021 ;;
20022 esac
20023 ;;
20024 netbsd*)
20025 ;;
20026 osf3* | osf4* | osf5*)
20027 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020028 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020029 lt_prog_compiler_wl_CXX='--backend -Wl,'
20030 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020031 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020032 # Rational C++ 2.4.1
20033 lt_prog_compiler_pic_CXX='-pic'
20034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020035 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020036 # Digital/Compaq C++
20037 lt_prog_compiler_wl_CXX='-Wl,'
20038 # Make sure the PIC flag is empty. It appears that all Alpha
20039 # Linux and Compaq Tru64 Unix objects are PIC.
20040 lt_prog_compiler_pic_CXX=
20041 lt_prog_compiler_static_CXX='-non_shared'
20042 ;;
20043 *)
20044 ;;
20045 esac
20046 ;;
20047 psos*)
20048 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020049 solaris*)
20050 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020051 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020052 # Sun C++ 4.2, 5.x and Centerline C++
20053 lt_prog_compiler_pic_CXX='-KPIC'
20054 lt_prog_compiler_static_CXX='-Bstatic'
20055 lt_prog_compiler_wl_CXX='-Qoption ld '
20056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020057 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020058 # Green Hills C++ Compiler
20059 lt_prog_compiler_pic_CXX='-PIC'
20060 ;;
20061 *)
20062 ;;
20063 esac
20064 ;;
20065 sunos4*)
20066 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020067 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020068 # Sun C++ 4.x
20069 lt_prog_compiler_pic_CXX='-pic'
20070 lt_prog_compiler_static_CXX='-Bstatic'
20071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020072 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020073 # Lucid
20074 lt_prog_compiler_pic_CXX='-pic'
20075 ;;
20076 *)
20077 ;;
20078 esac
20079 ;;
20080 tandem*)
20081 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020082 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020083 # NonStop-UX NCC 3.20
20084 lt_prog_compiler_pic_CXX='-KPIC'
20085 ;;
20086 *)
20087 ;;
20088 esac
20089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20091 case $cc_basename in
20092 CC*)
20093 lt_prog_compiler_wl_CXX='-Wl,'
20094 lt_prog_compiler_pic_CXX='-KPIC'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20096 ;;
20097 esac
John Criswell47fdd832003-07-14 16:52:07 +000020098 ;;
20099 vxworks*)
20100 ;;
20101 *)
20102 lt_prog_compiler_can_build_shared_CXX=no
20103 ;;
20104 esac
20105 fi
20106
Reid Spencera773bd52006-08-04 18:18:08 +000020107{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20108echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020109
20110#
20111# Check to make sure the PIC flag actually works.
20112#
20113if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020114
Reid Spencera773bd52006-08-04 18:18:08 +000020115{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20116echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020117if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120 lt_prog_compiler_pic_works_CXX=no
20121 ac_outfile=conftest.$ac_objext
20122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20123 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20124 # Insert the option either (1) after the last *FLAGS variable, or
20125 # (2) before a word containing "conftest.", or (3) at the end.
20126 # Note that $ac_compile itself does not contain backslashes and begins
20127 # with a dollar sign (not a hyphen), so the echo should work correctly.
20128 # The option is referenced via a variable to avoid confusing sed.
20129 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20132 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000020133 (eval echo "\"\$as_me:20133: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020134 (eval "$lt_compile" 2>conftest.err)
20135 ac_status=$?
20136 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000020137 echo "$as_me:20137: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020138 if (exit $ac_status) && test -s "$ac_outfile"; then
20139 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020140 # So say no if there are warnings other than the usual output.
20141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020144 lt_prog_compiler_pic_works_CXX=yes
20145 fi
20146 fi
20147 $rm conftest*
20148
20149fi
Reid Spencera773bd52006-08-04 18:18:08 +000020150{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20151echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020152
20153if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20154 case $lt_prog_compiler_pic_CXX in
20155 "" | " "*) ;;
20156 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20157 esac
20158else
20159 lt_prog_compiler_pic_CXX=
20160 lt_prog_compiler_can_build_shared_CXX=no
20161fi
20162
20163fi
Reid Spencera773bd52006-08-04 18:18:08 +000020164case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020165 # For platforms which do not support PIC, -DPIC is meaningless:
20166 *djgpp*)
20167 lt_prog_compiler_pic_CXX=
20168 ;;
20169 *)
20170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20171 ;;
20172esac
20173
Reid Spencera773bd52006-08-04 18:18:08 +000020174#
20175# Check to make sure the static flag actually works.
20176#
20177wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20178{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20179echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20180if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183 lt_prog_compiler_static_works_CXX=no
20184 save_LDFLAGS="$LDFLAGS"
20185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20186 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20188 # The linker can only warn and ignore the option if not recognized
20189 # So say no if there are warnings
20190 if test -s conftest.err; then
20191 # Append any errors to the config.log.
20192 cat conftest.err 1>&5
20193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20195 if diff conftest.exp conftest.er2 >/dev/null; then
20196 lt_prog_compiler_static_works_CXX=yes
20197 fi
20198 else
20199 lt_prog_compiler_static_works_CXX=yes
20200 fi
20201 fi
20202 $rm conftest*
20203 LDFLAGS="$save_LDFLAGS"
20204
20205fi
20206{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20207echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20208
20209if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20210 :
20211else
20212 lt_prog_compiler_static_CXX=
20213fi
20214
20215
20216{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20217echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020218if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220else
20221 lt_cv_prog_compiler_c_o_CXX=no
20222 $rm -r conftest 2>/dev/null
20223 mkdir conftest
20224 cd conftest
20225 mkdir out
20226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20227
John Criswell47fdd832003-07-14 16:52:07 +000020228 lt_compiler_flag="-o out/conftest2.$ac_objext"
20229 # Insert the option either (1) after the last *FLAGS variable, or
20230 # (2) before a word containing "conftest.", or (3) at the end.
20231 # Note that $ac_compile itself does not contain backslashes and begins
20232 # with a dollar sign (not a hyphen), so the echo should work correctly.
20233 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20236 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000020237 (eval echo "\"\$as_me:20237: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020238 (eval "$lt_compile" 2>out/conftest.err)
20239 ac_status=$?
20240 cat out/conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000020241 echo "$as_me:20241: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20243 then
20244 # The compiler can only warn and ignore the option if not recognized
20245 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020249 lt_cv_prog_compiler_c_o_CXX=yes
20250 fi
20251 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020252 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020253 $rm conftest*
20254 # SGI C++ compiler will create directory out/ii_files/ for
20255 # template instantiation
20256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20257 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020258 cd ..
20259 rmdir conftest
20260 $rm conftest*
20261
20262fi
Reid Spencera773bd52006-08-04 18:18:08 +000020263{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20264echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020265
20266
20267hard_links="nottested"
20268if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20269 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020270 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20271echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020272 hard_links=yes
20273 $rm conftest*
20274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20275 touch conftest.a
20276 ln conftest.a conftest.b 2>&5 || hard_links=no
20277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020278 { echo "$as_me:$LINENO: result: $hard_links" >&5
20279echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020280 if test "$hard_links" = no; then
20281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20282echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20283 need_locks=warn
20284 fi
20285else
20286 need_locks=no
20287fi
20288
Reid Spencera773bd52006-08-04 18:18:08 +000020289{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20290echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020291
20292 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20293 case $host_os in
20294 aix4* | aix5*)
20295 # If we're using GNU nm, then we don't want the "-C" option.
20296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20298 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'
20299 else
20300 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'
20301 fi
20302 ;;
20303 pw32*)
20304 export_symbols_cmds_CXX="$ltdll_cmds"
20305 ;;
20306 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020307 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 +000020308 ;;
20309 *)
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311 ;;
20312 esac
20313
Reid Spencera773bd52006-08-04 18:18:08 +000020314{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20315echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020316test "$ld_shlibs_CXX" = no && can_build_shared=no
20317
John Criswell47fdd832003-07-14 16:52:07 +000020318#
20319# Do we need to explicitly link libc?
20320#
20321case "x$archive_cmds_need_lc_CXX" in
20322x|xyes)
20323 # Assume -lc should be added
20324 archive_cmds_need_lc_CXX=yes
20325
20326 if test "$enable_shared" = yes && test "$GCC" = yes; then
20327 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020328 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020329 # FIXME: we may have to deal with multi-command sequences.
20330 ;;
20331 '$CC '*)
20332 # Test whether the compiler implicitly links with -lc since on some
20333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20334 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020335 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20336echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020337 $rm conftest*
20338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20339
20340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341 (eval $ac_compile) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } 2>conftest.err; then
20345 soname=conftest
20346 lib=conftest
20347 libobjs=conftest.$ac_objext
20348 deplibs=
20349 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020350 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020351 compiler_flags=-v
20352 linker_flags=-v
20353 verstring=
20354 output_objdir=.
20355 libname=conftest
20356 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20357 allow_undefined_flag_CXX=
20358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20359 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }
20363 then
20364 archive_cmds_need_lc_CXX=no
20365 else
20366 archive_cmds_need_lc_CXX=yes
20367 fi
20368 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20369 else
20370 cat conftest.err 1>&5
20371 fi
20372 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020373 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20374echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020375 ;;
20376 esac
20377 fi
20378 ;;
20379esac
20380
Reid Spencera773bd52006-08-04 18:18:08 +000020381{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020383library_names_spec=
20384libname_spec='lib$name'
20385soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020386shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020387postinstall_cmds=
20388postuninstall_cmds=
20389finish_cmds=
20390finish_eval=
20391shlibpath_var=
20392shlibpath_overrides_runpath=unknown
20393version_type=none
20394dynamic_linker="$host_os ld.so"
20395sys_lib_dlsearch_path_spec="/lib /usr/lib"
20396if test "$GCC" = yes; then
20397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20399 # if the path contains ";" then we assume it to be the separator
20400 # otherwise default to the standard path separator (i.e. ":") - it is
20401 # assumed that no part of a normal pathname contains ";" but that should
20402 # okay in the real world where ";" in dirpaths is itself problematic.
20403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20404 else
20405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20406 fi
20407else
20408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20409fi
20410need_lib_prefix=unknown
20411hardcode_into_libs=no
20412
20413# when you set need_version to no, make sure it does not cause -set_version
20414# flags to be left without arguments
20415need_version=unknown
20416
20417case $host_os in
20418aix3*)
20419 version_type=linux
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20421 shlibpath_var=LIBPATH
20422
20423 # AIX 3 has no versioning support, so we append a major version to the name.
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 ;;
20426
20427aix4* | aix5*)
20428 version_type=linux
20429 need_lib_prefix=no
20430 need_version=no
20431 hardcode_into_libs=yes
20432 if test "$host_cpu" = ia64; then
20433 # AIX 5 supports IA64
20434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 else
20437 # With GCC up to 2.95.x, collect2 would create an import file
20438 # for dependence libraries. The import file would start with
20439 # the line `#! .'. This would cause the generated library to
20440 # depend on `.', always an invalid library. This was fixed in
20441 # development snapshots of GCC prior to 3.0.
20442 case $host_os in
20443 aix4 | aix4.[01] | aix4.[01].*)
20444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20445 echo ' yes '
20446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20447 :
20448 else
20449 can_build_shared=no
20450 fi
20451 ;;
20452 esac
20453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20454 # soname into executable. Probably we can add versioning support to
20455 # collect2, so additional links can be useful in future.
20456 if test "$aix_use_runtimelinking" = yes; then
20457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20458 # instead of lib<name>.a to let people know that these are not
20459 # typical AIX shared libraries.
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461 else
20462 # We preserve .a as extension for shared libraries through AIX4.2
20463 # and later when we are not doing run time linking.
20464 library_names_spec='${libname}${release}.a $libname.a'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 fi
20467 shlibpath_var=LIBPATH
20468 fi
20469 ;;
20470
20471amigaos*)
20472 library_names_spec='$libname.ixlibrary $libname.a'
20473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020474 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 +000020475 ;;
20476
20477beos*)
20478 library_names_spec='${libname}${shared_ext}'
20479 dynamic_linker="$host_os ld.so"
20480 shlibpath_var=LIBRARY_PATH
20481 ;;
20482
Reid Spencer2706f8c2004-09-19 23:53:36 +000020483bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020484 version_type=linux
20485 need_version=no
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 soname_spec='${libname}${release}${shared_ext}$major'
20488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20492 # the default ld.so.conf also contains /usr/contrib/lib and
20493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20494 # libtool to hard-code these into programs
20495 ;;
20496
20497cygwin* | mingw* | pw32*)
20498 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020500 need_version=no
20501 need_lib_prefix=no
20502
20503 case $GCC,$host_os in
20504 yes,cygwin* | yes,mingw* | yes,pw32*)
20505 library_names_spec='$libname.dll.a'
20506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020507 postinstall_cmds='base_file=`basename \${file}`~
20508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20509 dldir=$destdir/`dirname \$dlpath`~
20510 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020511 $install_prog $dir/$dlname \$dldir/$dlname~
20512 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20514 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020515 $rm \$dlpath'
20516 shlibpath_overrides_runpath=yes
20517
20518 case $host_os in
20519 cygwin*)
20520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20521 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 +000020522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020523 ;;
20524 mingw*)
20525 # MinGW DLLs use traditional 'lib' prefix
20526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20529 # It is most probably a Windows format PATH printed by
20530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20531 # path with ; separators, and with drive letters. We can handle the
20532 # drive letters (cygwin fileutils understands them), so leave them,
20533 # especially as we might pass files found there to a mingw objdump,
20534 # which wouldn't understand a cygwinified path. Ahh.
20535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20536 else
20537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20538 fi
20539 ;;
20540 pw32*)
20541 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020542 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 +000020543 ;;
20544 esac
20545 ;;
20546
20547 *)
20548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20549 ;;
20550 esac
20551 dynamic_linker='Win32 ld.exe'
20552 # FIXME: first we should search . and the directory the executable is in
20553 shlibpath_var=PATH
20554 ;;
20555
20556darwin* | rhapsody*)
20557 dynamic_linker="$host_os dyld"
20558 version_type=darwin
20559 need_lib_prefix=no
20560 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020562 soname_spec='${libname}${release}${major}$shared_ext'
20563 shlibpath_overrides_runpath=yes
20564 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020565 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567 if test "$GCC" = yes; then
20568 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"`
20569 else
20570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020571 fi
20572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20573 ;;
20574
20575dgux*)
20576 version_type=linux
20577 need_lib_prefix=no
20578 need_version=no
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 shlibpath_var=LD_LIBRARY_PATH
20582 ;;
20583
20584freebsd1*)
20585 dynamic_linker=no
20586 ;;
20587
Reid Spencer2706f8c2004-09-19 23:53:36 +000020588kfreebsd*-gnu)
20589 version_type=linux
20590 need_lib_prefix=no
20591 need_version=no
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 shlibpath_overrides_runpath=no
20596 hardcode_into_libs=yes
20597 dynamic_linker='GNU ld.so'
20598 ;;
20599
Reid Spencera773bd52006-08-04 18:18:08 +000020600freebsd* | dragonfly*)
20601 # DragonFly does not have aout. When/if they implement a new
20602 # versioning mechanism, adjust this.
20603 if test -x /usr/bin/objformat; then
20604 objformat=`/usr/bin/objformat`
20605 else
20606 case $host_os in
20607 freebsd[123]*) objformat=aout ;;
20608 *) objformat=elf ;;
20609 esac
20610 fi
John Criswell47fdd832003-07-14 16:52:07 +000020611 version_type=freebsd-$objformat
20612 case $version_type in
20613 freebsd-elf*)
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20615 need_version=no
20616 need_lib_prefix=no
20617 ;;
20618 freebsd-*)
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20620 need_version=yes
20621 ;;
20622 esac
20623 shlibpath_var=LD_LIBRARY_PATH
20624 case $host_os in
20625 freebsd2*)
20626 shlibpath_overrides_runpath=yes
20627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020628 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020629 shlibpath_overrides_runpath=yes
20630 hardcode_into_libs=yes
20631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020634 shlibpath_overrides_runpath=no
20635 hardcode_into_libs=yes
20636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020637 freebsd*) # from 4.6 on
20638 shlibpath_overrides_runpath=yes
20639 hardcode_into_libs=yes
20640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020641 esac
20642 ;;
20643
20644gnu*)
20645 version_type=linux
20646 need_lib_prefix=no
20647 need_version=no
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 hardcode_into_libs=yes
20652 ;;
20653
20654hpux9* | hpux10* | hpux11*)
20655 # Give a soname corresponding to the major version so that dld.sl refuses to
20656 # link against other versions.
20657 version_type=sunos
20658 need_lib_prefix=no
20659 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020660 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020661 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020662 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020663 hardcode_into_libs=yes
20664 dynamic_linker="$host_os dld.so"
20665 shlibpath_var=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 if test "X$HPUX_IA64_MODE" = X32; then
20670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20671 else
20672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20673 fi
20674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20675 ;;
20676 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020677 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020678 hardcode_into_libs=yes
20679 dynamic_linker="$host_os dld.sl"
20680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20686 ;;
20687 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020688 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020689 dynamic_linker="$host_os dld.sl"
20690 shlibpath_var=SHLIB_PATH
20691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 ;;
20695 esac
20696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20697 postinstall_cmds='chmod 555 $lib'
20698 ;;
20699
Reid Spencera773bd52006-08-04 18:18:08 +000020700interix3*)
20701 version_type=linux
20702 need_lib_prefix=no
20703 need_version=no
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 shlibpath_overrides_runpath=no
20709 hardcode_into_libs=yes
20710 ;;
20711
John Criswell47fdd832003-07-14 16:52:07 +000020712irix5* | irix6* | nonstopux*)
20713 case $host_os in
20714 nonstopux*) version_type=nonstopux ;;
20715 *)
20716 if test "$lt_cv_prog_gnu_ld" = yes; then
20717 version_type=linux
20718 else
20719 version_type=irix
20720 fi ;;
20721 esac
20722 need_lib_prefix=no
20723 need_version=no
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20726 case $host_os in
20727 irix5* | nonstopux*)
20728 libsuff= shlibsuff=
20729 ;;
20730 *)
20731 case $LD in # libtool.m4 will add one of these switches to LD
20732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20733 libsuff= shlibsuff= libmagic=32-bit;;
20734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20735 libsuff=32 shlibsuff=N32 libmagic=N32;;
20736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20738 *) libsuff= shlibsuff= libmagic=never-match;;
20739 esac
20740 ;;
20741 esac
20742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20743 shlibpath_overrides_runpath=no
20744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20746 hardcode_into_libs=yes
20747 ;;
20748
20749# No shared lib support for Linux oldld, aout, or coff.
20750linux*oldld* | linux*aout* | linux*coff*)
20751 dynamic_linker=no
20752 ;;
20753
20754# This must be Linux ELF.
20755linux*)
20756 version_type=linux
20757 need_lib_prefix=no
20758 need_version=no
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760 soname_spec='${libname}${release}${shared_ext}$major'
20761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath=no
20764 # This implies no fast_install, which is unacceptable.
20765 # Some rework will be needed to allow for fast_install
20766 # before this can be enabled.
20767 hardcode_into_libs=yes
20768
Reid Spencer2706f8c2004-09-19 23:53:36 +000020769 # Append ld.so.conf contents to the search path
20770 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020771 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 +000020772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20773 fi
20774
John Criswell47fdd832003-07-14 16:52:07 +000020775 # We used to test for /lib/ld.so.1 and disable shared libraries on
20776 # powerpc, because MkLinux only supported shared libraries with the
20777 # GNU dynamic linker. Since this was broken with cross compilers,
20778 # most powerpc-linux boxes support dynamic linking these days and
20779 # people can always --disable-shared, the test was removed, and we
20780 # assume the GNU/Linux dynamic linker is in use.
20781 dynamic_linker='GNU/Linux ld.so'
20782 ;;
20783
Reid Spencer2706f8c2004-09-19 23:53:36 +000020784knetbsd*-gnu)
20785 version_type=linux
20786 need_lib_prefix=no
20787 need_version=no
20788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20789 soname_spec='${libname}${release}${shared_ext}$major'
20790 shlibpath_var=LD_LIBRARY_PATH
20791 shlibpath_overrides_runpath=no
20792 hardcode_into_libs=yes
20793 dynamic_linker='GNU ld.so'
20794 ;;
20795
John Criswell47fdd832003-07-14 16:52:07 +000020796netbsd*)
20797 version_type=sunos
20798 need_lib_prefix=no
20799 need_version=no
20800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20803 dynamic_linker='NetBSD (a.out) ld.so'
20804 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020806 soname_spec='${libname}${release}${shared_ext}$major'
20807 dynamic_linker='NetBSD ld.elf_so'
20808 fi
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20812 ;;
20813
20814newsos6)
20815 version_type=linux
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 shlibpath_overrides_runpath=yes
20819 ;;
20820
Reid Spencer2706f8c2004-09-19 23:53:36 +000020821nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020822 version_type=linux
20823 need_lib_prefix=no
20824 need_version=no
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 ;;
20830
20831openbsd*)
20832 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020833 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020834 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20836 case $host_os in
20837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20838 *) need_version=no ;;
20839 esac
John Criswell47fdd832003-07-14 16:52:07 +000020840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20844 case $host_os in
20845 openbsd2.[89] | openbsd2.[89].*)
20846 shlibpath_overrides_runpath=no
20847 ;;
20848 *)
20849 shlibpath_overrides_runpath=yes
20850 ;;
20851 esac
20852 else
20853 shlibpath_overrides_runpath=yes
20854 fi
20855 ;;
20856
20857os2*)
20858 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020859 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020860 need_lib_prefix=no
20861 library_names_spec='$libname${shared_ext} $libname.a'
20862 dynamic_linker='OS/2 ld.exe'
20863 shlibpath_var=LIBPATH
20864 ;;
20865
20866osf3* | osf4* | osf5*)
20867 version_type=osf
20868 need_lib_prefix=no
20869 need_version=no
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872 shlibpath_var=LD_LIBRARY_PATH
20873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20875 ;;
20876
John Criswell47fdd832003-07-14 16:52:07 +000020877solaris*)
20878 version_type=linux
20879 need_lib_prefix=no
20880 need_version=no
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 shlibpath_var=LD_LIBRARY_PATH
20884 shlibpath_overrides_runpath=yes
20885 hardcode_into_libs=yes
20886 # ldd complains unless libraries are executable
20887 postinstall_cmds='chmod +x $lib'
20888 ;;
20889
20890sunos4*)
20891 version_type=sunos
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath=yes
20896 if test "$with_gnu_ld" = yes; then
20897 need_lib_prefix=no
20898 fi
20899 need_version=yes
20900 ;;
20901
Reid Spencera773bd52006-08-04 18:18:08 +000020902sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020903 version_type=linux
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20905 soname_spec='${libname}${release}${shared_ext}$major'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 case $host_vendor in
20908 sni)
20909 shlibpath_overrides_runpath=no
20910 need_lib_prefix=no
20911 export_dynamic_flag_spec='${wl}-Blargedynsym'
20912 runpath_var=LD_RUN_PATH
20913 ;;
20914 siemens)
20915 need_lib_prefix=no
20916 ;;
20917 motorola)
20918 need_lib_prefix=no
20919 need_version=no
20920 shlibpath_overrides_runpath=no
20921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20922 ;;
20923 esac
20924 ;;
20925
20926sysv4*MP*)
20927 if test -d /usr/nec ;then
20928 version_type=linux
20929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20930 soname_spec='$libname${shared_ext}.$major'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 fi
20933 ;;
20934
Reid Spencera773bd52006-08-04 18:18:08 +000020935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20936 version_type=freebsd-elf
20937 need_lib_prefix=no
20938 need_version=no
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20940 soname_spec='${libname}${release}${shared_ext}$major'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 hardcode_into_libs=yes
20943 if test "$with_gnu_ld" = yes; then
20944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20945 shlibpath_overrides_runpath=no
20946 else
20947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20948 shlibpath_overrides_runpath=yes
20949 case $host_os in
20950 sco3.2v5*)
20951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20952 ;;
20953 esac
20954 fi
20955 sys_lib_dlsearch_path_spec='/usr/lib'
20956 ;;
20957
John Criswell47fdd832003-07-14 16:52:07 +000020958uts4*)
20959 version_type=linux
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 shlibpath_var=LD_LIBRARY_PATH
20963 ;;
20964
20965*)
20966 dynamic_linker=no
20967 ;;
20968esac
Reid Spencera773bd52006-08-04 18:18:08 +000020969{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20970echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020971test "$dynamic_linker" = no && can_build_shared=no
20972
Reid Spencera773bd52006-08-04 18:18:08 +000020973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20974if test "$GCC" = yes; then
20975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20976fi
20977
20978{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20979echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020980hardcode_action_CXX=
20981if test -n "$hardcode_libdir_flag_spec_CXX" || \
20982 test -n "$runpath_var_CXX" || \
20983 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20984
20985 # We can hardcode non-existant directories.
20986 if test "$hardcode_direct_CXX" != no &&
20987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20988 # have to relink, otherwise we might link with an installed library
20989 # when we should be linking with a yet-to-be-installed one
20990 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20991 test "$hardcode_minus_L_CXX" != no; then
20992 # Linking always hardcodes the temporary library directory.
20993 hardcode_action_CXX=relink
20994 else
20995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20996 hardcode_action_CXX=immediate
20997 fi
20998else
20999 # We cannot hardcode anything, or else we can only hardcode existing
21000 # directories.
21001 hardcode_action_CXX=unsupported
21002fi
Reid Spencera773bd52006-08-04 18:18:08 +000021003{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21004echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021005
21006if test "$hardcode_action_CXX" = relink; then
21007 # Fast installation is not supported
21008 enable_fast_install=no
21009elif test "$shlibpath_overrides_runpath" = yes ||
21010 test "$enable_shared" = no; then
21011 # Fast installation is not necessary
21012 enable_fast_install=needless
21013fi
21014
John Criswell47fdd832003-07-14 16:52:07 +000021015
21016# The else clause should only fire when bootstrapping the
21017# libtool distribution, otherwise you forgot to ship ltmain.sh
21018# with your package, and you will get complaints that there are
21019# no rules to generate ltmain.sh.
21020if test -f "$ltmain"; then
21021 # See if we are running on zsh, and set the options which allow our commands through
21022 # without removal of \ escapes.
21023 if test -n "${ZSH_VERSION+set}" ; then
21024 setopt NO_GLOB_SUBST
21025 fi
21026 # Now quote all the things that may contain metacharacters while being
21027 # careful not to overquote the AC_SUBSTed values. We take copies of the
21028 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021029 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 +000021030 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21033 deplibs_check_method reload_flag reload_cmds need_locks \
21034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21035 lt_cv_sys_global_symbol_to_c_name_address \
21036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21037 old_postinstall_cmds old_postuninstall_cmds \
21038 compiler_CXX \
21039 CC_CXX \
21040 LD_CXX \
21041 lt_prog_compiler_wl_CXX \
21042 lt_prog_compiler_pic_CXX \
21043 lt_prog_compiler_static_CXX \
21044 lt_prog_compiler_no_builtin_flag_CXX \
21045 export_dynamic_flag_spec_CXX \
21046 thread_safe_flag_spec_CXX \
21047 whole_archive_flag_spec_CXX \
21048 enable_shared_with_static_runtimes_CXX \
21049 old_archive_cmds_CXX \
21050 old_archive_from_new_cmds_CXX \
21051 predep_objects_CXX \
21052 postdep_objects_CXX \
21053 predeps_CXX \
21054 postdeps_CXX \
21055 compiler_lib_search_path_CXX \
21056 archive_cmds_CXX \
21057 archive_expsym_cmds_CXX \
21058 postinstall_cmds_CXX \
21059 postuninstall_cmds_CXX \
21060 old_archive_from_expsyms_cmds_CXX \
21061 allow_undefined_flag_CXX \
21062 no_undefined_flag_CXX \
21063 export_symbols_cmds_CXX \
21064 hardcode_libdir_flag_spec_CXX \
21065 hardcode_libdir_flag_spec_ld_CXX \
21066 hardcode_libdir_separator_CXX \
21067 hardcode_automatic_CXX \
21068 module_cmds_CXX \
21069 module_expsym_cmds_CXX \
21070 lt_cv_prog_compiler_c_o_CXX \
21071 exclude_expsyms_CXX \
21072 include_expsyms_CXX; do
21073
21074 case $var in
21075 old_archive_cmds_CXX | \
21076 old_archive_from_new_cmds_CXX | \
21077 archive_cmds_CXX | \
21078 archive_expsym_cmds_CXX | \
21079 module_cmds_CXX | \
21080 module_expsym_cmds_CXX | \
21081 old_archive_from_expsyms_cmds_CXX | \
21082 export_symbols_cmds_CXX | \
21083 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21084 postinstall_cmds | postuninstall_cmds | \
21085 old_postinstall_cmds | old_postuninstall_cmds | \
21086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21087 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021088 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 +000021089 ;;
21090 *)
21091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21092 ;;
21093 esac
21094 done
21095
21096 case $lt_echo in
21097 *'\$0 --fallback-echo"')
21098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21099 ;;
21100 esac
21101
21102cfgfile="$ofile"
21103
21104 cat <<__EOF__ >> "$cfgfile"
21105# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21106
21107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21108
21109# Shell to use when invoking shell scripts.
21110SHELL=$lt_SHELL
21111
21112# Whether or not to build shared libraries.
21113build_libtool_libs=$enable_shared
21114
21115# Whether or not to build static libraries.
21116build_old_libs=$enable_static
21117
21118# Whether or not to add -lc for building shared libraries.
21119build_libtool_need_lc=$archive_cmds_need_lc_CXX
21120
21121# Whether or not to disallow shared libs when runtime libs are static
21122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21123
21124# Whether or not to optimize for fast installation.
21125fast_install=$enable_fast_install
21126
21127# The host system.
21128host_alias=$host_alias
21129host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021130host_os=$host_os
21131
21132# The build system.
21133build_alias=$build_alias
21134build=$build
21135build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021136
21137# An echo program that does not interpret backslashes.
21138echo=$lt_echo
21139
21140# The archiver.
21141AR=$lt_AR
21142AR_FLAGS=$lt_AR_FLAGS
21143
21144# A C compiler.
21145LTCC=$lt_LTCC
21146
Reid Spencera773bd52006-08-04 18:18:08 +000021147# LTCC compiler flags.
21148LTCFLAGS=$lt_LTCFLAGS
21149
John Criswell47fdd832003-07-14 16:52:07 +000021150# A language-specific compiler.
21151CC=$lt_compiler_CXX
21152
21153# Is the compiler the GNU C compiler?
21154with_gcc=$GCC_CXX
21155
21156# An ERE matcher.
21157EGREP=$lt_EGREP
21158
21159# The linker used to build libraries.
21160LD=$lt_LD_CXX
21161
21162# Whether we need hard or soft links.
21163LN_S=$lt_LN_S
21164
21165# A BSD-compatible nm program.
21166NM=$lt_NM
21167
21168# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021169STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021170
21171# Used to examine libraries when file_magic_cmd begins "file"
21172MAGIC_CMD=$MAGIC_CMD
21173
21174# Used on cygwin: DLL creation program.
21175DLLTOOL="$DLLTOOL"
21176
21177# Used on cygwin: object dumper.
21178OBJDUMP="$OBJDUMP"
21179
21180# Used on cygwin: assembler.
21181AS="$AS"
21182
21183# The name of the directory that contains temporary libtool files.
21184objdir=$objdir
21185
21186# How to create reloadable object files.
21187reload_flag=$lt_reload_flag
21188reload_cmds=$lt_reload_cmds
21189
21190# How to pass a linker flag through the compiler.
21191wl=$lt_lt_prog_compiler_wl_CXX
21192
21193# Object file suffix (normally "o").
21194objext="$ac_objext"
21195
21196# Old archive suffix (normally "a").
21197libext="$libext"
21198
21199# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021200shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021201
21202# Executable file suffix (normally "").
21203exeext="$exeext"
21204
21205# Additional compiler flags for building library objects.
21206pic_flag=$lt_lt_prog_compiler_pic_CXX
21207pic_mode=$pic_mode
21208
21209# What is the maximum length of a command?
21210max_cmd_len=$lt_cv_sys_max_cmd_len
21211
21212# Does compiler simultaneously support -c and -o options?
21213compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21214
Reid Spencera773bd52006-08-04 18:18:08 +000021215# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021216need_locks=$lt_need_locks
21217
21218# Do we need the lib prefix for modules?
21219need_lib_prefix=$need_lib_prefix
21220
21221# Do we need a version for libraries?
21222need_version=$need_version
21223
21224# Whether dlopen is supported.
21225dlopen_support=$enable_dlopen
21226
21227# Whether dlopen of programs is supported.
21228dlopen_self=$enable_dlopen_self
21229
21230# Whether dlopen of statically linked programs is supported.
21231dlopen_self_static=$enable_dlopen_self_static
21232
21233# Compiler flag to prevent dynamic linking.
21234link_static_flag=$lt_lt_prog_compiler_static_CXX
21235
21236# Compiler flag to turn off builtin functions.
21237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21238
21239# Compiler flag to allow reflexive dlopens.
21240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21241
21242# Compiler flag to generate shared objects directly from archives.
21243whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21244
21245# Compiler flag to generate thread-safe objects.
21246thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21247
21248# Library versioning type.
21249version_type=$version_type
21250
21251# Format of library name prefix.
21252libname_spec=$lt_libname_spec
21253
21254# List of archive names. First name is the real one, the rest are links.
21255# The last name is the one that the linker finds with -lNAME.
21256library_names_spec=$lt_library_names_spec
21257
21258# The coded name of the library, if different from the real name.
21259soname_spec=$lt_soname_spec
21260
21261# Commands used to build and install an old-style archive.
21262RANLIB=$lt_RANLIB
21263old_archive_cmds=$lt_old_archive_cmds_CXX
21264old_postinstall_cmds=$lt_old_postinstall_cmds
21265old_postuninstall_cmds=$lt_old_postuninstall_cmds
21266
21267# Create an old-style archive from a shared archive.
21268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21269
21270# Create a temporary old-style archive to link instead of a shared archive.
21271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21272
21273# Commands used to build and install a shared archive.
21274archive_cmds=$lt_archive_cmds_CXX
21275archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21276postinstall_cmds=$lt_postinstall_cmds
21277postuninstall_cmds=$lt_postuninstall_cmds
21278
21279# Commands used to build a loadable module (assumed same as above if empty)
21280module_cmds=$lt_module_cmds_CXX
21281module_expsym_cmds=$lt_module_expsym_cmds_CXX
21282
21283# Commands to strip libraries.
21284old_striplib=$lt_old_striplib
21285striplib=$lt_striplib
21286
21287# Dependencies to place before the objects being linked to create a
21288# shared library.
21289predep_objects=$lt_predep_objects_CXX
21290
21291# Dependencies to place after the objects being linked to create a
21292# shared library.
21293postdep_objects=$lt_postdep_objects_CXX
21294
21295# Dependencies to place before the objects being linked to create a
21296# shared library.
21297predeps=$lt_predeps_CXX
21298
21299# Dependencies to place after the objects being linked to create a
21300# shared library.
21301postdeps=$lt_postdeps_CXX
21302
21303# The library search path used internally by the compiler when linking
21304# a shared library.
21305compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21306
21307# Method to check whether dependent libraries are shared objects.
21308deplibs_check_method=$lt_deplibs_check_method
21309
21310# Command to use when deplibs_check_method == file_magic.
21311file_magic_cmd=$lt_file_magic_cmd
21312
21313# Flag that allows shared libraries with undefined symbols to be built.
21314allow_undefined_flag=$lt_allow_undefined_flag_CXX
21315
21316# Flag that forces no undefined symbols.
21317no_undefined_flag=$lt_no_undefined_flag_CXX
21318
21319# Commands used to finish a libtool library installation in a directory.
21320finish_cmds=$lt_finish_cmds
21321
21322# Same as above, but a single script fragment to be evaled but not shown.
21323finish_eval=$lt_finish_eval
21324
21325# Take the output of nm and produce a listing of raw symbols and C names.
21326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21327
21328# Transform the output of nm in a proper C declaration
21329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21330
21331# Transform the output of nm in a C name address pair
21332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21333
21334# This is the shared library runtime path variable.
21335runpath_var=$runpath_var
21336
21337# This is the shared library path variable.
21338shlibpath_var=$shlibpath_var
21339
21340# Is shlibpath searched before the hard-coded library search path?
21341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21342
21343# How to hardcode a shared library path into an executable.
21344hardcode_action=$hardcode_action_CXX
21345
21346# Whether we should hardcode library paths into libraries.
21347hardcode_into_libs=$hardcode_into_libs
21348
21349# Flag to hardcode \$libdir into a binary during linking.
21350# This must work even if \$libdir does not exist.
21351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21352
21353# If ld is used when linking, flag to hardcode \$libdir into
21354# a binary during linking. This must work even if \$libdir does
21355# not exist.
21356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21357
21358# Whether we need a single -rpath flag with a separated argument.
21359hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21360
21361# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21362# resulting binary.
21363hardcode_direct=$hardcode_direct_CXX
21364
21365# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21366# resulting binary.
21367hardcode_minus_L=$hardcode_minus_L_CXX
21368
21369# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21370# the resulting binary.
21371hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21372
21373# Set to yes if building a shared library automatically hardcodes DIR into the library
21374# and all subsequent libraries and executables linked against it.
21375hardcode_automatic=$hardcode_automatic_CXX
21376
21377# Variables whose values should be saved in libtool wrapper scripts and
21378# restored at relink time.
21379variables_saved_for_relink="$variables_saved_for_relink"
21380
21381# Whether libtool must link a program against all its dependency libraries.
21382link_all_deplibs=$link_all_deplibs_CXX
21383
21384# Compile-time system search path for libraries
21385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21386
21387# Run-time system search path for libraries
21388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21389
21390# Fix the shell variable \$srcfile for the compiler.
21391fix_srcfile_path="$fix_srcfile_path_CXX"
21392
21393# Set to yes if exported symbols are required.
21394always_export_symbols=$always_export_symbols_CXX
21395
21396# The commands to list exported symbols.
21397export_symbols_cmds=$lt_export_symbols_cmds_CXX
21398
21399# The commands to extract the exported symbol list from a shared archive.
21400extract_expsyms_cmds=$lt_extract_expsyms_cmds
21401
21402# Symbols that should not be listed in the preloaded symbols.
21403exclude_expsyms=$lt_exclude_expsyms_CXX
21404
21405# Symbols that must always be exported.
21406include_expsyms=$lt_include_expsyms_CXX
21407
21408# ### END LIBTOOL TAG CONFIG: $tagname
21409
21410__EOF__
21411
21412
21413else
21414 # If there is no Makefile yet, we rely on a make rule to execute
21415 # `config.status --recheck' to rerun these tests and create the
21416 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021417 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21418 if test -f "$ltmain_in"; then
21419 test -f Makefile && make "$ltmain"
21420 fi
John Criswell47fdd832003-07-14 16:52:07 +000021421fi
21422
21423
21424ac_ext=c
21425ac_cpp='$CPP $CPPFLAGS'
21426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21428ac_compiler_gnu=$ac_cv_c_compiler_gnu
21429
21430CC=$lt_save_CC
21431LDCXX=$LD
21432LD=$lt_save_LD
21433GCC=$lt_save_GCC
21434with_gnu_ldcxx=$with_gnu_ld
21435with_gnu_ld=$lt_save_with_gnu_ld
21436lt_cv_path_LDCXX=$lt_cv_path_LD
21437lt_cv_path_LD=$lt_save_path_LD
21438lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21439lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21440
21441 else
21442 tagname=""
21443 fi
21444 ;;
21445
21446 F77)
21447 if test -n "$F77" && test "X$F77" != "Xno"; then
21448
21449ac_ext=f
21450ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21451ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21453
21454
21455archive_cmds_need_lc_F77=no
21456allow_undefined_flag_F77=
21457always_export_symbols_F77=no
21458archive_expsym_cmds_F77=
21459export_dynamic_flag_spec_F77=
21460hardcode_direct_F77=no
21461hardcode_libdir_flag_spec_F77=
21462hardcode_libdir_flag_spec_ld_F77=
21463hardcode_libdir_separator_F77=
21464hardcode_minus_L_F77=no
21465hardcode_automatic_F77=no
21466module_cmds_F77=
21467module_expsym_cmds_F77=
21468link_all_deplibs_F77=unknown
21469old_archive_cmds_F77=$old_archive_cmds
21470no_undefined_flag_F77=
21471whole_archive_flag_spec_F77=
21472enable_shared_with_static_runtimes_F77=no
21473
21474# Source file extension for f77 test sources.
21475ac_ext=f
21476
21477# Object file extension for compiled f77 test sources.
21478objext=o
21479objext_F77=$objext
21480
21481# Code to be used in simple compile tests
21482lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21483
21484# Code to be used in simple link tests
21485lt_simple_link_test_code=" program t\n end\n"
21486
21487# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21488
21489# If no C compiler was specified, use CC.
21490LTCC=${LTCC-"$CC"}
21491
Reid Spencera773bd52006-08-04 18:18:08 +000021492# If no C compiler flags were specified, use CFLAGS.
21493LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21494
John Criswell47fdd832003-07-14 16:52:07 +000021495# Allow CC to be a program name with arguments.
21496compiler=$CC
21497
21498
Reid Spencera773bd52006-08-04 18:18:08 +000021499# save warnings/boilerplate of simple test code
21500ac_outfile=conftest.$ac_objext
21501printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21502eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21503_lt_compiler_boilerplate=`cat conftest.err`
21504$rm conftest*
21505
21506ac_outfile=conftest.$ac_objext
21507printf "$lt_simple_link_test_code" >conftest.$ac_ext
21508eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21509_lt_linker_boilerplate=`cat conftest.err`
21510$rm conftest*
21511
21512
John Criswell47fdd832003-07-14 16:52:07 +000021513# Allow CC to be a program name with arguments.
21514lt_save_CC="$CC"
21515CC=${F77-"f77"}
21516compiler=$CC
21517compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021518for cc_temp in $compiler""; do
21519 case $cc_temp in
21520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21522 \-*) ;;
21523 *) break;;
21524 esac
21525done
21526cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021527
John Criswell47fdd832003-07-14 16:52:07 +000021528
Reid Spencera773bd52006-08-04 18:18:08 +000021529{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21530echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21531{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21532echo "${ECHO_T}$can_build_shared" >&6; }
21533
21534{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21535echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021536test "$can_build_shared" = "no" && enable_shared=no
21537
21538# On AIX, shared libraries and static libraries use the same namespace, and
21539# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021540case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021541aix3*)
21542 test "$enable_shared" = yes && enable_static=no
21543 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021545 postinstall_cmds='$RANLIB $lib'
21546 fi
21547 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021548aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21550 test "$enable_shared" = yes && enable_static=no
21551 fi
John Criswell47fdd832003-07-14 16:52:07 +000021552 ;;
21553esac
Reid Spencera773bd52006-08-04 18:18:08 +000021554{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21555echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021556
Reid Spencera773bd52006-08-04 18:18:08 +000021557{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21558echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021559# Make sure either enable_shared or enable_static is yes.
21560test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021561{ echo "$as_me:$LINENO: result: $enable_static" >&5
21562echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021563
21564GCC_F77="$G77"
21565LD_F77="$LD"
21566
21567lt_prog_compiler_wl_F77=
21568lt_prog_compiler_pic_F77=
21569lt_prog_compiler_static_F77=
21570
Reid Spencera773bd52006-08-04 18:18:08 +000021571{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21572echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021573
21574 if test "$GCC" = yes; then
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 lt_prog_compiler_static_F77='-static'
21577
21578 case $host_os in
21579 aix*)
21580 # All AIX code is PIC.
21581 if test "$host_cpu" = ia64; then
21582 # AIX 5 now supports IA64 processor
21583 lt_prog_compiler_static_F77='-Bstatic'
21584 fi
21585 ;;
21586
21587 amigaos*)
21588 # FIXME: we need at least 68020 code to build shared libraries, but
21589 # adding the `-m68020' flag to GCC prevents building anything better,
21590 # like `-m68040'.
21591 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21592 ;;
21593
21594 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21595 # PIC is the default for these OSes.
21596 ;;
21597
21598 mingw* | pw32* | os2*)
21599 # This hack is so that the source file can tell whether it is being
21600 # built for inclusion in a dll (and should export symbols for example).
21601 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21602 ;;
21603
21604 darwin* | rhapsody*)
21605 # PIC is the default on this platform
21606 # Common symbols not allowed in MH_DYLIB files
21607 lt_prog_compiler_pic_F77='-fno-common'
21608 ;;
21609
Reid Spencera773bd52006-08-04 18:18:08 +000021610 interix3*)
21611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21612 # Instead, we relocate shared libraries at runtime.
21613 ;;
21614
John Criswell47fdd832003-07-14 16:52:07 +000021615 msdosdjgpp*)
21616 # Just because we use GCC doesn't mean we suddenly get shared libraries
21617 # on systems that don't support them.
21618 lt_prog_compiler_can_build_shared_F77=no
21619 enable_shared=no
21620 ;;
21621
21622 sysv4*MP*)
21623 if test -d /usr/nec; then
21624 lt_prog_compiler_pic_F77=-Kconform_pic
21625 fi
21626 ;;
21627
21628 hpux*)
21629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021631 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021632 hppa*64*|ia64*)
21633 # +Z the default
21634 ;;
21635 *)
21636 lt_prog_compiler_pic_F77='-fPIC'
21637 ;;
21638 esac
21639 ;;
21640
21641 *)
21642 lt_prog_compiler_pic_F77='-fPIC'
21643 ;;
21644 esac
21645 else
21646 # PORTME Check for flag to pass linker flags through the system compiler.
21647 case $host_os in
21648 aix*)
21649 lt_prog_compiler_wl_F77='-Wl,'
21650 if test "$host_cpu" = ia64; then
21651 # AIX 5 now supports IA64 processor
21652 lt_prog_compiler_static_F77='-Bstatic'
21653 else
21654 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21655 fi
21656 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021657 darwin*)
21658 # PIC is the default on this platform
21659 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021660 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021661 xlc*)
21662 lt_prog_compiler_pic_F77='-qnocommon'
21663 lt_prog_compiler_wl_F77='-Wl,'
21664 ;;
21665 esac
21666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021667
21668 mingw* | pw32* | os2*)
21669 # This hack is so that the source file can tell whether it is being
21670 # built for inclusion in a dll (and should export symbols for example).
21671 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21672 ;;
21673
21674 hpux9* | hpux10* | hpux11*)
21675 lt_prog_compiler_wl_F77='-Wl,'
21676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21677 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021678 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021679 hppa*64*|ia64*)
21680 # +Z the default
21681 ;;
21682 *)
21683 lt_prog_compiler_pic_F77='+Z'
21684 ;;
21685 esac
21686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21687 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21688 ;;
21689
21690 irix5* | irix6* | nonstopux*)
21691 lt_prog_compiler_wl_F77='-Wl,'
21692 # PIC (with -KPIC) is the default.
21693 lt_prog_compiler_static_F77='-non_shared'
21694 ;;
21695
21696 newsos6)
21697 lt_prog_compiler_pic_F77='-KPIC'
21698 lt_prog_compiler_static_F77='-Bstatic'
21699 ;;
21700
21701 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021702 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021703 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021704 lt_prog_compiler_wl_F77='-Wl,'
21705 lt_prog_compiler_pic_F77='-KPIC'
21706 lt_prog_compiler_static_F77='-static'
21707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021708 pgcc* | pgf77* | pgf90* | pgf95*)
21709 # Portland Group compilers (*not* the Pentium gcc compiler,
21710 # which looks to be a dead project)
21711 lt_prog_compiler_wl_F77='-Wl,'
21712 lt_prog_compiler_pic_F77='-fpic'
21713 lt_prog_compiler_static_F77='-Bstatic'
21714 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021715 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021716 lt_prog_compiler_wl_F77='-Wl,'
21717 # All Alpha code is PIC.
21718 lt_prog_compiler_static_F77='-non_shared'
21719 ;;
21720 esac
21721 ;;
21722
21723 osf3* | osf4* | osf5*)
21724 lt_prog_compiler_wl_F77='-Wl,'
21725 # All OSF/1 code is PIC.
21726 lt_prog_compiler_static_F77='-non_shared'
21727 ;;
21728
John Criswell47fdd832003-07-14 16:52:07 +000021729 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021730 lt_prog_compiler_pic_F77='-KPIC'
21731 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021732 case $cc_basename in
21733 f77* | f90* | f95*)
21734 lt_prog_compiler_wl_F77='-Qoption ld ';;
21735 *)
21736 lt_prog_compiler_wl_F77='-Wl,';;
21737 esac
John Criswell47fdd832003-07-14 16:52:07 +000021738 ;;
21739
21740 sunos4*)
21741 lt_prog_compiler_wl_F77='-Qoption ld '
21742 lt_prog_compiler_pic_F77='-PIC'
21743 lt_prog_compiler_static_F77='-Bstatic'
21744 ;;
21745
Reid Spencera773bd52006-08-04 18:18:08 +000021746 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021747 lt_prog_compiler_wl_F77='-Wl,'
21748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
21750 ;;
21751
21752 sysv4*MP*)
21753 if test -d /usr/nec ;then
21754 lt_prog_compiler_pic_F77='-Kconform_pic'
21755 lt_prog_compiler_static_F77='-Bstatic'
21756 fi
21757 ;;
21758
Reid Spencera773bd52006-08-04 18:18:08 +000021759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21760 lt_prog_compiler_wl_F77='-Wl,'
21761 lt_prog_compiler_pic_F77='-KPIC'
21762 lt_prog_compiler_static_F77='-Bstatic'
21763 ;;
21764
21765 unicos*)
21766 lt_prog_compiler_wl_F77='-Wl,'
21767 lt_prog_compiler_can_build_shared_F77=no
21768 ;;
21769
John Criswell47fdd832003-07-14 16:52:07 +000021770 uts4*)
21771 lt_prog_compiler_pic_F77='-pic'
21772 lt_prog_compiler_static_F77='-Bstatic'
21773 ;;
21774
21775 *)
21776 lt_prog_compiler_can_build_shared_F77=no
21777 ;;
21778 esac
21779 fi
21780
Reid Spencera773bd52006-08-04 18:18:08 +000021781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21782echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021783
21784#
21785# Check to make sure the PIC flag actually works.
21786#
21787if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021788
Reid Spencera773bd52006-08-04 18:18:08 +000021789{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21790echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021791if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794 lt_prog_compiler_pic_works_F77=no
21795 ac_outfile=conftest.$ac_objext
21796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21797 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21798 # Insert the option either (1) after the last *FLAGS variable, or
21799 # (2) before a word containing "conftest.", or (3) at the end.
21800 # Note that $ac_compile itself does not contain backslashes and begins
21801 # with a dollar sign (not a hyphen), so the echo should work correctly.
21802 # The option is referenced via a variable to avoid confusing sed.
21803 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21806 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000021807 (eval echo "\"\$as_me:21807: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021808 (eval "$lt_compile" 2>conftest.err)
21809 ac_status=$?
21810 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000021811 echo "$as_me:21811: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021812 if (exit $ac_status) && test -s "$ac_outfile"; then
21813 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021814 # So say no if there are warnings other than the usual output.
21815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021818 lt_prog_compiler_pic_works_F77=yes
21819 fi
21820 fi
21821 $rm conftest*
21822
21823fi
Reid Spencera773bd52006-08-04 18:18:08 +000021824{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21825echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021826
21827if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21828 case $lt_prog_compiler_pic_F77 in
21829 "" | " "*) ;;
21830 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21831 esac
21832else
21833 lt_prog_compiler_pic_F77=
21834 lt_prog_compiler_can_build_shared_F77=no
21835fi
21836
21837fi
Reid Spencera773bd52006-08-04 18:18:08 +000021838case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021839 # For platforms which do not support PIC, -DPIC is meaningless:
21840 *djgpp*)
21841 lt_prog_compiler_pic_F77=
21842 ;;
21843 *)
21844 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21845 ;;
21846esac
21847
Reid Spencera773bd52006-08-04 18:18:08 +000021848#
21849# Check to make sure the static flag actually works.
21850#
21851wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21852{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21853echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21854if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856else
21857 lt_prog_compiler_static_works_F77=no
21858 save_LDFLAGS="$LDFLAGS"
21859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21860 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21862 # The linker can only warn and ignore the option if not recognized
21863 # So say no if there are warnings
21864 if test -s conftest.err; then
21865 # Append any errors to the config.log.
21866 cat conftest.err 1>&5
21867 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21869 if diff conftest.exp conftest.er2 >/dev/null; then
21870 lt_prog_compiler_static_works_F77=yes
21871 fi
21872 else
21873 lt_prog_compiler_static_works_F77=yes
21874 fi
21875 fi
21876 $rm conftest*
21877 LDFLAGS="$save_LDFLAGS"
21878
21879fi
21880{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21881echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21882
21883if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21884 :
21885else
21886 lt_prog_compiler_static_F77=
21887fi
21888
21889
21890{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21891echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021892if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895 lt_cv_prog_compiler_c_o_F77=no
21896 $rm -r conftest 2>/dev/null
21897 mkdir conftest
21898 cd conftest
21899 mkdir out
21900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21901
John Criswell47fdd832003-07-14 16:52:07 +000021902 lt_compiler_flag="-o out/conftest2.$ac_objext"
21903 # Insert the option either (1) after the last *FLAGS variable, or
21904 # (2) before a word containing "conftest.", or (3) at the end.
21905 # Note that $ac_compile itself does not contain backslashes and begins
21906 # with a dollar sign (not a hyphen), so the echo should work correctly.
21907 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21910 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000021911 (eval echo "\"\$as_me:21911: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021912 (eval "$lt_compile" 2>out/conftest.err)
21913 ac_status=$?
21914 cat out/conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000021915 echo "$as_me:21915: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21917 then
21918 # The compiler can only warn and ignore the option if not recognized
21919 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021920 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021923 lt_cv_prog_compiler_c_o_F77=yes
21924 fi
21925 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021926 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927 $rm conftest*
21928 # SGI C++ compiler will create directory out/ii_files/ for
21929 # template instantiation
21930 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21931 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021932 cd ..
21933 rmdir conftest
21934 $rm conftest*
21935
21936fi
Reid Spencera773bd52006-08-04 18:18:08 +000021937{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21938echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021939
21940
21941hard_links="nottested"
21942if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21943 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021944 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21945echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021946 hard_links=yes
21947 $rm conftest*
21948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21949 touch conftest.a
21950 ln conftest.a conftest.b 2>&5 || hard_links=no
21951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021952 { echo "$as_me:$LINENO: result: $hard_links" >&5
21953echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021954 if test "$hard_links" = no; then
21955 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21956echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21957 need_locks=warn
21958 fi
21959else
21960 need_locks=no
21961fi
21962
Reid Spencera773bd52006-08-04 18:18:08 +000021963{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21964echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021965
21966 runpath_var=
21967 allow_undefined_flag_F77=
21968 enable_shared_with_static_runtimes_F77=no
21969 archive_cmds_F77=
21970 archive_expsym_cmds_F77=
21971 old_archive_From_new_cmds_F77=
21972 old_archive_from_expsyms_cmds_F77=
21973 export_dynamic_flag_spec_F77=
21974 whole_archive_flag_spec_F77=
21975 thread_safe_flag_spec_F77=
21976 hardcode_libdir_flag_spec_F77=
21977 hardcode_libdir_flag_spec_ld_F77=
21978 hardcode_libdir_separator_F77=
21979 hardcode_direct_F77=no
21980 hardcode_minus_L_F77=no
21981 hardcode_shlibpath_var_F77=unsupported
21982 link_all_deplibs_F77=unknown
21983 hardcode_automatic_F77=no
21984 module_cmds_F77=
21985 module_expsym_cmds_F77=
21986 always_export_symbols_F77=no
21987 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21988 # include_expsyms should be a list of space-separated symbols to be *always*
21989 # included in the symbol list
21990 include_expsyms_F77=
21991 # exclude_expsyms can be an extended regexp of symbols to exclude
21992 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21993 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21994 # as well as any symbol that contains `d'.
21995 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21997 # platforms (ab)use it in PIC code, but their linkers get confused if
21998 # the symbol is explicitly referenced. Since portable code cannot
21999 # rely on this symbol name, it's probably fine to never include it in
22000 # preloaded symbol tables.
22001 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022002 # Just being paranoid about ensuring that cc_basename is set.
22003 for cc_temp in $compiler""; do
22004 case $cc_temp in
22005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22007 \-*) ;;
22008 *) break;;
22009 esac
22010done
22011cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022012
22013 case $host_os in
22014 cygwin* | mingw* | pw32*)
22015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22016 # When not using gcc, we currently assume that we are using
22017 # Microsoft Visual C++.
22018 if test "$GCC" != yes; then
22019 with_gnu_ld=no
22020 fi
22021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022022 interix*)
22023 # we just hope/assume this is gcc and not c89 (= MSVC++)
22024 with_gnu_ld=yes
22025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022026 openbsd*)
22027 with_gnu_ld=no
22028 ;;
22029 esac
22030
22031 ld_shlibs_F77=yes
22032 if test "$with_gnu_ld" = yes; then
22033 # If archive_cmds runs LD, not CC, wlarc should be empty
22034 wlarc='${wl}'
22035
Reid Spencera773bd52006-08-04 18:18:08 +000022036 # Set some defaults for GNU ld with shared library support. These
22037 # are reset later if shared libraries are not supported. Putting them
22038 # here allows them to be overridden if necessary.
22039 runpath_var=LD_RUN_PATH
22040 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22041 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22042 # ancient GNU ld didn't support --whole-archive et. al.
22043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22044 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22045 else
22046 whole_archive_flag_spec_F77=
22047 fi
22048 supports_anon_versioning=no
22049 case `$LD -v 2>/dev/null` in
22050 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22053 *\ 2.11.*) ;; # other 2.11 versions
22054 *) supports_anon_versioning=yes ;;
22055 esac
22056
John Criswell47fdd832003-07-14 16:52:07 +000022057 # See if GNU ld supports shared libraries.
22058 case $host_os in
22059 aix3* | aix4* | aix5*)
22060 # On AIX/PPC, the GNU linker is very broken
22061 if test "$host_cpu" != ia64; then
22062 ld_shlibs_F77=no
22063 cat <<EOF 1>&2
22064
22065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22066*** to be unable to reliably create shared libraries on AIX.
22067*** Therefore, libtool is disabling shared libraries support. If you
22068*** really care for shared libraries, you may want to modify your PATH
22069*** so that a non-GNU linker is found, and then restart.
22070
22071EOF
22072 fi
22073 ;;
22074
22075 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022076 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 +000022077 hardcode_libdir_flag_spec_F77='-L$libdir'
22078 hardcode_minus_L_F77=yes
22079
22080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22081 # that the semantics of dynamic libraries on AmigaOS, at least up
22082 # to version 4, is to share data among multiple programs linked
22083 # with the same dynamic library. Since this doesn't match the
22084 # behavior of shared libraries on other platforms, we can't use
22085 # them.
22086 ld_shlibs_F77=no
22087 ;;
22088
22089 beos*)
22090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22091 allow_undefined_flag_F77=unsupported
22092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22093 # support --undefined. This deserves some investigation. FIXME
22094 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22095 else
22096 ld_shlibs_F77=no
22097 fi
22098 ;;
22099
22100 cygwin* | mingw* | pw32*)
22101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22102 # as there is no search path for DLLs.
22103 hardcode_libdir_flag_spec_F77='-L$libdir'
22104 allow_undefined_flag_F77=unsupported
22105 always_export_symbols_F77=no
22106 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022107 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 +000022108
22109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022110 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 +000022111 # If the export-symbols file already is a .def file (1st line
22112 # is EXPORTS), use it as is; otherwise, prepend...
22113 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22114 cp $export_symbols $output_objdir/$soname.def;
22115 else
22116 echo EXPORTS > $output_objdir/$soname.def;
22117 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022118 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022119 $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 +000022120 else
Reid Spencera773bd52006-08-04 18:18:08 +000022121 ld_shlibs_F77=no
22122 fi
22123 ;;
22124
22125 interix3*)
22126 hardcode_direct_F77=no
22127 hardcode_shlibpath_var_F77=no
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129 export_dynamic_flag_spec_F77='${wl}-E'
22130 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22131 # Instead, shared libraries are loaded at an image base (0x10000000 by
22132 # default) and relocated if they conflict, which is a slow very memory
22133 # consuming and fragmenting process. To avoid this, we pick a random,
22134 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22135 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22136 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'
22137 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'
22138 ;;
22139
22140 linux*)
22141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142 tmp_addflag=
22143 case $cc_basename,$host_cpu in
22144 pgcc*) # Portland Group C compiler
22145 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'
22146 tmp_addflag=' $pic_flag'
22147 ;;
22148 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22149 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'
22150 tmp_addflag=' $pic_flag -Mnomain' ;;
22151 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22152 tmp_addflag=' -i_dynamic' ;;
22153 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22154 tmp_addflag=' -i_dynamic -nofor_main' ;;
22155 ifc* | ifort*) # Intel Fortran compiler
22156 tmp_addflag=' -nofor_main' ;;
22157 esac
22158 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22159
22160 if test $supports_anon_versioning = yes; then
22161 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22163 $echo "local: *; };" >> $output_objdir/$libname.ver~
22164 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22165 fi
22166 else
22167 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022168 fi
22169 ;;
22170
22171 netbsd*)
22172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22173 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22174 wlarc=
22175 else
22176 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22178 fi
22179 ;;
22180
Reid Spencera773bd52006-08-04 18:18:08 +000022181 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022182 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22183 ld_shlibs_F77=no
22184 cat <<EOF 1>&2
22185
22186*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22187*** create shared libraries on Solaris systems. Therefore, libtool
22188*** is disabling shared libraries support. We urge you to upgrade GNU
22189*** binutils to release 2.9.1 or newer. Another option is to modify
22190*** your PATH or compiler configuration so that the native linker is
22191*** used, and then restart.
22192
22193EOF
22194 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22195 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22196 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22197 else
22198 ld_shlibs_F77=no
22199 fi
22200 ;;
22201
Reid Spencera773bd52006-08-04 18:18:08 +000022202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22203 case `$LD -v 2>&1` in
22204 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22205 ld_shlibs_F77=no
22206 cat <<_LT_EOF 1>&2
22207
22208*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22209*** reliably create shared libraries on SCO systems. Therefore, libtool
22210*** is disabling shared libraries support. We urge you to upgrade GNU
22211*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22212*** your PATH or compiler configuration so that the native linker is
22213*** used, and then restart.
22214
22215_LT_EOF
22216 ;;
22217 *)
22218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22219 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22221 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22222 else
22223 ld_shlibs_F77=no
22224 fi
22225 ;;
22226 esac
22227 ;;
22228
John Criswell47fdd832003-07-14 16:52:07 +000022229 sunos4*)
22230 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22231 wlarc=
22232 hardcode_direct_F77=yes
22233 hardcode_shlibpath_var_F77=no
22234 ;;
22235
22236 *)
22237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22240 else
22241 ld_shlibs_F77=no
22242 fi
22243 ;;
22244 esac
22245
Reid Spencera773bd52006-08-04 18:18:08 +000022246 if test "$ld_shlibs_F77" = no; then
22247 runpath_var=
22248 hardcode_libdir_flag_spec_F77=
22249 export_dynamic_flag_spec_F77=
22250 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022251 fi
22252 else
22253 # PORTME fill in a description of your system's linker (not GNU ld)
22254 case $host_os in
22255 aix3*)
22256 allow_undefined_flag_F77=unsupported
22257 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022258 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 +000022259 # Note: this linker hardcodes the directories in LIBPATH if there
22260 # are no directories specified by -L.
22261 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022263 # Neither direct hardcoding nor static linking is supported with a
22264 # broken collect2.
22265 hardcode_direct_F77=unsupported
22266 fi
22267 ;;
22268
22269 aix4* | aix5*)
22270 if test "$host_cpu" = ia64; then
22271 # On IA64, the linker does run time linking by default, so we don't
22272 # have to do anything special.
22273 aix_use_runtimelinking=no
22274 exp_sym_flag='-Bexport'
22275 no_entry_flag=""
22276 else
22277 # If we're using GNU nm, then we don't want the "-C" option.
22278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22280 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'
22281 else
22282 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'
22283 fi
22284 aix_use_runtimelinking=no
22285
22286 # Test if we are trying to use run time linking or normal
22287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22288 # need to do runtime linking.
22289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22290 for ld_flag in $LDFLAGS; do
22291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22292 aix_use_runtimelinking=yes
22293 break
22294 fi
22295 done
Reid Spencera773bd52006-08-04 18:18:08 +000022296 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022297 esac
22298
22299 exp_sym_flag='-bexport'
22300 no_entry_flag='-bnoentry'
22301 fi
22302
22303 # When large executables or shared objects are built, AIX ld can
22304 # have problems creating the table of contents. If linking a library
22305 # or program results in "error TOC overflow" add -mminimal-toc to
22306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22308
22309 archive_cmds_F77=''
22310 hardcode_direct_F77=yes
22311 hardcode_libdir_separator_F77=':'
22312 link_all_deplibs_F77=yes
22313
22314 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022315 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022316 # We only want to do this on AIX 4.2 and lower, the check
22317 # below for broken collect2 doesn't work under 4.3+
22318 collect2name=`${CC} -print-prog-name=collect2`
22319 if test -f "$collect2name" && \
22320 strings "$collect2name" | grep resolve_lib_name >/dev/null
22321 then
22322 # We have reworked collect2
22323 hardcode_direct_F77=yes
22324 else
22325 # We have old collect2
22326 hardcode_direct_F77=unsupported
22327 # It fails to find uninstalled libraries when the uninstalled
22328 # path is not listed in the libpath. Setting hardcode_minus_L
22329 # to unsupported forces relinking
22330 hardcode_minus_L_F77=yes
22331 hardcode_libdir_flag_spec_F77='-L$libdir'
22332 hardcode_libdir_separator_F77=
22333 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022335 esac
22336 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022337 if test "$aix_use_runtimelinking" = yes; then
22338 shared_flag="$shared_flag "'${wl}-G'
22339 fi
John Criswell47fdd832003-07-14 16:52:07 +000022340 else
22341 # not using gcc
22342 if test "$host_cpu" = ia64; then
22343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22344 # chokes on -Wl,-G. The following line is correct:
22345 shared_flag='-G'
22346 else
Reid Spencera773bd52006-08-04 18:18:08 +000022347 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022348 shared_flag='${wl}-G'
22349 else
22350 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022351 fi
John Criswell47fdd832003-07-14 16:52:07 +000022352 fi
22353 fi
22354
22355 # It seems that -bexpall does not export symbols beginning with
22356 # underscore (_), so it is better to generate a list of symbols to export.
22357 always_export_symbols_F77=yes
22358 if test "$aix_use_runtimelinking" = yes; then
22359 # Warning - without using the other runtime loading flags (-brtl),
22360 # -berok will link without error, but may produce a broken library.
22361 allow_undefined_flag_F77='-berok'
22362 # Determine the default libpath from the value encoded in an empty executable.
22363 cat >conftest.$ac_ext <<_ACEOF
22364 program main
22365
22366 end
22367_ACEOF
22368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022369if { (ac_try="$ac_link"
22370case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22373esac
22374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022377 grep -v '^ *+' conftest.er1 >conftest.err
22378 rm -f conftest.er1
22379 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022381 (exit $ac_status); } &&
22382 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22383 { (case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22386esac
22387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_try") 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest$ac_exeext'
22393 { (case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22396esac
22397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_try") 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022402
22403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22404}'`
22405# Check for a 64-bit object if we didn't find anything.
22406if 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; }
22407}'`; fi
22408else
22409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022410sed 's/^/| /' conftest.$ac_ext >&5
22411
Reid Spencera773bd52006-08-04 18:18:08 +000022412
John Criswell47fdd832003-07-14 16:52:07 +000022413fi
Reid Spencera773bd52006-08-04 18:18:08 +000022414
Bill Wendlingebcceee2009-04-18 11:20:33 +000022415rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022416 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22418
22419 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022420 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 +000022421 else
22422 if test "$host_cpu" = ia64; then
22423 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22424 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022425 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 +000022426 else
22427 # Determine the default libpath from the value encoded in an empty executable.
22428 cat >conftest.$ac_ext <<_ACEOF
22429 program main
22430
22431 end
22432_ACEOF
22433rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022434if { (ac_try="$ac_link"
22435case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22438esac
22439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022446 (exit $ac_status); } &&
22447 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22448 { (case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22451esac
22452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_try") 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest$ac_exeext'
22458 { (case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461esac
22462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_try") 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022467
22468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22469}'`
22470# Check for a 64-bit object if we didn't find anything.
22471if 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; }
22472}'`; fi
22473else
22474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022475sed 's/^/| /' conftest.$ac_ext >&5
22476
Reid Spencera773bd52006-08-04 18:18:08 +000022477
John Criswell47fdd832003-07-14 16:52:07 +000022478fi
Reid Spencera773bd52006-08-04 18:18:08 +000022479
Bill Wendlingebcceee2009-04-18 11:20:33 +000022480rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022481 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22483
22484 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22485 # Warning - without using the other run time loading flags,
22486 # -berok will link without error, but may produce a broken library.
22487 no_undefined_flag_F77=' ${wl}-bernotok'
22488 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022489 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022490 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022491 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022492 # This is similar to how AIX traditionally builds its shared libraries.
22493 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 +000022494 fi
22495 fi
22496 ;;
22497
22498 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022499 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 +000022500 hardcode_libdir_flag_spec_F77='-L$libdir'
22501 hardcode_minus_L_F77=yes
22502 # see comment about different semantics on the GNU ld section
22503 ld_shlibs_F77=no
22504 ;;
22505
Reid Spencer2706f8c2004-09-19 23:53:36 +000022506 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022507 export_dynamic_flag_spec_F77=-rdynamic
22508 ;;
22509
22510 cygwin* | mingw* | pw32*)
22511 # When not using gcc, we currently assume that we are using
22512 # Microsoft Visual C++.
22513 # hardcode_libdir_flag_spec is actually meaningless, as there is
22514 # no search path for DLLs.
22515 hardcode_libdir_flag_spec_F77=' '
22516 allow_undefined_flag_F77=unsupported
22517 # Tell ltmain to make .lib files, not .a files.
22518 libext=lib
22519 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022520 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022521 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022522 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 +000022523 # The linker will automatically build a .lib file if we build a DLL.
22524 old_archive_From_new_cmds_F77='true'
22525 # FIXME: Should let the user specify the lib program.
22526 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022527 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022528 enable_shared_with_static_runtimes_F77=yes
22529 ;;
22530
22531 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022532 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022533 rhapsody* | darwin1.[012])
22534 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22535 ;;
22536 *) # Darwin 1.3 on
22537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22539 else
22540 case ${MACOSX_DEPLOYMENT_TARGET} in
22541 10.[012])
22542 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22543 ;;
22544 10.*)
22545 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22546 ;;
22547 esac
22548 fi
22549 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022550 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022552 hardcode_direct_F77=no
22553 hardcode_automatic_F77=yes
22554 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022555 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022556 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022557 if test "$GCC" = yes ; then
22558 output_verbose_link_cmd='echo'
22559 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22560 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022561 # 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 +000022562 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}'
22563 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 +000022564 else
Reid Spencera773bd52006-08-04 18:18:08 +000022565 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566 xlc*)
22567 output_verbose_link_cmd='echo'
22568 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22569 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022570 # 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 +000022571 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}'
22572 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 +000022573 ;;
22574 *)
22575 ld_shlibs_F77=no
22576 ;;
22577 esac
John Criswell47fdd832003-07-14 16:52:07 +000022578 fi
22579 ;;
22580
22581 dgux*)
22582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22583 hardcode_libdir_flag_spec_F77='-L$libdir'
22584 hardcode_shlibpath_var_F77=no
22585 ;;
22586
22587 freebsd1*)
22588 ld_shlibs_F77=no
22589 ;;
22590
22591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22592 # support. Future versions do this automatically, but an explicit c++rt0.o
22593 # does not break anything, and helps significantly (at the cost of a little
22594 # extra space).
22595 freebsd2.2*)
22596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22597 hardcode_libdir_flag_spec_F77='-R$libdir'
22598 hardcode_direct_F77=yes
22599 hardcode_shlibpath_var_F77=no
22600 ;;
22601
22602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22603 freebsd2*)
22604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22605 hardcode_direct_F77=yes
22606 hardcode_minus_L_F77=yes
22607 hardcode_shlibpath_var_F77=no
22608 ;;
22609
22610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022611 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022612 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22613 hardcode_libdir_flag_spec_F77='-R$libdir'
22614 hardcode_direct_F77=yes
22615 hardcode_shlibpath_var_F77=no
22616 ;;
22617
22618 hpux9*)
22619 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022620 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 +000022621 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022622 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 +000022623 fi
22624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22625 hardcode_libdir_separator_F77=:
22626 hardcode_direct_F77=yes
22627
22628 # hardcode_minus_L: Not really in the search PATH,
22629 # but as the default location of the library.
22630 hardcode_minus_L_F77=yes
22631 export_dynamic_flag_spec_F77='${wl}-E'
22632 ;;
22633
Reid Spencera773bd52006-08-04 18:18:08 +000022634 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022636 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22637 else
22638 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22639 fi
22640 if test "$with_gnu_ld" = no; then
22641 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22642 hardcode_libdir_separator_F77=:
22643
22644 hardcode_direct_F77=yes
22645 export_dynamic_flag_spec_F77='${wl}-E'
22646
22647 # hardcode_minus_L: Not really in the search PATH,
22648 # but as the default location of the library.
22649 hardcode_minus_L_F77=yes
22650 fi
22651 ;;
22652
22653 hpux11*)
22654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22655 case $host_cpu in
22656 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022657 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022659 ia64*)
22660 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22661 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022662 *)
22663 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22664 ;;
22665 esac
22666 else
Reid Spencera773bd52006-08-04 18:18:08 +000022667 case $host_cpu in
22668 hppa*64*)
22669 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22670 ;;
22671 ia64*)
22672 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022673 ;;
22674 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022675 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 +000022676 ;;
22677 esac
22678 fi
22679 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022680 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22681 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022682
Reid Spencera773bd52006-08-04 18:18:08 +000022683 case $host_cpu in
22684 hppa*64*|ia64*)
22685 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22686 hardcode_direct_F77=no
22687 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022688 ;;
22689 *)
John Criswell47fdd832003-07-14 16:52:07 +000022690 hardcode_direct_F77=yes
22691 export_dynamic_flag_spec_F77='${wl}-E'
22692
22693 # hardcode_minus_L: Not really in the search PATH,
22694 # but as the default location of the library.
22695 hardcode_minus_L_F77=yes
22696 ;;
22697 esac
22698 fi
22699 ;;
22700
22701 irix5* | irix6* | nonstopux*)
22702 if test "$GCC" = yes; then
22703 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'
22704 else
22705 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'
22706 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22707 fi
22708 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22709 hardcode_libdir_separator_F77=:
22710 link_all_deplibs_F77=yes
22711 ;;
22712
22713 netbsd*)
22714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22715 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22716 else
22717 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22718 fi
22719 hardcode_libdir_flag_spec_F77='-R$libdir'
22720 hardcode_direct_F77=yes
22721 hardcode_shlibpath_var_F77=no
22722 ;;
22723
22724 newsos6)
22725 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22726 hardcode_direct_F77=yes
22727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22728 hardcode_libdir_separator_F77=:
22729 hardcode_shlibpath_var_F77=no
22730 ;;
22731
22732 openbsd*)
22733 hardcode_direct_F77=yes
22734 hardcode_shlibpath_var_F77=no
22735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22736 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022737 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 +000022738 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22739 export_dynamic_flag_spec_F77='${wl}-E'
22740 else
22741 case $host_os in
22742 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_libdir_flag_spec_F77='-R$libdir'
22745 ;;
22746 *)
22747 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22748 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22749 ;;
22750 esac
22751 fi
22752 ;;
22753
22754 os2*)
22755 hardcode_libdir_flag_spec_F77='-L$libdir'
22756 hardcode_minus_L_F77=yes
22757 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022758 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 +000022759 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22760 ;;
22761
22762 osf3*)
22763 if test "$GCC" = yes; then
22764 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22765 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'
22766 else
22767 allow_undefined_flag_F77=' -expect_unresolved \*'
22768 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'
22769 fi
22770 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22771 hardcode_libdir_separator_F77=:
22772 ;;
22773
22774 osf4* | osf5*) # as osf3* with the addition of -msym flag
22775 if test "$GCC" = yes; then
22776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22777 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'
22778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22779 else
22780 allow_undefined_flag_F77=' -expect_unresolved \*'
22781 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 +000022782 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 +000022783 $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 +000022784
John Criswell47fdd832003-07-14 16:52:07 +000022785 # Both c and cxx compiler support -rpath directly
22786 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22787 fi
22788 hardcode_libdir_separator_F77=:
22789 ;;
22790
John Criswell47fdd832003-07-14 16:52:07 +000022791 solaris*)
22792 no_undefined_flag_F77=' -z text'
22793 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022794 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022796 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22797 $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 +000022798 else
Reid Spencera773bd52006-08-04 18:18:08 +000022799 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022800 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022801 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22802 $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 +000022803 fi
22804 hardcode_libdir_flag_spec_F77='-R$libdir'
22805 hardcode_shlibpath_var_F77=no
22806 case $host_os in
22807 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022808 *)
22809 # The compiler driver will combine linker options so we
22810 # cannot just pass the convience library names through
22811 # without $wl, iff we do not link with $LD.
22812 # Luckily, gcc supports the same syntax we need for Sun Studio.
22813 # Supported since Solaris 2.6 (maybe 2.5.1?)
22814 case $wlarc in
22815 '')
22816 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22817 *)
22818 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' ;;
22819 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022820 esac
22821 link_all_deplibs_F77=yes
22822 ;;
22823
22824 sunos4*)
22825 if test "x$host_vendor" = xsequent; then
22826 # Use $CC to link under sequent, because it throws in some extra .o
22827 # files that make .init and .fini sections work.
22828 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22829 else
22830 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22831 fi
22832 hardcode_libdir_flag_spec_F77='-L$libdir'
22833 hardcode_direct_F77=yes
22834 hardcode_minus_L_F77=yes
22835 hardcode_shlibpath_var_F77=no
22836 ;;
22837
22838 sysv4)
22839 case $host_vendor in
22840 sni)
22841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842 hardcode_direct_F77=yes # is this really true???
22843 ;;
22844 siemens)
22845 ## LD is ld it makes a PLAMLIB
22846 ## CC just makes a GrossModule.
22847 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22848 reload_cmds_F77='$CC -r -o $output$reload_objs'
22849 hardcode_direct_F77=no
22850 ;;
22851 motorola)
22852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22853 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22854 ;;
22855 esac
22856 runpath_var='LD_RUN_PATH'
22857 hardcode_shlibpath_var_F77=no
22858 ;;
22859
22860 sysv4.3*)
22861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22862 hardcode_shlibpath_var_F77=no
22863 export_dynamic_flag_spec_F77='-Bexport'
22864 ;;
22865
22866 sysv4*MP*)
22867 if test -d /usr/nec; then
22868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22869 hardcode_shlibpath_var_F77=no
22870 runpath_var=LD_RUN_PATH
22871 hardcode_runpath_var=yes
22872 ld_shlibs_F77=yes
22873 fi
22874 ;;
22875
Reid Spencera773bd52006-08-04 18:18:08 +000022876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22877 no_undefined_flag_F77='${wl}-z,text'
22878 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022879 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022880 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022881
John Criswell47fdd832003-07-14 16:52:07 +000022882 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022883 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22884 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 +000022885 else
Reid Spencera773bd52006-08-04 18:18:08 +000022886 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22887 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 +000022888 fi
John Criswell47fdd832003-07-14 16:52:07 +000022889 ;;
22890
Reid Spencera773bd52006-08-04 18:18:08 +000022891 sysv5* | sco3.2v5* | sco5v6*)
22892 # Note: We can NOT use -z defs as we might desire, because we do not
22893 # link with -lc, and that would cause any symbols used from libc to
22894 # always be unresolved, which means just about no library would
22895 # ever link correctly. If we're not using GNU ld we use -z text
22896 # though, which does catch some bad symbols but isn't as heavy-handed
22897 # as -z defs.
22898 no_undefined_flag_F77='${wl}-z,text'
22899 allow_undefined_flag_F77='${wl}-z,nodefs'
22900 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022901 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022902 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22903 hardcode_libdir_separator_F77=':'
22904 link_all_deplibs_F77=yes
22905 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022906 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022907
22908 if test "$GCC" = yes; then
22909 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22911 else
22912 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22913 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22914 fi
John Criswell47fdd832003-07-14 16:52:07 +000022915 ;;
22916
22917 uts4*)
22918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22919 hardcode_libdir_flag_spec_F77='-L$libdir'
22920 hardcode_shlibpath_var_F77=no
22921 ;;
22922
22923 *)
22924 ld_shlibs_F77=no
22925 ;;
22926 esac
22927 fi
22928
Reid Spencera773bd52006-08-04 18:18:08 +000022929{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22930echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022931test "$ld_shlibs_F77" = no && can_build_shared=no
22932
John Criswell47fdd832003-07-14 16:52:07 +000022933#
22934# Do we need to explicitly link libc?
22935#
22936case "x$archive_cmds_need_lc_F77" in
22937x|xyes)
22938 # Assume -lc should be added
22939 archive_cmds_need_lc_F77=yes
22940
22941 if test "$enable_shared" = yes && test "$GCC" = yes; then
22942 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022943 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022944 # FIXME: we may have to deal with multi-command sequences.
22945 ;;
22946 '$CC '*)
22947 # Test whether the compiler implicitly links with -lc since on some
22948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22949 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022950 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022952 $rm conftest*
22953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22954
22955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22956 (eval $ac_compile) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } 2>conftest.err; then
22960 soname=conftest
22961 lib=conftest
22962 libobjs=conftest.$ac_objext
22963 deplibs=
22964 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022965 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022966 compiler_flags=-v
22967 linker_flags=-v
22968 verstring=
22969 output_objdir=.
22970 libname=conftest
22971 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22972 allow_undefined_flag_F77=
22973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22974 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }
22978 then
22979 archive_cmds_need_lc_F77=no
22980 else
22981 archive_cmds_need_lc_F77=yes
22982 fi
22983 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22984 else
22985 cat conftest.err 1>&5
22986 fi
22987 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22989echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022990 ;;
22991 esac
22992 fi
22993 ;;
22994esac
22995
Reid Spencera773bd52006-08-04 18:18:08 +000022996{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22997echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022998library_names_spec=
22999libname_spec='lib$name'
23000soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023001shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023002postinstall_cmds=
23003postuninstall_cmds=
23004finish_cmds=
23005finish_eval=
23006shlibpath_var=
23007shlibpath_overrides_runpath=unknown
23008version_type=none
23009dynamic_linker="$host_os ld.so"
23010sys_lib_dlsearch_path_spec="/lib /usr/lib"
23011if test "$GCC" = yes; then
23012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23014 # if the path contains ";" then we assume it to be the separator
23015 # otherwise default to the standard path separator (i.e. ":") - it is
23016 # assumed that no part of a normal pathname contains ";" but that should
23017 # okay in the real world where ";" in dirpaths is itself problematic.
23018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23019 else
23020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23021 fi
23022else
23023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23024fi
23025need_lib_prefix=unknown
23026hardcode_into_libs=no
23027
23028# when you set need_version to no, make sure it does not cause -set_version
23029# flags to be left without arguments
23030need_version=unknown
23031
23032case $host_os in
23033aix3*)
23034 version_type=linux
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23036 shlibpath_var=LIBPATH
23037
23038 # AIX 3 has no versioning support, so we append a major version to the name.
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 ;;
23041
23042aix4* | aix5*)
23043 version_type=linux
23044 need_lib_prefix=no
23045 need_version=no
23046 hardcode_into_libs=yes
23047 if test "$host_cpu" = ia64; then
23048 # AIX 5 supports IA64
23049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 else
23052 # With GCC up to 2.95.x, collect2 would create an import file
23053 # for dependence libraries. The import file would start with
23054 # the line `#! .'. This would cause the generated library to
23055 # depend on `.', always an invalid library. This was fixed in
23056 # development snapshots of GCC prior to 3.0.
23057 case $host_os in
23058 aix4 | aix4.[01] | aix4.[01].*)
23059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23060 echo ' yes '
23061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23062 :
23063 else
23064 can_build_shared=no
23065 fi
23066 ;;
23067 esac
23068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23069 # soname into executable. Probably we can add versioning support to
23070 # collect2, so additional links can be useful in future.
23071 if test "$aix_use_runtimelinking" = yes; then
23072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23073 # instead of lib<name>.a to let people know that these are not
23074 # typical AIX shared libraries.
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23076 else
23077 # We preserve .a as extension for shared libraries through AIX4.2
23078 # and later when we are not doing run time linking.
23079 library_names_spec='${libname}${release}.a $libname.a'
23080 soname_spec='${libname}${release}${shared_ext}$major'
23081 fi
23082 shlibpath_var=LIBPATH
23083 fi
23084 ;;
23085
23086amigaos*)
23087 library_names_spec='$libname.ixlibrary $libname.a'
23088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023089 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 +000023090 ;;
23091
23092beos*)
23093 library_names_spec='${libname}${shared_ext}'
23094 dynamic_linker="$host_os ld.so"
23095 shlibpath_var=LIBRARY_PATH
23096 ;;
23097
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023099 version_type=linux
23100 need_version=no
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102 soname_spec='${libname}${release}${shared_ext}$major'
23103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23104 shlibpath_var=LD_LIBRARY_PATH
23105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23107 # the default ld.so.conf also contains /usr/contrib/lib and
23108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23109 # libtool to hard-code these into programs
23110 ;;
23111
23112cygwin* | mingw* | pw32*)
23113 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023114 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023115 need_version=no
23116 need_lib_prefix=no
23117
23118 case $GCC,$host_os in
23119 yes,cygwin* | yes,mingw* | yes,pw32*)
23120 library_names_spec='$libname.dll.a'
23121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023122 postinstall_cmds='base_file=`basename \${file}`~
23123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23124 dldir=$destdir/`dirname \$dlpath`~
23125 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023126 $install_prog $dir/$dlname \$dldir/$dlname~
23127 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23129 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023130 $rm \$dlpath'
23131 shlibpath_overrides_runpath=yes
23132
23133 case $host_os in
23134 cygwin*)
23135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23136 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 +000023137 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023138 ;;
23139 mingw*)
23140 # MinGW DLLs use traditional 'lib' prefix
23141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23143 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23144 # It is most probably a Windows format PATH printed by
23145 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23146 # path with ; separators, and with drive letters. We can handle the
23147 # drive letters (cygwin fileutils understands them), so leave them,
23148 # especially as we might pass files found there to a mingw objdump,
23149 # which wouldn't understand a cygwinified path. Ahh.
23150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23151 else
23152 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23153 fi
23154 ;;
23155 pw32*)
23156 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023157 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 +000023158 ;;
23159 esac
23160 ;;
23161
23162 *)
23163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23164 ;;
23165 esac
23166 dynamic_linker='Win32 ld.exe'
23167 # FIXME: first we should search . and the directory the executable is in
23168 shlibpath_var=PATH
23169 ;;
23170
23171darwin* | rhapsody*)
23172 dynamic_linker="$host_os dyld"
23173 version_type=darwin
23174 need_lib_prefix=no
23175 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023176 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023177 soname_spec='${libname}${release}${major}$shared_ext'
23178 shlibpath_overrides_runpath=yes
23179 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023180 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023181 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023182 if test "$GCC" = yes; then
23183 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"`
23184 else
23185 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023186 fi
23187 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23188 ;;
23189
23190dgux*)
23191 version_type=linux
23192 need_lib_prefix=no
23193 need_version=no
23194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23195 soname_spec='${libname}${release}${shared_ext}$major'
23196 shlibpath_var=LD_LIBRARY_PATH
23197 ;;
23198
23199freebsd1*)
23200 dynamic_linker=no
23201 ;;
23202
Reid Spencer2706f8c2004-09-19 23:53:36 +000023203kfreebsd*-gnu)
23204 version_type=linux
23205 need_lib_prefix=no
23206 need_version=no
23207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23208 soname_spec='${libname}${release}${shared_ext}$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 shlibpath_overrides_runpath=no
23211 hardcode_into_libs=yes
23212 dynamic_linker='GNU ld.so'
23213 ;;
23214
Reid Spencera773bd52006-08-04 18:18:08 +000023215freebsd* | dragonfly*)
23216 # DragonFly does not have aout. When/if they implement a new
23217 # versioning mechanism, adjust this.
23218 if test -x /usr/bin/objformat; then
23219 objformat=`/usr/bin/objformat`
23220 else
23221 case $host_os in
23222 freebsd[123]*) objformat=aout ;;
23223 *) objformat=elf ;;
23224 esac
23225 fi
John Criswell47fdd832003-07-14 16:52:07 +000023226 version_type=freebsd-$objformat
23227 case $version_type in
23228 freebsd-elf*)
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23230 need_version=no
23231 need_lib_prefix=no
23232 ;;
23233 freebsd-*)
23234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23235 need_version=yes
23236 ;;
23237 esac
23238 shlibpath_var=LD_LIBRARY_PATH
23239 case $host_os in
23240 freebsd2*)
23241 shlibpath_overrides_runpath=yes
23242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023243 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023244 shlibpath_overrides_runpath=yes
23245 hardcode_into_libs=yes
23246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023249 shlibpath_overrides_runpath=no
23250 hardcode_into_libs=yes
23251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023252 freebsd*) # from 4.6 on
23253 shlibpath_overrides_runpath=yes
23254 hardcode_into_libs=yes
23255 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023256 esac
23257 ;;
23258
23259gnu*)
23260 version_type=linux
23261 need_lib_prefix=no
23262 need_version=no
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23264 soname_spec='${libname}${release}${shared_ext}$major'
23265 shlibpath_var=LD_LIBRARY_PATH
23266 hardcode_into_libs=yes
23267 ;;
23268
23269hpux9* | hpux10* | hpux11*)
23270 # Give a soname corresponding to the major version so that dld.sl refuses to
23271 # link against other versions.
23272 version_type=sunos
23273 need_lib_prefix=no
23274 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023275 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023276 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023277 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023278 hardcode_into_libs=yes
23279 dynamic_linker="$host_os dld.so"
23280 shlibpath_var=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283 soname_spec='${libname}${release}${shared_ext}$major'
23284 if test "X$HPUX_IA64_MODE" = X32; then
23285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23286 else
23287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23288 fi
23289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23290 ;;
23291 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023292 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023293 hardcode_into_libs=yes
23294 dynamic_linker="$host_os dld.sl"
23295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23301 ;;
23302 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023303 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023304 dynamic_linker="$host_os dld.sl"
23305 shlibpath_var=SHLIB_PATH
23306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308 soname_spec='${libname}${release}${shared_ext}$major'
23309 ;;
23310 esac
23311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23312 postinstall_cmds='chmod 555 $lib'
23313 ;;
23314
Reid Spencera773bd52006-08-04 18:18:08 +000023315interix3*)
23316 version_type=linux
23317 need_lib_prefix=no
23318 need_version=no
23319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23320 soname_spec='${libname}${release}${shared_ext}$major'
23321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 shlibpath_overrides_runpath=no
23324 hardcode_into_libs=yes
23325 ;;
23326
John Criswell47fdd832003-07-14 16:52:07 +000023327irix5* | irix6* | nonstopux*)
23328 case $host_os in
23329 nonstopux*) version_type=nonstopux ;;
23330 *)
23331 if test "$lt_cv_prog_gnu_ld" = yes; then
23332 version_type=linux
23333 else
23334 version_type=irix
23335 fi ;;
23336 esac
23337 need_lib_prefix=no
23338 need_version=no
23339 soname_spec='${libname}${release}${shared_ext}$major'
23340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23341 case $host_os in
23342 irix5* | nonstopux*)
23343 libsuff= shlibsuff=
23344 ;;
23345 *)
23346 case $LD in # libtool.m4 will add one of these switches to LD
23347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23348 libsuff= shlibsuff= libmagic=32-bit;;
23349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23350 libsuff=32 shlibsuff=N32 libmagic=N32;;
23351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23353 *) libsuff= shlibsuff= libmagic=never-match;;
23354 esac
23355 ;;
23356 esac
23357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23358 shlibpath_overrides_runpath=no
23359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23361 hardcode_into_libs=yes
23362 ;;
23363
23364# No shared lib support for Linux oldld, aout, or coff.
23365linux*oldld* | linux*aout* | linux*coff*)
23366 dynamic_linker=no
23367 ;;
23368
23369# This must be Linux ELF.
23370linux*)
23371 version_type=linux
23372 need_lib_prefix=no
23373 need_version=no
23374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23375 soname_spec='${libname}${release}${shared_ext}$major'
23376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23377 shlibpath_var=LD_LIBRARY_PATH
23378 shlibpath_overrides_runpath=no
23379 # This implies no fast_install, which is unacceptable.
23380 # Some rework will be needed to allow for fast_install
23381 # before this can be enabled.
23382 hardcode_into_libs=yes
23383
Reid Spencer2706f8c2004-09-19 23:53:36 +000023384 # Append ld.so.conf contents to the search path
23385 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023386 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 +000023387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23388 fi
23389
John Criswell47fdd832003-07-14 16:52:07 +000023390 # We used to test for /lib/ld.so.1 and disable shared libraries on
23391 # powerpc, because MkLinux only supported shared libraries with the
23392 # GNU dynamic linker. Since this was broken with cross compilers,
23393 # most powerpc-linux boxes support dynamic linking these days and
23394 # people can always --disable-shared, the test was removed, and we
23395 # assume the GNU/Linux dynamic linker is in use.
23396 dynamic_linker='GNU/Linux ld.so'
23397 ;;
23398
Reid Spencer2706f8c2004-09-19 23:53:36 +000023399knetbsd*-gnu)
23400 version_type=linux
23401 need_lib_prefix=no
23402 need_version=no
23403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23404 soname_spec='${libname}${release}${shared_ext}$major'
23405 shlibpath_var=LD_LIBRARY_PATH
23406 shlibpath_overrides_runpath=no
23407 hardcode_into_libs=yes
23408 dynamic_linker='GNU ld.so'
23409 ;;
23410
John Criswell47fdd832003-07-14 16:52:07 +000023411netbsd*)
23412 version_type=sunos
23413 need_lib_prefix=no
23414 need_version=no
23415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23418 dynamic_linker='NetBSD (a.out) ld.so'
23419 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023421 soname_spec='${libname}${release}${shared_ext}$major'
23422 dynamic_linker='NetBSD ld.elf_so'
23423 fi
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes
23426 hardcode_into_libs=yes
23427 ;;
23428
23429newsos6)
23430 version_type=linux
23431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432 shlibpath_var=LD_LIBRARY_PATH
23433 shlibpath_overrides_runpath=yes
23434 ;;
23435
Reid Spencer2706f8c2004-09-19 23:53:36 +000023436nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023437 version_type=linux
23438 need_lib_prefix=no
23439 need_version=no
23440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23441 soname_spec='${libname}${release}${shared_ext}$major'
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23444 ;;
23445
23446openbsd*)
23447 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023448 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023449 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23451 case $host_os in
23452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23453 *) need_version=no ;;
23454 esac
John Criswell47fdd832003-07-14 16:52:07 +000023455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23457 shlibpath_var=LD_LIBRARY_PATH
23458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23459 case $host_os in
23460 openbsd2.[89] | openbsd2.[89].*)
23461 shlibpath_overrides_runpath=no
23462 ;;
23463 *)
23464 shlibpath_overrides_runpath=yes
23465 ;;
23466 esac
23467 else
23468 shlibpath_overrides_runpath=yes
23469 fi
23470 ;;
23471
23472os2*)
23473 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023474 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023475 need_lib_prefix=no
23476 library_names_spec='$libname${shared_ext} $libname.a'
23477 dynamic_linker='OS/2 ld.exe'
23478 shlibpath_var=LIBPATH
23479 ;;
23480
23481osf3* | osf4* | osf5*)
23482 version_type=osf
23483 need_lib_prefix=no
23484 need_version=no
23485 soname_spec='${libname}${release}${shared_ext}$major'
23486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23487 shlibpath_var=LD_LIBRARY_PATH
23488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23490 ;;
23491
John Criswell47fdd832003-07-14 16:52:07 +000023492solaris*)
23493 version_type=linux
23494 need_lib_prefix=no
23495 need_version=no
23496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23497 soname_spec='${libname}${release}${shared_ext}$major'
23498 shlibpath_var=LD_LIBRARY_PATH
23499 shlibpath_overrides_runpath=yes
23500 hardcode_into_libs=yes
23501 # ldd complains unless libraries are executable
23502 postinstall_cmds='chmod +x $lib'
23503 ;;
23504
23505sunos4*)
23506 version_type=sunos
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23509 shlibpath_var=LD_LIBRARY_PATH
23510 shlibpath_overrides_runpath=yes
23511 if test "$with_gnu_ld" = yes; then
23512 need_lib_prefix=no
23513 fi
23514 need_version=yes
23515 ;;
23516
Reid Spencera773bd52006-08-04 18:18:08 +000023517sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023518 version_type=linux
23519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23520 soname_spec='${libname}${release}${shared_ext}$major'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 case $host_vendor in
23523 sni)
23524 shlibpath_overrides_runpath=no
23525 need_lib_prefix=no
23526 export_dynamic_flag_spec='${wl}-Blargedynsym'
23527 runpath_var=LD_RUN_PATH
23528 ;;
23529 siemens)
23530 need_lib_prefix=no
23531 ;;
23532 motorola)
23533 need_lib_prefix=no
23534 need_version=no
23535 shlibpath_overrides_runpath=no
23536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23537 ;;
23538 esac
23539 ;;
23540
23541sysv4*MP*)
23542 if test -d /usr/nec ;then
23543 version_type=linux
23544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23545 soname_spec='$libname${shared_ext}.$major'
23546 shlibpath_var=LD_LIBRARY_PATH
23547 fi
23548 ;;
23549
Reid Spencera773bd52006-08-04 18:18:08 +000023550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23551 version_type=freebsd-elf
23552 need_lib_prefix=no
23553 need_version=no
23554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23555 soname_spec='${libname}${release}${shared_ext}$major'
23556 shlibpath_var=LD_LIBRARY_PATH
23557 hardcode_into_libs=yes
23558 if test "$with_gnu_ld" = yes; then
23559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23560 shlibpath_overrides_runpath=no
23561 else
23562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23563 shlibpath_overrides_runpath=yes
23564 case $host_os in
23565 sco3.2v5*)
23566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23567 ;;
23568 esac
23569 fi
23570 sys_lib_dlsearch_path_spec='/usr/lib'
23571 ;;
23572
John Criswell47fdd832003-07-14 16:52:07 +000023573uts4*)
23574 version_type=linux
23575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576 soname_spec='${libname}${release}${shared_ext}$major'
23577 shlibpath_var=LD_LIBRARY_PATH
23578 ;;
23579
23580*)
23581 dynamic_linker=no
23582 ;;
23583esac
Reid Spencera773bd52006-08-04 18:18:08 +000023584{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23585echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023586test "$dynamic_linker" = no && can_build_shared=no
23587
Reid Spencera773bd52006-08-04 18:18:08 +000023588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23589if test "$GCC" = yes; then
23590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23591fi
23592
23593{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23594echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023595hardcode_action_F77=
23596if test -n "$hardcode_libdir_flag_spec_F77" || \
23597 test -n "$runpath_var_F77" || \
23598 test "X$hardcode_automatic_F77" = "Xyes" ; then
23599
23600 # We can hardcode non-existant directories.
23601 if test "$hardcode_direct_F77" != no &&
23602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23603 # have to relink, otherwise we might link with an installed library
23604 # when we should be linking with a yet-to-be-installed one
23605 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23606 test "$hardcode_minus_L_F77" != no; then
23607 # Linking always hardcodes the temporary library directory.
23608 hardcode_action_F77=relink
23609 else
23610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23611 hardcode_action_F77=immediate
23612 fi
23613else
23614 # We cannot hardcode anything, or else we can only hardcode existing
23615 # directories.
23616 hardcode_action_F77=unsupported
23617fi
Reid Spencera773bd52006-08-04 18:18:08 +000023618{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23619echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023620
23621if test "$hardcode_action_F77" = relink; then
23622 # Fast installation is not supported
23623 enable_fast_install=no
23624elif test "$shlibpath_overrides_runpath" = yes ||
23625 test "$enable_shared" = no; then
23626 # Fast installation is not necessary
23627 enable_fast_install=needless
23628fi
23629
John Criswell47fdd832003-07-14 16:52:07 +000023630
23631# The else clause should only fire when bootstrapping the
23632# libtool distribution, otherwise you forgot to ship ltmain.sh
23633# with your package, and you will get complaints that there are
23634# no rules to generate ltmain.sh.
23635if test -f "$ltmain"; then
23636 # See if we are running on zsh, and set the options which allow our commands through
23637 # without removal of \ escapes.
23638 if test -n "${ZSH_VERSION+set}" ; then
23639 setopt NO_GLOB_SUBST
23640 fi
23641 # Now quote all the things that may contain metacharacters while being
23642 # careful not to overquote the AC_SUBSTed values. We take copies of the
23643 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023644 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 +000023645 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23648 deplibs_check_method reload_flag reload_cmds need_locks \
23649 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23650 lt_cv_sys_global_symbol_to_c_name_address \
23651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23652 old_postinstall_cmds old_postuninstall_cmds \
23653 compiler_F77 \
23654 CC_F77 \
23655 LD_F77 \
23656 lt_prog_compiler_wl_F77 \
23657 lt_prog_compiler_pic_F77 \
23658 lt_prog_compiler_static_F77 \
23659 lt_prog_compiler_no_builtin_flag_F77 \
23660 export_dynamic_flag_spec_F77 \
23661 thread_safe_flag_spec_F77 \
23662 whole_archive_flag_spec_F77 \
23663 enable_shared_with_static_runtimes_F77 \
23664 old_archive_cmds_F77 \
23665 old_archive_from_new_cmds_F77 \
23666 predep_objects_F77 \
23667 postdep_objects_F77 \
23668 predeps_F77 \
23669 postdeps_F77 \
23670 compiler_lib_search_path_F77 \
23671 archive_cmds_F77 \
23672 archive_expsym_cmds_F77 \
23673 postinstall_cmds_F77 \
23674 postuninstall_cmds_F77 \
23675 old_archive_from_expsyms_cmds_F77 \
23676 allow_undefined_flag_F77 \
23677 no_undefined_flag_F77 \
23678 export_symbols_cmds_F77 \
23679 hardcode_libdir_flag_spec_F77 \
23680 hardcode_libdir_flag_spec_ld_F77 \
23681 hardcode_libdir_separator_F77 \
23682 hardcode_automatic_F77 \
23683 module_cmds_F77 \
23684 module_expsym_cmds_F77 \
23685 lt_cv_prog_compiler_c_o_F77 \
23686 exclude_expsyms_F77 \
23687 include_expsyms_F77; do
23688
23689 case $var in
23690 old_archive_cmds_F77 | \
23691 old_archive_from_new_cmds_F77 | \
23692 archive_cmds_F77 | \
23693 archive_expsym_cmds_F77 | \
23694 module_cmds_F77 | \
23695 module_expsym_cmds_F77 | \
23696 old_archive_from_expsyms_cmds_F77 | \
23697 export_symbols_cmds_F77 | \
23698 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23699 postinstall_cmds | postuninstall_cmds | \
23700 old_postinstall_cmds | old_postuninstall_cmds | \
23701 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23702 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023703 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 +000023704 ;;
23705 *)
23706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23707 ;;
23708 esac
23709 done
23710
23711 case $lt_echo in
23712 *'\$0 --fallback-echo"')
23713 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23714 ;;
23715 esac
23716
23717cfgfile="$ofile"
23718
23719 cat <<__EOF__ >> "$cfgfile"
23720# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23721
23722# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23723
23724# Shell to use when invoking shell scripts.
23725SHELL=$lt_SHELL
23726
23727# Whether or not to build shared libraries.
23728build_libtool_libs=$enable_shared
23729
23730# Whether or not to build static libraries.
23731build_old_libs=$enable_static
23732
23733# Whether or not to add -lc for building shared libraries.
23734build_libtool_need_lc=$archive_cmds_need_lc_F77
23735
23736# Whether or not to disallow shared libs when runtime libs are static
23737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23738
23739# Whether or not to optimize for fast installation.
23740fast_install=$enable_fast_install
23741
23742# The host system.
23743host_alias=$host_alias
23744host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023745host_os=$host_os
23746
23747# The build system.
23748build_alias=$build_alias
23749build=$build
23750build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023751
23752# An echo program that does not interpret backslashes.
23753echo=$lt_echo
23754
23755# The archiver.
23756AR=$lt_AR
23757AR_FLAGS=$lt_AR_FLAGS
23758
23759# A C compiler.
23760LTCC=$lt_LTCC
23761
Reid Spencera773bd52006-08-04 18:18:08 +000023762# LTCC compiler flags.
23763LTCFLAGS=$lt_LTCFLAGS
23764
John Criswell47fdd832003-07-14 16:52:07 +000023765# A language-specific compiler.
23766CC=$lt_compiler_F77
23767
23768# Is the compiler the GNU C compiler?
23769with_gcc=$GCC_F77
23770
23771# An ERE matcher.
23772EGREP=$lt_EGREP
23773
23774# The linker used to build libraries.
23775LD=$lt_LD_F77
23776
23777# Whether we need hard or soft links.
23778LN_S=$lt_LN_S
23779
23780# A BSD-compatible nm program.
23781NM=$lt_NM
23782
23783# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023784STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023785
23786# Used to examine libraries when file_magic_cmd begins "file"
23787MAGIC_CMD=$MAGIC_CMD
23788
23789# Used on cygwin: DLL creation program.
23790DLLTOOL="$DLLTOOL"
23791
23792# Used on cygwin: object dumper.
23793OBJDUMP="$OBJDUMP"
23794
23795# Used on cygwin: assembler.
23796AS="$AS"
23797
23798# The name of the directory that contains temporary libtool files.
23799objdir=$objdir
23800
23801# How to create reloadable object files.
23802reload_flag=$lt_reload_flag
23803reload_cmds=$lt_reload_cmds
23804
23805# How to pass a linker flag through the compiler.
23806wl=$lt_lt_prog_compiler_wl_F77
23807
23808# Object file suffix (normally "o").
23809objext="$ac_objext"
23810
23811# Old archive suffix (normally "a").
23812libext="$libext"
23813
23814# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023815shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023816
23817# Executable file suffix (normally "").
23818exeext="$exeext"
23819
23820# Additional compiler flags for building library objects.
23821pic_flag=$lt_lt_prog_compiler_pic_F77
23822pic_mode=$pic_mode
23823
23824# What is the maximum length of a command?
23825max_cmd_len=$lt_cv_sys_max_cmd_len
23826
23827# Does compiler simultaneously support -c and -o options?
23828compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23829
Reid Spencera773bd52006-08-04 18:18:08 +000023830# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023831need_locks=$lt_need_locks
23832
23833# Do we need the lib prefix for modules?
23834need_lib_prefix=$need_lib_prefix
23835
23836# Do we need a version for libraries?
23837need_version=$need_version
23838
23839# Whether dlopen is supported.
23840dlopen_support=$enable_dlopen
23841
23842# Whether dlopen of programs is supported.
23843dlopen_self=$enable_dlopen_self
23844
23845# Whether dlopen of statically linked programs is supported.
23846dlopen_self_static=$enable_dlopen_self_static
23847
23848# Compiler flag to prevent dynamic linking.
23849link_static_flag=$lt_lt_prog_compiler_static_F77
23850
23851# Compiler flag to turn off builtin functions.
23852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23853
23854# Compiler flag to allow reflexive dlopens.
23855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23856
23857# Compiler flag to generate shared objects directly from archives.
23858whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23859
23860# Compiler flag to generate thread-safe objects.
23861thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23862
23863# Library versioning type.
23864version_type=$version_type
23865
23866# Format of library name prefix.
23867libname_spec=$lt_libname_spec
23868
23869# List of archive names. First name is the real one, the rest are links.
23870# The last name is the one that the linker finds with -lNAME.
23871library_names_spec=$lt_library_names_spec
23872
23873# The coded name of the library, if different from the real name.
23874soname_spec=$lt_soname_spec
23875
23876# Commands used to build and install an old-style archive.
23877RANLIB=$lt_RANLIB
23878old_archive_cmds=$lt_old_archive_cmds_F77
23879old_postinstall_cmds=$lt_old_postinstall_cmds
23880old_postuninstall_cmds=$lt_old_postuninstall_cmds
23881
23882# Create an old-style archive from a shared archive.
23883old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23884
23885# Create a temporary old-style archive to link instead of a shared archive.
23886old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23887
23888# Commands used to build and install a shared archive.
23889archive_cmds=$lt_archive_cmds_F77
23890archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23891postinstall_cmds=$lt_postinstall_cmds
23892postuninstall_cmds=$lt_postuninstall_cmds
23893
23894# Commands used to build a loadable module (assumed same as above if empty)
23895module_cmds=$lt_module_cmds_F77
23896module_expsym_cmds=$lt_module_expsym_cmds_F77
23897
23898# Commands to strip libraries.
23899old_striplib=$lt_old_striplib
23900striplib=$lt_striplib
23901
23902# Dependencies to place before the objects being linked to create a
23903# shared library.
23904predep_objects=$lt_predep_objects_F77
23905
23906# Dependencies to place after the objects being linked to create a
23907# shared library.
23908postdep_objects=$lt_postdep_objects_F77
23909
23910# Dependencies to place before the objects being linked to create a
23911# shared library.
23912predeps=$lt_predeps_F77
23913
23914# Dependencies to place after the objects being linked to create a
23915# shared library.
23916postdeps=$lt_postdeps_F77
23917
23918# The library search path used internally by the compiler when linking
23919# a shared library.
23920compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23921
23922# Method to check whether dependent libraries are shared objects.
23923deplibs_check_method=$lt_deplibs_check_method
23924
23925# Command to use when deplibs_check_method == file_magic.
23926file_magic_cmd=$lt_file_magic_cmd
23927
23928# Flag that allows shared libraries with undefined symbols to be built.
23929allow_undefined_flag=$lt_allow_undefined_flag_F77
23930
23931# Flag that forces no undefined symbols.
23932no_undefined_flag=$lt_no_undefined_flag_F77
23933
23934# Commands used to finish a libtool library installation in a directory.
23935finish_cmds=$lt_finish_cmds
23936
23937# Same as above, but a single script fragment to be evaled but not shown.
23938finish_eval=$lt_finish_eval
23939
23940# Take the output of nm and produce a listing of raw symbols and C names.
23941global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23942
23943# Transform the output of nm in a proper C declaration
23944global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23945
23946# Transform the output of nm in a C name address pair
23947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23948
23949# This is the shared library runtime path variable.
23950runpath_var=$runpath_var
23951
23952# This is the shared library path variable.
23953shlibpath_var=$shlibpath_var
23954
23955# Is shlibpath searched before the hard-coded library search path?
23956shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23957
23958# How to hardcode a shared library path into an executable.
23959hardcode_action=$hardcode_action_F77
23960
23961# Whether we should hardcode library paths into libraries.
23962hardcode_into_libs=$hardcode_into_libs
23963
23964# Flag to hardcode \$libdir into a binary during linking.
23965# This must work even if \$libdir does not exist.
23966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23967
23968# If ld is used when linking, flag to hardcode \$libdir into
23969# a binary during linking. This must work even if \$libdir does
23970# not exist.
23971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23972
23973# Whether we need a single -rpath flag with a separated argument.
23974hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23975
23976# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23977# resulting binary.
23978hardcode_direct=$hardcode_direct_F77
23979
23980# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23981# resulting binary.
23982hardcode_minus_L=$hardcode_minus_L_F77
23983
23984# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23985# the resulting binary.
23986hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23987
23988# Set to yes if building a shared library automatically hardcodes DIR into the library
23989# and all subsequent libraries and executables linked against it.
23990hardcode_automatic=$hardcode_automatic_F77
23991
23992# Variables whose values should be saved in libtool wrapper scripts and
23993# restored at relink time.
23994variables_saved_for_relink="$variables_saved_for_relink"
23995
23996# Whether libtool must link a program against all its dependency libraries.
23997link_all_deplibs=$link_all_deplibs_F77
23998
23999# Compile-time system search path for libraries
24000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24001
24002# Run-time system search path for libraries
24003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24004
24005# Fix the shell variable \$srcfile for the compiler.
24006fix_srcfile_path="$fix_srcfile_path_F77"
24007
24008# Set to yes if exported symbols are required.
24009always_export_symbols=$always_export_symbols_F77
24010
24011# The commands to list exported symbols.
24012export_symbols_cmds=$lt_export_symbols_cmds_F77
24013
24014# The commands to extract the exported symbol list from a shared archive.
24015extract_expsyms_cmds=$lt_extract_expsyms_cmds
24016
24017# Symbols that should not be listed in the preloaded symbols.
24018exclude_expsyms=$lt_exclude_expsyms_F77
24019
24020# Symbols that must always be exported.
24021include_expsyms=$lt_include_expsyms_F77
24022
24023# ### END LIBTOOL TAG CONFIG: $tagname
24024
24025__EOF__
24026
24027
24028else
24029 # If there is no Makefile yet, we rely on a make rule to execute
24030 # `config.status --recheck' to rerun these tests and create the
24031 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24033 if test -f "$ltmain_in"; then
24034 test -f Makefile && make "$ltmain"
24035 fi
John Criswell47fdd832003-07-14 16:52:07 +000024036fi
24037
24038
24039ac_ext=c
24040ac_cpp='$CPP $CPPFLAGS'
24041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24043ac_compiler_gnu=$ac_cv_c_compiler_gnu
24044
24045CC="$lt_save_CC"
24046
24047 else
24048 tagname=""
24049 fi
24050 ;;
24051
24052 GCJ)
24053 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024054 ac_ext=c
24055ac_cpp='$CPP $CPPFLAGS'
24056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024059
24060
24061# Source file extension for Java test sources.
24062ac_ext=java
24063
24064# Object file extension for compiled Java test sources.
24065objext=o
24066objext_GCJ=$objext
24067
24068# Code to be used in simple compile tests
24069lt_simple_compile_test_code="class foo {}\n"
24070
24071# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024072lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024073
24074# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24075
24076# If no C compiler was specified, use CC.
24077LTCC=${LTCC-"$CC"}
24078
Reid Spencera773bd52006-08-04 18:18:08 +000024079# If no C compiler flags were specified, use CFLAGS.
24080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24081
John Criswell47fdd832003-07-14 16:52:07 +000024082# Allow CC to be a program name with arguments.
24083compiler=$CC
24084
24085
Reid Spencera773bd52006-08-04 18:18:08 +000024086# save warnings/boilerplate of simple test code
24087ac_outfile=conftest.$ac_objext
24088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24090_lt_compiler_boilerplate=`cat conftest.err`
24091$rm conftest*
24092
24093ac_outfile=conftest.$ac_objext
24094printf "$lt_simple_link_test_code" >conftest.$ac_ext
24095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24096_lt_linker_boilerplate=`cat conftest.err`
24097$rm conftest*
24098
24099
John Criswell47fdd832003-07-14 16:52:07 +000024100# Allow CC to be a program name with arguments.
24101lt_save_CC="$CC"
24102CC=${GCJ-"gcj"}
24103compiler=$CC
24104compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024105for cc_temp in $compiler""; do
24106 case $cc_temp in
24107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24109 \-*) ;;
24110 *) break;;
24111 esac
24112done
24113cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24114
John Criswell47fdd832003-07-14 16:52:07 +000024115
24116# GCJ did not exist at the time GCC didn't implicitly link libc in.
24117archive_cmds_need_lc_GCJ=no
24118
Reid Spencera773bd52006-08-04 18:18:08 +000024119old_archive_cmds_GCJ=$old_archive_cmds
24120
John Criswell47fdd832003-07-14 16:52:07 +000024121
24122lt_prog_compiler_no_builtin_flag_GCJ=
24123
24124if test "$GCC" = yes; then
24125 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24126
Reid Spencer2706f8c2004-09-19 23:53:36 +000024127
Reid Spencera773bd52006-08-04 18:18:08 +000024128{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24129echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024130if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24132else
24133 lt_cv_prog_compiler_rtti_exceptions=no
24134 ac_outfile=conftest.$ac_objext
24135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24136 lt_compiler_flag="-fno-rtti -fno-exceptions"
24137 # Insert the option either (1) after the last *FLAGS variable, or
24138 # (2) before a word containing "conftest.", or (3) at the end.
24139 # Note that $ac_compile itself does not contain backslashes and begins
24140 # with a dollar sign (not a hyphen), so the echo should work correctly.
24141 # The option is referenced via a variable to avoid confusing sed.
24142 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24145 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024146 (eval echo "\"\$as_me:24146: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024147 (eval "$lt_compile" 2>conftest.err)
24148 ac_status=$?
24149 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024150 echo "$as_me:24150: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024151 if (exit $ac_status) && test -s "$ac_outfile"; then
24152 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024153 # So say no if there are warnings other than the usual output.
24154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024157 lt_cv_prog_compiler_rtti_exceptions=yes
24158 fi
24159 fi
24160 $rm conftest*
24161
24162fi
Reid Spencera773bd52006-08-04 18:18:08 +000024163{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24164echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024165
24166if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24167 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24168else
24169 :
24170fi
24171
24172fi
24173
24174lt_prog_compiler_wl_GCJ=
24175lt_prog_compiler_pic_GCJ=
24176lt_prog_compiler_static_GCJ=
24177
Reid Spencera773bd52006-08-04 18:18:08 +000024178{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24179echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024180
24181 if test "$GCC" = yes; then
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 lt_prog_compiler_static_GCJ='-static'
24184
24185 case $host_os in
24186 aix*)
24187 # All AIX code is PIC.
24188 if test "$host_cpu" = ia64; then
24189 # AIX 5 now supports IA64 processor
24190 lt_prog_compiler_static_GCJ='-Bstatic'
24191 fi
24192 ;;
24193
24194 amigaos*)
24195 # FIXME: we need at least 68020 code to build shared libraries, but
24196 # adding the `-m68020' flag to GCC prevents building anything better,
24197 # like `-m68040'.
24198 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24199 ;;
24200
24201 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24202 # PIC is the default for these OSes.
24203 ;;
24204
24205 mingw* | pw32* | os2*)
24206 # This hack is so that the source file can tell whether it is being
24207 # built for inclusion in a dll (and should export symbols for example).
24208 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24209 ;;
24210
24211 darwin* | rhapsody*)
24212 # PIC is the default on this platform
24213 # Common symbols not allowed in MH_DYLIB files
24214 lt_prog_compiler_pic_GCJ='-fno-common'
24215 ;;
24216
Reid Spencera773bd52006-08-04 18:18:08 +000024217 interix3*)
24218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24219 # Instead, we relocate shared libraries at runtime.
24220 ;;
24221
John Criswell47fdd832003-07-14 16:52:07 +000024222 msdosdjgpp*)
24223 # Just because we use GCC doesn't mean we suddenly get shared libraries
24224 # on systems that don't support them.
24225 lt_prog_compiler_can_build_shared_GCJ=no
24226 enable_shared=no
24227 ;;
24228
24229 sysv4*MP*)
24230 if test -d /usr/nec; then
24231 lt_prog_compiler_pic_GCJ=-Kconform_pic
24232 fi
24233 ;;
24234
24235 hpux*)
24236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024238 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024239 hppa*64*|ia64*)
24240 # +Z the default
24241 ;;
24242 *)
24243 lt_prog_compiler_pic_GCJ='-fPIC'
24244 ;;
24245 esac
24246 ;;
24247
24248 *)
24249 lt_prog_compiler_pic_GCJ='-fPIC'
24250 ;;
24251 esac
24252 else
24253 # PORTME Check for flag to pass linker flags through the system compiler.
24254 case $host_os in
24255 aix*)
24256 lt_prog_compiler_wl_GCJ='-Wl,'
24257 if test "$host_cpu" = ia64; then
24258 # AIX 5 now supports IA64 processor
24259 lt_prog_compiler_static_GCJ='-Bstatic'
24260 else
24261 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24262 fi
24263 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024264 darwin*)
24265 # PIC is the default on this platform
24266 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024267 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024268 xlc*)
24269 lt_prog_compiler_pic_GCJ='-qnocommon'
24270 lt_prog_compiler_wl_GCJ='-Wl,'
24271 ;;
24272 esac
24273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024274
24275 mingw* | pw32* | os2*)
24276 # This hack is so that the source file can tell whether it is being
24277 # built for inclusion in a dll (and should export symbols for example).
24278 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24279 ;;
24280
24281 hpux9* | hpux10* | hpux11*)
24282 lt_prog_compiler_wl_GCJ='-Wl,'
24283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24284 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024285 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024286 hppa*64*|ia64*)
24287 # +Z the default
24288 ;;
24289 *)
24290 lt_prog_compiler_pic_GCJ='+Z'
24291 ;;
24292 esac
24293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24294 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24295 ;;
24296
24297 irix5* | irix6* | nonstopux*)
24298 lt_prog_compiler_wl_GCJ='-Wl,'
24299 # PIC (with -KPIC) is the default.
24300 lt_prog_compiler_static_GCJ='-non_shared'
24301 ;;
24302
24303 newsos6)
24304 lt_prog_compiler_pic_GCJ='-KPIC'
24305 lt_prog_compiler_static_GCJ='-Bstatic'
24306 ;;
24307
24308 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024309 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024310 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024311 lt_prog_compiler_wl_GCJ='-Wl,'
24312 lt_prog_compiler_pic_GCJ='-KPIC'
24313 lt_prog_compiler_static_GCJ='-static'
24314 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024315 pgcc* | pgf77* | pgf90* | pgf95*)
24316 # Portland Group compilers (*not* the Pentium gcc compiler,
24317 # which looks to be a dead project)
24318 lt_prog_compiler_wl_GCJ='-Wl,'
24319 lt_prog_compiler_pic_GCJ='-fpic'
24320 lt_prog_compiler_static_GCJ='-Bstatic'
24321 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024322 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 # All Alpha code is PIC.
24325 lt_prog_compiler_static_GCJ='-non_shared'
24326 ;;
24327 esac
24328 ;;
24329
24330 osf3* | osf4* | osf5*)
24331 lt_prog_compiler_wl_GCJ='-Wl,'
24332 # All OSF/1 code is PIC.
24333 lt_prog_compiler_static_GCJ='-non_shared'
24334 ;;
24335
John Criswell47fdd832003-07-14 16:52:07 +000024336 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024337 lt_prog_compiler_pic_GCJ='-KPIC'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024339 case $cc_basename in
24340 f77* | f90* | f95*)
24341 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24342 *)
24343 lt_prog_compiler_wl_GCJ='-Wl,';;
24344 esac
John Criswell47fdd832003-07-14 16:52:07 +000024345 ;;
24346
24347 sunos4*)
24348 lt_prog_compiler_wl_GCJ='-Qoption ld '
24349 lt_prog_compiler_pic_GCJ='-PIC'
24350 lt_prog_compiler_static_GCJ='-Bstatic'
24351 ;;
24352
Reid Spencera773bd52006-08-04 18:18:08 +000024353 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024354 lt_prog_compiler_wl_GCJ='-Wl,'
24355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
24357 ;;
24358
24359 sysv4*MP*)
24360 if test -d /usr/nec ;then
24361 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24362 lt_prog_compiler_static_GCJ='-Bstatic'
24363 fi
24364 ;;
24365
Reid Spencera773bd52006-08-04 18:18:08 +000024366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24367 lt_prog_compiler_wl_GCJ='-Wl,'
24368 lt_prog_compiler_pic_GCJ='-KPIC'
24369 lt_prog_compiler_static_GCJ='-Bstatic'
24370 ;;
24371
24372 unicos*)
24373 lt_prog_compiler_wl_GCJ='-Wl,'
24374 lt_prog_compiler_can_build_shared_GCJ=no
24375 ;;
24376
John Criswell47fdd832003-07-14 16:52:07 +000024377 uts4*)
24378 lt_prog_compiler_pic_GCJ='-pic'
24379 lt_prog_compiler_static_GCJ='-Bstatic'
24380 ;;
24381
24382 *)
24383 lt_prog_compiler_can_build_shared_GCJ=no
24384 ;;
24385 esac
24386 fi
24387
Reid Spencera773bd52006-08-04 18:18:08 +000024388{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24389echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024390
24391#
24392# Check to make sure the PIC flag actually works.
24393#
24394if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024395
Reid Spencera773bd52006-08-04 18:18:08 +000024396{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24397echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024398if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24400else
24401 lt_prog_compiler_pic_works_GCJ=no
24402 ac_outfile=conftest.$ac_objext
24403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24404 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24405 # Insert the option either (1) after the last *FLAGS variable, or
24406 # (2) before a word containing "conftest.", or (3) at the end.
24407 # Note that $ac_compile itself does not contain backslashes and begins
24408 # with a dollar sign (not a hyphen), so the echo should work correctly.
24409 # The option is referenced via a variable to avoid confusing sed.
24410 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24413 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024414 (eval echo "\"\$as_me:24414: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024415 (eval "$lt_compile" 2>conftest.err)
24416 ac_status=$?
24417 cat conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024418 echo "$as_me:24418: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024419 if (exit $ac_status) && test -s "$ac_outfile"; then
24420 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024421 # So say no if there are warnings other than the usual output.
24422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024425 lt_prog_compiler_pic_works_GCJ=yes
24426 fi
24427 fi
24428 $rm conftest*
24429
24430fi
Reid Spencera773bd52006-08-04 18:18:08 +000024431{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24432echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024433
24434if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24435 case $lt_prog_compiler_pic_GCJ in
24436 "" | " "*) ;;
24437 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24438 esac
24439else
24440 lt_prog_compiler_pic_GCJ=
24441 lt_prog_compiler_can_build_shared_GCJ=no
24442fi
24443
24444fi
Reid Spencera773bd52006-08-04 18:18:08 +000024445case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024446 # For platforms which do not support PIC, -DPIC is meaningless:
24447 *djgpp*)
24448 lt_prog_compiler_pic_GCJ=
24449 ;;
24450 *)
24451 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24452 ;;
24453esac
24454
Reid Spencera773bd52006-08-04 18:18:08 +000024455#
24456# Check to make sure the static flag actually works.
24457#
24458wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24459{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24460echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24461if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24463else
24464 lt_prog_compiler_static_works_GCJ=no
24465 save_LDFLAGS="$LDFLAGS"
24466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24467 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24469 # The linker can only warn and ignore the option if not recognized
24470 # So say no if there are warnings
24471 if test -s conftest.err; then
24472 # Append any errors to the config.log.
24473 cat conftest.err 1>&5
24474 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24476 if diff conftest.exp conftest.er2 >/dev/null; then
24477 lt_prog_compiler_static_works_GCJ=yes
24478 fi
24479 else
24480 lt_prog_compiler_static_works_GCJ=yes
24481 fi
24482 fi
24483 $rm conftest*
24484 LDFLAGS="$save_LDFLAGS"
24485
24486fi
24487{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24488echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24489
24490if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24491 :
24492else
24493 lt_prog_compiler_static_GCJ=
24494fi
24495
24496
24497{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24498echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024499if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24501else
24502 lt_cv_prog_compiler_c_o_GCJ=no
24503 $rm -r conftest 2>/dev/null
24504 mkdir conftest
24505 cd conftest
24506 mkdir out
24507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24508
John Criswell47fdd832003-07-14 16:52:07 +000024509 lt_compiler_flag="-o out/conftest2.$ac_objext"
24510 # Insert the option either (1) after the last *FLAGS variable, or
24511 # (2) before a word containing "conftest.", or (3) at the end.
24512 # Note that $ac_compile itself does not contain backslashes and begins
24513 # with a dollar sign (not a hyphen), so the echo should work correctly.
24514 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24517 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024518 (eval echo "\"\$as_me:24518: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024519 (eval "$lt_compile" 2>out/conftest.err)
24520 ac_status=$?
24521 cat out/conftest.err >&5
Jeffrey Yasskine04701a2009-09-23 17:05:42 +000024522 echo "$as_me:24522: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24524 then
24525 # The compiler can only warn and ignore the option if not recognized
24526 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024530 lt_cv_prog_compiler_c_o_GCJ=yes
24531 fi
24532 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024533 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024534 $rm conftest*
24535 # SGI C++ compiler will create directory out/ii_files/ for
24536 # template instantiation
24537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24538 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024539 cd ..
24540 rmdir conftest
24541 $rm conftest*
24542
24543fi
Reid Spencera773bd52006-08-04 18:18:08 +000024544{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24545echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024546
24547
24548hard_links="nottested"
24549if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24550 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024551 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24552echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024553 hard_links=yes
24554 $rm conftest*
24555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24556 touch conftest.a
24557 ln conftest.a conftest.b 2>&5 || hard_links=no
24558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024559 { echo "$as_me:$LINENO: result: $hard_links" >&5
24560echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024561 if test "$hard_links" = no; then
24562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24563echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24564 need_locks=warn
24565 fi
24566else
24567 need_locks=no
24568fi
24569
Reid Spencera773bd52006-08-04 18:18:08 +000024570{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24571echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024572
24573 runpath_var=
24574 allow_undefined_flag_GCJ=
24575 enable_shared_with_static_runtimes_GCJ=no
24576 archive_cmds_GCJ=
24577 archive_expsym_cmds_GCJ=
24578 old_archive_From_new_cmds_GCJ=
24579 old_archive_from_expsyms_cmds_GCJ=
24580 export_dynamic_flag_spec_GCJ=
24581 whole_archive_flag_spec_GCJ=
24582 thread_safe_flag_spec_GCJ=
24583 hardcode_libdir_flag_spec_GCJ=
24584 hardcode_libdir_flag_spec_ld_GCJ=
24585 hardcode_libdir_separator_GCJ=
24586 hardcode_direct_GCJ=no
24587 hardcode_minus_L_GCJ=no
24588 hardcode_shlibpath_var_GCJ=unsupported
24589 link_all_deplibs_GCJ=unknown
24590 hardcode_automatic_GCJ=no
24591 module_cmds_GCJ=
24592 module_expsym_cmds_GCJ=
24593 always_export_symbols_GCJ=no
24594 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24595 # include_expsyms should be a list of space-separated symbols to be *always*
24596 # included in the symbol list
24597 include_expsyms_GCJ=
24598 # exclude_expsyms can be an extended regexp of symbols to exclude
24599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24601 # as well as any symbol that contains `d'.
24602 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24604 # platforms (ab)use it in PIC code, but their linkers get confused if
24605 # the symbol is explicitly referenced. Since portable code cannot
24606 # rely on this symbol name, it's probably fine to never include it in
24607 # preloaded symbol tables.
24608 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024609 # Just being paranoid about ensuring that cc_basename is set.
24610 for cc_temp in $compiler""; do
24611 case $cc_temp in
24612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24614 \-*) ;;
24615 *) break;;
24616 esac
24617done
24618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024619
24620 case $host_os in
24621 cygwin* | mingw* | pw32*)
24622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24623 # When not using gcc, we currently assume that we are using
24624 # Microsoft Visual C++.
24625 if test "$GCC" != yes; then
24626 with_gnu_ld=no
24627 fi
24628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024629 interix*)
24630 # we just hope/assume this is gcc and not c89 (= MSVC++)
24631 with_gnu_ld=yes
24632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024633 openbsd*)
24634 with_gnu_ld=no
24635 ;;
24636 esac
24637
24638 ld_shlibs_GCJ=yes
24639 if test "$with_gnu_ld" = yes; then
24640 # If archive_cmds runs LD, not CC, wlarc should be empty
24641 wlarc='${wl}'
24642
Reid Spencera773bd52006-08-04 18:18:08 +000024643 # Set some defaults for GNU ld with shared library support. These
24644 # are reset later if shared libraries are not supported. Putting them
24645 # here allows them to be overridden if necessary.
24646 runpath_var=LD_RUN_PATH
24647 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24648 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24649 # ancient GNU ld didn't support --whole-archive et. al.
24650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24651 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24652 else
24653 whole_archive_flag_spec_GCJ=
24654 fi
24655 supports_anon_versioning=no
24656 case `$LD -v 2>/dev/null` in
24657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24660 *\ 2.11.*) ;; # other 2.11 versions
24661 *) supports_anon_versioning=yes ;;
24662 esac
24663
John Criswell47fdd832003-07-14 16:52:07 +000024664 # See if GNU ld supports shared libraries.
24665 case $host_os in
24666 aix3* | aix4* | aix5*)
24667 # On AIX/PPC, the GNU linker is very broken
24668 if test "$host_cpu" != ia64; then
24669 ld_shlibs_GCJ=no
24670 cat <<EOF 1>&2
24671
24672*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24673*** to be unable to reliably create shared libraries on AIX.
24674*** Therefore, libtool is disabling shared libraries support. If you
24675*** really care for shared libraries, you may want to modify your PATH
24676*** so that a non-GNU linker is found, and then restart.
24677
24678EOF
24679 fi
24680 ;;
24681
24682 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024683 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 +000024684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685 hardcode_minus_L_GCJ=yes
24686
24687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24688 # that the semantics of dynamic libraries on AmigaOS, at least up
24689 # to version 4, is to share data among multiple programs linked
24690 # with the same dynamic library. Since this doesn't match the
24691 # behavior of shared libraries on other platforms, we can't use
24692 # them.
24693 ld_shlibs_GCJ=no
24694 ;;
24695
24696 beos*)
24697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24698 allow_undefined_flag_GCJ=unsupported
24699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24700 # support --undefined. This deserves some investigation. FIXME
24701 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702 else
24703 ld_shlibs_GCJ=no
24704 fi
24705 ;;
24706
24707 cygwin* | mingw* | pw32*)
24708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24709 # as there is no search path for DLLs.
24710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24711 allow_undefined_flag_GCJ=unsupported
24712 always_export_symbols_GCJ=no
24713 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024714 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 +000024715
24716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024717 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 +000024718 # If the export-symbols file already is a .def file (1st line
24719 # is EXPORTS), use it as is; otherwise, prepend...
24720 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24721 cp $export_symbols $output_objdir/$soname.def;
24722 else
24723 echo EXPORTS > $output_objdir/$soname.def;
24724 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024725 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024726 $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 +000024727 else
Reid Spencera773bd52006-08-04 18:18:08 +000024728 ld_shlibs_GCJ=no
24729 fi
24730 ;;
24731
24732 interix3*)
24733 hardcode_direct_GCJ=no
24734 hardcode_shlibpath_var_GCJ=no
24735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24736 export_dynamic_flag_spec_GCJ='${wl}-E'
24737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24738 # Instead, shared libraries are loaded at an image base (0x10000000 by
24739 # default) and relocated if they conflict, which is a slow very memory
24740 # consuming and fragmenting process. To avoid this, we pick a random,
24741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24743 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'
24744 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'
24745 ;;
24746
24747 linux*)
24748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24749 tmp_addflag=
24750 case $cc_basename,$host_cpu in
24751 pgcc*) # Portland Group C compiler
24752 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'
24753 tmp_addflag=' $pic_flag'
24754 ;;
24755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24756 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'
24757 tmp_addflag=' $pic_flag -Mnomain' ;;
24758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24759 tmp_addflag=' -i_dynamic' ;;
24760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24761 tmp_addflag=' -i_dynamic -nofor_main' ;;
24762 ifc* | ifort*) # Intel Fortran compiler
24763 tmp_addflag=' -nofor_main' ;;
24764 esac
24765 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24766
24767 if test $supports_anon_versioning = yes; then
24768 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24770 $echo "local: *; };" >> $output_objdir/$libname.ver~
24771 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24772 fi
24773 else
24774 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024775 fi
24776 ;;
24777
24778 netbsd*)
24779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24780 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24781 wlarc=
24782 else
24783 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24785 fi
24786 ;;
24787
Reid Spencera773bd52006-08-04 18:18:08 +000024788 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24790 ld_shlibs_GCJ=no
24791 cat <<EOF 1>&2
24792
24793*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24794*** create shared libraries on Solaris systems. Therefore, libtool
24795*** is disabling shared libraries support. We urge you to upgrade GNU
24796*** binutils to release 2.9.1 or newer. Another option is to modify
24797*** your PATH or compiler configuration so that the native linker is
24798*** used, and then restart.
24799
24800EOF
24801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24802 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24803 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24804 else
24805 ld_shlibs_GCJ=no
24806 fi
24807 ;;
24808
Reid Spencera773bd52006-08-04 18:18:08 +000024809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24810 case `$LD -v 2>&1` in
24811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24812 ld_shlibs_GCJ=no
24813 cat <<_LT_EOF 1>&2
24814
24815*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24816*** reliably create shared libraries on SCO systems. Therefore, libtool
24817*** is disabling shared libraries support. We urge you to upgrade GNU
24818*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24819*** your PATH or compiler configuration so that the native linker is
24820*** used, and then restart.
24821
24822_LT_EOF
24823 ;;
24824 *)
24825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24826 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24829 else
24830 ld_shlibs_GCJ=no
24831 fi
24832 ;;
24833 esac
24834 ;;
24835
John Criswell47fdd832003-07-14 16:52:07 +000024836 sunos4*)
24837 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24838 wlarc=
24839 hardcode_direct_GCJ=yes
24840 hardcode_shlibpath_var_GCJ=no
24841 ;;
24842
24843 *)
24844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24847 else
24848 ld_shlibs_GCJ=no
24849 fi
24850 ;;
24851 esac
24852
Reid Spencera773bd52006-08-04 18:18:08 +000024853 if test "$ld_shlibs_GCJ" = no; then
24854 runpath_var=
24855 hardcode_libdir_flag_spec_GCJ=
24856 export_dynamic_flag_spec_GCJ=
24857 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024858 fi
24859 else
24860 # PORTME fill in a description of your system's linker (not GNU ld)
24861 case $host_os in
24862 aix3*)
24863 allow_undefined_flag_GCJ=unsupported
24864 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024865 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 +000024866 # Note: this linker hardcodes the directories in LIBPATH if there
24867 # are no directories specified by -L.
24868 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024870 # Neither direct hardcoding nor static linking is supported with a
24871 # broken collect2.
24872 hardcode_direct_GCJ=unsupported
24873 fi
24874 ;;
24875
24876 aix4* | aix5*)
24877 if test "$host_cpu" = ia64; then
24878 # On IA64, the linker does run time linking by default, so we don't
24879 # have to do anything special.
24880 aix_use_runtimelinking=no
24881 exp_sym_flag='-Bexport'
24882 no_entry_flag=""
24883 else
24884 # If we're using GNU nm, then we don't want the "-C" option.
24885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24886 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24887 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'
24888 else
24889 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'
24890 fi
24891 aix_use_runtimelinking=no
24892
24893 # Test if we are trying to use run time linking or normal
24894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24895 # need to do runtime linking.
24896 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24897 for ld_flag in $LDFLAGS; do
24898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24899 aix_use_runtimelinking=yes
24900 break
24901 fi
24902 done
Reid Spencera773bd52006-08-04 18:18:08 +000024903 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024904 esac
24905
24906 exp_sym_flag='-bexport'
24907 no_entry_flag='-bnoentry'
24908 fi
24909
24910 # When large executables or shared objects are built, AIX ld can
24911 # have problems creating the table of contents. If linking a library
24912 # or program results in "error TOC overflow" add -mminimal-toc to
24913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24915
24916 archive_cmds_GCJ=''
24917 hardcode_direct_GCJ=yes
24918 hardcode_libdir_separator_GCJ=':'
24919 link_all_deplibs_GCJ=yes
24920
24921 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024922 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024923 # We only want to do this on AIX 4.2 and lower, the check
24924 # below for broken collect2 doesn't work under 4.3+
24925 collect2name=`${CC} -print-prog-name=collect2`
24926 if test -f "$collect2name" && \
24927 strings "$collect2name" | grep resolve_lib_name >/dev/null
24928 then
24929 # We have reworked collect2
24930 hardcode_direct_GCJ=yes
24931 else
24932 # We have old collect2
24933 hardcode_direct_GCJ=unsupported
24934 # It fails to find uninstalled libraries when the uninstalled
24935 # path is not listed in the libpath. Setting hardcode_minus_L
24936 # to unsupported forces relinking
24937 hardcode_minus_L_GCJ=yes
24938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24939 hardcode_libdir_separator_GCJ=
24940 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024941 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024942 esac
24943 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024944 if test "$aix_use_runtimelinking" = yes; then
24945 shared_flag="$shared_flag "'${wl}-G'
24946 fi
John Criswell47fdd832003-07-14 16:52:07 +000024947 else
24948 # not using gcc
24949 if test "$host_cpu" = ia64; then
24950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24951 # chokes on -Wl,-G. The following line is correct:
24952 shared_flag='-G'
24953 else
Reid Spencera773bd52006-08-04 18:18:08 +000024954 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024955 shared_flag='${wl}-G'
24956 else
24957 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024958 fi
John Criswell47fdd832003-07-14 16:52:07 +000024959 fi
24960 fi
24961
24962 # It seems that -bexpall does not export symbols beginning with
24963 # underscore (_), so it is better to generate a list of symbols to export.
24964 always_export_symbols_GCJ=yes
24965 if test "$aix_use_runtimelinking" = yes; then
24966 # Warning - without using the other runtime loading flags (-brtl),
24967 # -berok will link without error, but may produce a broken library.
24968 allow_undefined_flag_GCJ='-berok'
24969 # Determine the default libpath from the value encoded in an empty executable.
24970 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024971/* confdefs.h. */
24972_ACEOF
24973cat confdefs.h >>conftest.$ac_ext
24974cat >>conftest.$ac_ext <<_ACEOF
24975/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024976
John Criswell47fdd832003-07-14 16:52:07 +000024977int
24978main ()
24979{
24980
24981 ;
24982 return 0;
24983}
24984_ACEOF
24985rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024986if { (ac_try="$ac_link"
24987case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990esac
24991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000 { (case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25003esac
25004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_try") 2>&5
25006 ac_status=$?
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest$ac_exeext'
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013esac
25014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_try") 2>&5
25016 ac_status=$?
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025019
25020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25021}'`
25022# Check for a 64-bit object if we didn't find anything.
25023if 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; }
25024}'`; fi
25025else
25026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025027sed 's/^/| /' conftest.$ac_ext >&5
25028
Reid Spencera773bd52006-08-04 18:18:08 +000025029
John Criswell47fdd832003-07-14 16:52:07 +000025030fi
Reid Spencera773bd52006-08-04 18:18:08 +000025031
Bill Wendlingebcceee2009-04-18 11:20:33 +000025032rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025033 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25035
25036 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025037 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 +000025038 else
25039 if test "$host_cpu" = ia64; then
25040 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25041 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025042 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 +000025043 else
25044 # Determine the default libpath from the value encoded in an empty executable.
25045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025046/* confdefs.h. */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025051
John Criswell47fdd832003-07-14 16:52:07 +000025052int
25053main ()
25054{
25055
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025061if { (ac_try="$ac_link"
25062case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25065esac
25066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025073 (exit $ac_status); } &&
25074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25075 { (case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25078esac
25079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_try") 2>&5
25081 ac_status=$?
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; } &&
25084 { ac_try='test -s conftest$ac_exeext'
25085 { (case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25088esac
25089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_try") 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025094
25095aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25096}'`
25097# Check for a 64-bit object if we didn't find anything.
25098if 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; }
25099}'`; fi
25100else
25101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025102sed 's/^/| /' conftest.$ac_ext >&5
25103
Reid Spencera773bd52006-08-04 18:18:08 +000025104
John Criswell47fdd832003-07-14 16:52:07 +000025105fi
Reid Spencera773bd52006-08-04 18:18:08 +000025106
Bill Wendlingebcceee2009-04-18 11:20:33 +000025107rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25110
25111 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25112 # Warning - without using the other run time loading flags,
25113 # -berok will link without error, but may produce a broken library.
25114 no_undefined_flag_GCJ=' ${wl}-bernotok'
25115 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025116 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025117 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025118 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025119 # This is similar to how AIX traditionally builds its shared libraries.
25120 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 +000025121 fi
25122 fi
25123 ;;
25124
25125 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025126 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 +000025127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25128 hardcode_minus_L_GCJ=yes
25129 # see comment about different semantics on the GNU ld section
25130 ld_shlibs_GCJ=no
25131 ;;
25132
Reid Spencer2706f8c2004-09-19 23:53:36 +000025133 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025134 export_dynamic_flag_spec_GCJ=-rdynamic
25135 ;;
25136
25137 cygwin* | mingw* | pw32*)
25138 # When not using gcc, we currently assume that we are using
25139 # Microsoft Visual C++.
25140 # hardcode_libdir_flag_spec is actually meaningless, as there is
25141 # no search path for DLLs.
25142 hardcode_libdir_flag_spec_GCJ=' '
25143 allow_undefined_flag_GCJ=unsupported
25144 # Tell ltmain to make .lib files, not .a files.
25145 libext=lib
25146 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025147 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025148 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025149 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 +000025150 # The linker will automatically build a .lib file if we build a DLL.
25151 old_archive_From_new_cmds_GCJ='true'
25152 # FIXME: Should let the user specify the lib program.
25153 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025154 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025155 enable_shared_with_static_runtimes_GCJ=yes
25156 ;;
25157
25158 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025159 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025160 rhapsody* | darwin1.[012])
25161 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25162 ;;
25163 *) # Darwin 1.3 on
25164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25166 else
25167 case ${MACOSX_DEPLOYMENT_TARGET} in
25168 10.[012])
25169 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25170 ;;
25171 10.*)
25172 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25173 ;;
25174 esac
25175 fi
25176 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025177 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025179 hardcode_direct_GCJ=no
25180 hardcode_automatic_GCJ=yes
25181 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025182 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025183 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025184 if test "$GCC" = yes ; then
25185 output_verbose_link_cmd='echo'
25186 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25187 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025188 # 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 +000025189 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}'
25190 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 +000025191 else
Reid Spencera773bd52006-08-04 18:18:08 +000025192 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 xlc*)
25194 output_verbose_link_cmd='echo'
25195 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25196 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025197 # 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 +000025198 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}'
25199 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 +000025200 ;;
25201 *)
25202 ld_shlibs_GCJ=no
25203 ;;
25204 esac
John Criswell47fdd832003-07-14 16:52:07 +000025205 fi
25206 ;;
25207
25208 dgux*)
25209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25210 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25211 hardcode_shlibpath_var_GCJ=no
25212 ;;
25213
25214 freebsd1*)
25215 ld_shlibs_GCJ=no
25216 ;;
25217
25218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25219 # support. Future versions do this automatically, but an explicit c++rt0.o
25220 # does not break anything, and helps significantly (at the cost of a little
25221 # extra space).
25222 freebsd2.2*)
25223 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25225 hardcode_direct_GCJ=yes
25226 hardcode_shlibpath_var_GCJ=no
25227 ;;
25228
25229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25230 freebsd2*)
25231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25232 hardcode_direct_GCJ=yes
25233 hardcode_minus_L_GCJ=yes
25234 hardcode_shlibpath_var_GCJ=no
25235 ;;
25236
25237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025238 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025239 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25241 hardcode_direct_GCJ=yes
25242 hardcode_shlibpath_var_GCJ=no
25243 ;;
25244
25245 hpux9*)
25246 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025247 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 +000025248 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025249 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 +000025250 fi
25251 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25252 hardcode_libdir_separator_GCJ=:
25253 hardcode_direct_GCJ=yes
25254
25255 # hardcode_minus_L: Not really in the search PATH,
25256 # but as the default location of the library.
25257 hardcode_minus_L_GCJ=yes
25258 export_dynamic_flag_spec_GCJ='${wl}-E'
25259 ;;
25260
Reid Spencera773bd52006-08-04 18:18:08 +000025261 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25264 else
25265 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25266 fi
25267 if test "$with_gnu_ld" = no; then
25268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25269 hardcode_libdir_separator_GCJ=:
25270
25271 hardcode_direct_GCJ=yes
25272 export_dynamic_flag_spec_GCJ='${wl}-E'
25273
25274 # hardcode_minus_L: Not really in the search PATH,
25275 # but as the default location of the library.
25276 hardcode_minus_L_GCJ=yes
25277 fi
25278 ;;
25279
25280 hpux11*)
25281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25282 case $host_cpu in
25283 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025284 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025286 ia64*)
25287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025289 *)
25290 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25291 ;;
25292 esac
25293 else
Reid Spencera773bd52006-08-04 18:18:08 +000025294 case $host_cpu in
25295 hppa*64*)
25296 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25297 ;;
25298 ia64*)
25299 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025300 ;;
25301 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025302 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 +000025303 ;;
25304 esac
25305 fi
25306 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025307 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25308 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025309
Reid Spencera773bd52006-08-04 18:18:08 +000025310 case $host_cpu in
25311 hppa*64*|ia64*)
25312 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25313 hardcode_direct_GCJ=no
25314 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025315 ;;
25316 *)
John Criswell47fdd832003-07-14 16:52:07 +000025317 hardcode_direct_GCJ=yes
25318 export_dynamic_flag_spec_GCJ='${wl}-E'
25319
25320 # hardcode_minus_L: Not really in the search PATH,
25321 # but as the default location of the library.
25322 hardcode_minus_L_GCJ=yes
25323 ;;
25324 esac
25325 fi
25326 ;;
25327
25328 irix5* | irix6* | nonstopux*)
25329 if test "$GCC" = yes; then
25330 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'
25331 else
25332 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'
25333 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25334 fi
25335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25336 hardcode_libdir_separator_GCJ=:
25337 link_all_deplibs_GCJ=yes
25338 ;;
25339
25340 netbsd*)
25341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25343 else
25344 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25345 fi
25346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25347 hardcode_direct_GCJ=yes
25348 hardcode_shlibpath_var_GCJ=no
25349 ;;
25350
25351 newsos6)
25352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25353 hardcode_direct_GCJ=yes
25354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25355 hardcode_libdir_separator_GCJ=:
25356 hardcode_shlibpath_var_GCJ=no
25357 ;;
25358
25359 openbsd*)
25360 hardcode_direct_GCJ=yes
25361 hardcode_shlibpath_var_GCJ=no
25362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25363 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025364 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 +000025365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25366 export_dynamic_flag_spec_GCJ='${wl}-E'
25367 else
25368 case $host_os in
25369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25372 ;;
25373 *)
25374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25376 ;;
25377 esac
25378 fi
25379 ;;
25380
25381 os2*)
25382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383 hardcode_minus_L_GCJ=yes
25384 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025385 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 +000025386 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25387 ;;
25388
25389 osf3*)
25390 if test "$GCC" = yes; then
25391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25392 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'
25393 else
25394 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25395 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'
25396 fi
25397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25398 hardcode_libdir_separator_GCJ=:
25399 ;;
25400
25401 osf4* | osf5*) # as osf3* with the addition of -msym flag
25402 if test "$GCC" = yes; then
25403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25404 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'
25405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25406 else
25407 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25408 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 +000025409 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 +000025410 $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 +000025411
John Criswell47fdd832003-07-14 16:52:07 +000025412 # Both c and cxx compiler support -rpath directly
25413 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25414 fi
25415 hardcode_libdir_separator_GCJ=:
25416 ;;
25417
John Criswell47fdd832003-07-14 16:52:07 +000025418 solaris*)
25419 no_undefined_flag_GCJ=' -z text'
25420 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025421 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025422 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025423 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25424 $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 +000025425 else
Reid Spencera773bd52006-08-04 18:18:08 +000025426 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025427 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025428 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25429 $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 +000025430 fi
25431 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25432 hardcode_shlibpath_var_GCJ=no
25433 case $host_os in
25434 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025435 *)
25436 # The compiler driver will combine linker options so we
25437 # cannot just pass the convience library names through
25438 # without $wl, iff we do not link with $LD.
25439 # Luckily, gcc supports the same syntax we need for Sun Studio.
25440 # Supported since Solaris 2.6 (maybe 2.5.1?)
25441 case $wlarc in
25442 '')
25443 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25444 *)
25445 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' ;;
25446 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025447 esac
25448 link_all_deplibs_GCJ=yes
25449 ;;
25450
25451 sunos4*)
25452 if test "x$host_vendor" = xsequent; then
25453 # Use $CC to link under sequent, because it throws in some extra .o
25454 # files that make .init and .fini sections work.
25455 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25456 else
25457 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25458 fi
25459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25460 hardcode_direct_GCJ=yes
25461 hardcode_minus_L_GCJ=yes
25462 hardcode_shlibpath_var_GCJ=no
25463 ;;
25464
25465 sysv4)
25466 case $host_vendor in
25467 sni)
25468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469 hardcode_direct_GCJ=yes # is this really true???
25470 ;;
25471 siemens)
25472 ## LD is ld it makes a PLAMLIB
25473 ## CC just makes a GrossModule.
25474 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25475 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25476 hardcode_direct_GCJ=no
25477 ;;
25478 motorola)
25479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25480 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25481 ;;
25482 esac
25483 runpath_var='LD_RUN_PATH'
25484 hardcode_shlibpath_var_GCJ=no
25485 ;;
25486
25487 sysv4.3*)
25488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25489 hardcode_shlibpath_var_GCJ=no
25490 export_dynamic_flag_spec_GCJ='-Bexport'
25491 ;;
25492
25493 sysv4*MP*)
25494 if test -d /usr/nec; then
25495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25496 hardcode_shlibpath_var_GCJ=no
25497 runpath_var=LD_RUN_PATH
25498 hardcode_runpath_var=yes
25499 ld_shlibs_GCJ=yes
25500 fi
25501 ;;
25502
Reid Spencera773bd52006-08-04 18:18:08 +000025503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25504 no_undefined_flag_GCJ='${wl}-z,text'
25505 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025506 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025507 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025508
John Criswell47fdd832003-07-14 16:52:07 +000025509 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025510 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25511 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 +000025512 else
Reid Spencera773bd52006-08-04 18:18:08 +000025513 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25514 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 +000025515 fi
John Criswell47fdd832003-07-14 16:52:07 +000025516 ;;
25517
Reid Spencera773bd52006-08-04 18:18:08 +000025518 sysv5* | sco3.2v5* | sco5v6*)
25519 # Note: We can NOT use -z defs as we might desire, because we do not
25520 # link with -lc, and that would cause any symbols used from libc to
25521 # always be unresolved, which means just about no library would
25522 # ever link correctly. If we're not using GNU ld we use -z text
25523 # though, which does catch some bad symbols but isn't as heavy-handed
25524 # as -z defs.
25525 no_undefined_flag_GCJ='${wl}-z,text'
25526 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25527 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025528 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025529 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25530 hardcode_libdir_separator_GCJ=':'
25531 link_all_deplibs_GCJ=yes
25532 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025533 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025534
25535 if test "$GCC" = yes; then
25536 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25537 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25538 else
25539 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25540 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25541 fi
John Criswell47fdd832003-07-14 16:52:07 +000025542 ;;
25543
25544 uts4*)
25545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25547 hardcode_shlibpath_var_GCJ=no
25548 ;;
25549
25550 *)
25551 ld_shlibs_GCJ=no
25552 ;;
25553 esac
25554 fi
25555
Reid Spencera773bd52006-08-04 18:18:08 +000025556{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25557echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025558test "$ld_shlibs_GCJ" = no && can_build_shared=no
25559
John Criswell47fdd832003-07-14 16:52:07 +000025560#
25561# Do we need to explicitly link libc?
25562#
25563case "x$archive_cmds_need_lc_GCJ" in
25564x|xyes)
25565 # Assume -lc should be added
25566 archive_cmds_need_lc_GCJ=yes
25567
25568 if test "$enable_shared" = yes && test "$GCC" = yes; then
25569 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025570 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025571 # FIXME: we may have to deal with multi-command sequences.
25572 ;;
25573 '$CC '*)
25574 # Test whether the compiler implicitly links with -lc since on some
25575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25576 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25578echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025579 $rm conftest*
25580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25581
25582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25583 (eval $ac_compile) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } 2>conftest.err; then
25587 soname=conftest
25588 lib=conftest
25589 libobjs=conftest.$ac_objext
25590 deplibs=
25591 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025592 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025593 compiler_flags=-v
25594 linker_flags=-v
25595 verstring=
25596 output_objdir=.
25597 libname=conftest
25598 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25599 allow_undefined_flag_GCJ=
25600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25601 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }
25605 then
25606 archive_cmds_need_lc_GCJ=no
25607 else
25608 archive_cmds_need_lc_GCJ=yes
25609 fi
25610 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25611 else
25612 cat conftest.err 1>&5
25613 fi
25614 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25616echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025617 ;;
25618 esac
25619 fi
25620 ;;
25621esac
25622
Reid Spencera773bd52006-08-04 18:18:08 +000025623{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025625library_names_spec=
25626libname_spec='lib$name'
25627soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025628shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025629postinstall_cmds=
25630postuninstall_cmds=
25631finish_cmds=
25632finish_eval=
25633shlibpath_var=
25634shlibpath_overrides_runpath=unknown
25635version_type=none
25636dynamic_linker="$host_os ld.so"
25637sys_lib_dlsearch_path_spec="/lib /usr/lib"
25638if test "$GCC" = yes; then
25639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25641 # if the path contains ";" then we assume it to be the separator
25642 # otherwise default to the standard path separator (i.e. ":") - it is
25643 # assumed that no part of a normal pathname contains ";" but that should
25644 # okay in the real world where ";" in dirpaths is itself problematic.
25645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25646 else
25647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25648 fi
25649else
25650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25651fi
25652need_lib_prefix=unknown
25653hardcode_into_libs=no
25654
25655# when you set need_version to no, make sure it does not cause -set_version
25656# flags to be left without arguments
25657need_version=unknown
25658
25659case $host_os in
25660aix3*)
25661 version_type=linux
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25663 shlibpath_var=LIBPATH
25664
25665 # AIX 3 has no versioning support, so we append a major version to the name.
25666 soname_spec='${libname}${release}${shared_ext}$major'
25667 ;;
25668
25669aix4* | aix5*)
25670 version_type=linux
25671 need_lib_prefix=no
25672 need_version=no
25673 hardcode_into_libs=yes
25674 if test "$host_cpu" = ia64; then
25675 # AIX 5 supports IA64
25676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 else
25679 # With GCC up to 2.95.x, collect2 would create an import file
25680 # for dependence libraries. The import file would start with
25681 # the line `#! .'. This would cause the generated library to
25682 # depend on `.', always an invalid library. This was fixed in
25683 # development snapshots of GCC prior to 3.0.
25684 case $host_os in
25685 aix4 | aix4.[01] | aix4.[01].*)
25686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25687 echo ' yes '
25688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25689 :
25690 else
25691 can_build_shared=no
25692 fi
25693 ;;
25694 esac
25695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25696 # soname into executable. Probably we can add versioning support to
25697 # collect2, so additional links can be useful in future.
25698 if test "$aix_use_runtimelinking" = yes; then
25699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25700 # instead of lib<name>.a to let people know that these are not
25701 # typical AIX shared libraries.
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25703 else
25704 # We preserve .a as extension for shared libraries through AIX4.2
25705 # and later when we are not doing run time linking.
25706 library_names_spec='${libname}${release}.a $libname.a'
25707 soname_spec='${libname}${release}${shared_ext}$major'
25708 fi
25709 shlibpath_var=LIBPATH
25710 fi
25711 ;;
25712
25713amigaos*)
25714 library_names_spec='$libname.ixlibrary $libname.a'
25715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025716 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 +000025717 ;;
25718
25719beos*)
25720 library_names_spec='${libname}${shared_ext}'
25721 dynamic_linker="$host_os ld.so"
25722 shlibpath_var=LIBRARY_PATH
25723 ;;
25724
Reid Spencer2706f8c2004-09-19 23:53:36 +000025725bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025726 version_type=linux
25727 need_version=no
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729 soname_spec='${libname}${release}${shared_ext}$major'
25730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25731 shlibpath_var=LD_LIBRARY_PATH
25732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25734 # the default ld.so.conf also contains /usr/contrib/lib and
25735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25736 # libtool to hard-code these into programs
25737 ;;
25738
25739cygwin* | mingw* | pw32*)
25740 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025741 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025742 need_version=no
25743 need_lib_prefix=no
25744
25745 case $GCC,$host_os in
25746 yes,cygwin* | yes,mingw* | yes,pw32*)
25747 library_names_spec='$libname.dll.a'
25748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025749 postinstall_cmds='base_file=`basename \${file}`~
25750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25751 dldir=$destdir/`dirname \$dlpath`~
25752 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025753 $install_prog $dir/$dlname \$dldir/$dlname~
25754 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25756 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025757 $rm \$dlpath'
25758 shlibpath_overrides_runpath=yes
25759
25760 case $host_os in
25761 cygwin*)
25762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25763 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 +000025764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025765 ;;
25766 mingw*)
25767 # MinGW DLLs use traditional 'lib' prefix
25768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25771 # It is most probably a Windows format PATH printed by
25772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25773 # path with ; separators, and with drive letters. We can handle the
25774 # drive letters (cygwin fileutils understands them), so leave them,
25775 # especially as we might pass files found there to a mingw objdump,
25776 # which wouldn't understand a cygwinified path. Ahh.
25777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25778 else
25779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25780 fi
25781 ;;
25782 pw32*)
25783 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025784 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 +000025785 ;;
25786 esac
25787 ;;
25788
25789 *)
25790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25791 ;;
25792 esac
25793 dynamic_linker='Win32 ld.exe'
25794 # FIXME: first we should search . and the directory the executable is in
25795 shlibpath_var=PATH
25796 ;;
25797
25798darwin* | rhapsody*)
25799 dynamic_linker="$host_os dyld"
25800 version_type=darwin
25801 need_lib_prefix=no
25802 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025804 soname_spec='${libname}${release}${major}$shared_ext'
25805 shlibpath_overrides_runpath=yes
25806 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025807 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025809 if test "$GCC" = yes; then
25810 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"`
25811 else
25812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025813 fi
25814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25815 ;;
25816
25817dgux*)
25818 version_type=linux
25819 need_lib_prefix=no
25820 need_version=no
25821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25822 soname_spec='${libname}${release}${shared_ext}$major'
25823 shlibpath_var=LD_LIBRARY_PATH
25824 ;;
25825
25826freebsd1*)
25827 dynamic_linker=no
25828 ;;
25829
Reid Spencer2706f8c2004-09-19 23:53:36 +000025830kfreebsd*-gnu)
25831 version_type=linux
25832 need_lib_prefix=no
25833 need_version=no
25834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25835 soname_spec='${libname}${release}${shared_ext}$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25837 shlibpath_overrides_runpath=no
25838 hardcode_into_libs=yes
25839 dynamic_linker='GNU ld.so'
25840 ;;
25841
Reid Spencera773bd52006-08-04 18:18:08 +000025842freebsd* | dragonfly*)
25843 # DragonFly does not have aout. When/if they implement a new
25844 # versioning mechanism, adjust this.
25845 if test -x /usr/bin/objformat; then
25846 objformat=`/usr/bin/objformat`
25847 else
25848 case $host_os in
25849 freebsd[123]*) objformat=aout ;;
25850 *) objformat=elf ;;
25851 esac
25852 fi
John Criswell47fdd832003-07-14 16:52:07 +000025853 version_type=freebsd-$objformat
25854 case $version_type in
25855 freebsd-elf*)
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25857 need_version=no
25858 need_lib_prefix=no
25859 ;;
25860 freebsd-*)
25861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25862 need_version=yes
25863 ;;
25864 esac
25865 shlibpath_var=LD_LIBRARY_PATH
25866 case $host_os in
25867 freebsd2*)
25868 shlibpath_overrides_runpath=yes
25869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025870 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025871 shlibpath_overrides_runpath=yes
25872 hardcode_into_libs=yes
25873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025876 shlibpath_overrides_runpath=no
25877 hardcode_into_libs=yes
25878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025879 freebsd*) # from 4.6 on
25880 shlibpath_overrides_runpath=yes
25881 hardcode_into_libs=yes
25882 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025883 esac
25884 ;;
25885
25886gnu*)
25887 version_type=linux
25888 need_lib_prefix=no
25889 need_version=no
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25891 soname_spec='${libname}${release}${shared_ext}$major'
25892 shlibpath_var=LD_LIBRARY_PATH
25893 hardcode_into_libs=yes
25894 ;;
25895
25896hpux9* | hpux10* | hpux11*)
25897 # Give a soname corresponding to the major version so that dld.sl refuses to
25898 # link against other versions.
25899 version_type=sunos
25900 need_lib_prefix=no
25901 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025902 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025903 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025904 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025905 hardcode_into_libs=yes
25906 dynamic_linker="$host_os dld.so"
25907 shlibpath_var=LD_LIBRARY_PATH
25908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910 soname_spec='${libname}${release}${shared_ext}$major'
25911 if test "X$HPUX_IA64_MODE" = X32; then
25912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25913 else
25914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25915 fi
25916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25917 ;;
25918 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025919 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025920 hardcode_into_libs=yes
25921 dynamic_linker="$host_os dld.sl"
25922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25928 ;;
25929 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025930 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025931 dynamic_linker="$host_os dld.sl"
25932 shlibpath_var=SHLIB_PATH
25933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935 soname_spec='${libname}${release}${shared_ext}$major'
25936 ;;
25937 esac
25938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25939 postinstall_cmds='chmod 555 $lib'
25940 ;;
25941
Reid Spencera773bd52006-08-04 18:18:08 +000025942interix3*)
25943 version_type=linux
25944 need_lib_prefix=no
25945 need_version=no
25946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25947 soname_spec='${libname}${release}${shared_ext}$major'
25948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25949 shlibpath_var=LD_LIBRARY_PATH
25950 shlibpath_overrides_runpath=no
25951 hardcode_into_libs=yes
25952 ;;
25953
John Criswell47fdd832003-07-14 16:52:07 +000025954irix5* | irix6* | nonstopux*)
25955 case $host_os in
25956 nonstopux*) version_type=nonstopux ;;
25957 *)
25958 if test "$lt_cv_prog_gnu_ld" = yes; then
25959 version_type=linux
25960 else
25961 version_type=irix
25962 fi ;;
25963 esac
25964 need_lib_prefix=no
25965 need_version=no
25966 soname_spec='${libname}${release}${shared_ext}$major'
25967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25968 case $host_os in
25969 irix5* | nonstopux*)
25970 libsuff= shlibsuff=
25971 ;;
25972 *)
25973 case $LD in # libtool.m4 will add one of these switches to LD
25974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25975 libsuff= shlibsuff= libmagic=32-bit;;
25976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25977 libsuff=32 shlibsuff=N32 libmagic=N32;;
25978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25980 *) libsuff= shlibsuff= libmagic=never-match;;
25981 esac
25982 ;;
25983 esac
25984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25985 shlibpath_overrides_runpath=no
25986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25988 hardcode_into_libs=yes
25989 ;;
25990
25991# No shared lib support for Linux oldld, aout, or coff.
25992linux*oldld* | linux*aout* | linux*coff*)
25993 dynamic_linker=no
25994 ;;
25995
25996# This must be Linux ELF.
25997linux*)
25998 version_type=linux
25999 need_lib_prefix=no
26000 need_version=no
26001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26002 soname_spec='${libname}${release}${shared_ext}$major'
26003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26004 shlibpath_var=LD_LIBRARY_PATH
26005 shlibpath_overrides_runpath=no
26006 # This implies no fast_install, which is unacceptable.
26007 # Some rework will be needed to allow for fast_install
26008 # before this can be enabled.
26009 hardcode_into_libs=yes
26010
Reid Spencer2706f8c2004-09-19 23:53:36 +000026011 # Append ld.so.conf contents to the search path
26012 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026013 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 +000026014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26015 fi
26016
John Criswell47fdd832003-07-14 16:52:07 +000026017 # We used to test for /lib/ld.so.1 and disable shared libraries on
26018 # powerpc, because MkLinux only supported shared libraries with the
26019 # GNU dynamic linker. Since this was broken with cross compilers,
26020 # most powerpc-linux boxes support dynamic linking these days and
26021 # people can always --disable-shared, the test was removed, and we
26022 # assume the GNU/Linux dynamic linker is in use.
26023 dynamic_linker='GNU/Linux ld.so'
26024 ;;
26025
Reid Spencer2706f8c2004-09-19 23:53:36 +000026026knetbsd*-gnu)
26027 version_type=linux
26028 need_lib_prefix=no
26029 need_version=no
26030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26031 soname_spec='${libname}${release}${shared_ext}$major'
26032 shlibpath_var=LD_LIBRARY_PATH
26033 shlibpath_overrides_runpath=no
26034 hardcode_into_libs=yes
26035 dynamic_linker='GNU ld.so'
26036 ;;
26037
John Criswell47fdd832003-07-14 16:52:07 +000026038netbsd*)
26039 version_type=sunos
26040 need_lib_prefix=no
26041 need_version=no
26042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26045 dynamic_linker='NetBSD (a.out) ld.so'
26046 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026048 soname_spec='${libname}${release}${shared_ext}$major'
26049 dynamic_linker='NetBSD ld.elf_so'
26050 fi
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes
26053 hardcode_into_libs=yes
26054 ;;
26055
26056newsos6)
26057 version_type=linux
26058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059 shlibpath_var=LD_LIBRARY_PATH
26060 shlibpath_overrides_runpath=yes
26061 ;;
26062
Reid Spencer2706f8c2004-09-19 23:53:36 +000026063nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026064 version_type=linux
26065 need_lib_prefix=no
26066 need_version=no
26067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26068 soname_spec='${libname}${release}${shared_ext}$major'
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26071 ;;
26072
26073openbsd*)
26074 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026075 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026076 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26078 case $host_os in
26079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26080 *) need_version=no ;;
26081 esac
John Criswell47fdd832003-07-14 16:52:07 +000026082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26084 shlibpath_var=LD_LIBRARY_PATH
26085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26086 case $host_os in
26087 openbsd2.[89] | openbsd2.[89].*)
26088 shlibpath_overrides_runpath=no
26089 ;;
26090 *)
26091 shlibpath_overrides_runpath=yes
26092 ;;
26093 esac
26094 else
26095 shlibpath_overrides_runpath=yes
26096 fi
26097 ;;
26098
26099os2*)
26100 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026101 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026102 need_lib_prefix=no
26103 library_names_spec='$libname${shared_ext} $libname.a'
26104 dynamic_linker='OS/2 ld.exe'
26105 shlibpath_var=LIBPATH
26106 ;;
26107
26108osf3* | osf4* | osf5*)
26109 version_type=osf
26110 need_lib_prefix=no
26111 need_version=no
26112 soname_spec='${libname}${release}${shared_ext}$major'
26113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26114 shlibpath_var=LD_LIBRARY_PATH
26115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26117 ;;
26118
John Criswell47fdd832003-07-14 16:52:07 +000026119solaris*)
26120 version_type=linux
26121 need_lib_prefix=no
26122 need_version=no
26123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26124 soname_spec='${libname}${release}${shared_ext}$major'
26125 shlibpath_var=LD_LIBRARY_PATH
26126 shlibpath_overrides_runpath=yes
26127 hardcode_into_libs=yes
26128 # ldd complains unless libraries are executable
26129 postinstall_cmds='chmod +x $lib'
26130 ;;
26131
26132sunos4*)
26133 version_type=sunos
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26136 shlibpath_var=LD_LIBRARY_PATH
26137 shlibpath_overrides_runpath=yes
26138 if test "$with_gnu_ld" = yes; then
26139 need_lib_prefix=no
26140 fi
26141 need_version=yes
26142 ;;
26143
Reid Spencera773bd52006-08-04 18:18:08 +000026144sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026145 version_type=linux
26146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26147 soname_spec='${libname}${release}${shared_ext}$major'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 case $host_vendor in
26150 sni)
26151 shlibpath_overrides_runpath=no
26152 need_lib_prefix=no
26153 export_dynamic_flag_spec='${wl}-Blargedynsym'
26154 runpath_var=LD_RUN_PATH
26155 ;;
26156 siemens)
26157 need_lib_prefix=no
26158 ;;
26159 motorola)
26160 need_lib_prefix=no
26161 need_version=no
26162 shlibpath_overrides_runpath=no
26163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26164 ;;
26165 esac
26166 ;;
26167
26168sysv4*MP*)
26169 if test -d /usr/nec ;then
26170 version_type=linux
26171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26172 soname_spec='$libname${shared_ext}.$major'
26173 shlibpath_var=LD_LIBRARY_PATH
26174 fi
26175 ;;
26176
Reid Spencera773bd52006-08-04 18:18:08 +000026177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26178 version_type=freebsd-elf
26179 need_lib_prefix=no
26180 need_version=no
26181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26182 soname_spec='${libname}${release}${shared_ext}$major'
26183 shlibpath_var=LD_LIBRARY_PATH
26184 hardcode_into_libs=yes
26185 if test "$with_gnu_ld" = yes; then
26186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26187 shlibpath_overrides_runpath=no
26188 else
26189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26190 shlibpath_overrides_runpath=yes
26191 case $host_os in
26192 sco3.2v5*)
26193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26194 ;;
26195 esac
26196 fi
26197 sys_lib_dlsearch_path_spec='/usr/lib'
26198 ;;
26199
John Criswell47fdd832003-07-14 16:52:07 +000026200uts4*)
26201 version_type=linux
26202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203 soname_spec='${libname}${release}${shared_ext}$major'
26204 shlibpath_var=LD_LIBRARY_PATH
26205 ;;
26206
26207*)
26208 dynamic_linker=no
26209 ;;
26210esac
Reid Spencera773bd52006-08-04 18:18:08 +000026211{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26212echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026213test "$dynamic_linker" = no && can_build_shared=no
26214
Reid Spencera773bd52006-08-04 18:18:08 +000026215variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26216if test "$GCC" = yes; then
26217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26218fi
26219
26220{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26221echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026222hardcode_action_GCJ=
26223if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26224 test -n "$runpath_var_GCJ" || \
26225 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26226
26227 # We can hardcode non-existant directories.
26228 if test "$hardcode_direct_GCJ" != no &&
26229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26230 # have to relink, otherwise we might link with an installed library
26231 # when we should be linking with a yet-to-be-installed one
26232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26233 test "$hardcode_minus_L_GCJ" != no; then
26234 # Linking always hardcodes the temporary library directory.
26235 hardcode_action_GCJ=relink
26236 else
26237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26238 hardcode_action_GCJ=immediate
26239 fi
26240else
26241 # We cannot hardcode anything, or else we can only hardcode existing
26242 # directories.
26243 hardcode_action_GCJ=unsupported
26244fi
Reid Spencera773bd52006-08-04 18:18:08 +000026245{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26246echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247
26248if test "$hardcode_action_GCJ" = relink; then
26249 # Fast installation is not supported
26250 enable_fast_install=no
26251elif test "$shlibpath_overrides_runpath" = yes ||
26252 test "$enable_shared" = no; then
26253 # Fast installation is not necessary
26254 enable_fast_install=needless
26255fi
26256
John Criswell47fdd832003-07-14 16:52:07 +000026257
26258# The else clause should only fire when bootstrapping the
26259# libtool distribution, otherwise you forgot to ship ltmain.sh
26260# with your package, and you will get complaints that there are
26261# no rules to generate ltmain.sh.
26262if test -f "$ltmain"; then
26263 # See if we are running on zsh, and set the options which allow our commands through
26264 # without removal of \ escapes.
26265 if test -n "${ZSH_VERSION+set}" ; then
26266 setopt NO_GLOB_SUBST
26267 fi
26268 # Now quote all the things that may contain metacharacters while being
26269 # careful not to overquote the AC_SUBSTed values. We take copies of the
26270 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026271 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 +000026272 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26275 deplibs_check_method reload_flag reload_cmds need_locks \
26276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26277 lt_cv_sys_global_symbol_to_c_name_address \
26278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26279 old_postinstall_cmds old_postuninstall_cmds \
26280 compiler_GCJ \
26281 CC_GCJ \
26282 LD_GCJ \
26283 lt_prog_compiler_wl_GCJ \
26284 lt_prog_compiler_pic_GCJ \
26285 lt_prog_compiler_static_GCJ \
26286 lt_prog_compiler_no_builtin_flag_GCJ \
26287 export_dynamic_flag_spec_GCJ \
26288 thread_safe_flag_spec_GCJ \
26289 whole_archive_flag_spec_GCJ \
26290 enable_shared_with_static_runtimes_GCJ \
26291 old_archive_cmds_GCJ \
26292 old_archive_from_new_cmds_GCJ \
26293 predep_objects_GCJ \
26294 postdep_objects_GCJ \
26295 predeps_GCJ \
26296 postdeps_GCJ \
26297 compiler_lib_search_path_GCJ \
26298 archive_cmds_GCJ \
26299 archive_expsym_cmds_GCJ \
26300 postinstall_cmds_GCJ \
26301 postuninstall_cmds_GCJ \
26302 old_archive_from_expsyms_cmds_GCJ \
26303 allow_undefined_flag_GCJ \
26304 no_undefined_flag_GCJ \
26305 export_symbols_cmds_GCJ \
26306 hardcode_libdir_flag_spec_GCJ \
26307 hardcode_libdir_flag_spec_ld_GCJ \
26308 hardcode_libdir_separator_GCJ \
26309 hardcode_automatic_GCJ \
26310 module_cmds_GCJ \
26311 module_expsym_cmds_GCJ \
26312 lt_cv_prog_compiler_c_o_GCJ \
26313 exclude_expsyms_GCJ \
26314 include_expsyms_GCJ; do
26315
26316 case $var in
26317 old_archive_cmds_GCJ | \
26318 old_archive_from_new_cmds_GCJ | \
26319 archive_cmds_GCJ | \
26320 archive_expsym_cmds_GCJ | \
26321 module_cmds_GCJ | \
26322 module_expsym_cmds_GCJ | \
26323 old_archive_from_expsyms_cmds_GCJ | \
26324 export_symbols_cmds_GCJ | \
26325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26326 postinstall_cmds | postuninstall_cmds | \
26327 old_postinstall_cmds | old_postuninstall_cmds | \
26328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26329 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026330 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 +000026331 ;;
26332 *)
26333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26334 ;;
26335 esac
26336 done
26337
26338 case $lt_echo in
26339 *'\$0 --fallback-echo"')
26340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26341 ;;
26342 esac
26343
26344cfgfile="$ofile"
26345
26346 cat <<__EOF__ >> "$cfgfile"
26347# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26348
26349# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26350
26351# Shell to use when invoking shell scripts.
26352SHELL=$lt_SHELL
26353
26354# Whether or not to build shared libraries.
26355build_libtool_libs=$enable_shared
26356
26357# Whether or not to build static libraries.
26358build_old_libs=$enable_static
26359
26360# Whether or not to add -lc for building shared libraries.
26361build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26362
26363# Whether or not to disallow shared libs when runtime libs are static
26364allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26365
26366# Whether or not to optimize for fast installation.
26367fast_install=$enable_fast_install
26368
26369# The host system.
26370host_alias=$host_alias
26371host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026372host_os=$host_os
26373
26374# The build system.
26375build_alias=$build_alias
26376build=$build
26377build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026378
26379# An echo program that does not interpret backslashes.
26380echo=$lt_echo
26381
26382# The archiver.
26383AR=$lt_AR
26384AR_FLAGS=$lt_AR_FLAGS
26385
26386# A C compiler.
26387LTCC=$lt_LTCC
26388
Reid Spencera773bd52006-08-04 18:18:08 +000026389# LTCC compiler flags.
26390LTCFLAGS=$lt_LTCFLAGS
26391
John Criswell47fdd832003-07-14 16:52:07 +000026392# A language-specific compiler.
26393CC=$lt_compiler_GCJ
26394
26395# Is the compiler the GNU C compiler?
26396with_gcc=$GCC_GCJ
26397
26398# An ERE matcher.
26399EGREP=$lt_EGREP
26400
26401# The linker used to build libraries.
26402LD=$lt_LD_GCJ
26403
26404# Whether we need hard or soft links.
26405LN_S=$lt_LN_S
26406
26407# A BSD-compatible nm program.
26408NM=$lt_NM
26409
26410# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026411STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026412
26413# Used to examine libraries when file_magic_cmd begins "file"
26414MAGIC_CMD=$MAGIC_CMD
26415
26416# Used on cygwin: DLL creation program.
26417DLLTOOL="$DLLTOOL"
26418
26419# Used on cygwin: object dumper.
26420OBJDUMP="$OBJDUMP"
26421
26422# Used on cygwin: assembler.
26423AS="$AS"
26424
26425# The name of the directory that contains temporary libtool files.
26426objdir=$objdir
26427
26428# How to create reloadable object files.
26429reload_flag=$lt_reload_flag
26430reload_cmds=$lt_reload_cmds
26431
26432# How to pass a linker flag through the compiler.
26433wl=$lt_lt_prog_compiler_wl_GCJ
26434
26435# Object file suffix (normally "o").
26436objext="$ac_objext"
26437
26438# Old archive suffix (normally "a").
26439libext="$libext"
26440
26441# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026442shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026443
26444# Executable file suffix (normally "").
26445exeext="$exeext"
26446
26447# Additional compiler flags for building library objects.
26448pic_flag=$lt_lt_prog_compiler_pic_GCJ
26449pic_mode=$pic_mode
26450
26451# What is the maximum length of a command?
26452max_cmd_len=$lt_cv_sys_max_cmd_len
26453
26454# Does compiler simultaneously support -c and -o options?
26455compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26456
Reid Spencera773bd52006-08-04 18:18:08 +000026457# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026458need_locks=$lt_need_locks
26459
26460# Do we need the lib prefix for modules?
26461need_lib_prefix=$need_lib_prefix
26462
26463# Do we need a version for libraries?
26464need_version=$need_version
26465
26466# Whether dlopen is supported.
26467dlopen_support=$enable_dlopen
26468
26469# Whether dlopen of programs is supported.
26470dlopen_self=$enable_dlopen_self
26471
26472# Whether dlopen of statically linked programs is supported.
26473dlopen_self_static=$enable_dlopen_self_static
26474
26475# Compiler flag to prevent dynamic linking.
26476link_static_flag=$lt_lt_prog_compiler_static_GCJ
26477
26478# Compiler flag to turn off builtin functions.
26479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26480
26481# Compiler flag to allow reflexive dlopens.
26482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26483
26484# Compiler flag to generate shared objects directly from archives.
26485whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26486
26487# Compiler flag to generate thread-safe objects.
26488thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26489
26490# Library versioning type.
26491version_type=$version_type
26492
26493# Format of library name prefix.
26494libname_spec=$lt_libname_spec
26495
26496# List of archive names. First name is the real one, the rest are links.
26497# The last name is the one that the linker finds with -lNAME.
26498library_names_spec=$lt_library_names_spec
26499
26500# The coded name of the library, if different from the real name.
26501soname_spec=$lt_soname_spec
26502
26503# Commands used to build and install an old-style archive.
26504RANLIB=$lt_RANLIB
26505old_archive_cmds=$lt_old_archive_cmds_GCJ
26506old_postinstall_cmds=$lt_old_postinstall_cmds
26507old_postuninstall_cmds=$lt_old_postuninstall_cmds
26508
26509# Create an old-style archive from a shared archive.
26510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26511
26512# Create a temporary old-style archive to link instead of a shared archive.
26513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26514
26515# Commands used to build and install a shared archive.
26516archive_cmds=$lt_archive_cmds_GCJ
26517archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26518postinstall_cmds=$lt_postinstall_cmds
26519postuninstall_cmds=$lt_postuninstall_cmds
26520
26521# Commands used to build a loadable module (assumed same as above if empty)
26522module_cmds=$lt_module_cmds_GCJ
26523module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26524
26525# Commands to strip libraries.
26526old_striplib=$lt_old_striplib
26527striplib=$lt_striplib
26528
26529# Dependencies to place before the objects being linked to create a
26530# shared library.
26531predep_objects=$lt_predep_objects_GCJ
26532
26533# Dependencies to place after the objects being linked to create a
26534# shared library.
26535postdep_objects=$lt_postdep_objects_GCJ
26536
26537# Dependencies to place before the objects being linked to create a
26538# shared library.
26539predeps=$lt_predeps_GCJ
26540
26541# Dependencies to place after the objects being linked to create a
26542# shared library.
26543postdeps=$lt_postdeps_GCJ
26544
26545# The library search path used internally by the compiler when linking
26546# a shared library.
26547compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26548
26549# Method to check whether dependent libraries are shared objects.
26550deplibs_check_method=$lt_deplibs_check_method
26551
26552# Command to use when deplibs_check_method == file_magic.
26553file_magic_cmd=$lt_file_magic_cmd
26554
26555# Flag that allows shared libraries with undefined symbols to be built.
26556allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26557
26558# Flag that forces no undefined symbols.
26559no_undefined_flag=$lt_no_undefined_flag_GCJ
26560
26561# Commands used to finish a libtool library installation in a directory.
26562finish_cmds=$lt_finish_cmds
26563
26564# Same as above, but a single script fragment to be evaled but not shown.
26565finish_eval=$lt_finish_eval
26566
26567# Take the output of nm and produce a listing of raw symbols and C names.
26568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26569
26570# Transform the output of nm in a proper C declaration
26571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26572
26573# Transform the output of nm in a C name address pair
26574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26575
26576# This is the shared library runtime path variable.
26577runpath_var=$runpath_var
26578
26579# This is the shared library path variable.
26580shlibpath_var=$shlibpath_var
26581
26582# Is shlibpath searched before the hard-coded library search path?
26583shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26584
26585# How to hardcode a shared library path into an executable.
26586hardcode_action=$hardcode_action_GCJ
26587
26588# Whether we should hardcode library paths into libraries.
26589hardcode_into_libs=$hardcode_into_libs
26590
26591# Flag to hardcode \$libdir into a binary during linking.
26592# This must work even if \$libdir does not exist.
26593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26594
26595# If ld is used when linking, flag to hardcode \$libdir into
26596# a binary during linking. This must work even if \$libdir does
26597# not exist.
26598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26599
26600# Whether we need a single -rpath flag with a separated argument.
26601hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26602
26603# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26604# resulting binary.
26605hardcode_direct=$hardcode_direct_GCJ
26606
26607# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26608# resulting binary.
26609hardcode_minus_L=$hardcode_minus_L_GCJ
26610
26611# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26612# the resulting binary.
26613hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26614
26615# Set to yes if building a shared library automatically hardcodes DIR into the library
26616# and all subsequent libraries and executables linked against it.
26617hardcode_automatic=$hardcode_automatic_GCJ
26618
26619# Variables whose values should be saved in libtool wrapper scripts and
26620# restored at relink time.
26621variables_saved_for_relink="$variables_saved_for_relink"
26622
26623# Whether libtool must link a program against all its dependency libraries.
26624link_all_deplibs=$link_all_deplibs_GCJ
26625
26626# Compile-time system search path for libraries
26627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26628
26629# Run-time system search path for libraries
26630sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26631
26632# Fix the shell variable \$srcfile for the compiler.
26633fix_srcfile_path="$fix_srcfile_path_GCJ"
26634
26635# Set to yes if exported symbols are required.
26636always_export_symbols=$always_export_symbols_GCJ
26637
26638# The commands to list exported symbols.
26639export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26640
26641# The commands to extract the exported symbol list from a shared archive.
26642extract_expsyms_cmds=$lt_extract_expsyms_cmds
26643
26644# Symbols that should not be listed in the preloaded symbols.
26645exclude_expsyms=$lt_exclude_expsyms_GCJ
26646
26647# Symbols that must always be exported.
26648include_expsyms=$lt_include_expsyms_GCJ
26649
26650# ### END LIBTOOL TAG CONFIG: $tagname
26651
26652__EOF__
26653
26654
26655else
26656 # If there is no Makefile yet, we rely on a make rule to execute
26657 # `config.status --recheck' to rerun these tests and create the
26658 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26660 if test -f "$ltmain_in"; then
26661 test -f Makefile && make "$ltmain"
26662 fi
John Criswell47fdd832003-07-14 16:52:07 +000026663fi
26664
26665
26666ac_ext=c
26667ac_cpp='$CPP $CPPFLAGS'
26668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670ac_compiler_gnu=$ac_cv_c_compiler_gnu
26671
26672CC="$lt_save_CC"
26673
26674 else
26675 tagname=""
26676 fi
26677 ;;
26678
26679 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026680 ac_ext=c
26681ac_cpp='$CPP $CPPFLAGS'
26682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26684ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026685
26686
26687# Source file extension for RC test sources.
26688ac_ext=rc
26689
26690# Object file extension for compiled RC test sources.
26691objext=o
26692objext_RC=$objext
26693
26694# Code to be used in simple compile tests
26695lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26696
26697# Code to be used in simple link tests
26698lt_simple_link_test_code="$lt_simple_compile_test_code"
26699
26700# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26701
26702# If no C compiler was specified, use CC.
26703LTCC=${LTCC-"$CC"}
26704
Reid Spencera773bd52006-08-04 18:18:08 +000026705# If no C compiler flags were specified, use CFLAGS.
26706LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26707
John Criswell47fdd832003-07-14 16:52:07 +000026708# Allow CC to be a program name with arguments.
26709compiler=$CC
26710
26711
Reid Spencera773bd52006-08-04 18:18:08 +000026712# save warnings/boilerplate of simple test code
26713ac_outfile=conftest.$ac_objext
26714printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26716_lt_compiler_boilerplate=`cat conftest.err`
26717$rm conftest*
26718
26719ac_outfile=conftest.$ac_objext
26720printf "$lt_simple_link_test_code" >conftest.$ac_ext
26721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26722_lt_linker_boilerplate=`cat conftest.err`
26723$rm conftest*
26724
26725
John Criswell47fdd832003-07-14 16:52:07 +000026726# Allow CC to be a program name with arguments.
26727lt_save_CC="$CC"
26728CC=${RC-"windres"}
26729compiler=$CC
26730compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026731for cc_temp in $compiler""; do
26732 case $cc_temp in
26733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26735 \-*) ;;
26736 *) break;;
26737 esac
26738done
26739cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26740
John Criswell47fdd832003-07-14 16:52:07 +000026741lt_cv_prog_compiler_c_o_RC=yes
26742
26743# The else clause should only fire when bootstrapping the
26744# libtool distribution, otherwise you forgot to ship ltmain.sh
26745# with your package, and you will get complaints that there are
26746# no rules to generate ltmain.sh.
26747if test -f "$ltmain"; then
26748 # See if we are running on zsh, and set the options which allow our commands through
26749 # without removal of \ escapes.
26750 if test -n "${ZSH_VERSION+set}" ; then
26751 setopt NO_GLOB_SUBST
26752 fi
26753 # Now quote all the things that may contain metacharacters while being
26754 # careful not to overquote the AC_SUBSTed values. We take copies of the
26755 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026756 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 +000026757 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26760 deplibs_check_method reload_flag reload_cmds need_locks \
26761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26762 lt_cv_sys_global_symbol_to_c_name_address \
26763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26764 old_postinstall_cmds old_postuninstall_cmds \
26765 compiler_RC \
26766 CC_RC \
26767 LD_RC \
26768 lt_prog_compiler_wl_RC \
26769 lt_prog_compiler_pic_RC \
26770 lt_prog_compiler_static_RC \
26771 lt_prog_compiler_no_builtin_flag_RC \
26772 export_dynamic_flag_spec_RC \
26773 thread_safe_flag_spec_RC \
26774 whole_archive_flag_spec_RC \
26775 enable_shared_with_static_runtimes_RC \
26776 old_archive_cmds_RC \
26777 old_archive_from_new_cmds_RC \
26778 predep_objects_RC \
26779 postdep_objects_RC \
26780 predeps_RC \
26781 postdeps_RC \
26782 compiler_lib_search_path_RC \
26783 archive_cmds_RC \
26784 archive_expsym_cmds_RC \
26785 postinstall_cmds_RC \
26786 postuninstall_cmds_RC \
26787 old_archive_from_expsyms_cmds_RC \
26788 allow_undefined_flag_RC \
26789 no_undefined_flag_RC \
26790 export_symbols_cmds_RC \
26791 hardcode_libdir_flag_spec_RC \
26792 hardcode_libdir_flag_spec_ld_RC \
26793 hardcode_libdir_separator_RC \
26794 hardcode_automatic_RC \
26795 module_cmds_RC \
26796 module_expsym_cmds_RC \
26797 lt_cv_prog_compiler_c_o_RC \
26798 exclude_expsyms_RC \
26799 include_expsyms_RC; do
26800
26801 case $var in
26802 old_archive_cmds_RC | \
26803 old_archive_from_new_cmds_RC | \
26804 archive_cmds_RC | \
26805 archive_expsym_cmds_RC | \
26806 module_cmds_RC | \
26807 module_expsym_cmds_RC | \
26808 old_archive_from_expsyms_cmds_RC | \
26809 export_symbols_cmds_RC | \
26810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26811 postinstall_cmds | postuninstall_cmds | \
26812 old_postinstall_cmds | old_postuninstall_cmds | \
26813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26814 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026815 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 +000026816 ;;
26817 *)
26818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26819 ;;
26820 esac
26821 done
26822
26823 case $lt_echo in
26824 *'\$0 --fallback-echo"')
26825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26826 ;;
26827 esac
26828
26829cfgfile="$ofile"
26830
26831 cat <<__EOF__ >> "$cfgfile"
26832# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26833
26834# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26835
26836# Shell to use when invoking shell scripts.
26837SHELL=$lt_SHELL
26838
26839# Whether or not to build shared libraries.
26840build_libtool_libs=$enable_shared
26841
26842# Whether or not to build static libraries.
26843build_old_libs=$enable_static
26844
26845# Whether or not to add -lc for building shared libraries.
26846build_libtool_need_lc=$archive_cmds_need_lc_RC
26847
26848# Whether or not to disallow shared libs when runtime libs are static
26849allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26850
26851# Whether or not to optimize for fast installation.
26852fast_install=$enable_fast_install
26853
26854# The host system.
26855host_alias=$host_alias
26856host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026857host_os=$host_os
26858
26859# The build system.
26860build_alias=$build_alias
26861build=$build
26862build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026863
26864# An echo program that does not interpret backslashes.
26865echo=$lt_echo
26866
26867# The archiver.
26868AR=$lt_AR
26869AR_FLAGS=$lt_AR_FLAGS
26870
26871# A C compiler.
26872LTCC=$lt_LTCC
26873
Reid Spencera773bd52006-08-04 18:18:08 +000026874# LTCC compiler flags.
26875LTCFLAGS=$lt_LTCFLAGS
26876
John Criswell47fdd832003-07-14 16:52:07 +000026877# A language-specific compiler.
26878CC=$lt_compiler_RC
26879
26880# Is the compiler the GNU C compiler?
26881with_gcc=$GCC_RC
26882
26883# An ERE matcher.
26884EGREP=$lt_EGREP
26885
26886# The linker used to build libraries.
26887LD=$lt_LD_RC
26888
26889# Whether we need hard or soft links.
26890LN_S=$lt_LN_S
26891
26892# A BSD-compatible nm program.
26893NM=$lt_NM
26894
26895# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026896STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026897
26898# Used to examine libraries when file_magic_cmd begins "file"
26899MAGIC_CMD=$MAGIC_CMD
26900
26901# Used on cygwin: DLL creation program.
26902DLLTOOL="$DLLTOOL"
26903
26904# Used on cygwin: object dumper.
26905OBJDUMP="$OBJDUMP"
26906
26907# Used on cygwin: assembler.
26908AS="$AS"
26909
26910# The name of the directory that contains temporary libtool files.
26911objdir=$objdir
26912
26913# How to create reloadable object files.
26914reload_flag=$lt_reload_flag
26915reload_cmds=$lt_reload_cmds
26916
26917# How to pass a linker flag through the compiler.
26918wl=$lt_lt_prog_compiler_wl_RC
26919
26920# Object file suffix (normally "o").
26921objext="$ac_objext"
26922
26923# Old archive suffix (normally "a").
26924libext="$libext"
26925
26926# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026927shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026928
26929# Executable file suffix (normally "").
26930exeext="$exeext"
26931
26932# Additional compiler flags for building library objects.
26933pic_flag=$lt_lt_prog_compiler_pic_RC
26934pic_mode=$pic_mode
26935
26936# What is the maximum length of a command?
26937max_cmd_len=$lt_cv_sys_max_cmd_len
26938
26939# Does compiler simultaneously support -c and -o options?
26940compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26941
Reid Spencera773bd52006-08-04 18:18:08 +000026942# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026943need_locks=$lt_need_locks
26944
26945# Do we need the lib prefix for modules?
26946need_lib_prefix=$need_lib_prefix
26947
26948# Do we need a version for libraries?
26949need_version=$need_version
26950
26951# Whether dlopen is supported.
26952dlopen_support=$enable_dlopen
26953
26954# Whether dlopen of programs is supported.
26955dlopen_self=$enable_dlopen_self
26956
26957# Whether dlopen of statically linked programs is supported.
26958dlopen_self_static=$enable_dlopen_self_static
26959
26960# Compiler flag to prevent dynamic linking.
26961link_static_flag=$lt_lt_prog_compiler_static_RC
26962
26963# Compiler flag to turn off builtin functions.
26964no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26965
26966# Compiler flag to allow reflexive dlopens.
26967export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26968
26969# Compiler flag to generate shared objects directly from archives.
26970whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26971
26972# Compiler flag to generate thread-safe objects.
26973thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26974
26975# Library versioning type.
26976version_type=$version_type
26977
26978# Format of library name prefix.
26979libname_spec=$lt_libname_spec
26980
26981# List of archive names. First name is the real one, the rest are links.
26982# The last name is the one that the linker finds with -lNAME.
26983library_names_spec=$lt_library_names_spec
26984
26985# The coded name of the library, if different from the real name.
26986soname_spec=$lt_soname_spec
26987
26988# Commands used to build and install an old-style archive.
26989RANLIB=$lt_RANLIB
26990old_archive_cmds=$lt_old_archive_cmds_RC
26991old_postinstall_cmds=$lt_old_postinstall_cmds
26992old_postuninstall_cmds=$lt_old_postuninstall_cmds
26993
26994# Create an old-style archive from a shared archive.
26995old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26996
26997# Create a temporary old-style archive to link instead of a shared archive.
26998old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26999
27000# Commands used to build and install a shared archive.
27001archive_cmds=$lt_archive_cmds_RC
27002archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27003postinstall_cmds=$lt_postinstall_cmds
27004postuninstall_cmds=$lt_postuninstall_cmds
27005
27006# Commands used to build a loadable module (assumed same as above if empty)
27007module_cmds=$lt_module_cmds_RC
27008module_expsym_cmds=$lt_module_expsym_cmds_RC
27009
27010# Commands to strip libraries.
27011old_striplib=$lt_old_striplib
27012striplib=$lt_striplib
27013
27014# Dependencies to place before the objects being linked to create a
27015# shared library.
27016predep_objects=$lt_predep_objects_RC
27017
27018# Dependencies to place after the objects being linked to create a
27019# shared library.
27020postdep_objects=$lt_postdep_objects_RC
27021
27022# Dependencies to place before the objects being linked to create a
27023# shared library.
27024predeps=$lt_predeps_RC
27025
27026# Dependencies to place after the objects being linked to create a
27027# shared library.
27028postdeps=$lt_postdeps_RC
27029
27030# The library search path used internally by the compiler when linking
27031# a shared library.
27032compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27033
27034# Method to check whether dependent libraries are shared objects.
27035deplibs_check_method=$lt_deplibs_check_method
27036
27037# Command to use when deplibs_check_method == file_magic.
27038file_magic_cmd=$lt_file_magic_cmd
27039
27040# Flag that allows shared libraries with undefined symbols to be built.
27041allow_undefined_flag=$lt_allow_undefined_flag_RC
27042
27043# Flag that forces no undefined symbols.
27044no_undefined_flag=$lt_no_undefined_flag_RC
27045
27046# Commands used to finish a libtool library installation in a directory.
27047finish_cmds=$lt_finish_cmds
27048
27049# Same as above, but a single script fragment to be evaled but not shown.
27050finish_eval=$lt_finish_eval
27051
27052# Take the output of nm and produce a listing of raw symbols and C names.
27053global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27054
27055# Transform the output of nm in a proper C declaration
27056global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27057
27058# Transform the output of nm in a C name address pair
27059global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27060
27061# This is the shared library runtime path variable.
27062runpath_var=$runpath_var
27063
27064# This is the shared library path variable.
27065shlibpath_var=$shlibpath_var
27066
27067# Is shlibpath searched before the hard-coded library search path?
27068shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27069
27070# How to hardcode a shared library path into an executable.
27071hardcode_action=$hardcode_action_RC
27072
27073# Whether we should hardcode library paths into libraries.
27074hardcode_into_libs=$hardcode_into_libs
27075
27076# Flag to hardcode \$libdir into a binary during linking.
27077# This must work even if \$libdir does not exist.
27078hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27079
27080# If ld is used when linking, flag to hardcode \$libdir into
27081# a binary during linking. This must work even if \$libdir does
27082# not exist.
27083hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27084
27085# Whether we need a single -rpath flag with a separated argument.
27086hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27087
27088# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27089# resulting binary.
27090hardcode_direct=$hardcode_direct_RC
27091
27092# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27093# resulting binary.
27094hardcode_minus_L=$hardcode_minus_L_RC
27095
27096# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27097# the resulting binary.
27098hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27099
27100# Set to yes if building a shared library automatically hardcodes DIR into the library
27101# and all subsequent libraries and executables linked against it.
27102hardcode_automatic=$hardcode_automatic_RC
27103
27104# Variables whose values should be saved in libtool wrapper scripts and
27105# restored at relink time.
27106variables_saved_for_relink="$variables_saved_for_relink"
27107
27108# Whether libtool must link a program against all its dependency libraries.
27109link_all_deplibs=$link_all_deplibs_RC
27110
27111# Compile-time system search path for libraries
27112sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27113
27114# Run-time system search path for libraries
27115sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27116
27117# Fix the shell variable \$srcfile for the compiler.
27118fix_srcfile_path="$fix_srcfile_path_RC"
27119
27120# Set to yes if exported symbols are required.
27121always_export_symbols=$always_export_symbols_RC
27122
27123# The commands to list exported symbols.
27124export_symbols_cmds=$lt_export_symbols_cmds_RC
27125
27126# The commands to extract the exported symbol list from a shared archive.
27127extract_expsyms_cmds=$lt_extract_expsyms_cmds
27128
27129# Symbols that should not be listed in the preloaded symbols.
27130exclude_expsyms=$lt_exclude_expsyms_RC
27131
27132# Symbols that must always be exported.
27133include_expsyms=$lt_include_expsyms_RC
27134
27135# ### END LIBTOOL TAG CONFIG: $tagname
27136
27137__EOF__
27138
27139
27140else
27141 # If there is no Makefile yet, we rely on a make rule to execute
27142 # `config.status --recheck' to rerun these tests and create the
27143 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027144 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27145 if test -f "$ltmain_in"; then
27146 test -f Makefile && make "$ltmain"
27147 fi
John Criswell47fdd832003-07-14 16:52:07 +000027148fi
27149
27150
27151ac_ext=c
27152ac_cpp='$CPP $CPPFLAGS'
27153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27155ac_compiler_gnu=$ac_cv_c_compiler_gnu
27156
27157CC="$lt_save_CC"
27158
27159 ;;
27160
27161 *)
27162 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27163echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27164 { (exit 1); exit 1; }; }
27165 ;;
27166 esac
27167
27168 # Append the new tag name to the list of available tags.
27169 if test -n "$tagname" ; then
27170 available_tags="$available_tags $tagname"
27171 fi
27172 fi
27173 done
27174 IFS="$lt_save_ifs"
27175
27176 # Now substitute the updated list of available tags.
27177 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27178 mv "${ofile}T" "$ofile"
27179 chmod +x "$ofile"
27180 else
27181 rm -f "${ofile}T"
27182 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27183echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27184 { (exit 1); exit 1; }; }
27185 fi
27186fi
John Criswell7a73b802003-06-30 21:59:07 +000027187
27188
27189
27190# This can be used to rebuild libtool when needed
27191LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27192
27193# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027194LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027195
27196# Prevent multiple expansion
27197
27198
27199
John Criswell47fdd832003-07-14 16:52:07 +000027200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027217
Reid Spencer582a23c2004-12-29 07:07:57 +000027218if test "$lt_cv_dlopen_self" = "yes" ; then
27219
27220cat >>confdefs.h <<\_ACEOF
27221#define CAN_DLOPEN_SELF 1
27222_ACEOF
27223
27224fi
27225
Douglas Gregor01746742009-05-11 18:05:52 +000027226
Reid Spencer7931a782004-12-27 06:15:02 +000027227if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027228 LLVMGCC="llvm-gcc${EXEEXT}"
27229 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027230 LLVMGCCCOMMAND="$LLVMGCC"
27231 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027232 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27233
27234 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27235
Reid Spencerc84492c2005-06-02 22:34:49 +000027236 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27237set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027240if test "${ac_cv_path_LLVMGCC+set}" = set; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27242else
27243 case $LLVMGCC in
27244 [\\/]* | ?:[\\/]*)
27245 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27246 ;;
27247 *)
27248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27249for as_dir in $PATH
27250do
27251 IFS=$as_save_IFS
27252 test -z "$as_dir" && as_dir=.
27253 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027254 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 +000027255 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27257 break 2
27258 fi
27259done
27260done
Reid Spencera773bd52006-08-04 18:18:08 +000027261IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027262
Reid Spencer59473af2004-12-25 07:31:29 +000027263 ;;
27264esac
27265fi
27266LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027267if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027268 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27269echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027270else
Reid Spencera773bd52006-08-04 18:18:08 +000027271 { echo "$as_me:$LINENO: result: no" >&5
27272echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027273fi
27274
Reid Spencera773bd52006-08-04 18:18:08 +000027275
Reid Spencerc84492c2005-06-02 22:34:49 +000027276 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27277set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027280if test "${ac_cv_path_LLVMGXX+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27282else
27283 case $LLVMGXX in
27284 [\\/]* | ?:[\\/]*)
27285 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27286 ;;
27287 *)
27288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27289for as_dir in $PATH
27290do
27291 IFS=$as_save_IFS
27292 test -z "$as_dir" && as_dir=.
27293 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027294 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 +000027295 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27297 break 2
27298 fi
27299done
27300done
Reid Spencera773bd52006-08-04 18:18:08 +000027301IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027302
Reid Spencer59473af2004-12-25 07:31:29 +000027303 ;;
27304esac
27305fi
27306LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027307if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027308 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27309echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027310else
Reid Spencera773bd52006-08-04 18:18:08 +000027311 { echo "$as_me:$LINENO: result: no" >&5
27312echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027313fi
27314
Reid Spencera773bd52006-08-04 18:18:08 +000027315
Reid Spencer59473af2004-12-25 07:31:29 +000027316else
Devang Patel5d28b882007-12-04 22:54:47 +000027317 if test -z "$LLVMGCC"; then
27318 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027319 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027320 fi
27321 if test -z "$LLVMGXX"; then
27322 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027323 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027324 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027325
Reid Spencer59473af2004-12-25 07:31:29 +000027326 LLVMGCC=$LLVMGCC
27327
27328 LLVMGXX=$LLVMGXX
27329
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027330 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27331
27332 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27333
Reid Spencer59473af2004-12-25 07:31:29 +000027334fi
27335
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027336
Reid Spencera773bd52006-08-04 18:18:08 +000027337{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27338echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027339
Reid Spencer86901802004-12-08 23:07:27 +000027340ICC=no
27341IXX=no
27342case $CC in
27343 icc*|icpc*)
27344 ICC=yes
27345 IXX=yes
27346 ;;
27347 *)
27348 ;;
27349esac
27350
Duraid Madina937c60a2006-02-15 07:57:42 +000027351if test "$GCC" != "yes" && test "$ICC" != "yes"
27352then
27353 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27354echo "$as_me: error: gcc|icc required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27356fi
27357
27358if test "$GXX" != "yes" && test "$IXX" != "yes"
27359then
27360 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27361echo "$as_me: error: g++|icc required but not found" >&2;}
27362 { (exit 1); exit 1; }; }
27363fi
27364
Reid Spencer86901802004-12-08 23:07:27 +000027365if test "$GCC" = "yes"
27366then
Chris Lattner399c7c72008-02-05 19:43:53 +000027367 cat >conftest.$ac_ext <<_ACEOF
27368#if !defined(__GNUC__) || __GNUC__ < 3
27369#error Unsupported GCC version
27370#endif
27371
27372_ACEOF
27373rm -f conftest.$ac_objext
27374if { (ac_try="$ac_compile"
27375case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27378esac
27379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_compile") 2>conftest.er1
27381 ac_status=$?
27382 grep -v '^ *+' conftest.er1 >conftest.err
27383 rm -f conftest.er1
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027386 (exit $ac_status); } &&
27387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27388 { (case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27391esac
27392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_try") 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27401esac
27402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_try") 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027407 :
27408else
27409 echo "$as_me: failed program was:" >&5
27410sed 's/^/| /' conftest.$ac_ext >&5
27411
27412 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027413echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27414 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027415fi
27416
27417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027418fi
27419
27420if test -z "$llvm_cv_gnu_make_command"
27421then
27422 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27423echo "$as_me: error: GNU Make required but not found" >&2;}
27424 { (exit 1); exit 1; }; }
27425fi
27426
Reid Spencera773bd52006-08-04 18:18:08 +000027427{ echo "$as_me:$LINENO: result: ok" >&5
27428echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027429
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027430
27431
Reid Spencera773bd52006-08-04 18:18:08 +000027432{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27433echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027434if test "${ac_cv_lib_m_sin+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27436else
27437 ac_check_lib_save_LIBS=$LIBS
27438LIBS="-lm $LIBS"
27439cat >conftest.$ac_ext <<_ACEOF
27440/* confdefs.h. */
27441_ACEOF
27442cat confdefs.h >>conftest.$ac_ext
27443cat >>conftest.$ac_ext <<_ACEOF
27444/* end confdefs.h. */
27445
Reid Spencera773bd52006-08-04 18:18:08 +000027446/* Override any GCC internal prototype to avoid an error.
27447 Use char because int might match the return type of a GCC
27448 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027449#ifdef __cplusplus
27450extern "C"
27451#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027452char sin ();
27453int
27454main ()
27455{
Reid Spencera773bd52006-08-04 18:18:08 +000027456return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027457 ;
27458 return 0;
27459}
27460_ACEOF
27461rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027462if { (ac_try="$ac_link"
27463case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466esac
27467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027469 ac_status=$?
27470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27479esac
27480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; } &&
27485 { ac_try='test -s conftest$ac_exeext'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489esac
27490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027495 ac_cv_lib_m_sin=yes
27496else
27497 echo "$as_me: failed program was:" >&5
27498sed 's/^/| /' conftest.$ac_ext >&5
27499
Reid Spencera773bd52006-08-04 18:18:08 +000027500 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027501fi
Reid Spencera773bd52006-08-04 18:18:08 +000027502
Bill Wendlingebcceee2009-04-18 11:20:33 +000027503rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027504 conftest$ac_exeext conftest.$ac_ext
27505LIBS=$ac_check_lib_save_LIBS
27506fi
Reid Spencera773bd52006-08-04 18:18:08 +000027507{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27508echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027509if test $ac_cv_lib_m_sin = yes; then
27510 cat >>confdefs.h <<_ACEOF
27511#define HAVE_LIBM 1
27512_ACEOF
27513
27514 LIBS="-lm $LIBS"
27515
27516fi
27517
Jeff Cohen28783c32007-01-12 18:22:38 +000027518if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027519
Reid Spencera773bd52006-08-04 18:18:08 +000027520{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27521echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027522if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525 ac_check_lib_save_LIBS=$LIBS
27526LIBS="-limagehlp $LIBS"
27527cat >conftest.$ac_ext <<_ACEOF
27528/* confdefs.h. */
27529_ACEOF
27530cat confdefs.h >>conftest.$ac_ext
27531cat >>conftest.$ac_ext <<_ACEOF
27532/* end confdefs.h. */
27533
Reid Spencer48fdf912006-06-01 19:03:21 +000027534
Reid Spencer484fc8e2006-06-01 16:55:59 +000027535int
27536main ()
27537{
Reid Spencera773bd52006-08-04 18:18:08 +000027538return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027539 ;
27540 return 0;
27541}
27542_ACEOF
27543rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027544if { (ac_try="$ac_link"
27545case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27548esac
27549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027551 ac_status=$?
27552 grep -v '^ *+' conftest.er1 >conftest.err
27553 rm -f conftest.er1
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027556 (exit $ac_status); } &&
27557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27558 { (case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561esac
27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_try") 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest$ac_exeext'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027577 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027578else
27579 echo "$as_me: failed program was:" >&5
27580sed 's/^/| /' conftest.$ac_ext >&5
27581
Reid Spencera773bd52006-08-04 18:18:08 +000027582 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027583fi
Reid Spencera773bd52006-08-04 18:18:08 +000027584
Bill Wendlingebcceee2009-04-18 11:20:33 +000027585rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027586 conftest$ac_exeext conftest.$ac_ext
27587LIBS=$ac_check_lib_save_LIBS
27588fi
Reid Spencera773bd52006-08-04 18:18:08 +000027589{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27590echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027591if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027592 cat >>confdefs.h <<_ACEOF
27593#define HAVE_LIBIMAGEHLP 1
27594_ACEOF
27595
27596 LIBS="-limagehlp $LIBS"
27597
27598fi
27599
27600
Reid Spencera773bd52006-08-04 18:18:08 +000027601{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27602echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027603if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604 echo $ECHO_N "(cached) $ECHO_C" >&6
27605else
27606 ac_check_lib_save_LIBS=$LIBS
27607LIBS="-lpsapi $LIBS"
27608cat >conftest.$ac_ext <<_ACEOF
27609/* confdefs.h. */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h. */
27614
Reid Spencer48fdf912006-06-01 19:03:21 +000027615
Reid Spencer484fc8e2006-06-01 16:55:59 +000027616int
27617main ()
27618{
Reid Spencera773bd52006-08-04 18:18:08 +000027619return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027620 ;
27621 return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027625if { (ac_try="$ac_link"
27626case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27629esac
27630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027632 ac_status=$?
27633 grep -v '^ *+' conftest.er1 >conftest.err
27634 rm -f conftest.er1
27635 cat conftest.err >&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027637 (exit $ac_status); } &&
27638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27639 { (case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27642esac
27643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644 (eval "$ac_try") 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; } &&
27648 { ac_try='test -s conftest$ac_exeext'
27649 { (case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_try") 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027658 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027659else
27660 echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
Reid Spencera773bd52006-08-04 18:18:08 +000027663 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027664fi
Reid Spencera773bd52006-08-04 18:18:08 +000027665
Bill Wendlingebcceee2009-04-18 11:20:33 +000027666rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027667 conftest$ac_exeext conftest.$ac_ext
27668LIBS=$ac_check_lib_save_LIBS
27669fi
Reid Spencera773bd52006-08-04 18:18:08 +000027670{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27671echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027672if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027673 cat >>confdefs.h <<_ACEOF
27674#define HAVE_LIBPSAPI 1
27675_ACEOF
27676
27677 LIBS="-lpsapi $LIBS"
27678
27679fi
27680
27681fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027682
Reid Spencera773bd52006-08-04 18:18:08 +000027683{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27684echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027685if test "${ac_cv_search_dlopen+set}" = set; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
27687else
27688 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027689cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027690/* confdefs.h. */
27691_ACEOF
27692cat confdefs.h >>conftest.$ac_ext
27693cat >>conftest.$ac_ext <<_ACEOF
27694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027695
Reid Spencera773bd52006-08-04 18:18:08 +000027696/* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027699#ifdef __cplusplus
27700extern "C"
27701#endif
John Criswell7a73b802003-06-30 21:59:07 +000027702char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027703int
27704main ()
27705{
Reid Spencera773bd52006-08-04 18:18:08 +000027706return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027707 ;
27708 return 0;
27709}
27710_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027711for ac_lib in '' dl; do
27712 if test -z "$ac_lib"; then
27713 ac_res="none required"
27714 else
27715 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027717 fi
27718 rm -f conftest.$ac_objext conftest$ac_exeext
27719if { (ac_try="$ac_link"
27720case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27723esac
27724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027727 grep -v '^ *+' conftest.er1 >conftest.err
27728 rm -f conftest.er1
27729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027731 (exit $ac_status); } &&
27732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27733 { (case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27736esac
27737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_try") 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746esac
27747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027752 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027753else
27754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027755sed 's/^/| /' conftest.$ac_ext >&5
27756
Reid Spencera773bd52006-08-04 18:18:08 +000027757
John Criswell7a73b802003-06-30 21:59:07 +000027758fi
Reid Spencera773bd52006-08-04 18:18:08 +000027759
Bill Wendlingebcceee2009-04-18 11:20:33 +000027760rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027761 conftest$ac_exeext
27762 if test "${ac_cv_search_dlopen+set}" = set; then
27763 break
John Criswell7a73b802003-06-30 21:59:07 +000027764fi
Reid Spencera773bd52006-08-04 18:18:08 +000027765done
27766if test "${ac_cv_search_dlopen+set}" = set; then
27767 :
27768else
27769 ac_cv_search_dlopen=no
27770fi
27771rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027772LIBS=$ac_func_search_save_LIBS
27773fi
Reid Spencera773bd52006-08-04 18:18:08 +000027774{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27775echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27776ac_res=$ac_cv_search_dlopen
27777if test "$ac_res" != no; then
27778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027779
27780cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027781#define HAVE_DLOPEN 1
27782_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027783
27784else
Brian Gaekec45be042003-10-07 06:01:34 +000027785 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27786echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027787fi
27788
27789
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027790if test "$llvm_cv_enable_libffi" = "yes" ; then
27791 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027792echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27793if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027796 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027797cat >conftest.$ac_ext <<_ACEOF
27798/* confdefs.h. */
27799_ACEOF
27800cat confdefs.h >>conftest.$ac_ext
27801cat >>conftest.$ac_ext <<_ACEOF
27802/* end confdefs.h. */
27803
27804/* Override any GCC internal prototype to avoid an error.
27805 Use char because int might match the return type of a GCC
27806 builtin and then its argument prototype would still apply. */
27807#ifdef __cplusplus
27808extern "C"
27809#endif
27810char ffi_call ();
27811int
27812main ()
27813{
27814return ffi_call ();
27815 ;
27816 return 0;
27817}
27818_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027819for ac_lib in '' ffi; do
27820 if test -z "$ac_lib"; then
27821 ac_res="none required"
27822 else
27823 ac_res=-l$ac_lib
27824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27825 fi
27826 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027827if { (ac_try="$ac_link"
27828case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27831esac
27832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_link") 2>conftest.er1
27834 ac_status=$?
27835 grep -v '^ *+' conftest.er1 >conftest.err
27836 rm -f conftest.er1
27837 cat conftest.err >&5
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027839 (exit $ac_status); } &&
27840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27844esac
27845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; } &&
27850 { ac_try='test -s conftest$ac_exeext'
27851 { (case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27854esac
27855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_try") 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027860 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
Nick Lewycky267fddb2009-04-13 04:26:27 +000027865
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027866fi
27867
Bill Wendlingebcceee2009-04-18 11:20:33 +000027868rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027869 conftest$ac_exeext
27870 if test "${ac_cv_search_ffi_call+set}" = set; then
27871 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027872fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027873done
27874if test "${ac_cv_search_ffi_call+set}" = set; then
27875 :
27876else
27877 ac_cv_search_ffi_call=no
27878fi
27879rm conftest.$ac_ext
27880LIBS=$ac_func_search_save_LIBS
27881fi
27882{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27883echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27884ac_res=$ac_cv_search_ffi_call
27885if test "$ac_res" != no; then
27886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27887
27888cat >>confdefs.h <<\_ACEOF
27889#define HAVE_FFI_CALL 1
27890_ACEOF
27891
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027892else
27893 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27894echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27895fi
27896
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027897fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027898
Reid Spencera773bd52006-08-04 18:18:08 +000027899{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27900echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027901if test "${ac_cv_search_mallinfo+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27903else
27904 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027905cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027906/* confdefs.h. */
27907_ACEOF
27908cat confdefs.h >>conftest.$ac_ext
27909cat >>conftest.$ac_ext <<_ACEOF
27910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027911
Reid Spencera773bd52006-08-04 18:18:08 +000027912/* 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. */
John Criswell7a73b802003-06-30 21:59:07 +000027915#ifdef __cplusplus
27916extern "C"
27917#endif
John Criswell7a73b802003-06-30 21:59:07 +000027918char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027919int
27920main ()
27921{
Reid Spencera773bd52006-08-04 18:18:08 +000027922return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027923 ;
27924 return 0;
27925}
27926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027927for ac_lib in '' malloc; do
27928 if test -z "$ac_lib"; then
27929 ac_res="none required"
27930 else
27931 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027933 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
John Criswell7a73b802003-06-30 21:59:07 +000027942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027943 grep -v '^ *+' conftest.er1 >conftest.err
27944 rm -f conftest.er1
27945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027947 (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
Reid Spencera773bd52006-08-04 18:18:08 +000027968 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027969else
27970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027971sed 's/^/| /' conftest.$ac_ext >&5
27972
Reid Spencera773bd52006-08-04 18:18:08 +000027973
John Criswell7a73b802003-06-30 21:59:07 +000027974fi
Reid Spencera773bd52006-08-04 18:18:08 +000027975
Bill Wendlingebcceee2009-04-18 11:20:33 +000027976rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027977 conftest$ac_exeext
27978 if test "${ac_cv_search_mallinfo+set}" = set; then
27979 break
John Criswell7a73b802003-06-30 21:59:07 +000027980fi
Reid Spencera773bd52006-08-04 18:18:08 +000027981done
27982if test "${ac_cv_search_mallinfo+set}" = set; then
27983 :
27984else
27985 ac_cv_search_mallinfo=no
27986fi
27987rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027988LIBS=$ac_func_search_save_LIBS
27989fi
Reid Spencera773bd52006-08-04 18:18:08 +000027990{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27991echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27992ac_res=$ac_cv_search_mallinfo
27993if test "$ac_res" != no; then
27994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027995
27996cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027997#define HAVE_MALLINFO 1
27998_ACEOF
27999
28000fi
28001
28002
Reid Spencer0a262ba2005-08-24 10:07:20 +000028003if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028004
Reid Spencera773bd52006-08-04 18:18:08 +000028005{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28006echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028007if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28009else
28010 ac_check_lib_save_LIBS=$LIBS
28011LIBS="-lpthread $LIBS"
28012cat >conftest.$ac_ext <<_ACEOF
28013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
28018
Reid Spencera773bd52006-08-04 18:18:08 +000028019/* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028022#ifdef __cplusplus
28023extern "C"
28024#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028025char pthread_mutex_init ();
28026int
28027main ()
28028{
Reid Spencera773bd52006-08-04 18:18:08 +000028029return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028035if { (ac_try="$ac_link"
28036case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28039esac
28040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028042 ac_status=$?
28043 grep -v '^ *+' conftest.er1 >conftest.err
28044 rm -f conftest.er1
28045 cat conftest.err >&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028047 (exit $ac_status); } &&
28048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28049 { (case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28052esac
28053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_try") 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028068 ac_cv_lib_pthread_pthread_mutex_init=yes
28069else
28070 echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
Reid Spencera773bd52006-08-04 18:18:08 +000028073 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028074fi
Reid Spencera773bd52006-08-04 18:18:08 +000028075
Bill Wendlingebcceee2009-04-18 11:20:33 +000028076rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028077 conftest$ac_exeext conftest.$ac_ext
28078LIBS=$ac_check_lib_save_LIBS
28079fi
Reid Spencera773bd52006-08-04 18:18:08 +000028080{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28081echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028082if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28083 cat >>confdefs.h <<_ACEOF
28084#define HAVE_LIBPTHREAD 1
28085_ACEOF
28086
28087 LIBS="-lpthread $LIBS"
28088
28089fi
28090
Reid Spencera773bd52006-08-04 18:18:08 +000028091 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28092echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028093if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028097cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028098/* confdefs.h. */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h. */
28103
Reid Spencera773bd52006-08-04 18:18:08 +000028104/* Override any GCC internal prototype to avoid an error.
28105 Use char because int might match the return type of a GCC
28106 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028107#ifdef __cplusplus
28108extern "C"
28109#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028110char pthread_mutex_lock ();
28111int
28112main ()
28113{
Reid Spencera773bd52006-08-04 18:18:08 +000028114return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028115 ;
28116 return 0;
28117}
28118_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028119for ac_lib in '' pthread; do
28120 if test -z "$ac_lib"; then
28121 ac_res="none required"
28122 else
28123 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028125 fi
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127if { (ac_try="$ac_link"
28128case "(($ac_try" in
28129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130 *) ac_try_echo=$ac_try;;
28131esac
28132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028135 grep -v '^ *+' conftest.er1 >conftest.err
28136 rm -f conftest.er1
28137 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028139 (exit $ac_status); } &&
28140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28141 { (case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28144esac
28145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_try") 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest$ac_exeext'
28151 { (case "(($ac_try" in
28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153 *) ac_try_echo=$ac_try;;
28154esac
28155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156 (eval "$ac_try") 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028160 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028161else
28162 echo "$as_me: failed program was:" >&5
28163sed 's/^/| /' conftest.$ac_ext >&5
28164
Reid Spencera773bd52006-08-04 18:18:08 +000028165
Brian Gaeke5f268f72003-12-05 19:29:01 +000028166fi
Reid Spencera773bd52006-08-04 18:18:08 +000028167
Bill Wendlingebcceee2009-04-18 11:20:33 +000028168rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028169 conftest$ac_exeext
28170 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28171 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028172fi
Reid Spencera773bd52006-08-04 18:18:08 +000028173done
28174if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28175 :
28176else
28177 ac_cv_search_pthread_mutex_lock=no
28178fi
28179rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028180LIBS=$ac_func_search_save_LIBS
28181fi
Reid Spencera773bd52006-08-04 18:18:08 +000028182{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28183echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28184ac_res=$ac_cv_search_pthread_mutex_lock
28185if test "$ac_res" != no; then
28186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028187
John Criswell40468462004-09-24 21:19:06 +000028188cat >>confdefs.h <<\_ACEOF
28189#define HAVE_PTHREAD_MUTEX_LOCK 1
28190_ACEOF
28191
28192fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028193
Owen Andersonde8aed22009-06-16 18:20:20 +000028194 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28195echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28196if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198else
28199 ac_func_search_save_LIBS=$LIBS
28200cat >conftest.$ac_ext <<_ACEOF
28201/* confdefs.h. */
28202_ACEOF
28203cat confdefs.h >>conftest.$ac_ext
28204cat >>conftest.$ac_ext <<_ACEOF
28205/* end confdefs.h. */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char pthread_rwlock_init ();
28214int
28215main ()
28216{
28217return pthread_rwlock_init ();
28218 ;
28219 return 0;
28220}
28221_ACEOF
28222for ac_lib in '' pthread; do
28223 if test -z "$ac_lib"; then
28224 ac_res="none required"
28225 else
28226 ac_res=-l$ac_lib
28227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28228 fi
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230if { (ac_try="$ac_link"
28231case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28234esac
28235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236 (eval "$ac_link") 2>conftest.er1
28237 ac_status=$?
28238 grep -v '^ *+' conftest.er1 >conftest.err
28239 rm -f conftest.er1
28240 cat conftest.err >&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } &&
28243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28244 { (case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28247esac
28248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_try") 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; } &&
28253 { ac_try='test -s conftest$ac_exeext'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28257esac
28258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 ac_cv_search_pthread_rwlock_init=$ac_res
28264else
28265 echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268
28269fi
28270
28271rm -f core conftest.err conftest.$ac_objext \
28272 conftest$ac_exeext
28273 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28274 break
28275fi
28276done
28277if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28278 :
28279else
28280 ac_cv_search_pthread_rwlock_init=no
28281fi
28282rm conftest.$ac_ext
28283LIBS=$ac_func_search_save_LIBS
28284fi
28285{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28286echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28287ac_res=$ac_cv_search_pthread_rwlock_init
28288if test "$ac_res" != no; then
28289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28290
28291cat >>confdefs.h <<\_ACEOF
28292#define HAVE_PTHREAD_RWLOCK_INIT 1
28293_ACEOF
28294
28295fi
28296
Owen Anderson27fcfe12009-06-25 23:10:26 +000028297 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28298echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28299if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28301else
28302 ac_func_search_save_LIBS=$LIBS
28303cat >conftest.$ac_ext <<_ACEOF
28304/* confdefs.h. */
28305_ACEOF
28306cat confdefs.h >>conftest.$ac_ext
28307cat >>conftest.$ac_ext <<_ACEOF
28308/* end confdefs.h. */
28309
28310/* Override any GCC internal prototype to avoid an error.
28311 Use char because int might match the return type of a GCC
28312 builtin and then its argument prototype would still apply. */
28313#ifdef __cplusplus
28314extern "C"
28315#endif
28316char pthread_getspecific ();
28317int
28318main ()
28319{
28320return pthread_getspecific ();
28321 ;
28322 return 0;
28323}
28324_ACEOF
28325for ac_lib in '' pthread; do
28326 if test -z "$ac_lib"; then
28327 ac_res="none required"
28328 else
28329 ac_res=-l$ac_lib
28330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28331 fi
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333if { (ac_try="$ac_link"
28334case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28337esac
28338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339 (eval "$ac_link") 2>conftest.er1
28340 ac_status=$?
28341 grep -v '^ *+' conftest.er1 >conftest.err
28342 rm -f conftest.er1
28343 cat conftest.err >&5
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); } &&
28346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28347 { (case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_try") 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; } &&
28356 { ac_try='test -s conftest$ac_exeext'
28357 { (case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28360esac
28361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_try") 2>&5
28363 ac_status=$?
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; }; then
28366 ac_cv_search_pthread_getspecific=$ac_res
28367else
28368 echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
28371
28372fi
28373
28374rm -f core conftest.err conftest.$ac_objext \
28375 conftest$ac_exeext
28376 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28377 break
28378fi
28379done
28380if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28381 :
28382else
28383 ac_cv_search_pthread_getspecific=no
28384fi
28385rm conftest.$ac_ext
28386LIBS=$ac_func_search_save_LIBS
28387fi
28388{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28389echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28390ac_res=$ac_cv_search_pthread_getspecific
28391if test "$ac_res" != no; then
28392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28393
28394cat >>confdefs.h <<\_ACEOF
28395#define HAVE_PTHREAD_GETSPECIFIC 1
28396_ACEOF
28397
28398fi
28399
Reid Spencer0a262ba2005-08-24 10:07:20 +000028400fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028401
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028403# Check whether --with-udis86 was given.
28404if test "${with_udis86+set}" = set; then
28405 withval=$with_udis86;
28406 USE_UDIS86=1
28407
28408 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028409 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028410 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28411 esac
28412
28413{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28414echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28415if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-ludis86 $LIBS"
28420cat >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
28427/* Override any GCC internal prototype to avoid an error.
28428 Use char because int might match the return type of a GCC
28429 builtin and then its argument prototype would still apply. */
28430#ifdef __cplusplus
28431extern "C"
28432#endif
28433char ud_init ();
28434int
28435main ()
28436{
28437return ud_init ();
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442rm -f conftest.$ac_objext conftest$ac_exeext
28443if { (ac_try="$ac_link"
28444case "(($ac_try" in
28445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446 *) ac_try_echo=$ac_try;;
28447esac
28448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449 (eval "$ac_link") 2>conftest.er1
28450 ac_status=$?
28451 grep -v '^ *+' conftest.er1 >conftest.err
28452 rm -f conftest.er1
28453 cat conftest.err >&5
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028455 (exit $ac_status); } &&
28456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28457 { (case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28460esac
28461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_try") 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest$ac_exeext'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470esac
28471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028476 ac_cv_lib_udis86_ud_init=yes
28477else
28478 echo "$as_me: failed program was:" >&5
28479sed 's/^/| /' conftest.$ac_ext >&5
28480
28481 ac_cv_lib_udis86_ud_init=no
28482fi
28483
Bill Wendlingebcceee2009-04-18 11:20:33 +000028484rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028485 conftest$ac_exeext conftest.$ac_ext
28486LIBS=$ac_check_lib_save_LIBS
28487fi
28488{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28489echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28490if test $ac_cv_lib_udis86_ud_init = yes; then
28491 cat >>confdefs.h <<_ACEOF
28492#define HAVE_LIBUDIS86 1
28493_ACEOF
28494
28495 LIBS="-ludis86 $LIBS"
28496
28497else
28498
28499 echo "Error! You need to have libudis86 around."
28500 exit -1
28501
28502fi
28503
28504
28505else
28506 USE_UDIS86=0
28507
28508fi
28509
28510
28511cat >>confdefs.h <<_ACEOF
28512#define USE_UDIS86 $USE_UDIS86
28513_ACEOF
28514
28515
28516
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028517# Check whether --with-oprofile was given.
28518if test "${with_oprofile+set}" = set; then
28519 withval=$with_oprofile;
28520 USE_OPROFILE=1
28521
28522 case "$withval" in
28523 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28524 *) llvm_cv_oppath="${withval}/lib/oprofile"
28525 CPPFLAGS="-I${withval}/include";;
28526 esac
28527 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28528 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28529echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28530if test "${ac_cv_search_op_open_agent+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28532else
28533 ac_func_search_save_LIBS=$LIBS
28534cat >conftest.$ac_ext <<_ACEOF
28535/* confdefs.h. */
28536_ACEOF
28537cat confdefs.h >>conftest.$ac_ext
28538cat >>conftest.$ac_ext <<_ACEOF
28539/* end confdefs.h. */
28540
28541/* Override any GCC internal prototype to avoid an error.
28542 Use char because int might match the return type of a GCC
28543 builtin and then its argument prototype would still apply. */
28544#ifdef __cplusplus
28545extern "C"
28546#endif
28547char op_open_agent ();
28548int
28549main ()
28550{
28551return op_open_agent ();
28552 ;
28553 return 0;
28554}
28555_ACEOF
28556for ac_lib in '' opagent; do
28557 if test -z "$ac_lib"; then
28558 ac_res="none required"
28559 else
28560 ac_res=-l$ac_lib
28561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28562 fi
28563 rm -f conftest.$ac_objext conftest$ac_exeext
28564if { (ac_try="$ac_link"
28565case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28568esac
28569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_link") 2>conftest.er1
28571 ac_status=$?
28572 grep -v '^ *+' conftest.er1 >conftest.err
28573 rm -f conftest.er1
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578 { (case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_try") 2>&5
28584 ac_status=$?
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest$ac_exeext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_search_op_open_agent=$ac_res
28598else
28599 echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602
28603fi
28604
28605rm -f core conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext
28607 if test "${ac_cv_search_op_open_agent+set}" = set; then
28608 break
28609fi
28610done
28611if test "${ac_cv_search_op_open_agent+set}" = set; then
28612 :
28613else
28614 ac_cv_search_op_open_agent=no
28615fi
28616rm conftest.$ac_ext
28617LIBS=$ac_func_search_save_LIBS
28618fi
28619{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28620echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28621ac_res=$ac_cv_search_op_open_agent
28622if test "$ac_res" != no; then
28623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28624
28625else
28626
28627 echo "Error! You need to have libopagent around."
28628 exit -1
28629
28630fi
28631
28632 if test "${ac_cv_header_opagent_h+set}" = set; then
28633 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28634echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28635if test "${ac_cv_header_opagent_h+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28637fi
28638{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28639echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28640else
28641 # Is the header compilable?
28642{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28643echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28644cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650$ac_includes_default
28651#include <opagent.h>
28652_ACEOF
28653rm -f conftest.$ac_objext
28654if { (ac_try="$ac_compile"
28655case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658esac
28659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_compile") 2>conftest.er1
28661 ac_status=$?
28662 grep -v '^ *+' conftest.er1 >conftest.err
28663 rm -f conftest.er1
28664 cat conftest.err >&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } &&
28667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28668 { (case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_try") 2>&5
28674 ac_status=$?
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; } &&
28677 { ac_try='test -s conftest.$ac_objext'
28678 { (case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681esac
28682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_try") 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_header_compiler=yes
28688else
28689 echo "$as_me: failed program was:" >&5
28690sed 's/^/| /' conftest.$ac_ext >&5
28691
28692 ac_header_compiler=no
28693fi
28694
28695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28697echo "${ECHO_T}$ac_header_compiler" >&6; }
28698
28699# Is the header present?
28700{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28701echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28702cat >conftest.$ac_ext <<_ACEOF
28703/* confdefs.h. */
28704_ACEOF
28705cat confdefs.h >>conftest.$ac_ext
28706cat >>conftest.$ac_ext <<_ACEOF
28707/* end confdefs.h. */
28708#include <opagent.h>
28709_ACEOF
28710if { (ac_try="$ac_cpp conftest.$ac_ext"
28711case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28714esac
28715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } >/dev/null; then
28723 if test -s conftest.err; then
28724 ac_cpp_err=$ac_c_preproc_warn_flag
28725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28726 else
28727 ac_cpp_err=
28728 fi
28729else
28730 ac_cpp_err=yes
28731fi
28732if test -z "$ac_cpp_err"; then
28733 ac_header_preproc=yes
28734else
28735 echo "$as_me: failed program was:" >&5
28736sed 's/^/| /' conftest.$ac_ext >&5
28737
28738 ac_header_preproc=no
28739fi
28740
28741rm -f conftest.err conftest.$ac_ext
28742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28743echo "${ECHO_T}$ac_header_preproc" >&6; }
28744
28745# So? What about this header?
28746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28747 yes:no: )
28748 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28749echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28750 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28751echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28752 ac_header_preproc=yes
28753 ;;
28754 no:yes:* )
28755 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28756echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28758echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28760echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28762echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28764echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28766echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28767 ( cat <<\_ASBOX
28768## ----------------------------------- ##
28769## Report this to llvmbugs@cs.uiuc.edu ##
28770## ----------------------------------- ##
28771_ASBOX
28772 ) | sed "s/^/$as_me: WARNING: /" >&2
28773 ;;
28774esac
28775{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28776echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28777if test "${ac_cv_header_opagent_h+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28779else
28780 ac_cv_header_opagent_h=$ac_header_preproc
28781fi
28782{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28784
28785fi
28786if test $ac_cv_header_opagent_h = yes; then
28787 :
28788else
28789
28790 echo "Error! You need to have opagent.h around."
28791 exit -1
28792
28793fi
28794
28795
28796
28797else
28798
28799 llvm_cv_old_LIBS="$LIBS"
28800 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28801 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28802echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28803if test "${ac_cv_search_op_open_agent+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28805else
28806 ac_func_search_save_LIBS=$LIBS
28807cat >conftest.$ac_ext <<_ACEOF
28808/* confdefs.h. */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h. */
28813
28814/* Override any GCC internal prototype to avoid an error.
28815 Use char because int might match the return type of a GCC
28816 builtin and then its argument prototype would still apply. */
28817#ifdef __cplusplus
28818extern "C"
28819#endif
28820char op_open_agent ();
28821int
28822main ()
28823{
28824return op_open_agent ();
28825 ;
28826 return 0;
28827}
28828_ACEOF
28829for ac_lib in '' opagent; do
28830 if test -z "$ac_lib"; then
28831 ac_res="none required"
28832 else
28833 ac_res=-l$ac_lib
28834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28835 fi
28836 rm -f conftest.$ac_objext conftest$ac_exeext
28837if { (ac_try="$ac_link"
28838case "(($ac_try" in
28839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840 *) ac_try_echo=$ac_try;;
28841esac
28842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843 (eval "$ac_link") 2>conftest.er1
28844 ac_status=$?
28845 grep -v '^ *+' conftest.er1 >conftest.err
28846 rm -f conftest.er1
28847 cat conftest.err >&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); } &&
28850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28851 { (case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28854esac
28855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_try") 2>&5
28857 ac_status=$?
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; } &&
28860 { ac_try='test -s conftest$ac_exeext'
28861 { (case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28864esac
28865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_try") 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_search_op_open_agent=$ac_res
28871else
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875
28876fi
28877
28878rm -f core conftest.err conftest.$ac_objext \
28879 conftest$ac_exeext
28880 if test "${ac_cv_search_op_open_agent+set}" = set; then
28881 break
28882fi
28883done
28884if test "${ac_cv_search_op_open_agent+set}" = set; then
28885 :
28886else
28887 ac_cv_search_op_open_agent=no
28888fi
28889rm conftest.$ac_ext
28890LIBS=$ac_func_search_save_LIBS
28891fi
28892{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28893echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28894ac_res=$ac_cv_search_op_open_agent
28895if test "$ac_res" != no; then
28896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28897 USE_OPROFILE=1
28898
28899else
28900 LIBS="$llvm_cv_old_LIBS"
28901 USE_OPROFILE=0
28902
28903fi
28904
28905 if test "${ac_cv_header_opagent_h+set}" = set; then
28906 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28907echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28908if test "${ac_cv_header_opagent_h+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910fi
28911{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28912echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28913else
28914 # Is the header compilable?
28915{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28916echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28917cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923$ac_includes_default
28924#include <opagent.h>
28925_ACEOF
28926rm -f conftest.$ac_objext
28927if { (ac_try="$ac_compile"
28928case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931esac
28932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_compile") 2>conftest.er1
28934 ac_status=$?
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28941 { (case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28944esac
28945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_try") 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; } &&
28950 { ac_try='test -s conftest.$ac_objext'
28951 { (case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28954esac
28955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_try") 2>&5
28957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; }; then
28960 ac_header_compiler=yes
28961else
28962 echo "$as_me: failed program was:" >&5
28963sed 's/^/| /' conftest.$ac_ext >&5
28964
28965 ac_header_compiler=no
28966fi
28967
28968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28970echo "${ECHO_T}$ac_header_compiler" >&6; }
28971
28972# Is the header present?
28973{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28974echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28975cat >conftest.$ac_ext <<_ACEOF
28976/* confdefs.h. */
28977_ACEOF
28978cat confdefs.h >>conftest.$ac_ext
28979cat >>conftest.$ac_ext <<_ACEOF
28980/* end confdefs.h. */
28981#include <opagent.h>
28982_ACEOF
28983if { (ac_try="$ac_cpp conftest.$ac_ext"
28984case "(($ac_try" in
28985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28986 *) ac_try_echo=$ac_try;;
28987esac
28988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28990 ac_status=$?
28991 grep -v '^ *+' conftest.er1 >conftest.err
28992 rm -f conftest.er1
28993 cat conftest.err >&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } >/dev/null; then
28996 if test -s conftest.err; then
28997 ac_cpp_err=$ac_c_preproc_warn_flag
28998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28999 else
29000 ac_cpp_err=
29001 fi
29002else
29003 ac_cpp_err=yes
29004fi
29005if test -z "$ac_cpp_err"; then
29006 ac_header_preproc=yes
29007else
29008 echo "$as_me: failed program was:" >&5
29009sed 's/^/| /' conftest.$ac_ext >&5
29010
29011 ac_header_preproc=no
29012fi
29013
29014rm -f conftest.err conftest.$ac_ext
29015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29016echo "${ECHO_T}$ac_header_preproc" >&6; }
29017
29018# So? What about this header?
29019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29020 yes:no: )
29021 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29022echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29023 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29024echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29025 ac_header_preproc=yes
29026 ;;
29027 no:yes:* )
29028 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29029echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29031echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29033echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29035echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29037echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29039echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29040 ( cat <<\_ASBOX
29041## ----------------------------------- ##
29042## Report this to llvmbugs@cs.uiuc.edu ##
29043## ----------------------------------- ##
29044_ASBOX
29045 ) | sed "s/^/$as_me: WARNING: /" >&2
29046 ;;
29047esac
29048{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29049echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29050if test "${ac_cv_header_opagent_h+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 ac_cv_header_opagent_h=$ac_header_preproc
29054fi
29055{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29056echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29057
29058fi
29059if test $ac_cv_header_opagent_h = yes; then
29060 :
29061else
29062
29063 LIBS="$llvm_cv_old_LIBS"
29064 USE_OPROFILE=0
29065
29066
29067fi
29068
29069
29070
29071fi
29072
29073
29074cat >>confdefs.h <<_ACEOF
29075#define USE_OPROFILE $USE_OPROFILE
29076_ACEOF
29077
29078
29079
Reid Spencer59473af2004-12-25 07:31:29 +000029080
29081
29082
29083
29084
29085ac_header_dirent=no
29086for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29087 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029088{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29089echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092else
29093 cat >conftest.$ac_ext <<_ACEOF
29094/* confdefs.h. */
29095_ACEOF
29096cat confdefs.h >>conftest.$ac_ext
29097cat >>conftest.$ac_ext <<_ACEOF
29098/* end confdefs.h. */
29099#include <sys/types.h>
29100#include <$ac_hdr>
29101
29102int
29103main ()
29104{
29105if ((DIR *) 0)
29106return 0;
29107 ;
29108 return 0;
29109}
29110_ACEOF
29111rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029112if { (ac_try="$ac_compile"
29113case "(($ac_try" in
29114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29115 *) ac_try_echo=$ac_try;;
29116esac
29117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29118 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029119 ac_status=$?
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029124 (exit $ac_status); } &&
29125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29126 { (case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129esac
29130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_try") 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; } &&
29135 { ac_try='test -s conftest.$ac_objext'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139esac
29140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029145 eval "$as_ac_Header=yes"
29146else
29147 echo "$as_me: failed program was:" >&5
29148sed 's/^/| /' conftest.$ac_ext >&5
29149
Reid Spencera773bd52006-08-04 18:18:08 +000029150 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029151fi
Reid Spencera773bd52006-08-04 18:18:08 +000029152
29153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029154fi
Reid Spencera773bd52006-08-04 18:18:08 +000029155ac_res=`eval echo '${'$as_ac_Header'}'`
29156 { echo "$as_me:$LINENO: result: $ac_res" >&5
29157echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029158if test `eval echo '${'$as_ac_Header'}'` = yes; then
29159 cat >>confdefs.h <<_ACEOF
29160#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29161_ACEOF
29162
29163ac_header_dirent=$ac_hdr; break
29164fi
29165
29166done
29167# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29168if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029169 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29170echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029171if test "${ac_cv_search_opendir+set}" = set; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173else
29174 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029175cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h. */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h. */
29181
Reid Spencera773bd52006-08-04 18:18:08 +000029182/* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029185#ifdef __cplusplus
29186extern "C"
29187#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029188char opendir ();
29189int
29190main ()
29191{
Reid Spencera773bd52006-08-04 18:18:08 +000029192return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029193 ;
29194 return 0;
29195}
29196_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029197for ac_lib in '' dir; do
29198 if test -z "$ac_lib"; then
29199 ac_res="none required"
29200 else
29201 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029203 fi
29204 rm -f conftest.$ac_objext conftest$ac_exeext
29205if { (ac_try="$ac_link"
29206case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29209esac
29210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029212 ac_status=$?
29213 grep -v '^ *+' conftest.er1 >conftest.err
29214 rm -f conftest.er1
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219 { (case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222esac
29223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_try") 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest$ac_exeext'
29229 { (case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29232esac
29233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_try") 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029238 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029239else
29240 echo "$as_me: failed program was:" >&5
29241sed 's/^/| /' conftest.$ac_ext >&5
29242
Reid Spencera773bd52006-08-04 18:18:08 +000029243
Reid Spencer59473af2004-12-25 07:31:29 +000029244fi
Reid Spencera773bd52006-08-04 18:18:08 +000029245
Bill Wendlingebcceee2009-04-18 11:20:33 +000029246rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029247 conftest$ac_exeext
29248 if test "${ac_cv_search_opendir+set}" = set; then
29249 break
Reid Spencer59473af2004-12-25 07:31:29 +000029250fi
Reid Spencera773bd52006-08-04 18:18:08 +000029251done
29252if test "${ac_cv_search_opendir+set}" = set; then
29253 :
29254else
29255 ac_cv_search_opendir=no
29256fi
29257rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029258LIBS=$ac_func_search_save_LIBS
29259fi
Reid Spencera773bd52006-08-04 18:18:08 +000029260{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29261echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29262ac_res=$ac_cv_search_opendir
29263if test "$ac_res" != no; then
29264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029265
29266fi
29267
29268else
Reid Spencera773bd52006-08-04 18:18:08 +000029269 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29270echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029271if test "${ac_cv_search_opendir+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29273else
29274 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029275cat >conftest.$ac_ext <<_ACEOF
29276/* confdefs.h. */
29277_ACEOF
29278cat confdefs.h >>conftest.$ac_ext
29279cat >>conftest.$ac_ext <<_ACEOF
29280/* end confdefs.h. */
29281
Reid Spencera773bd52006-08-04 18:18:08 +000029282/* Override any GCC internal prototype to avoid an error.
29283 Use char because int might match the return type of a GCC
29284 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029285#ifdef __cplusplus
29286extern "C"
29287#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029288char opendir ();
29289int
29290main ()
29291{
Reid Spencera773bd52006-08-04 18:18:08 +000029292return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029293 ;
29294 return 0;
29295}
29296_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029297for ac_lib in '' x; do
29298 if test -z "$ac_lib"; then
29299 ac_res="none required"
29300 else
29301 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029303 fi
29304 rm -f conftest.$ac_objext conftest$ac_exeext
29305if { (ac_try="$ac_link"
29306case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309esac
29310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029312 ac_status=$?
29313 grep -v '^ *+' conftest.er1 >conftest.err
29314 rm -f conftest.er1
29315 cat conftest.err >&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029317 (exit $ac_status); } &&
29318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29319 { (case "(($ac_try" in
29320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321 *) ac_try_echo=$ac_try;;
29322esac
29323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324 (eval "$ac_try") 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest$ac_exeext'
29329 { (case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29332esac
29333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_try") 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029338 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029339else
29340 echo "$as_me: failed program was:" >&5
29341sed 's/^/| /' conftest.$ac_ext >&5
29342
Reid Spencera773bd52006-08-04 18:18:08 +000029343
Reid Spencer59473af2004-12-25 07:31:29 +000029344fi
Reid Spencera773bd52006-08-04 18:18:08 +000029345
Bill Wendlingebcceee2009-04-18 11:20:33 +000029346rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029347 conftest$ac_exeext
29348 if test "${ac_cv_search_opendir+set}" = set; then
29349 break
Reid Spencer59473af2004-12-25 07:31:29 +000029350fi
Reid Spencera773bd52006-08-04 18:18:08 +000029351done
29352if test "${ac_cv_search_opendir+set}" = set; then
29353 :
29354else
29355 ac_cv_search_opendir=no
29356fi
29357rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029358LIBS=$ac_func_search_save_LIBS
29359fi
Reid Spencera773bd52006-08-04 18:18:08 +000029360{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29361echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29362ac_res=$ac_cv_search_opendir
29363if test "$ac_res" != no; then
29364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029365
29366fi
29367
29368fi
29369
Reid Spencera773bd52006-08-04 18:18:08 +000029370{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29371echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029372if test "${ac_cv_header_mmap_anon+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29374else
29375 ac_ext=c
29376ac_cpp='$CPP $CPPFLAGS'
29377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29379ac_compiler_gnu=$ac_cv_c_compiler_gnu
29380
29381 cat >conftest.$ac_ext <<_ACEOF
29382/* confdefs.h. */
29383_ACEOF
29384cat confdefs.h >>conftest.$ac_ext
29385cat >>conftest.$ac_ext <<_ACEOF
29386/* end confdefs.h. */
29387#include <sys/mman.h>
29388#include <unistd.h>
29389#include <fcntl.h>
29390int
29391main ()
29392{
29393mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29394 ;
29395 return 0;
29396}
29397_ACEOF
29398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029399if { (ac_try="$ac_compile"
29400case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29403esac
29404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029406 ac_status=$?
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029411 (exit $ac_status); } &&
29412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; } &&
29422 { ac_try='test -s conftest.$ac_objext'
29423 { (case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29426esac
29427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428 (eval "$ac_try") 2>&5
29429 ac_status=$?
29430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029432 ac_cv_header_mmap_anon=yes
29433else
29434 echo "$as_me: failed program was:" >&5
29435sed 's/^/| /' conftest.$ac_ext >&5
29436
Reid Spencera773bd52006-08-04 18:18:08 +000029437 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029438fi
Reid Spencera773bd52006-08-04 18:18:08 +000029439
29440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029441 ac_ext=c
29442ac_cpp='$CPP $CPPFLAGS'
29443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445ac_compiler_gnu=$ac_cv_c_compiler_gnu
29446
29447
29448fi
Reid Spencera773bd52006-08-04 18:18:08 +000029449{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29450echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029451if test "$ac_cv_header_mmap_anon" = yes; then
29452
29453cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029454#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029455_ACEOF
29456
29457fi
29458
Reid Spencera773bd52006-08-04 18:18:08 +000029459{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29460echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029461if test "${ac_cv_header_stat_broken+set}" = set; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29463else
29464 cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470#include <sys/types.h>
29471#include <sys/stat.h>
29472
Reid Spencera773bd52006-08-04 18:18:08 +000029473#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029474# if S_ISBLK (S_IFDIR)
29475You lose.
29476# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029477#endif
29478
Reid Spencera773bd52006-08-04 18:18:08 +000029479#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029480# if S_ISBLK (S_IFCHR)
29481You lose.
29482# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029483#endif
29484
Reid Spencera773bd52006-08-04 18:18:08 +000029485#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029486# if S_ISLNK (S_IFREG)
29487You lose.
29488# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029489#endif
29490
Reid Spencera773bd52006-08-04 18:18:08 +000029491#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029492# if S_ISSOCK (S_IFREG)
29493You lose.
29494# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029495#endif
29496
29497_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29499 $EGREP "You lose" >/dev/null 2>&1; then
29500 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029501else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029502 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029503fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029504rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029505
Reid Spencer59473af2004-12-25 07:31:29 +000029506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29508echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029509if test $ac_cv_header_stat_broken = yes; then
29510
29511cat >>confdefs.h <<\_ACEOF
29512#define STAT_MACROS_BROKEN 1
29513_ACEOF
29514
29515fi
29516
Reid Spencera773bd52006-08-04 18:18:08 +000029517{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29518echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029519if test "${ac_cv_header_stdc+set}" = set; then
29520 echo $ECHO_N "(cached) $ECHO_C" >&6
29521else
29522 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029523/* confdefs.h. */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029528#include <stdlib.h>
29529#include <stdarg.h>
29530#include <string.h>
29531#include <float.h>
29532
John Criswell0c38eaf2003-09-10 15:17:25 +000029533int
29534main ()
29535{
29536
29537 ;
29538 return 0;
29539}
John Criswell7a73b802003-06-30 21:59:07 +000029540_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029541rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029542if { (ac_try="$ac_compile"
29543case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29546esac
29547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029550 grep -v '^ *+' conftest.er1 >conftest.err
29551 rm -f conftest.er1
29552 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029554 (exit $ac_status); } &&
29555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29556 { (case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29559esac
29560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_try") 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest.$ac_objext'
29566 { (case "(($ac_try" in
29567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29568 *) ac_try_echo=$ac_try;;
29569esac
29570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29571 (eval "$ac_try") 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029575 ac_cv_header_stdc=yes
29576else
29577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029578sed 's/^/| /' conftest.$ac_ext >&5
29579
Reid Spencera773bd52006-08-04 18:18:08 +000029580 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029581fi
Reid Spencera773bd52006-08-04 18:18:08 +000029582
29583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029584
29585if test $ac_cv_header_stdc = yes; then
29586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29587 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029588/* confdefs.h. */
29589_ACEOF
29590cat confdefs.h >>conftest.$ac_ext
29591cat >>conftest.$ac_ext <<_ACEOF
29592/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029593#include <string.h>
29594
29595_ACEOF
29596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029597 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029598 :
29599else
29600 ac_cv_header_stdc=no
29601fi
29602rm -f conftest*
29603
29604fi
29605
29606if test $ac_cv_header_stdc = yes; then
29607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29608 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029609/* confdefs.h. */
29610_ACEOF
29611cat confdefs.h >>conftest.$ac_ext
29612cat >>conftest.$ac_ext <<_ACEOF
29613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029614#include <stdlib.h>
29615
29616_ACEOF
29617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029618 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029619 :
29620else
29621 ac_cv_header_stdc=no
29622fi
29623rm -f conftest*
29624
29625fi
29626
29627if test $ac_cv_header_stdc = yes; then
29628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29629 if test "$cross_compiling" = yes; then
29630 :
29631else
29632 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029638#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029639#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029640#if ((' ' & 0x0FF) == 0x020)
29641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29643#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029644# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029645 (('a' <= (c) && (c) <= 'i') \
29646 || ('j' <= (c) && (c) <= 'r') \
29647 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29649#endif
29650
29651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29652int
29653main ()
29654{
29655 int i;
29656 for (i = 0; i < 256; i++)
29657 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029658 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029659 return 2;
29660 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029661}
29662_ACEOF
29663rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029664if { (ac_try="$ac_link"
29665case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029674 { (case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29677esac
29678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029680 ac_status=$?
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29683 :
29684else
29685 echo "$as_me: program exited with status $ac_status" >&5
29686echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029687sed 's/^/| /' conftest.$ac_ext >&5
29688
John Criswell7a73b802003-06-30 21:59:07 +000029689( exit $ac_status )
29690ac_cv_header_stdc=no
29691fi
Reid Spencera773bd52006-08-04 18:18:08 +000029692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29693fi
29694
29695
John Criswell7a73b802003-06-30 21:59:07 +000029696fi
29697fi
Reid Spencera773bd52006-08-04 18:18:08 +000029698{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29699echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029700if test $ac_cv_header_stdc = yes; then
29701
29702cat >>confdefs.h <<\_ACEOF
29703#define STDC_HEADERS 1
29704_ACEOF
29705
29706fi
29707
Reid Spencera773bd52006-08-04 18:18:08 +000029708{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29709echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029710if test "${ac_cv_header_sys_wait_h+set}" = set; then
29711 echo $ECHO_N "(cached) $ECHO_C" >&6
29712else
29713 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029714/* confdefs.h. */
29715_ACEOF
29716cat confdefs.h >>conftest.$ac_ext
29717cat >>conftest.$ac_ext <<_ACEOF
29718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029719#include <sys/types.h>
29720#include <sys/wait.h>
29721#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029722# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029723#endif
29724#ifndef WIFEXITED
29725# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29726#endif
29727
John Criswell7a73b802003-06-30 21:59:07 +000029728int
29729main ()
29730{
29731 int s;
29732 wait (&s);
29733 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29734 ;
29735 return 0;
29736}
29737_ACEOF
29738rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029739if { (ac_try="$ac_compile"
29740case "(($ac_try" in
29741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742 *) ac_try_echo=$ac_try;;
29743esac
29744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029746 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029747 grep -v '^ *+' conftest.er1 >conftest.err
29748 rm -f conftest.er1
29749 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029751 (exit $ac_status); } &&
29752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29753 { (case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29756esac
29757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_try") 2>&5
29759 ac_status=$?
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; } &&
29762 { ac_try='test -s conftest.$ac_objext'
29763 { (case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29766esac
29767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_try") 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029772 ac_cv_header_sys_wait_h=yes
29773else
29774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029775sed 's/^/| /' conftest.$ac_ext >&5
29776
Reid Spencera773bd52006-08-04 18:18:08 +000029777 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029778fi
Reid Spencera773bd52006-08-04 18:18:08 +000029779
29780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029781fi
Reid Spencera773bd52006-08-04 18:18:08 +000029782{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29783echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029784if test $ac_cv_header_sys_wait_h = yes; then
29785
29786cat >>confdefs.h <<\_ACEOF
29787#define HAVE_SYS_WAIT_H 1
29788_ACEOF
29789
29790fi
29791
Reid Spencera773bd52006-08-04 18:18:08 +000029792{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29793echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029794if test "${ac_cv_header_time+set}" = set; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29796else
29797 cat >conftest.$ac_ext <<_ACEOF
29798/* confdefs.h. */
29799_ACEOF
29800cat confdefs.h >>conftest.$ac_ext
29801cat >>conftest.$ac_ext <<_ACEOF
29802/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029803#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029804#include <sys/time.h>
29805#include <time.h>
29806
29807int
29808main ()
29809{
29810if ((struct tm *) 0)
29811return 0;
29812 ;
29813 return 0;
29814}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029815_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029816rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029817if { (ac_try="$ac_compile"
29818case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29821esac
29822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029824 ac_status=$?
29825 grep -v '^ *+' conftest.er1 >conftest.err
29826 rm -f conftest.er1
29827 cat conftest.err >&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029829 (exit $ac_status); } &&
29830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29831 { (case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29834esac
29835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; } &&
29840 { ac_try='test -s conftest.$ac_objext'
29841 { (case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29844esac
29845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_try") 2>&5
29847 ac_status=$?
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029850 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029851else
29852 echo "$as_me: failed program was:" >&5
29853sed 's/^/| /' conftest.$ac_ext >&5
29854
Reid Spencera773bd52006-08-04 18:18:08 +000029855 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029856fi
Reid Spencera773bd52006-08-04 18:18:08 +000029857
29858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029859fi
Reid Spencera773bd52006-08-04 18:18:08 +000029860{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29861echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029862if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029863
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029864cat >>confdefs.h <<\_ACEOF
29865#define TIME_WITH_SYS_TIME 1
29866_ACEOF
29867
29868fi
29869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029870
Reid Spencer59473af2004-12-25 07:31:29 +000029871
29872
29873
29874
29875
29876
29877for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29878do
29879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029884 echo $ECHO_N "(cached) $ECHO_C" >&6
29885fi
Reid Spencera773bd52006-08-04 18:18:08 +000029886ac_res=`eval echo '${'$as_ac_Header'}'`
29887 { echo "$as_me:$LINENO: result: $ac_res" >&5
29888echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029889else
29890 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029891{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029893cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029894/* confdefs.h. */
29895_ACEOF
29896cat confdefs.h >>conftest.$ac_ext
29897cat >>conftest.$ac_ext <<_ACEOF
29898/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029899$ac_includes_default
29900#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029901_ACEOF
29902rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029903if { (ac_try="$ac_compile"
29904case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29907esac
29908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029910 ac_status=$?
29911 grep -v '^ *+' conftest.er1 >conftest.err
29912 rm -f conftest.er1
29913 cat conftest.err >&5
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029915 (exit $ac_status); } &&
29916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917 { (case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29920esac
29921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_try") 2>&5
29923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
29926 { ac_try='test -s conftest.$ac_objext'
29927 { (case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29930esac
29931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932 (eval "$ac_try") 2>&5
29933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029936 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029937else
29938 echo "$as_me: failed program was:" >&5
29939sed 's/^/| /' conftest.$ac_ext >&5
29940
Reid Spencera773bd52006-08-04 18:18:08 +000029941 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029942fi
Reid Spencera773bd52006-08-04 18:18:08 +000029943
29944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29945{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29946echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029947
Reid Spencer59473af2004-12-25 07:31:29 +000029948# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029949{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029951cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957#include <$ac_header>
29958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029959if { (ac_try="$ac_cpp conftest.$ac_ext"
29960case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29963esac
29964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029966 ac_status=$?
29967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029971 (exit $ac_status); } >/dev/null; then
29972 if test -s conftest.err; then
29973 ac_cpp_err=$ac_c_preproc_warn_flag
29974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29975 else
29976 ac_cpp_err=
29977 fi
29978else
29979 ac_cpp_err=yes
29980fi
29981if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029982 ac_header_preproc=yes
29983else
29984 echo "$as_me: failed program was:" >&5
29985sed 's/^/| /' conftest.$ac_ext >&5
29986
29987 ac_header_preproc=no
29988fi
Reid Spencera773bd52006-08-04 18:18:08 +000029989
Reid Spencer59473af2004-12-25 07:31:29 +000029990rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029991{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29992echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029993
29994# So? What about this header?
29995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29996 yes:no: )
29997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30001 ac_header_preproc=yes
30002 ;;
30003 no:yes:* )
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30011echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030016 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030017## ----------------------------------- ##
30018## Report this to llvmbugs@cs.uiuc.edu ##
30019## ----------------------------------- ##
30020_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030021 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030022 ;;
30023esac
Reid Spencera773bd52006-08-04 18:18:08 +000030024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030027 echo $ECHO_N "(cached) $ECHO_C" >&6
30028else
30029 eval "$as_ac_Header=\$ac_header_preproc"
30030fi
Reid Spencera773bd52006-08-04 18:18:08 +000030031ac_res=`eval echo '${'$as_ac_Header'}'`
30032 { echo "$as_me:$LINENO: result: $ac_res" >&5
30033echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030034
30035fi
Reid Spencer59473af2004-12-25 07:31:29 +000030036if test `eval echo '${'$as_ac_Header'}'` = yes; then
30037 cat >>confdefs.h <<_ACEOF
30038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030039_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030040
30041fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030042
Reid Spencer59473af2004-12-25 07:31:29 +000030043done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030044
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030045
30046
Reid Spencer59473af2004-12-25 07:31:29 +000030047
30048
30049
30050
Douglas Gregor071d73d2009-05-18 17:21:34 +000030051for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030052do
30053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030058 echo $ECHO_N "(cached) $ECHO_C" >&6
30059fi
Reid Spencera773bd52006-08-04 18:18:08 +000030060ac_res=`eval echo '${'$as_ac_Header'}'`
30061 { echo "$as_me:$LINENO: result: $ac_res" >&5
30062echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030063else
30064 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030067cat >conftest.$ac_ext <<_ACEOF
30068/* confdefs.h. */
30069_ACEOF
30070cat confdefs.h >>conftest.$ac_ext
30071cat >>conftest.$ac_ext <<_ACEOF
30072/* end confdefs.h. */
30073$ac_includes_default
30074#include <$ac_header>
30075_ACEOF
30076rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030077if { (ac_try="$ac_compile"
30078case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030084 ac_status=$?
30085 grep -v '^ *+' conftest.er1 >conftest.err
30086 rm -f conftest.er1
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30091 { (case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30094esac
30095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_try") 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
30101 { (case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_try") 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030110 ac_header_compiler=yes
30111else
30112 echo "$as_me: failed program was:" >&5
30113sed 's/^/| /' conftest.$ac_ext >&5
30114
Reid Spencera773bd52006-08-04 18:18:08 +000030115 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030116fi
Reid Spencera773bd52006-08-04 18:18:08 +000030117
30118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30120echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030121
30122# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030125cat >conftest.$ac_ext <<_ACEOF
30126/* confdefs.h. */
30127_ACEOF
30128cat confdefs.h >>conftest.$ac_ext
30129cat >>conftest.$ac_ext <<_ACEOF
30130/* end confdefs.h. */
30131#include <$ac_header>
30132_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030133if { (ac_try="$ac_cpp conftest.$ac_ext"
30134case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030140 ac_status=$?
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030145 (exit $ac_status); } >/dev/null; then
30146 if test -s conftest.err; then
30147 ac_cpp_err=$ac_c_preproc_warn_flag
30148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30149 else
30150 ac_cpp_err=
30151 fi
30152else
30153 ac_cpp_err=yes
30154fi
30155if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030156 ac_header_preproc=yes
30157else
30158 echo "$as_me: failed program was:" >&5
30159sed 's/^/| /' conftest.$ac_ext >&5
30160
30161 ac_header_preproc=no
30162fi
Reid Spencera773bd52006-08-04 18:18:08 +000030163
Reid Spencer59473af2004-12-25 07:31:29 +000030164rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30166echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030167
30168# So? What about this header?
30169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30170 yes:no: )
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30175 ac_header_preproc=yes
30176 ;;
30177 no:yes:* )
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030190 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030191## ----------------------------------- ##
30192## Report this to llvmbugs@cs.uiuc.edu ##
30193## ----------------------------------- ##
30194_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030195 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030196 ;;
30197esac
Reid Spencera773bd52006-08-04 18:18:08 +000030198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202else
30203 eval "$as_ac_Header=\$ac_header_preproc"
30204fi
Reid Spencera773bd52006-08-04 18:18:08 +000030205ac_res=`eval echo '${'$as_ac_Header'}'`
30206 { echo "$as_me:$LINENO: result: $ac_res" >&5
30207echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030208
30209fi
30210if test `eval echo '${'$as_ac_Header'}'` = yes; then
30211 cat >>confdefs.h <<_ACEOF
30212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30213_ACEOF
30214
30215fi
30216
30217done
30218
30219
Douglas Gregor071d73d2009-05-18 17:21:34 +000030220
30221for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030222do
30223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30229fi
30230ac_res=`eval echo '${'$as_ac_Header'}'`
30231 { echo "$as_me:$LINENO: result: $ac_res" >&5
30232echo "${ECHO_T}$ac_res" >&6; }
30233else
30234 # Is the header compilable?
30235{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30237cat >conftest.$ac_ext <<_ACEOF
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243$ac_includes_default
30244#include <$ac_header>
30245_ACEOF
30246rm -f conftest.$ac_objext
30247if { (ac_try="$ac_compile"
30248case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30251esac
30252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_compile") 2>conftest.er1
30254 ac_status=$?
30255 grep -v '^ *+' conftest.er1 >conftest.err
30256 rm -f conftest.er1
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030259 (exit $ac_status); } &&
30260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261 { (case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30264esac
30265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_try") 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest.$ac_objext'
30271 { (case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30274esac
30275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_try") 2>&5
30277 ac_status=$?
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030280 ac_header_compiler=yes
30281else
30282 echo "$as_me: failed program was:" >&5
30283sed 's/^/| /' conftest.$ac_ext >&5
30284
30285 ac_header_compiler=no
30286fi
30287
30288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30290echo "${ECHO_T}$ac_header_compiler" >&6; }
30291
30292# Is the header present?
30293{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30295cat >conftest.$ac_ext <<_ACEOF
30296/* confdefs.h. */
30297_ACEOF
30298cat confdefs.h >>conftest.$ac_ext
30299cat >>conftest.$ac_ext <<_ACEOF
30300/* end confdefs.h. */
30301#include <$ac_header>
30302_ACEOF
30303if { (ac_try="$ac_cpp conftest.$ac_ext"
30304case "(($ac_try" in
30305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306 *) ac_try_echo=$ac_try;;
30307esac
30308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30310 ac_status=$?
30311 grep -v '^ *+' conftest.er1 >conftest.err
30312 rm -f conftest.er1
30313 cat conftest.err >&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030315 (exit $ac_status); } >/dev/null; then
30316 if test -s conftest.err; then
30317 ac_cpp_err=$ac_c_preproc_warn_flag
30318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30319 else
30320 ac_cpp_err=
30321 fi
30322else
30323 ac_cpp_err=yes
30324fi
30325if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030326 ac_header_preproc=yes
30327else
30328 echo "$as_me: failed program was:" >&5
30329sed 's/^/| /' conftest.$ac_ext >&5
30330
30331 ac_header_preproc=no
30332fi
30333
30334rm -f conftest.err conftest.$ac_ext
30335{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30336echo "${ECHO_T}$ac_header_preproc" >&6; }
30337
30338# So? What about this header?
30339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30340 yes:no: )
30341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30345 ac_header_preproc=yes
30346 ;;
30347 no:yes:* )
30348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30360 ( cat <<\_ASBOX
30361## ----------------------------------- ##
30362## Report this to llvmbugs@cs.uiuc.edu ##
30363## ----------------------------------- ##
30364_ASBOX
30365 ) | sed "s/^/$as_me: WARNING: /" >&2
30366 ;;
30367esac
30368{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30371 echo $ECHO_N "(cached) $ECHO_C" >&6
30372else
30373 eval "$as_ac_Header=\$ac_header_preproc"
30374fi
30375ac_res=`eval echo '${'$as_ac_Header'}'`
30376 { echo "$as_me:$LINENO: result: $ac_res" >&5
30377echo "${ECHO_T}$ac_res" >&6; }
30378
30379fi
30380if test `eval echo '${'$as_ac_Header'}'` = yes; then
30381 cat >>confdefs.h <<_ACEOF
30382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30383_ACEOF
30384
30385fi
30386
30387done
Reid Spencer59473af2004-12-25 07:31:29 +000030388
30389
30390
30391
Reid Spencerbe3e4192007-08-17 05:45:26 +000030392
30393for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030394do
30395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030400 echo $ECHO_N "(cached) $ECHO_C" >&6
30401fi
Reid Spencera773bd52006-08-04 18:18:08 +000030402ac_res=`eval echo '${'$as_ac_Header'}'`
30403 { echo "$as_me:$LINENO: result: $ac_res" >&5
30404echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030405else
30406 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030407{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030409cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030410/* confdefs.h. */
30411_ACEOF
30412cat confdefs.h >>conftest.$ac_ext
30413cat >>conftest.$ac_ext <<_ACEOF
30414/* end confdefs.h. */
30415$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030416#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030417_ACEOF
30418rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030419if { (ac_try="$ac_compile"
30420case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30423esac
30424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030427 grep -v '^ *+' conftest.er1 >conftest.err
30428 rm -f conftest.er1
30429 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030431 (exit $ac_status); } &&
30432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30433 { (case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_try") 2>&5
30439 ac_status=$?
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); }; } &&
30442 { ac_try='test -s conftest.$ac_objext'
30443 { (case "(($ac_try" in
30444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445 *) ac_try_echo=$ac_try;;
30446esac
30447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448 (eval "$ac_try") 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030452 ac_header_compiler=yes
30453else
30454 echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
Reid Spencera773bd52006-08-04 18:18:08 +000030457 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030458fi
Reid Spencera773bd52006-08-04 18:18:08 +000030459
30460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30461{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30462echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030463
30464# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030465{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030467cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030475if { (ac_try="$ac_cpp conftest.$ac_ext"
30476case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030482 ac_status=$?
30483 grep -v '^ *+' conftest.er1 >conftest.err
30484 rm -f conftest.er1
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030487 (exit $ac_status); } >/dev/null; then
30488 if test -s conftest.err; then
30489 ac_cpp_err=$ac_c_preproc_warn_flag
30490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30491 else
30492 ac_cpp_err=
30493 fi
30494else
30495 ac_cpp_err=yes
30496fi
30497if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030498 ac_header_preproc=yes
30499else
30500 echo "$as_me: failed program was:" >&5
30501sed 's/^/| /' conftest.$ac_ext >&5
30502
30503 ac_header_preproc=no
30504fi
Reid Spencera773bd52006-08-04 18:18:08 +000030505
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030506rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030507{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30508echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030509
30510# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30512 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030517 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030518 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030519 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030532 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030533## ----------------------------------- ##
30534## Report this to llvmbugs@cs.uiuc.edu ##
30535## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030536_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030537 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030538 ;;
30539esac
Reid Spencera773bd52006-08-04 18:18:08 +000030540{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030543 echo $ECHO_N "(cached) $ECHO_C" >&6
30544else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030545 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030546fi
Reid Spencera773bd52006-08-04 18:18:08 +000030547ac_res=`eval echo '${'$as_ac_Header'}'`
30548 { echo "$as_me:$LINENO: result: $ac_res" >&5
30549echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030550
30551fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030552if test `eval echo '${'$as_ac_Header'}'` = yes; then
30553 cat >>confdefs.h <<_ACEOF
30554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030555_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030556
30557fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030558
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030559done
30560
John Criswell7ed43ad2004-07-19 16:12:29 +000030561
Reid Spencercdb08a32006-06-05 16:11:07 +000030562
Reid Spencera6d990a2006-09-14 06:17:21 +000030563
Douglas Gregor01746742009-05-11 18:05:52 +000030564
30565for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030566do
30567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030572 echo $ECHO_N "(cached) $ECHO_C" >&6
30573fi
Reid Spencera773bd52006-08-04 18:18:08 +000030574ac_res=`eval echo '${'$as_ac_Header'}'`
30575 { echo "$as_me:$LINENO: result: $ac_res" >&5
30576echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030577else
30578 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030581cat >conftest.$ac_ext <<_ACEOF
30582/* confdefs.h. */
30583_ACEOF
30584cat confdefs.h >>conftest.$ac_ext
30585cat >>conftest.$ac_ext <<_ACEOF
30586/* end confdefs.h. */
30587$ac_includes_default
30588#include <$ac_header>
30589_ACEOF
30590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030591if { (ac_try="$ac_compile"
30592case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595esac
30596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030598 ac_status=$?
30599 grep -v '^ *+' conftest.er1 >conftest.err
30600 rm -f conftest.er1
30601 cat conftest.err >&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030603 (exit $ac_status); } &&
30604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30605 { (case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_try") 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; } &&
30614 { ac_try='test -s conftest.$ac_objext'
30615 { (case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30618esac
30619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_try") 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030624 ac_header_compiler=yes
30625else
30626 echo "$as_me: failed program was:" >&5
30627sed 's/^/| /' conftest.$ac_ext >&5
30628
Reid Spencera773bd52006-08-04 18:18:08 +000030629 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030630fi
Reid Spencera773bd52006-08-04 18:18:08 +000030631
30632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30634echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030635
30636# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030637{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030639cat >conftest.$ac_ext <<_ACEOF
30640/* confdefs.h. */
30641_ACEOF
30642cat confdefs.h >>conftest.$ac_ext
30643cat >>conftest.$ac_ext <<_ACEOF
30644/* end confdefs.h. */
30645#include <$ac_header>
30646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030647if { (ac_try="$ac_cpp conftest.$ac_ext"
30648case "(($ac_try" in
30649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650 *) ac_try_echo=$ac_try;;
30651esac
30652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030654 ac_status=$?
30655 grep -v '^ *+' conftest.er1 >conftest.err
30656 rm -f conftest.er1
30657 cat conftest.err >&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030659 (exit $ac_status); } >/dev/null; then
30660 if test -s conftest.err; then
30661 ac_cpp_err=$ac_c_preproc_warn_flag
30662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30663 else
30664 ac_cpp_err=
30665 fi
30666else
30667 ac_cpp_err=yes
30668fi
30669if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030670 ac_header_preproc=yes
30671else
30672 echo "$as_me: failed program was:" >&5
30673sed 's/^/| /' conftest.$ac_ext >&5
30674
30675 ac_header_preproc=no
30676fi
Reid Spencera773bd52006-08-04 18:18:08 +000030677
Chris Lattner0b142592005-11-14 06:57:34 +000030678rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030681
30682# So? What about this header?
30683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30684 yes:no: )
30685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30689 ac_header_preproc=yes
30690 ;;
30691 no:yes:* )
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030704 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030705## ----------------------------------- ##
30706## Report this to llvmbugs@cs.uiuc.edu ##
30707## ----------------------------------- ##
30708_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030709 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030710 ;;
30711esac
Reid Spencera773bd52006-08-04 18:18:08 +000030712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716else
30717 eval "$as_ac_Header=\$ac_header_preproc"
30718fi
Reid Spencera773bd52006-08-04 18:18:08 +000030719ac_res=`eval echo '${'$as_ac_Header'}'`
30720 { echo "$as_me:$LINENO: result: $ac_res" >&5
30721echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030722
30723fi
30724if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725 cat >>confdefs.h <<_ACEOF
30726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30727_ACEOF
30728
30729fi
30730
30731done
30732
Reid Spencer0a262ba2005-08-24 10:07:20 +000030733if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030734
30735for ac_header in pthread.h
30736do
30737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030744ac_res=`eval echo '${'$as_ac_Header'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030747else
30748 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030749{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030751cat >conftest.$ac_ext <<_ACEOF
30752/* confdefs.h. */
30753_ACEOF
30754cat confdefs.h >>conftest.$ac_ext
30755cat >>conftest.$ac_ext <<_ACEOF
30756/* end confdefs.h. */
30757$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030758#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030759_ACEOF
30760rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030761if { (ac_try="$ac_compile"
30762case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30765esac
30766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030768 ac_status=$?
30769 grep -v '^ *+' conftest.er1 >conftest.err
30770 rm -f conftest.er1
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030773 (exit $ac_status); } &&
30774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30775 { (case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30778esac
30779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_try") 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; } &&
30784 { ac_try='test -s conftest.$ac_objext'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788esac
30789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030794 ac_header_compiler=yes
30795else
30796 echo "$as_me: failed program was:" >&5
30797sed 's/^/| /' conftest.$ac_ext >&5
30798
Reid Spencera773bd52006-08-04 18:18:08 +000030799 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030800fi
Reid Spencera773bd52006-08-04 18:18:08 +000030801
30802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30804echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030805
30806# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030807{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030809cat >conftest.$ac_ext <<_ACEOF
30810/* confdefs.h. */
30811_ACEOF
30812cat confdefs.h >>conftest.$ac_ext
30813cat >>conftest.$ac_ext <<_ACEOF
30814/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030815#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030816_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030817if { (ac_try="$ac_cpp conftest.$ac_ext"
30818case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030824 ac_status=$?
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030829 (exit $ac_status); } >/dev/null; then
30830 if test -s conftest.err; then
30831 ac_cpp_err=$ac_c_preproc_warn_flag
30832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30833 else
30834 ac_cpp_err=
30835 fi
30836else
30837 ac_cpp_err=yes
30838fi
30839if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030840 ac_header_preproc=yes
30841else
30842 echo "$as_me: failed program was:" >&5
30843sed 's/^/| /' conftest.$ac_ext >&5
30844
30845 ac_header_preproc=no
30846fi
Reid Spencera773bd52006-08-04 18:18:08 +000030847
Reid Spencer0a262ba2005-08-24 10:07:20 +000030848rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30850echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030851
30852# So? What about this header?
30853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30854 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030859 ac_header_preproc=yes
30860 ;;
30861 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030874 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030875## ----------------------------------- ##
30876## Report this to llvmbugs@cs.uiuc.edu ##
30877## ----------------------------------- ##
30878_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030879 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030880 ;;
30881esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030882{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030885 echo $ECHO_N "(cached) $ECHO_C" >&6
30886else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030887 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030888fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030889ac_res=`eval echo '${'$as_ac_Header'}'`
30890 { echo "$as_me:$LINENO: result: $ac_res" >&5
30891echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030892
30893fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030894if test `eval echo '${'$as_ac_Header'}'` = yes; then
30895 cat >>confdefs.h <<_ACEOF
30896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30897_ACEOF
30898 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030899
30900else
30901 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030902
30903fi
30904
Reid Spencerbe3e4192007-08-17 05:45:26 +000030905done
Reid Spencer1000b732006-12-01 00:37:14 +000030906
30907else
30908 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030909
30910fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030911
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030912if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030913
30914
30915for ac_header in ffi.h ffi/ffi.h
30916do
30917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30922 echo $ECHO_N "(cached) $ECHO_C" >&6
30923fi
30924ac_res=`eval echo '${'$as_ac_Header'}'`
30925 { echo "$as_me:$LINENO: result: $ac_res" >&5
30926echo "${ECHO_T}$ac_res" >&6; }
30927else
30928 # Is the header compilable?
30929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30931cat >conftest.$ac_ext <<_ACEOF
30932/* confdefs.h. */
30933_ACEOF
30934cat confdefs.h >>conftest.$ac_ext
30935cat >>conftest.$ac_ext <<_ACEOF
30936/* end confdefs.h. */
30937$ac_includes_default
30938#include <$ac_header>
30939_ACEOF
30940rm -f conftest.$ac_objext
30941if { (ac_try="$ac_compile"
30942case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945esac
30946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_compile") 2>conftest.er1
30948 ac_status=$?
30949 grep -v '^ *+' conftest.er1 >conftest.err
30950 rm -f conftest.er1
30951 cat conftest.err >&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030953 (exit $ac_status); } &&
30954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30955 { (case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_try") 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; } &&
30964 { ac_try='test -s conftest.$ac_objext'
30965 { (case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30968esac
30969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_try") 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030974 ac_header_compiler=yes
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979 ac_header_compiler=no
30980fi
30981
30982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30983{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30984echo "${ECHO_T}$ac_header_compiler" >&6; }
30985
30986# Is the header present?
30987{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30989cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
30995#include <$ac_header>
30996_ACEOF
30997if { (ac_try="$ac_cpp conftest.$ac_ext"
30998case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31001esac
31002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31004 ac_status=$?
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031009 (exit $ac_status); } >/dev/null; then
31010 if test -s conftest.err; then
31011 ac_cpp_err=$ac_c_preproc_warn_flag
31012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31013 else
31014 ac_cpp_err=
31015 fi
31016else
31017 ac_cpp_err=yes
31018fi
31019if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031020 ac_header_preproc=yes
31021else
31022 echo "$as_me: failed program was:" >&5
31023sed 's/^/| /' conftest.$ac_ext >&5
31024
31025 ac_header_preproc=no
31026fi
31027
31028rm -f conftest.err conftest.$ac_ext
31029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31030echo "${ECHO_T}$ac_header_preproc" >&6; }
31031
31032# So? What about this header?
31033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31034 yes:no: )
31035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31039 ac_header_preproc=yes
31040 ;;
31041 no:yes:* )
31042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31054 ( cat <<\_ASBOX
31055## ----------------------------------- ##
31056## Report this to llvmbugs@cs.uiuc.edu ##
31057## ----------------------------------- ##
31058_ASBOX
31059 ) | sed "s/^/$as_me: WARNING: /" >&2
31060 ;;
31061esac
31062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 eval "$as_ac_Header=\$ac_header_preproc"
31068fi
31069ac_res=`eval echo '${'$as_ac_Header'}'`
31070 { echo "$as_me:$LINENO: result: $ac_res" >&5
31071echo "${ECHO_T}$ac_res" >&6; }
31072
31073fi
31074if test `eval echo '${'$as_ac_Header'}'` = yes; then
31075 cat >>confdefs.h <<_ACEOF
31076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31077_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031078
31079fi
31080
31081done
31082
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031083fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031084
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031085
Reid Spencer8085cff2005-01-16 02:58:39 +000031086
Reid Spencerb2ed05262006-11-03 18:04:08 +000031087 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31088echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31089if test "${ac_cv_huge_val_sanity+set}" = set; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31091else
31092
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031093 ac_ext=cpp
31094ac_cpp='$CXXCPP $CPPFLAGS'
31095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031098
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031099 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031100 if test "$cross_compiling" = yes; then
31101 ac_cv_huge_val_sanity=yes
31102else
31103 cat >conftest.$ac_ext <<_ACEOF
31104/* confdefs.h. */
31105_ACEOF
31106cat confdefs.h >>conftest.$ac_ext
31107cat >>conftest.$ac_ext <<_ACEOF
31108/* end confdefs.h. */
31109#include <math.h>
31110int
31111main ()
31112{
31113double x = HUGE_VAL; return x != x;
31114 ;
31115 return 0;
31116}
31117_ACEOF
31118rm -f conftest$ac_exeext
31119if { (ac_try="$ac_link"
31120case "(($ac_try" in
31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31123esac
31124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_link") 2>&5
31126 ac_status=$?
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31132esac
31133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; }; then
31138 ac_cv_huge_val_sanity=yes
31139else
31140 echo "$as_me: program exited with status $ac_status" >&5
31141echo "$as_me: failed program was:" >&5
31142sed 's/^/| /' conftest.$ac_ext >&5
31143
31144( exit $ac_status )
31145ac_cv_huge_val_sanity=no
31146fi
31147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31148fi
31149
31150
31151 ac_ext=c
31152ac_cpp='$CPP $CPPFLAGS'
31153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155ac_compiler_gnu=$ac_cv_c_compiler_gnu
31156
31157
31158fi
31159{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31160echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31161 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31162
31163
Reid Spencera773bd52006-08-04 18:18:08 +000031164{ echo "$as_me:$LINENO: checking for pid_t" >&5
31165echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031166if test "${ac_cv_type_pid_t+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031175$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031176typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031177int
31178main ()
31179{
Reid Spencera773bd52006-08-04 18:18:08 +000031180if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031181 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031182if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031183 return 0;
31184 ;
31185 return 0;
31186}
31187_ACEOF
31188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031189if { (ac_try="$ac_compile"
31190case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31193esac
31194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031201 (exit $ac_status); } &&
31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203 { (case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_try") 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; } &&
31212 { ac_try='test -s conftest.$ac_objext'
31213 { (case "(($ac_try" in
31214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215 *) ac_try_echo=$ac_try;;
31216esac
31217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218 (eval "$ac_try") 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031222 ac_cv_type_pid_t=yes
31223else
31224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031225sed 's/^/| /' conftest.$ac_ext >&5
31226
Reid Spencera773bd52006-08-04 18:18:08 +000031227 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031228fi
Reid Spencera773bd52006-08-04 18:18:08 +000031229
31230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031231fi
Reid Spencera773bd52006-08-04 18:18:08 +000031232{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31233echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031234if test $ac_cv_type_pid_t = yes; then
31235 :
31236else
31237
31238cat >>confdefs.h <<_ACEOF
31239#define pid_t int
31240_ACEOF
31241
31242fi
31243
Reid Spencera773bd52006-08-04 18:18:08 +000031244{ echo "$as_me:$LINENO: checking for size_t" >&5
31245echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031246if test "${ac_cv_type_size_t+set}" = set; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31248else
31249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031250/* confdefs.h. */
31251_ACEOF
31252cat confdefs.h >>conftest.$ac_ext
31253cat >>conftest.$ac_ext <<_ACEOF
31254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031255$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031256typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031257int
31258main ()
31259{
Reid Spencera773bd52006-08-04 18:18:08 +000031260if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031261 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031262if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031263 return 0;
31264 ;
31265 return 0;
31266}
31267_ACEOF
31268rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031269if { (ac_try="$ac_compile"
31270case "(($ac_try" in
31271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31272 *) ac_try_echo=$ac_try;;
31273esac
31274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031277 grep -v '^ *+' conftest.er1 >conftest.err
31278 rm -f conftest.er1
31279 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031281 (exit $ac_status); } &&
31282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31283 { (case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31286esac
31287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_try") 2>&5
31289 ac_status=$?
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); }; } &&
31292 { ac_try='test -s conftest.$ac_objext'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31296esac
31297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031302 ac_cv_type_size_t=yes
31303else
31304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031305sed 's/^/| /' conftest.$ac_ext >&5
31306
Reid Spencera773bd52006-08-04 18:18:08 +000031307 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031308fi
Reid Spencera773bd52006-08-04 18:18:08 +000031309
31310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031311fi
Reid Spencera773bd52006-08-04 18:18:08 +000031312{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31313echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031314if test $ac_cv_type_size_t = yes; then
31315 :
31316else
31317
31318cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031319#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031320_ACEOF
31321
31322fi
31323
Reid Spencera773bd52006-08-04 18:18:08 +000031324{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31325echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031326if test "${ac_cv_type_signal+set}" = set; then
31327 echo $ECHO_N "(cached) $ECHO_C" >&6
31328else
31329 cat >conftest.$ac_ext <<_ACEOF
31330/* confdefs.h. */
31331_ACEOF
31332cat confdefs.h >>conftest.$ac_ext
31333cat >>conftest.$ac_ext <<_ACEOF
31334/* end confdefs.h. */
31335#include <sys/types.h>
31336#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031337
31338int
31339main ()
31340{
Reid Spencera773bd52006-08-04 18:18:08 +000031341return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342 ;
31343 return 0;
31344}
31345_ACEOF
31346rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031347if { (ac_try="$ac_compile"
31348case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31351esac
31352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031354 ac_status=$?
31355 grep -v '^ *+' conftest.er1 >conftest.err
31356 rm -f conftest.er1
31357 cat conftest.err >&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031359 (exit $ac_status); } &&
31360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31361 { (case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31364esac
31365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_try") 2>&5
31367 ac_status=$?
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); }; } &&
31370 { ac_try='test -s conftest.$ac_objext'
31371 { (case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31374esac
31375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_try") 2>&5
31377 ac_status=$?
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031380 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031381else
31382 echo "$as_me: failed program was:" >&5
31383sed 's/^/| /' conftest.$ac_ext >&5
31384
Reid Spencera773bd52006-08-04 18:18:08 +000031385 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031386fi
Reid Spencera773bd52006-08-04 18:18:08 +000031387
31388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389fi
Reid Spencera773bd52006-08-04 18:18:08 +000031390{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31391echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392
31393cat >>confdefs.h <<_ACEOF
31394#define RETSIGTYPE $ac_cv_type_signal
31395_ACEOF
31396
31397
Reid Spencera773bd52006-08-04 18:18:08 +000031398{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31399echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031400if test "${ac_cv_struct_tm+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31402else
31403 cat >conftest.$ac_ext <<_ACEOF
31404/* confdefs.h. */
31405_ACEOF
31406cat confdefs.h >>conftest.$ac_ext
31407cat >>conftest.$ac_ext <<_ACEOF
31408/* end confdefs.h. */
31409#include <sys/types.h>
31410#include <time.h>
31411
31412int
31413main ()
31414{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031415struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031416 ;
31417 return 0;
31418}
31419_ACEOF
31420rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031421if { (ac_try="$ac_compile"
31422case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31425esac
31426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031428 ac_status=$?
31429 grep -v '^ *+' conftest.er1 >conftest.err
31430 rm -f conftest.er1
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031433 (exit $ac_status); } &&
31434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31435 { (case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31438esac
31439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_try") 2>&5
31441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; } &&
31444 { ac_try='test -s conftest.$ac_objext'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31448esac
31449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454 ac_cv_struct_tm=time.h
31455else
31456 echo "$as_me: failed program was:" >&5
31457sed 's/^/| /' conftest.$ac_ext >&5
31458
Reid Spencera773bd52006-08-04 18:18:08 +000031459 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031460fi
Reid Spencera773bd52006-08-04 18:18:08 +000031461
31462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31465echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031466if test $ac_cv_struct_tm = sys/time.h; then
31467
31468cat >>confdefs.h <<\_ACEOF
31469#define TM_IN_SYS_TIME 1
31470_ACEOF
31471
31472fi
31473
Reid Spencera773bd52006-08-04 18:18:08 +000031474{ echo "$as_me:$LINENO: checking for int64_t" >&5
31475echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031476if test "${ac_cv_type_int64_t+set}" = set; then
31477 echo $ECHO_N "(cached) $ECHO_C" >&6
31478else
31479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031480/* confdefs.h. */
31481_ACEOF
31482cat confdefs.h >>conftest.$ac_ext
31483cat >>conftest.$ac_ext <<_ACEOF
31484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031485$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031486typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031487int
31488main ()
31489{
Reid Spencera773bd52006-08-04 18:18:08 +000031490if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031491 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031492if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031493 return 0;
31494 ;
31495 return 0;
31496}
31497_ACEOF
31498rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031499if { (ac_try="$ac_compile"
31500case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031506 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031507 grep -v '^ *+' conftest.er1 >conftest.err
31508 rm -f conftest.er1
31509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031511 (exit $ac_status); } &&
31512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31513 { (case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_try") 2>&5
31519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; } &&
31522 { ac_try='test -s conftest.$ac_objext'
31523 { (case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31526esac
31527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_try") 2>&5
31529 ac_status=$?
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031532 ac_cv_type_int64_t=yes
31533else
31534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031535sed 's/^/| /' conftest.$ac_ext >&5
31536
Reid Spencera773bd52006-08-04 18:18:08 +000031537 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031538fi
Reid Spencera773bd52006-08-04 18:18:08 +000031539
31540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031541fi
Reid Spencera773bd52006-08-04 18:18:08 +000031542{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31543echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031544if test $ac_cv_type_int64_t = yes; then
31545
31546cat >>confdefs.h <<_ACEOF
31547#define HAVE_INT64_T 1
31548_ACEOF
31549
31550
31551else
31552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31553echo "$as_me: error: Type int64_t required but not found" >&2;}
31554 { (exit 1); exit 1; }; }
31555fi
31556
Reid Spencera773bd52006-08-04 18:18:08 +000031557{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31558echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031559if test "${ac_cv_type_uint64_t+set}" = set; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31561else
31562 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031563/* confdefs.h. */
31564_ACEOF
31565cat confdefs.h >>conftest.$ac_ext
31566cat >>conftest.$ac_ext <<_ACEOF
31567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031568$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031569typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031570int
31571main ()
31572{
Reid Spencera773bd52006-08-04 18:18:08 +000031573if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031574 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031575if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031576 return 0;
31577 ;
31578 return 0;
31579}
31580_ACEOF
31581rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031582if { (ac_try="$ac_compile"
31583case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31586esac
31587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031589 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031594 (exit $ac_status); } &&
31595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599esac
31600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; } &&
31605 { ac_try='test -s conftest.$ac_objext'
31606 { (case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31609esac
31610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_try") 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031615 ac_cv_type_uint64_t=yes
31616else
31617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031618sed 's/^/| /' conftest.$ac_ext >&5
31619
Reid Spencera773bd52006-08-04 18:18:08 +000031620 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031621fi
Reid Spencera773bd52006-08-04 18:18:08 +000031622
31623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031624fi
Reid Spencera773bd52006-08-04 18:18:08 +000031625{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31626echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031627if test $ac_cv_type_uint64_t = yes; then
31628
31629cat >>confdefs.h <<_ACEOF
31630#define HAVE_UINT64_T 1
31631_ACEOF
31632
31633
31634else
Reid Spencera773bd52006-08-04 18:18:08 +000031635 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31636echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031637if test "${ac_cv_type_u_int64_t+set}" = set; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31639else
31640 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031641/* confdefs.h. */
31642_ACEOF
31643cat confdefs.h >>conftest.$ac_ext
31644cat >>conftest.$ac_ext <<_ACEOF
31645/* end confdefs.h. */
31646$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031647typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031648int
31649main ()
31650{
Reid Spencera773bd52006-08-04 18:18:08 +000031651if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031652 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031653if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031654 return 0;
31655 ;
31656 return 0;
31657}
31658_ACEOF
31659rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031660if { (ac_try="$ac_compile"
31661case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31664esac
31665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031668 grep -v '^ *+' conftest.er1 >conftest.err
31669 rm -f conftest.er1
31670 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031672 (exit $ac_status); } &&
31673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31674 { (case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677esac
31678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_try") 2>&5
31680 ac_status=$?
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; } &&
31683 { ac_try='test -s conftest.$ac_objext'
31684 { (case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31687esac
31688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_try") 2>&5
31690 ac_status=$?
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031693 ac_cv_type_u_int64_t=yes
31694else
31695 echo "$as_me: failed program was:" >&5
31696sed 's/^/| /' conftest.$ac_ext >&5
31697
Reid Spencera773bd52006-08-04 18:18:08 +000031698 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031699fi
Reid Spencera773bd52006-08-04 18:18:08 +000031700
31701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031702fi
Reid Spencera773bd52006-08-04 18:18:08 +000031703{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31704echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031705if test $ac_cv_type_u_int64_t = yes; then
31706
31707cat >>confdefs.h <<_ACEOF
31708#define HAVE_U_INT64_T 1
31709_ACEOF
31710
31711
Misha Brukmanceca9042004-09-02 23:02:30 +000031712else
31713 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31714echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31715 { (exit 1); exit 1; }; }
31716fi
31717
John Criswell679ff312004-09-02 18:44:44 +000031718fi
31719
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031720
31721
31722
31723
31724
31725
31726
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031727
31728
Reid Spencerdf3be822006-01-23 08:15:53 +000031729for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031730do
31731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031735 echo $ECHO_N "(cached) $ECHO_C" >&6
31736else
31737 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031738/* confdefs.h. */
31739_ACEOF
31740cat confdefs.h >>conftest.$ac_ext
31741cat >>conftest.$ac_ext <<_ACEOF
31742/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31745#define $ac_func innocuous_$ac_func
31746
31747/* System header to define __stub macros and hopefully few prototypes,
31748 which can conflict with char $ac_func (); below.
31749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31750 <limits.h> exists even on freestanding compilers. */
31751
31752#ifdef __STDC__
31753# include <limits.h>
31754#else
31755# include <assert.h>
31756#endif
31757
31758#undef $ac_func
31759
Reid Spencera773bd52006-08-04 18:18:08 +000031760/* Override any GCC internal prototype to avoid an error.
31761 Use char because int might match the return type of a GCC
31762 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763#ifdef __cplusplus
31764extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031765#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031766char $ac_func ();
31767/* The GNU C library defines this for functions which it implements
31768 to always fail with ENOSYS. Some functions are actually named
31769 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031770#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031771choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772#endif
John Criswell7a73b802003-06-30 21:59:07 +000031773
John Criswell7a73b802003-06-30 21:59:07 +000031774int
31775main ()
31776{
Reid Spencera773bd52006-08-04 18:18:08 +000031777return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031778 ;
31779 return 0;
31780}
31781_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031782rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031783if { (ac_try="$ac_link"
31784case "(($ac_try" in
31785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786 *) ac_try_echo=$ac_try;;
31787esac
31788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31789 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031791 grep -v '^ *+' conftest.er1 >conftest.err
31792 rm -f conftest.er1
31793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031795 (exit $ac_status); } &&
31796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31797 { (case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31800esac
31801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_try") 2>&5
31803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; } &&
31806 { ac_try='test -s conftest$ac_exeext'
31807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31810esac
31811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
31813 ac_status=$?
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031816 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031817else
31818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031819sed 's/^/| /' conftest.$ac_ext >&5
31820
Reid Spencera773bd52006-08-04 18:18:08 +000031821 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031822fi
Reid Spencera773bd52006-08-04 18:18:08 +000031823
Bill Wendlingebcceee2009-04-18 11:20:33 +000031824rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031825 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031826fi
Reid Spencera773bd52006-08-04 18:18:08 +000031827ac_res=`eval echo '${'$as_ac_var'}'`
31828 { echo "$as_me:$LINENO: result: $ac_res" >&5
31829echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031830if test `eval echo '${'$as_ac_var'}'` = yes; then
31831 cat >>confdefs.h <<_ACEOF
31832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031833_ACEOF
31834
31835fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031836done
John Criswell7a73b802003-06-30 21:59:07 +000031837
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031838
31839
31840
Reid Spencer6af3d262004-12-15 04:01:48 +000031841
Reid Spencer96cf5872007-07-13 10:05:30 +000031842for ac_func in powf fmodf strtof round
31843do
31844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850 cat >conftest.$ac_ext <<_ACEOF
31851/* confdefs.h. */
31852_ACEOF
31853cat confdefs.h >>conftest.$ac_ext
31854cat >>conftest.$ac_ext <<_ACEOF
31855/* end confdefs.h. */
31856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31858#define $ac_func innocuous_$ac_func
31859
31860/* System header to define __stub macros and hopefully few prototypes,
31861 which can conflict with char $ac_func (); below.
31862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31863 <limits.h> exists even on freestanding compilers. */
31864
31865#ifdef __STDC__
31866# include <limits.h>
31867#else
31868# include <assert.h>
31869#endif
31870
31871#undef $ac_func
31872
31873/* Override any GCC internal prototype to avoid an error.
31874 Use char because int might match the return type of a GCC
31875 builtin and then its argument prototype would still apply. */
31876#ifdef __cplusplus
31877extern "C"
31878#endif
31879char $ac_func ();
31880/* The GNU C library defines this for functions which it implements
31881 to always fail with ENOSYS. Some functions are actually named
31882 something starting with __ and the normal name is an alias. */
31883#if defined __stub_$ac_func || defined __stub___$ac_func
31884choke me
31885#endif
31886
31887int
31888main ()
31889{
31890return $ac_func ();
31891 ;
31892 return 0;
31893}
31894_ACEOF
31895rm -f conftest.$ac_objext conftest$ac_exeext
31896if { (ac_try="$ac_link"
31897case "(($ac_try" in
31898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899 *) ac_try_echo=$ac_try;;
31900esac
31901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902 (eval "$ac_link") 2>conftest.er1
31903 ac_status=$?
31904 grep -v '^ *+' conftest.er1 >conftest.err
31905 rm -f conftest.er1
31906 cat conftest.err >&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031908 (exit $ac_status); } &&
31909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31910 { (case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31913esac
31914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_try") 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; } &&
31919 { ac_try='test -s conftest$ac_exeext'
31920 { (case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31923esac
31924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_try") 2>&5
31926 ac_status=$?
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031929 eval "$as_ac_var=yes"
31930else
31931 echo "$as_me: failed program was:" >&5
31932sed 's/^/| /' conftest.$ac_ext >&5
31933
31934 eval "$as_ac_var=no"
31935fi
31936
Bill Wendlingebcceee2009-04-18 11:20:33 +000031937rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031938 conftest$ac_exeext conftest.$ac_ext
31939fi
31940ac_res=`eval echo '${'$as_ac_var'}'`
31941 { echo "$as_me:$LINENO: result: $ac_res" >&5
31942echo "${ECHO_T}$ac_res" >&6; }
31943if test `eval echo '${'$as_ac_var'}'` = yes; then
31944 cat >>confdefs.h <<_ACEOF
31945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31946_ACEOF
31947
31948fi
31949done
31950
31951
31952
31953
31954
Reid Spencer6af3d262004-12-15 04:01:48 +000031955
Reid Spencerb90645c2007-02-16 19:17:20 +000031956for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31957do
31958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31959{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31961if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31963else
31964 cat >conftest.$ac_ext <<_ACEOF
31965/* confdefs.h. */
31966_ACEOF
31967cat confdefs.h >>conftest.$ac_ext
31968cat >>conftest.$ac_ext <<_ACEOF
31969/* end confdefs.h. */
31970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31972#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031973
Reid Spencerb90645c2007-02-16 19:17:20 +000031974/* System header to define __stub macros and hopefully few prototypes,
31975 which can conflict with char $ac_func (); below.
31976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31977 <limits.h> exists even on freestanding compilers. */
31978
31979#ifdef __STDC__
31980# include <limits.h>
31981#else
31982# include <assert.h>
31983#endif
31984
31985#undef $ac_func
31986
31987/* Override any GCC internal prototype to avoid an error.
31988 Use char because int might match the return type of a GCC
31989 builtin and then its argument prototype would still apply. */
31990#ifdef __cplusplus
31991extern "C"
31992#endif
31993char $ac_func ();
31994/* The GNU C library defines this for functions which it implements
31995 to always fail with ENOSYS. Some functions are actually named
31996 something starting with __ and the normal name is an alias. */
31997#if defined __stub_$ac_func || defined __stub___$ac_func
31998choke me
31999#endif
32000
32001int
32002main ()
32003{
32004return $ac_func ();
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext conftest$ac_exeext
32010if { (ac_try="$ac_link"
32011case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_link") 2>conftest.er1
32017 ac_status=$?
32018 grep -v '^ *+' conftest.er1 >conftest.err
32019 rm -f conftest.er1
32020 cat conftest.err >&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032022 (exit $ac_status); } &&
32023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest$ac_exeext'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32037esac
32038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032043 eval "$as_ac_var=yes"
32044else
32045 echo "$as_me: failed program was:" >&5
32046sed 's/^/| /' conftest.$ac_ext >&5
32047
32048 eval "$as_ac_var=no"
32049fi
32050
Bill Wendlingebcceee2009-04-18 11:20:33 +000032051rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032052 conftest$ac_exeext conftest.$ac_ext
32053fi
32054ac_res=`eval echo '${'$as_ac_var'}'`
32055 { echo "$as_me:$LINENO: result: $ac_res" >&5
32056echo "${ECHO_T}$ac_res" >&6; }
32057if test `eval echo '${'$as_ac_var'}'` = yes; then
32058 cat >>confdefs.h <<_ACEOF
32059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32060_ACEOF
32061
32062fi
32063done
32064
32065
32066
32067
32068for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032069do
32070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032071{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32073if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032074 echo $ECHO_N "(cached) $ECHO_C" >&6
32075else
32076 cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32084#define $ac_func innocuous_$ac_func
32085
32086/* System header to define __stub macros and hopefully few prototypes,
32087 which can conflict with char $ac_func (); below.
32088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32089 <limits.h> exists even on freestanding compilers. */
32090
32091#ifdef __STDC__
32092# include <limits.h>
32093#else
32094# include <assert.h>
32095#endif
32096
32097#undef $ac_func
32098
Reid Spencera773bd52006-08-04 18:18:08 +000032099/* Override any GCC internal prototype to avoid an error.
32100 Use char because int might match the return type of a GCC
32101 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032102#ifdef __cplusplus
32103extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032104#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032105char $ac_func ();
32106/* The GNU C library defines this for functions which it implements
32107 to always fail with ENOSYS. Some functions are actually named
32108 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032109#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032110choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032111#endif
32112
32113int
32114main ()
32115{
Reid Spencera773bd52006-08-04 18:18:08 +000032116return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032117 ;
32118 return 0;
32119}
32120_ACEOF
32121rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032122if { (ac_try="$ac_link"
32123case "(($ac_try" in
32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32126esac
32127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032129 ac_status=$?
32130 grep -v '^ *+' conftest.er1 >conftest.err
32131 rm -f conftest.er1
32132 cat conftest.err >&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032134 (exit $ac_status); } &&
32135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32136 { (case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32139esac
32140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_try") 2>&5
32142 ac_status=$?
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; } &&
32145 { ac_try='test -s conftest$ac_exeext'
32146 { (case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32149esac
32150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_try") 2>&5
32152 ac_status=$?
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032155 eval "$as_ac_var=yes"
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
Reid Spencera773bd52006-08-04 18:18:08 +000032160 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032161fi
Reid Spencera773bd52006-08-04 18:18:08 +000032162
Bill Wendlingebcceee2009-04-18 11:20:33 +000032163rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032164 conftest$ac_exeext conftest.$ac_ext
32165fi
Reid Spencera773bd52006-08-04 18:18:08 +000032166ac_res=`eval echo '${'$as_ac_var'}'`
32167 { echo "$as_me:$LINENO: result: $ac_res" >&5
32168echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032169if test `eval echo '${'$as_ac_var'}'` = yes; then
32170 cat >>confdefs.h <<_ACEOF
32171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32172_ACEOF
32173
32174fi
32175done
32176
32177
32178
32179
32180
32181
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032182for ac_func in mktemp realpath sbrk setrlimit strdup
32183do
32184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32189else
32190 cat >conftest.$ac_ext <<_ACEOF
32191/* confdefs.h. */
32192_ACEOF
32193cat confdefs.h >>conftest.$ac_ext
32194cat >>conftest.$ac_ext <<_ACEOF
32195/* end confdefs.h. */
32196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32198#define $ac_func innocuous_$ac_func
32199
32200/* System header to define __stub macros and hopefully few prototypes,
32201 which can conflict with char $ac_func (); below.
32202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32203 <limits.h> exists even on freestanding compilers. */
32204
32205#ifdef __STDC__
32206# include <limits.h>
32207#else
32208# include <assert.h>
32209#endif
32210
32211#undef $ac_func
32212
32213/* Override any GCC internal prototype to avoid an error.
32214 Use char because int might match the return type of a GCC
32215 builtin and then its argument prototype would still apply. */
32216#ifdef __cplusplus
32217extern "C"
32218#endif
32219char $ac_func ();
32220/* The GNU C library defines this for functions which it implements
32221 to always fail with ENOSYS. Some functions are actually named
32222 something starting with __ and the normal name is an alias. */
32223#if defined __stub_$ac_func || defined __stub___$ac_func
32224choke me
32225#endif
32226
32227int
32228main ()
32229{
32230return $ac_func ();
32231 ;
32232 return 0;
32233}
32234_ACEOF
32235rm -f conftest.$ac_objext conftest$ac_exeext
32236if { (ac_try="$ac_link"
32237case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32240esac
32241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_link") 2>conftest.er1
32243 ac_status=$?
32244 grep -v '^ *+' conftest.er1 >conftest.err
32245 rm -f conftest.er1
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } &&
32249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32250 { (case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32253esac
32254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_try") 2>&5
32256 ac_status=$?
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest$ac_exeext'
32260 { (case "(($ac_try" in
32261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262 *) ac_try_echo=$ac_try;;
32263esac
32264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265 (eval "$ac_try") 2>&5
32266 ac_status=$?
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); }; }; then
32269 eval "$as_ac_var=yes"
32270else
32271 echo "$as_me: failed program was:" >&5
32272sed 's/^/| /' conftest.$ac_ext >&5
32273
32274 eval "$as_ac_var=no"
32275fi
32276
32277rm -f core conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
32279fi
32280ac_res=`eval echo '${'$as_ac_var'}'`
32281 { echo "$as_me:$LINENO: result: $ac_res" >&5
32282echo "${ECHO_T}$ac_res" >&6; }
32283if test `eval echo '${'$as_ac_var'}'` = yes; then
32284 cat >>confdefs.h <<_ACEOF
32285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32286_ACEOF
32287
32288fi
32289done
Reid Spencerdf3be822006-01-23 08:15:53 +000032290
32291
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032292
32293
32294for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032295do
32296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032300 echo $ECHO_N "(cached) $ECHO_C" >&6
32301else
32302 cat >conftest.$ac_ext <<_ACEOF
32303/* confdefs.h. */
32304_ACEOF
32305cat confdefs.h >>conftest.$ac_ext
32306cat >>conftest.$ac_ext <<_ACEOF
32307/* end confdefs.h. */
32308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32310#define $ac_func innocuous_$ac_func
32311
32312/* System header to define __stub macros and hopefully few prototypes,
32313 which can conflict with char $ac_func (); below.
32314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32315 <limits.h> exists even on freestanding compilers. */
32316
32317#ifdef __STDC__
32318# include <limits.h>
32319#else
32320# include <assert.h>
32321#endif
32322
32323#undef $ac_func
32324
Reid Spencera773bd52006-08-04 18:18:08 +000032325/* Override any GCC internal prototype to avoid an error.
32326 Use char because int might match the return type of a GCC
32327 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032328#ifdef __cplusplus
32329extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032330#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032331char $ac_func ();
32332/* The GNU C library defines this for functions which it implements
32333 to always fail with ENOSYS. Some functions are actually named
32334 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032335#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032336choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032337#endif
32338
32339int
32340main ()
32341{
Reid Spencera773bd52006-08-04 18:18:08 +000032342return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032343 ;
32344 return 0;
32345}
32346_ACEOF
32347rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032348if { (ac_try="$ac_link"
32349case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32352esac
32353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032355 ac_status=$?
32356 grep -v '^ *+' conftest.er1 >conftest.err
32357 rm -f conftest.er1
32358 cat conftest.err >&5
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032360 (exit $ac_status); } &&
32361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32362 { (case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32365esac
32366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_try") 2>&5
32368 ac_status=$?
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; } &&
32371 { ac_try='test -s conftest$ac_exeext'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32375esac
32376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32378 ac_status=$?
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032381 eval "$as_ac_var=yes"
32382else
32383 echo "$as_me: failed program was:" >&5
32384sed 's/^/| /' conftest.$ac_ext >&5
32385
Reid Spencera773bd52006-08-04 18:18:08 +000032386 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032387fi
Reid Spencera773bd52006-08-04 18:18:08 +000032388
Bill Wendlingebcceee2009-04-18 11:20:33 +000032389rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032390 conftest$ac_exeext conftest.$ac_ext
32391fi
Reid Spencera773bd52006-08-04 18:18:08 +000032392ac_res=`eval echo '${'$as_ac_var'}'`
32393 { echo "$as_me:$LINENO: result: $ac_res" >&5
32394echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032395if test `eval echo '${'$as_ac_var'}'` = yes; then
32396 cat >>confdefs.h <<_ACEOF
32397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32398_ACEOF
32399
32400fi
32401done
32402
32403
Reid Spencerba46ca32004-12-31 05:49:15 +000032404
32405
Chris Lattner0b142592005-11-14 06:57:34 +000032406
Chris Lattner511f11d2005-11-14 07:25:50 +000032407for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032408do
32409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032413 echo $ECHO_N "(cached) $ECHO_C" >&6
32414else
32415 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032416/* confdefs.h. */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32423#define $ac_func innocuous_$ac_func
32424
32425/* System header to define __stub macros and hopefully few prototypes,
32426 which can conflict with char $ac_func (); below.
32427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32428 <limits.h> exists even on freestanding compilers. */
32429
32430#ifdef __STDC__
32431# include <limits.h>
32432#else
32433# include <assert.h>
32434#endif
32435
32436#undef $ac_func
32437
Reid Spencera773bd52006-08-04 18:18:08 +000032438/* Override any GCC internal prototype to avoid an error.
32439 Use char because int might match the return type of a GCC
32440 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032441#ifdef __cplusplus
32442extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032443#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032444char $ac_func ();
32445/* The GNU C library defines this for functions which it implements
32446 to always fail with ENOSYS. Some functions are actually named
32447 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032448#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032449choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032450#endif
John Criswell7a73b802003-06-30 21:59:07 +000032451
John Criswell7a73b802003-06-30 21:59:07 +000032452int
32453main ()
32454{
Reid Spencera773bd52006-08-04 18:18:08 +000032455return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032456 ;
32457 return 0;
32458}
32459_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032460rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032461if { (ac_try="$ac_link"
32462case "(($ac_try" in
32463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464 *) ac_try_echo=$ac_try;;
32465esac
32466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032469 grep -v '^ *+' conftest.er1 >conftest.err
32470 rm -f conftest.er1
32471 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032473 (exit $ac_status); } &&
32474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32475 { (case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32478esac
32479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_try") 2>&5
32481 ac_status=$?
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; } &&
32484 { ac_try='test -s conftest$ac_exeext'
32485 { (case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32488esac
32489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490 (eval "$ac_try") 2>&5
32491 ac_status=$?
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032494 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032495else
32496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032497sed 's/^/| /' conftest.$ac_ext >&5
32498
Reid Spencera773bd52006-08-04 18:18:08 +000032499 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032500fi
Reid Spencera773bd52006-08-04 18:18:08 +000032501
Bill Wendlingebcceee2009-04-18 11:20:33 +000032502rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032503 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032504fi
Reid Spencera773bd52006-08-04 18:18:08 +000032505ac_res=`eval echo '${'$as_ac_var'}'`
32506 { echo "$as_me:$LINENO: result: $ac_res" >&5
32507echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032508if test `eval echo '${'$as_ac_var'}'` = yes; then
32509 cat >>confdefs.h <<_ACEOF
32510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032511_ACEOF
32512
32513fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032514done
John Criswell7a73b802003-06-30 21:59:07 +000032515
Reid Spencercdb08a32006-06-05 16:11:07 +000032516
32517
32518
32519
Reid Spencerafa22e22006-12-10 23:29:19 +000032520for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032521do
32522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032526 echo $ECHO_N "(cached) $ECHO_C" >&6
32527else
32528 cat >conftest.$ac_ext <<_ACEOF
32529/* confdefs.h. */
32530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h. */
32534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32536#define $ac_func innocuous_$ac_func
32537
32538/* System header to define __stub macros and hopefully few prototypes,
32539 which can conflict with char $ac_func (); below.
32540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32541 <limits.h> exists even on freestanding compilers. */
32542
32543#ifdef __STDC__
32544# include <limits.h>
32545#else
32546# include <assert.h>
32547#endif
32548
32549#undef $ac_func
32550
Reid Spencera773bd52006-08-04 18:18:08 +000032551/* Override any GCC internal prototype to avoid an error.
32552 Use char because int might match the return type of a GCC
32553 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032554#ifdef __cplusplus
32555extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032556#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032557char $ac_func ();
32558/* The GNU C library defines this for functions which it implements
32559 to always fail with ENOSYS. Some functions are actually named
32560 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032561#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032562choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032563#endif
32564
32565int
32566main ()
32567{
Reid Spencera773bd52006-08-04 18:18:08 +000032568return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032569 ;
32570 return 0;
32571}
32572_ACEOF
32573rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032574if { (ac_try="$ac_link"
32575case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32578esac
32579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032581 ac_status=$?
32582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32591esac
32592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest$ac_exeext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32601esac
32602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032607 eval "$as_ac_var=yes"
32608else
32609 echo "$as_me: failed program was:" >&5
32610sed 's/^/| /' conftest.$ac_ext >&5
32611
Reid Spencera773bd52006-08-04 18:18:08 +000032612 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032613fi
Reid Spencera773bd52006-08-04 18:18:08 +000032614
Bill Wendlingebcceee2009-04-18 11:20:33 +000032615rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032616 conftest$ac_exeext conftest.$ac_ext
32617fi
Reid Spencera773bd52006-08-04 18:18:08 +000032618ac_res=`eval echo '${'$as_ac_var'}'`
32619 { echo "$as_me:$LINENO: result: $ac_res" >&5
32620echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032621if test `eval echo '${'$as_ac_var'}'` = yes; then
32622 cat >>confdefs.h <<_ACEOF
32623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32624_ACEOF
32625
32626fi
32627done
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32630echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032631if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032634 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032635ac_cpp='$CPP $CPPFLAGS'
32636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32638ac_compiler_gnu=$ac_cv_c_compiler_gnu
32639
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032640 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032641 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032642else
32643 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032644
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032645 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032650
John Criswella0137d32003-10-13 16:22:01 +000032651#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032652#include <stdlib.h>
32653
John Criswella0137d32003-10-13 16:22:01 +000032654int
32655main ()
32656{
32657
Reid Spencer2706f8c2004-09-19 23:53:36 +000032658volatile double A, B;
32659char Buffer[100];
32660A = 1;
32661A /= 10.0;
32662sprintf(Buffer, "%a", A);
32663B = atof(Buffer);
32664if (A != B)
32665 return (1);
32666if (A != 0x1.999999999999ap-4)
32667 return (1);
32668return (0);
John Criswella0137d32003-10-13 16:22:01 +000032669 ;
32670 return 0;
32671}
32672_ACEOF
32673rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032674if { (ac_try="$ac_link"
32675case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32678esac
32679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032684 { (case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32687esac
32688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032693 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032694else
32695 echo "$as_me: program exited with status $ac_status" >&5
32696echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
32699( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032700llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032701fi
Reid Spencera773bd52006-08-04 18:18:08 +000032702rm -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 +000032703fi
Reid Spencera773bd52006-08-04 18:18:08 +000032704
32705
Reid Spencer2706f8c2004-09-19 23:53:36 +000032706 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032707ac_cpp='$CPP $CPPFLAGS'
32708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32710ac_compiler_gnu=$ac_cv_c_compiler_gnu
32711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032712fi
Reid Spencera773bd52006-08-04 18:18:08 +000032713{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32714echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032715 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032716
32717cat >>confdefs.h <<\_ACEOF
32718#define HAVE_PRINTF_A 1
32719_ACEOF
32720
Reid Spencer2706f8c2004-09-19 23:53:36 +000032721 fi
John Criswella0137d32003-10-13 16:22:01 +000032722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032723# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32724# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032725{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32726echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032727if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729else
John Criswell0021c312004-02-13 21:57:29 +000032730 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032731/* confdefs.h. */
32732_ACEOF
32733cat confdefs.h >>conftest.$ac_ext
32734cat >>conftest.$ac_ext <<_ACEOF
32735/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032736#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032737int
32738main ()
32739{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032740char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032741 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032742 ;
32743 return 0;
32744}
32745_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032746rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032747if { (ac_try="$ac_link"
32748case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32751esac
32752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032755 grep -v '^ *+' conftest.er1 >conftest.err
32756 rm -f conftest.er1
32757 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032759 (exit $ac_status); } &&
32760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32761 { (case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32764esac
32765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_try") 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest$ac_exeext'
32771 { (case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32774esac
32775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_try") 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032780 ac_cv_working_alloca_h=yes
32781else
32782 echo "$as_me: failed program was:" >&5
32783sed 's/^/| /' conftest.$ac_ext >&5
32784
Reid Spencera773bd52006-08-04 18:18:08 +000032785 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032786fi
Reid Spencera773bd52006-08-04 18:18:08 +000032787
Bill Wendlingebcceee2009-04-18 11:20:33 +000032788rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032789 conftest$ac_exeext conftest.$ac_ext
32790fi
Reid Spencera773bd52006-08-04 18:18:08 +000032791{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32792echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032793if test $ac_cv_working_alloca_h = yes; then
32794
32795cat >>confdefs.h <<\_ACEOF
32796#define HAVE_ALLOCA_H 1
32797_ACEOF
32798
32799fi
32800
Reid Spencera773bd52006-08-04 18:18:08 +000032801{ echo "$as_me:$LINENO: checking for alloca" >&5
32802echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032803if test "${ac_cv_func_alloca_works+set}" = set; then
32804 echo $ECHO_N "(cached) $ECHO_C" >&6
32805else
32806 cat >conftest.$ac_ext <<_ACEOF
32807/* confdefs.h. */
32808_ACEOF
32809cat confdefs.h >>conftest.$ac_ext
32810cat >>conftest.$ac_ext <<_ACEOF
32811/* end confdefs.h. */
32812#ifdef __GNUC__
32813# define alloca __builtin_alloca
32814#else
32815# ifdef _MSC_VER
32816# include <malloc.h>
32817# define alloca _alloca
32818# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032819# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032820# include <alloca.h>
32821# else
32822# ifdef _AIX
32823 #pragma alloca
32824# else
32825# ifndef alloca /* predefined by HP cc +Olibcalls */
32826char *alloca ();
32827# endif
32828# endif
32829# endif
32830# endif
32831#endif
32832
32833int
32834main ()
32835{
32836char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032837 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032838 ;
32839 return 0;
32840}
32841_ACEOF
32842rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032843if { (ac_try="$ac_link"
32844case "(($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_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032850 ac_status=$?
32851 grep -v '^ *+' conftest.er1 >conftest.err
32852 rm -f conftest.er1
32853 cat conftest.err >&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032855 (exit $ac_status); } &&
32856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32857 { (case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32860esac
32861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_try") 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest$ac_exeext'
32867 { (case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32870esac
32871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_try") 2>&5
32873 ac_status=$?
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032876 ac_cv_func_alloca_works=yes
32877else
32878 echo "$as_me: failed program was:" >&5
32879sed 's/^/| /' conftest.$ac_ext >&5
32880
Reid Spencera773bd52006-08-04 18:18:08 +000032881 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032882fi
Reid Spencera773bd52006-08-04 18:18:08 +000032883
Bill Wendlingebcceee2009-04-18 11:20:33 +000032884rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032885 conftest$ac_exeext conftest.$ac_ext
32886fi
Reid Spencera773bd52006-08-04 18:18:08 +000032887{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32888echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032889
32890if test $ac_cv_func_alloca_works = yes; then
32891
32892cat >>confdefs.h <<\_ACEOF
32893#define HAVE_ALLOCA 1
32894_ACEOF
32895
32896else
32897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32898# that cause trouble. Some versions do not even contain alloca or
32899# contain a buggy version. If you still want to use their alloca,
32900# use ar to extract alloca.o from them instead of compiling alloca.c.
32901
Reid Spencera773bd52006-08-04 18:18:08 +000032902ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032903
32904cat >>confdefs.h <<\_ACEOF
32905#define C_ALLOCA 1
32906_ACEOF
32907
32908
Reid Spencera773bd52006-08-04 18:18:08 +000032909{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32910echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032911if test "${ac_cv_os_cray+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32913else
32914 cat >conftest.$ac_ext <<_ACEOF
32915/* confdefs.h. */
32916_ACEOF
32917cat confdefs.h >>conftest.$ac_ext
32918cat >>conftest.$ac_ext <<_ACEOF
32919/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032920#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032921webecray
32922#else
32923wenotbecray
32924#endif
32925
32926_ACEOF
32927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32928 $EGREP "webecray" >/dev/null 2>&1; then
32929 ac_cv_os_cray=yes
32930else
32931 ac_cv_os_cray=no
32932fi
32933rm -f conftest*
32934
32935fi
Reid Spencera773bd52006-08-04 18:18:08 +000032936{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32937echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032938if test $ac_cv_os_cray = yes; then
32939 for ac_func in _getb67 GETB67 getb67; do
32940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032944 echo $ECHO_N "(cached) $ECHO_C" >&6
32945else
32946 cat >conftest.$ac_ext <<_ACEOF
32947/* confdefs.h. */
32948_ACEOF
32949cat confdefs.h >>conftest.$ac_ext
32950cat >>conftest.$ac_ext <<_ACEOF
32951/* end confdefs.h. */
32952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32954#define $ac_func innocuous_$ac_func
32955
32956/* System header to define __stub macros and hopefully few prototypes,
32957 which can conflict with char $ac_func (); below.
32958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32959 <limits.h> exists even on freestanding compilers. */
32960
32961#ifdef __STDC__
32962# include <limits.h>
32963#else
32964# include <assert.h>
32965#endif
32966
32967#undef $ac_func
32968
Reid Spencera773bd52006-08-04 18:18:08 +000032969/* Override any GCC internal prototype to avoid an error.
32970 Use char because int might match the return type of a GCC
32971 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032972#ifdef __cplusplus
32973extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032974#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032975char $ac_func ();
32976/* The GNU C library defines this for functions which it implements
32977 to always fail with ENOSYS. Some functions are actually named
32978 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032979#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032980choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032981#endif
32982
32983int
32984main ()
32985{
Reid Spencera773bd52006-08-04 18:18:08 +000032986return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032987 ;
32988 return 0;
32989}
32990_ACEOF
32991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032992if { (ac_try="$ac_link"
32993case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032999 ac_status=$?
33000 grep -v '^ *+' conftest.er1 >conftest.err
33001 rm -f conftest.er1
33002 cat conftest.err >&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033004 (exit $ac_status); } &&
33005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33006 { (case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33009esac
33010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_try") 2>&5
33012 ac_status=$?
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); }; } &&
33015 { ac_try='test -s conftest$ac_exeext'
33016 { (case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33019esac
33020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_try") 2>&5
33022 ac_status=$?
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033025 eval "$as_ac_var=yes"
33026else
33027 echo "$as_me: failed program was:" >&5
33028sed 's/^/| /' conftest.$ac_ext >&5
33029
Reid Spencera773bd52006-08-04 18:18:08 +000033030 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033031fi
Reid Spencera773bd52006-08-04 18:18:08 +000033032
Bill Wendlingebcceee2009-04-18 11:20:33 +000033033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033034 conftest$ac_exeext conftest.$ac_ext
33035fi
Reid Spencera773bd52006-08-04 18:18:08 +000033036ac_res=`eval echo '${'$as_ac_var'}'`
33037 { echo "$as_me:$LINENO: result: $ac_res" >&5
33038echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033039if test `eval echo '${'$as_ac_var'}'` = yes; then
33040
33041cat >>confdefs.h <<_ACEOF
33042#define CRAY_STACKSEG_END $ac_func
33043_ACEOF
33044
33045 break
33046fi
33047
33048 done
33049fi
33050
Reid Spencera773bd52006-08-04 18:18:08 +000033051{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33052echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033053if test "${ac_cv_c_stack_direction+set}" = set; then
33054 echo $ECHO_N "(cached) $ECHO_C" >&6
33055else
33056 if test "$cross_compiling" = yes; then
33057 ac_cv_c_stack_direction=0
33058else
33059 cat >conftest.$ac_ext <<_ACEOF
33060/* confdefs.h. */
33061_ACEOF
33062cat confdefs.h >>conftest.$ac_ext
33063cat >>conftest.$ac_ext <<_ACEOF
33064/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033065$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066int
33067find_stack_direction ()
33068{
33069 static char *addr = 0;
33070 auto char dummy;
33071 if (addr == 0)
33072 {
33073 addr = &dummy;
33074 return find_stack_direction ();
33075 }
John Criswell0021c312004-02-13 21:57:29 +000033076 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033077 return (&dummy > addr) ? 1 : -1;
33078}
John Criswell0021c312004-02-13 21:57:29 +000033079
John Criswell0021c312004-02-13 21:57:29 +000033080int
33081main ()
33082{
Reid Spencera773bd52006-08-04 18:18:08 +000033083 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033084}
33085_ACEOF
33086rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033087if { (ac_try="$ac_link"
33088case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33091esac
33092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033094 ac_status=$?
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033097 { (case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33100esac
33101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033103 ac_status=$?
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033106 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033107else
33108 echo "$as_me: program exited with status $ac_status" >&5
33109echo "$as_me: failed program was:" >&5
33110sed 's/^/| /' conftest.$ac_ext >&5
33111
33112( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033113ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033114fi
Reid Spencera773bd52006-08-04 18:18:08 +000033115rm -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 +000033116fi
Reid Spencera773bd52006-08-04 18:18:08 +000033117
33118
John Criswell0021c312004-02-13 21:57:29 +000033119fi
Reid Spencera773bd52006-08-04 18:18:08 +000033120{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33121echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033122
33123cat >>confdefs.h <<_ACEOF
33124#define STACK_DIRECTION $ac_cv_c_stack_direction
33125_ACEOF
33126
33127
John Criswell0021c312004-02-13 21:57:29 +000033128fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033129
33130
Reid Spencera773bd52006-08-04 18:18:08 +000033131{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33132echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033133if test "${ac_cv_func_rand48+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33135else
Reid Spencera773bd52006-08-04 18:18:08 +000033136 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033137ac_cpp='$CXXCPP $CPPFLAGS'
33138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33141
33142 cat >conftest.$ac_ext <<_ACEOF
33143/* confdefs.h. */
33144_ACEOF
33145cat confdefs.h >>conftest.$ac_ext
33146cat >>conftest.$ac_ext <<_ACEOF
33147/* end confdefs.h. */
33148#include <stdlib.h>
33149int
33150main ()
33151{
33152srand48(0);lrand48();drand48();
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033158if { (ac_try="$ac_compile"
33159case "(($ac_try" in
33160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161 *) ac_try_echo=$ac_try;;
33162esac
33163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033165 ac_status=$?
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033170 (exit $ac_status); } &&
33171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172 { (case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33175esac
33176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_try") 2>&5
33178 ac_status=$?
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; } &&
33181 { ac_try='test -s conftest.$ac_objext'
33182 { (case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33185esac
33186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_try") 2>&5
33188 ac_status=$?
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033191 ac_cv_func_rand48=yes
33192else
33193 echo "$as_me: failed program was:" >&5
33194sed 's/^/| /' conftest.$ac_ext >&5
33195
Reid Spencera773bd52006-08-04 18:18:08 +000033196 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033197fi
Reid Spencera773bd52006-08-04 18:18:08 +000033198
33199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033200 ac_ext=c
33201ac_cpp='$CPP $CPPFLAGS'
33202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204ac_compiler_gnu=$ac_cv_c_compiler_gnu
33205
33206fi
Reid Spencera773bd52006-08-04 18:18:08 +000033207{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33208echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033209
33210if test "$ac_cv_func_rand48" = "yes" ; then
33211
33212cat >>confdefs.h <<\_ACEOF
33213#define HAVE_RAND48 1
33214_ACEOF
33215
33216fi
John Criswell0021c312004-02-13 21:57:29 +000033217
33218
Reid Spencera773bd52006-08-04 18:18:08 +000033219{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33220echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033221if test "${ac_cv_cxx_namespaces+set}" = set; then
33222 echo $ECHO_N "(cached) $ECHO_C" >&6
33223else
Reid Spencera773bd52006-08-04 18:18:08 +000033224 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033225ac_cpp='$CXXCPP $CPPFLAGS'
33226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33229
33230 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033231/* confdefs.h. */
33232_ACEOF
33233cat confdefs.h >>conftest.$ac_ext
33234cat >>conftest.$ac_ext <<_ACEOF
33235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033236namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033237int
33238main ()
33239{
33240using namespace Outer::Inner; return i;
33241 ;
33242 return 0;
33243}
33244_ACEOF
33245rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033246if { (ac_try="$ac_compile"
33247case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33250esac
33251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033253 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033254 grep -v '^ *+' conftest.er1 >conftest.err
33255 rm -f conftest.er1
33256 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033258 (exit $ac_status); } &&
33259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33260 { (case "(($ac_try" in
33261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262 *) ac_try_echo=$ac_try;;
33263esac
33264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265 (eval "$ac_try") 2>&5
33266 ac_status=$?
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; } &&
33269 { ac_try='test -s conftest.$ac_objext'
33270 { (case "(($ac_try" in
33271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272 *) ac_try_echo=$ac_try;;
33273esac
33274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_try") 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033279 ac_cv_cxx_namespaces=yes
33280else
33281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033282sed 's/^/| /' conftest.$ac_ext >&5
33283
Reid Spencera773bd52006-08-04 18:18:08 +000033284 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033285fi
Reid Spencera773bd52006-08-04 18:18:08 +000033286
33287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033288 ac_ext=c
33289ac_cpp='$CPP $CPPFLAGS'
33290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33292ac_compiler_gnu=$ac_cv_c_compiler_gnu
33293
33294
33295fi
Reid Spencera773bd52006-08-04 18:18:08 +000033296{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33297echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033298if test "$ac_cv_cxx_namespaces" = yes; then
33299
33300cat >>confdefs.h <<\_ACEOF
33301#define HAVE_NAMESPACES
33302_ACEOF
33303
33304fi
33305
Reid Spencera773bd52006-08-04 18:18:08 +000033306{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33307echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033308if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33310else
33311
Reid Spencera773bd52006-08-04 18:18:08 +000033312 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033313ac_cpp='$CXXCPP $CPPFLAGS'
33314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33317
33318 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033319/* confdefs.h. */
33320_ACEOF
33321cat confdefs.h >>conftest.$ac_ext
33322cat >>conftest.$ac_ext <<_ACEOF
33323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033324#include <iterator>
33325#ifdef HAVE_NAMESPACES
33326using namespace std;
33327#endif
John Criswell7a73b802003-06-30 21:59:07 +000033328int
33329main ()
33330{
33331iterator<int,int,int> t; return 0;
33332 ;
33333 return 0;
33334}
33335_ACEOF
33336rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033337if { (ac_try="$ac_compile"
33338case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33341esac
33342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033345 grep -v '^ *+' conftest.er1 >conftest.err
33346 rm -f conftest.er1
33347 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033349 (exit $ac_status); } &&
33350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33351 { (case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33354esac
33355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_try") 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest.$ac_objext'
33361 { (case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33364esac
33365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366 (eval "$ac_try") 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033370 ac_cv_cxx_have_std_iterator=yes
33371else
33372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033373sed 's/^/| /' conftest.$ac_ext >&5
33374
Reid Spencera773bd52006-08-04 18:18:08 +000033375 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033376fi
Reid Spencera773bd52006-08-04 18:18:08 +000033377
33378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033379 ac_ext=c
33380ac_cpp='$CPP $CPPFLAGS'
33381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383ac_compiler_gnu=$ac_cv_c_compiler_gnu
33384
33385
33386fi
Reid Spencera773bd52006-08-04 18:18:08 +000033387{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33388echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033389if test "$ac_cv_cxx_have_std_iterator" = yes
33390then
John Criswell40468462004-09-24 21:19:06 +000033391
33392cat >>confdefs.h <<\_ACEOF
33393#define HAVE_STD_ITERATOR 1
33394_ACEOF
33395
33396else
33397
33398cat >>confdefs.h <<\_ACEOF
33399#define HAVE_STD_ITERATOR 0
33400_ACEOF
33401
John Criswell7a73b802003-06-30 21:59:07 +000033402fi
33403
Reid Spencera773bd52006-08-04 18:18:08 +000033404{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33405echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033406if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33407 echo $ECHO_N "(cached) $ECHO_C" >&6
33408else
33409
Reid Spencera773bd52006-08-04 18:18:08 +000033410 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033411ac_cpp='$CXXCPP $CPPFLAGS'
33412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33415
33416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033417/* confdefs.h. */
33418_ACEOF
33419cat confdefs.h >>conftest.$ac_ext
33420cat >>conftest.$ac_ext <<_ACEOF
33421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033422#include <iterator>
33423#ifdef HAVE_NAMESPACES
33424using namespace std;
33425#endif
John Criswell7a73b802003-06-30 21:59:07 +000033426int
33427main ()
33428{
John Criswellc78022e2003-07-29 19:11:58 +000033429bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033430 ;
33431 return 0;
33432}
33433_ACEOF
33434rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033435if { (ac_try="$ac_compile"
33436case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439esac
33440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033443 grep -v '^ *+' conftest.er1 >conftest.err
33444 rm -f conftest.er1
33445 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033447 (exit $ac_status); } &&
33448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33452esac
33453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33455 ac_status=$?
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; } &&
33458 { ac_try='test -s conftest.$ac_objext'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33462esac
33463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33465 ac_status=$?
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033468 ac_cv_cxx_have_bi_iterator=yes
33469else
33470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033471sed 's/^/| /' conftest.$ac_ext >&5
33472
Reid Spencera773bd52006-08-04 18:18:08 +000033473 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033474fi
Reid Spencera773bd52006-08-04 18:18:08 +000033475
33476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033477 ac_ext=c
33478ac_cpp='$CPP $CPPFLAGS'
33479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482
33483
33484fi
Reid Spencera773bd52006-08-04 18:18:08 +000033485{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33486echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033487if test "$ac_cv_cxx_have_bi_iterator" = yes
33488then
John Criswell40468462004-09-24 21:19:06 +000033489
33490cat >>confdefs.h <<\_ACEOF
33491#define HAVE_BI_ITERATOR 1
33492_ACEOF
33493
33494else
33495
33496cat >>confdefs.h <<\_ACEOF
33497#define HAVE_BI_ITERATOR 0
33498_ACEOF
33499
John Criswell7a73b802003-06-30 21:59:07 +000033500fi
33501
Reid Spencera773bd52006-08-04 18:18:08 +000033502{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33503echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033504if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33506else
33507
Reid Spencera773bd52006-08-04 18:18:08 +000033508 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033509ac_cpp='$CXXCPP $CPPFLAGS'
33510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33513
33514 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033515/* confdefs.h. */
33516_ACEOF
33517cat confdefs.h >>conftest.$ac_ext
33518cat >>conftest.$ac_ext <<_ACEOF
33519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033520#include <iterator>
33521#ifdef HAVE_NAMESPACES
33522using namespace std;
33523#endif
John Criswell7a73b802003-06-30 21:59:07 +000033524int
33525main ()
33526{
John Criswellc78022e2003-07-29 19:11:58 +000033527forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033528 ;
33529 return 0;
33530}
33531_ACEOF
33532rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033533if { (ac_try="$ac_compile"
33534case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33537esac
33538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033541 grep -v '^ *+' conftest.er1 >conftest.err
33542 rm -f conftest.er1
33543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33560esac
33561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033566 ac_cv_cxx_have_fwd_iterator=yes
33567else
33568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033569sed 's/^/| /' conftest.$ac_ext >&5
33570
Reid Spencera773bd52006-08-04 18:18:08 +000033571 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033572fi
Reid Spencera773bd52006-08-04 18:18:08 +000033573
33574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033575 ac_ext=c
33576ac_cpp='$CPP $CPPFLAGS'
33577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579ac_compiler_gnu=$ac_cv_c_compiler_gnu
33580
33581
33582fi
Reid Spencera773bd52006-08-04 18:18:08 +000033583{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33584echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033585if test "$ac_cv_cxx_have_fwd_iterator" = yes
33586then
John Criswell40468462004-09-24 21:19:06 +000033587
33588cat >>confdefs.h <<\_ACEOF
33589#define HAVE_FWD_ITERATOR 1
33590_ACEOF
33591
33592else
33593
33594cat >>confdefs.h <<\_ACEOF
33595#define HAVE_FWD_ITERATOR 0
33596_ACEOF
33597
John Criswell7a73b802003-06-30 21:59:07 +000033598fi
33599
33600
Reid Spencera773bd52006-08-04 18:18:08 +000033601{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33602echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033603if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33604 echo $ECHO_N "(cached) $ECHO_C" >&6
33605else
Reid Spencera773bd52006-08-04 18:18:08 +000033606 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033607ac_cpp='$CXXCPP $CPPFLAGS'
33608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33611
Reid Spencerabec8f92004-10-27 23:03:44 +000033612 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033613/* confdefs.h. */
33614_ACEOF
33615cat confdefs.h >>conftest.$ac_ext
33616cat >>conftest.$ac_ext <<_ACEOF
33617/* end confdefs.h. */
33618#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033619int
33620main ()
33621{
33622float f; isnan(f);
33623 ;
33624 return 0;
33625}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033626_ACEOF
33627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033628if { (ac_try="$ac_compile"
33629case "(($ac_try" in
33630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631 *) ac_try_echo=$ac_try;;
33632esac
33633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033636 grep -v '^ *+' conftest.er1 >conftest.err
33637 rm -f conftest.er1
33638 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033640 (exit $ac_status); } &&
33641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33642 { (case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33645esac
33646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_try") 2>&5
33648 ac_status=$?
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); }; } &&
33651 { ac_try='test -s conftest.$ac_objext'
33652 { (case "(($ac_try" in
33653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654 *) ac_try_echo=$ac_try;;
33655esac
33656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657 (eval "$ac_try") 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033661 ac_cv_func_isnan_in_math_h=yes
33662else
33663 echo "$as_me: failed program was:" >&5
33664sed 's/^/| /' conftest.$ac_ext >&5
33665
Reid Spencera773bd52006-08-04 18:18:08 +000033666 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033667fi
Reid Spencera773bd52006-08-04 18:18:08 +000033668
33669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033670 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033671ac_cpp='$CPP $CPPFLAGS'
33672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33674ac_compiler_gnu=$ac_cv_c_compiler_gnu
33675
33676fi
Reid Spencera773bd52006-08-04 18:18:08 +000033677{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33678echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033679
33680
33681if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033682
33683cat >>confdefs.h <<\_ACEOF
33684#define HAVE_ISNAN_IN_MATH_H 1
33685_ACEOF
33686
Reid Spencerabec8f92004-10-27 23:03:44 +000033687fi
33688
Reid Spencera773bd52006-08-04 18:18:08 +000033689{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33690echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033691if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33693else
Reid Spencera773bd52006-08-04 18:18:08 +000033694 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033695ac_cpp='$CXXCPP $CPPFLAGS'
33696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33699
Reid Spencerabec8f92004-10-27 23:03:44 +000033700 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033701/* confdefs.h. */
33702_ACEOF
33703cat confdefs.h >>conftest.$ac_ext
33704cat >>conftest.$ac_ext <<_ACEOF
33705/* end confdefs.h. */
33706#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033707int
33708main ()
33709{
33710float f; isnan(f);
33711 ;
33712 return 0;
33713}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033714_ACEOF
33715rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033716if { (ac_try="$ac_compile"
33717case "(($ac_try" in
33718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719 *) ac_try_echo=$ac_try;;
33720esac
33721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033724 grep -v '^ *+' conftest.er1 >conftest.err
33725 rm -f conftest.er1
33726 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033728 (exit $ac_status); } &&
33729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33730 { (case "(($ac_try" in
33731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732 *) ac_try_echo=$ac_try;;
33733esac
33734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735 (eval "$ac_try") 2>&5
33736 ac_status=$?
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; } &&
33739 { ac_try='test -s conftest.$ac_objext'
33740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33743esac
33744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033749 ac_cv_func_isnan_in_cmath=yes
33750else
33751 echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
33753
Reid Spencera773bd52006-08-04 18:18:08 +000033754 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033755fi
Reid Spencera773bd52006-08-04 18:18:08 +000033756
33757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033758 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033759ac_cpp='$CPP $CPPFLAGS'
33760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33762ac_compiler_gnu=$ac_cv_c_compiler_gnu
33763
33764fi
Reid Spencera773bd52006-08-04 18:18:08 +000033765{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33766echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033767
33768if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033769
33770cat >>confdefs.h <<\_ACEOF
33771#define HAVE_ISNAN_IN_CMATH 1
33772_ACEOF
33773
Reid Spencerabec8f92004-10-27 23:03:44 +000033774fi
33775
Reid Spencera773bd52006-08-04 18:18:08 +000033776{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33777echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033778if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33780else
Reid Spencera773bd52006-08-04 18:18:08 +000033781 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033782ac_cpp='$CXXCPP $CPPFLAGS'
33783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33786
Reid Spencerabec8f92004-10-27 23:03:44 +000033787 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033788/* confdefs.h. */
33789_ACEOF
33790cat confdefs.h >>conftest.$ac_ext
33791cat >>conftest.$ac_ext <<_ACEOF
33792/* end confdefs.h. */
33793#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033794int
33795main ()
33796{
33797float f; std::isnan(f);
33798 ;
33799 return 0;
33800}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033801_ACEOF
33802rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033803if { (ac_try="$ac_compile"
33804case "(($ac_try" in
33805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806 *) ac_try_echo=$ac_try;;
33807esac
33808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033811 grep -v '^ *+' conftest.er1 >conftest.err
33812 rm -f conftest.er1
33813 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033815 (exit $ac_status); } &&
33816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33817 { (case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33820esac
33821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_try") 2>&5
33823 ac_status=$?
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; } &&
33826 { ac_try='test -s conftest.$ac_objext'
33827 { (case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33830esac
33831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_try") 2>&5
33833 ac_status=$?
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033836 ac_cv_func_std_isnan_in_cmath=yes
33837else
33838 echo "$as_me: failed program was:" >&5
33839sed 's/^/| /' conftest.$ac_ext >&5
33840
Reid Spencera773bd52006-08-04 18:18:08 +000033841 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033842fi
Reid Spencera773bd52006-08-04 18:18:08 +000033843
33844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033845 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033846ac_cpp='$CPP $CPPFLAGS'
33847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849ac_compiler_gnu=$ac_cv_c_compiler_gnu
33850
33851fi
Reid Spencera773bd52006-08-04 18:18:08 +000033852{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33853echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033854
33855if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033856
33857cat >>confdefs.h <<\_ACEOF
33858#define HAVE_STD_ISNAN_IN_CMATH 1
33859_ACEOF
33860
Reid Spencerabec8f92004-10-27 23:03:44 +000033861fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033862
33863
Reid Spencera773bd52006-08-04 18:18:08 +000033864{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33865echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033866if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33867 echo $ECHO_N "(cached) $ECHO_C" >&6
33868else
Reid Spencera773bd52006-08-04 18:18:08 +000033869 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033870ac_cpp='$CXXCPP $CPPFLAGS'
33871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33874
Reid Spencerabec8f92004-10-27 23:03:44 +000033875 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033876/* confdefs.h. */
33877_ACEOF
33878cat confdefs.h >>conftest.$ac_ext
33879cat >>conftest.$ac_ext <<_ACEOF
33880/* end confdefs.h. */
33881#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033882int
33883main ()
33884{
33885float f; isinf(f);
33886 ;
33887 return 0;
33888}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033889_ACEOF
33890rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033891if { (ac_try="$ac_compile"
33892case "(($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_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033899 grep -v '^ *+' conftest.er1 >conftest.err
33900 rm -f conftest.er1
33901 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033903 (exit $ac_status); } &&
33904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33905 { (case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33908esac
33909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_try") 2>&5
33911 ac_status=$?
33912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 (exit $ac_status); }; } &&
33914 { ac_try='test -s conftest.$ac_objext'
33915 { (case "(($ac_try" in
33916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33917 *) ac_try_echo=$ac_try;;
33918esac
33919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33920 (eval "$ac_try") 2>&5
33921 ac_status=$?
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033924 ac_cv_func_isinf_in_math_h=yes
33925else
33926 echo "$as_me: failed program was:" >&5
33927sed 's/^/| /' conftest.$ac_ext >&5
33928
Reid Spencera773bd52006-08-04 18:18:08 +000033929 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033930fi
Reid Spencera773bd52006-08-04 18:18:08 +000033931
33932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033933 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033934ac_cpp='$CPP $CPPFLAGS'
33935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33937ac_compiler_gnu=$ac_cv_c_compiler_gnu
33938
33939fi
Reid Spencera773bd52006-08-04 18:18:08 +000033940{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33941echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033942
33943if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033944
33945cat >>confdefs.h <<\_ACEOF
33946#define HAVE_ISINF_IN_MATH_H 1
33947_ACEOF
33948
Reid Spencerabec8f92004-10-27 23:03:44 +000033949fi
33950
Reid Spencera773bd52006-08-04 18:18:08 +000033951{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33952echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033953if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33955else
Reid Spencera773bd52006-08-04 18:18:08 +000033956 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033957ac_cpp='$CXXCPP $CPPFLAGS'
33958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33961
Reid Spencerabec8f92004-10-27 23:03:44 +000033962 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033963/* confdefs.h. */
33964_ACEOF
33965cat confdefs.h >>conftest.$ac_ext
33966cat >>conftest.$ac_ext <<_ACEOF
33967/* end confdefs.h. */
33968#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033969int
33970main ()
33971{
33972float f; isinf(f);
33973 ;
33974 return 0;
33975}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033976_ACEOF
33977rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033978if { (ac_try="$ac_compile"
33979case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982esac
33983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033986 grep -v '^ *+' conftest.er1 >conftest.err
33987 rm -f conftest.er1
33988 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33992 { (case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995esac
33996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_try") 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest.$ac_objext'
34002 { (case "(($ac_try" in
34003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004 *) ac_try_echo=$ac_try;;
34005esac
34006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007 (eval "$ac_try") 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034011 ac_cv_func_isinf_in_cmath=yes
34012else
34013 echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
Reid Spencera773bd52006-08-04 18:18:08 +000034016 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034017fi
Reid Spencera773bd52006-08-04 18:18:08 +000034018
34019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034020 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034021ac_cpp='$CPP $CPPFLAGS'
34022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34024ac_compiler_gnu=$ac_cv_c_compiler_gnu
34025
34026fi
Reid Spencera773bd52006-08-04 18:18:08 +000034027{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34028echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034029
34030if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034031
34032cat >>confdefs.h <<\_ACEOF
34033#define HAVE_ISINF_IN_CMATH 1
34034_ACEOF
34035
Reid Spencerabec8f92004-10-27 23:03:44 +000034036fi
34037
Reid Spencera773bd52006-08-04 18:18:08 +000034038{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34039echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034040if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34041 echo $ECHO_N "(cached) $ECHO_C" >&6
34042else
Reid Spencera773bd52006-08-04 18:18:08 +000034043 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034044ac_cpp='$CXXCPP $CPPFLAGS'
34045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34048
Reid Spencerabec8f92004-10-27 23:03:44 +000034049 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034050/* confdefs.h. */
34051_ACEOF
34052cat confdefs.h >>conftest.$ac_ext
34053cat >>conftest.$ac_ext <<_ACEOF
34054/* end confdefs.h. */
34055#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034056int
34057main ()
34058{
34059float f; std::isinf(f)}
34060 ;
34061 return 0;
34062}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034063_ACEOF
34064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034065if { (ac_try="$ac_compile"
34066case "(($ac_try" in
34067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068 *) ac_try_echo=$ac_try;;
34069esac
34070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034073 grep -v '^ *+' conftest.er1 >conftest.err
34074 rm -f conftest.er1
34075 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034077 (exit $ac_status); } &&
34078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34079 { (case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34082esac
34083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_try") 2>&5
34085 ac_status=$?
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); }; } &&
34088 { ac_try='test -s conftest.$ac_objext'
34089 { (case "(($ac_try" in
34090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34091 *) ac_try_echo=$ac_try;;
34092esac
34093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34094 (eval "$ac_try") 2>&5
34095 ac_status=$?
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034098 ac_cv_func_std_isinf_in_cmath=yes
34099else
34100 echo "$as_me: failed program was:" >&5
34101sed 's/^/| /' conftest.$ac_ext >&5
34102
Reid Spencera773bd52006-08-04 18:18:08 +000034103 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034104fi
Reid Spencera773bd52006-08-04 18:18:08 +000034105
34106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034107 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034108ac_cpp='$CPP $CPPFLAGS'
34109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34111ac_compiler_gnu=$ac_cv_c_compiler_gnu
34112
34113fi
Reid Spencera773bd52006-08-04 18:18:08 +000034114{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34115echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034116
34117if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034118
34119cat >>confdefs.h <<\_ACEOF
34120#define HAVE_STD_ISINF_IN_CMATH 1
34121_ACEOF
34122
Reid Spencerabec8f92004-10-27 23:03:44 +000034123fi
34124
Reid Spencera773bd52006-08-04 18:18:08 +000034125{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34126echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034127if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34129else
Reid Spencera773bd52006-08-04 18:18:08 +000034130 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034131ac_cpp='$CXXCPP $CPPFLAGS'
34132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34135
Reid Spencerabec8f92004-10-27 23:03:44 +000034136 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034137/* confdefs.h. */
34138_ACEOF
34139cat confdefs.h >>conftest.$ac_ext
34140cat >>conftest.$ac_ext <<_ACEOF
34141/* end confdefs.h. */
34142#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034143int
34144main ()
34145{
34146float f; finite(f);
34147 ;
34148 return 0;
34149}
Brian Gaeked59a6472004-07-21 03:33:58 +000034150_ACEOF
34151rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034152if { (ac_try="$ac_compile"
34153case "(($ac_try" in
34154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155 *) ac_try_echo=$ac_try;;
34156esac
34157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034160 grep -v '^ *+' conftest.er1 >conftest.err
34161 rm -f conftest.er1
34162 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034164 (exit $ac_status); } &&
34165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34166 { (case "(($ac_try" in
34167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168 *) ac_try_echo=$ac_try;;
34169esac
34170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171 (eval "$ac_try") 2>&5
34172 ac_status=$?
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); }; } &&
34175 { ac_try='test -s conftest.$ac_objext'
34176 { (case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34179esac
34180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_try") 2>&5
34182 ac_status=$?
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034185 ac_cv_func_finite_in_ieeefp_h=yes
34186else
34187 echo "$as_me: failed program was:" >&5
34188sed 's/^/| /' conftest.$ac_ext >&5
34189
Reid Spencera773bd52006-08-04 18:18:08 +000034190 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034191fi
Reid Spencera773bd52006-08-04 18:18:08 +000034192
34193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034194 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034195ac_cpp='$CPP $CPPFLAGS'
34196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34198ac_compiler_gnu=$ac_cv_c_compiler_gnu
34199
34200fi
Reid Spencera773bd52006-08-04 18:18:08 +000034201{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34202echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034203
Brian Gaeke6802b552004-10-28 05:06:45 +000034204if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034205
34206cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034207#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034208_ACEOF
34209
Reid Spencerabec8f92004-10-27 23:03:44 +000034210fi
34211
34212
34213
Reid Spencer30fe5262007-01-20 07:48:49 +000034214if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034215
34216
34217for ac_header in stdlib.h unistd.h
34218do
34219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034224 echo $ECHO_N "(cached) $ECHO_C" >&6
34225fi
Reid Spencera773bd52006-08-04 18:18:08 +000034226ac_res=`eval echo '${'$as_ac_Header'}'`
34227 { echo "$as_me:$LINENO: result: $ac_res" >&5
34228echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034229else
34230 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034233cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034234/* confdefs.h. */
34235_ACEOF
34236cat confdefs.h >>conftest.$ac_ext
34237cat >>conftest.$ac_ext <<_ACEOF
34238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034239$ac_includes_default
34240#include <$ac_header>
34241_ACEOF
34242rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034243if { (ac_try="$ac_compile"
34244case "(($ac_try" in
34245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34246 *) ac_try_echo=$ac_try;;
34247esac
34248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34249 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034251 grep -v '^ *+' conftest.er1 >conftest.err
34252 rm -f conftest.er1
34253 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034255 (exit $ac_status); } &&
34256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34257 { (case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34260esac
34261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_try") 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; } &&
34266 { ac_try='test -s conftest.$ac_objext'
34267 { (case "(($ac_try" in
34268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269 *) ac_try_echo=$ac_try;;
34270esac
34271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34272 (eval "$ac_try") 2>&5
34273 ac_status=$?
34274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034276 ac_header_compiler=yes
34277else
34278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034279sed 's/^/| /' conftest.$ac_ext >&5
34280
Reid Spencera773bd52006-08-04 18:18:08 +000034281 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034282fi
Reid Spencera773bd52006-08-04 18:18:08 +000034283
34284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034287
34288# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034291cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034292/* confdefs.h. */
34293_ACEOF
34294cat confdefs.h >>conftest.$ac_ext
34295cat >>conftest.$ac_ext <<_ACEOF
34296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034297#include <$ac_header>
34298_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034299if { (ac_try="$ac_cpp conftest.$ac_ext"
34300case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34303esac
34304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034306 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034307 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034308 rm -f conftest.er1
34309 cat conftest.err >&5
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034311 (exit $ac_status); } >/dev/null; then
34312 if test -s conftest.err; then
34313 ac_cpp_err=$ac_c_preproc_warn_flag
34314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34315 else
34316 ac_cpp_err=
34317 fi
34318else
34319 ac_cpp_err=yes
34320fi
34321if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034322 ac_header_preproc=yes
34323else
34324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034325sed 's/^/| /' conftest.$ac_ext >&5
34326
John Criswell7a73b802003-06-30 21:59:07 +000034327 ac_header_preproc=no
34328fi
Reid Spencera773bd52006-08-04 18:18:08 +000034329
John Criswell7a73b802003-06-30 21:59:07 +000034330rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34332echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034333
34334# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34336 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34341 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034342 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034343 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034356 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034357## ----------------------------------- ##
34358## Report this to llvmbugs@cs.uiuc.edu ##
34359## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034360_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034361 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034362 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034363esac
Reid Spencera773bd52006-08-04 18:18:08 +000034364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034367 echo $ECHO_N "(cached) $ECHO_C" >&6
34368else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034369 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034370fi
Reid Spencera773bd52006-08-04 18:18:08 +000034371ac_res=`eval echo '${'$as_ac_Header'}'`
34372 { echo "$as_me:$LINENO: result: $ac_res" >&5
34373echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034374
34375fi
34376if test `eval echo '${'$as_ac_Header'}'` = yes; then
34377 cat >>confdefs.h <<_ACEOF
34378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34379_ACEOF
34380
34381fi
34382
34383done
34384
34385
34386for ac_func in getpagesize
34387do
34388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034389{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034392 echo $ECHO_N "(cached) $ECHO_C" >&6
34393else
34394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034395/* confdefs.h. */
34396_ACEOF
34397cat confdefs.h >>conftest.$ac_ext
34398cat >>conftest.$ac_ext <<_ACEOF
34399/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34402#define $ac_func innocuous_$ac_func
34403
John Criswell7a73b802003-06-30 21:59:07 +000034404/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034405 which can conflict with char $ac_func (); below.
34406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34407 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034408
John Criswell0c38eaf2003-09-10 15:17:25 +000034409#ifdef __STDC__
34410# include <limits.h>
34411#else
34412# include <assert.h>
34413#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034414
34415#undef $ac_func
34416
Reid Spencera773bd52006-08-04 18:18:08 +000034417/* Override any GCC internal prototype to avoid an error.
34418 Use char because int might match the return type of a GCC
34419 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034420#ifdef __cplusplus
34421extern "C"
34422#endif
John Criswell7a73b802003-06-30 21:59:07 +000034423char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034424/* The GNU C library defines this for functions which it implements
34425 to always fail with ENOSYS. Some functions are actually named
34426 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034427#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034428choke me
John Criswell7a73b802003-06-30 21:59:07 +000034429#endif
34430
John Criswell0c38eaf2003-09-10 15:17:25 +000034431int
34432main ()
34433{
Reid Spencera773bd52006-08-04 18:18:08 +000034434return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034435 ;
34436 return 0;
34437}
34438_ACEOF
34439rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034440if { (ac_try="$ac_link"
34441case "(($ac_try" in
34442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443 *) ac_try_echo=$ac_try;;
34444esac
34445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034448 grep -v '^ *+' conftest.er1 >conftest.err
34449 rm -f conftest.er1
34450 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034452 (exit $ac_status); } &&
34453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34454 { (case "(($ac_try" in
34455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456 *) ac_try_echo=$ac_try;;
34457esac
34458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459 (eval "$ac_try") 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest$ac_exeext'
34464 { (case "(($ac_try" in
34465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466 *) ac_try_echo=$ac_try;;
34467esac
34468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469 (eval "$ac_try") 2>&5
34470 ac_status=$?
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034473 eval "$as_ac_var=yes"
34474else
34475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034476sed 's/^/| /' conftest.$ac_ext >&5
34477
Reid Spencera773bd52006-08-04 18:18:08 +000034478 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034479fi
Reid Spencera773bd52006-08-04 18:18:08 +000034480
Bill Wendlingebcceee2009-04-18 11:20:33 +000034481rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034482 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034483fi
Reid Spencera773bd52006-08-04 18:18:08 +000034484ac_res=`eval echo '${'$as_ac_var'}'`
34485 { echo "$as_me:$LINENO: result: $ac_res" >&5
34486echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034487if test `eval echo '${'$as_ac_var'}'` = yes; then
34488 cat >>confdefs.h <<_ACEOF
34489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34490_ACEOF
34491
34492fi
34493done
34494
Reid Spencera773bd52006-08-04 18:18:08 +000034495{ echo "$as_me:$LINENO: checking for working mmap" >&5
34496echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034497if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34498 echo $ECHO_N "(cached) $ECHO_C" >&6
34499else
34500 if test "$cross_compiling" = yes; then
34501 ac_cv_func_mmap_fixed_mapped=no
34502else
34503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034504/* confdefs.h. */
34505_ACEOF
34506cat confdefs.h >>conftest.$ac_ext
34507cat >>conftest.$ac_ext <<_ACEOF
34508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034509$ac_includes_default
34510/* malloc might have been renamed as rpl_malloc. */
34511#undef malloc
34512
34513/* Thanks to Mike Haertel and Jim Avera for this test.
34514 Here is a matrix of mmap possibilities:
34515 mmap private not fixed
34516 mmap private fixed at somewhere currently unmapped
34517 mmap private fixed at somewhere already mapped
34518 mmap shared not fixed
34519 mmap shared fixed at somewhere currently unmapped
34520 mmap shared fixed at somewhere already mapped
34521 For private mappings, we should verify that changes cannot be read()
34522 back from the file, nor mmap's back from the file at a different
34523 address. (There have been systems where private was not correctly
34524 implemented like the infamous i386 svr4.0, and systems where the
34525 VM page cache was not coherent with the file system buffer cache
34526 like early versions of FreeBSD and possibly contemporary NetBSD.)
34527 For shared mappings, we should conversely verify that changes get
34528 propagated back to all the places they're supposed to be.
34529
34530 Grep wants private fixed already mapped.
34531 The main things grep needs to know about mmap are:
34532 * does it exist and is it safe to write into the mmap'd area
34533 * how to use it (BSD variants) */
34534
34535#include <fcntl.h>
34536#include <sys/mman.h>
34537
Bill Wendlingebcceee2009-04-18 11:20:33 +000034538#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034539char *malloc ();
34540#endif
34541
34542/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034543#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034544/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034545# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034546# define HAVE_SYS_PARAM_H 1
34547# endif
34548
34549# ifdef _SC_PAGESIZE
34550# define getpagesize() sysconf(_SC_PAGESIZE)
34551# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034552# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034553# include <sys/param.h>
34554# ifdef EXEC_PAGESIZE
34555# define getpagesize() EXEC_PAGESIZE
34556# else /* no EXEC_PAGESIZE */
34557# ifdef NBPG
34558# define getpagesize() NBPG * CLSIZE
34559# ifndef CLSIZE
34560# define CLSIZE 1
34561# endif /* no CLSIZE */
34562# else /* no NBPG */
34563# ifdef NBPC
34564# define getpagesize() NBPC
34565# else /* no NBPC */
34566# ifdef PAGESIZE
34567# define getpagesize() PAGESIZE
34568# endif /* PAGESIZE */
34569# endif /* no NBPC */
34570# endif /* no NBPG */
34571# endif /* no EXEC_PAGESIZE */
34572# else /* no HAVE_SYS_PARAM_H */
34573# define getpagesize() 8192 /* punt totally */
34574# endif /* no HAVE_SYS_PARAM_H */
34575# endif /* no _SC_PAGESIZE */
34576
34577#endif /* no HAVE_GETPAGESIZE */
34578
34579int
34580main ()
34581{
34582 char *data, *data2, *data3;
34583 int i, pagesize;
34584 int fd;
34585
34586 pagesize = getpagesize ();
34587
34588 /* First, make a file with some known garbage in it. */
34589 data = (char *) malloc (pagesize);
34590 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034591 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034592 for (i = 0; i < pagesize; ++i)
34593 *(data + i) = rand ();
34594 umask (0);
34595 fd = creat ("conftest.mmap", 0600);
34596 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034597 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034598 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034599 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034600 close (fd);
34601
34602 /* Next, try to mmap the file at a fixed address which already has
34603 something else allocated at it. If we can, also make sure that
34604 we see the same garbage. */
34605 fd = open ("conftest.mmap", O_RDWR);
34606 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034607 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034608 data2 = (char *) malloc (2 * pagesize);
34609 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034610 return 1;
34611 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034612 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034613 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034614 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034615 for (i = 0; i < pagesize; ++i)
34616 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034617 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034618
34619 /* Finally, make sure that changes to the mapped area do not
34620 percolate back to the file as seen by read(). (This is a bug on
34621 some variants of i386 svr4.0.) */
34622 for (i = 0; i < pagesize; ++i)
34623 *(data2 + i) = *(data2 + i) + 1;
34624 data3 = (char *) malloc (pagesize);
34625 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034626 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034627 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034628 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034629 for (i = 0; i < pagesize; ++i)
34630 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034631 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034632 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034633 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034634}
34635_ACEOF
34636rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034637if { (ac_try="$ac_link"
34638case "(($ac_try" in
34639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34640 *) ac_try_echo=$ac_try;;
34641esac
34642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34643 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034647 { (case "(($ac_try" in
34648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649 *) ac_try_echo=$ac_try;;
34650esac
34651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034653 ac_status=$?
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); }; }; then
34656 ac_cv_func_mmap_fixed_mapped=yes
34657else
34658 echo "$as_me: program exited with status $ac_status" >&5
34659echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034660sed 's/^/| /' conftest.$ac_ext >&5
34661
John Criswell7a73b802003-06-30 21:59:07 +000034662( exit $ac_status )
34663ac_cv_func_mmap_fixed_mapped=no
34664fi
Reid Spencera773bd52006-08-04 18:18:08 +000034665rm -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 +000034666fi
Reid Spencera773bd52006-08-04 18:18:08 +000034667
34668
John Criswell7a73b802003-06-30 21:59:07 +000034669fi
Reid Spencera773bd52006-08-04 18:18:08 +000034670{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34671echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034672if test $ac_cv_func_mmap_fixed_mapped = yes; then
34673
34674cat >>confdefs.h <<\_ACEOF
34675#define HAVE_MMAP 1
34676_ACEOF
34677
34678fi
34679rm -f conftest.mmap
34680
Reid Spencer30fe5262007-01-20 07:48:49 +000034681 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034682echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034683if test "${ac_cv_func_mmap_file+set}" = set; then
34684 echo $ECHO_N "(cached) $ECHO_C" >&6
34685else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034686 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034687ac_cpp='$CPP $CPPFLAGS'
34688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34690ac_compiler_gnu=$ac_cv_c_compiler_gnu
34691
34692 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034693 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034694else
34695 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034696
Reid Spencer777ce172004-09-20 04:09:56 +000034697 /* confdefs.h. */
34698_ACEOF
34699cat confdefs.h >>conftest.$ac_ext
34700cat >>conftest.$ac_ext <<_ACEOF
34701/* end confdefs.h. */
34702
John Criswell7a73b802003-06-30 21:59:07 +000034703#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034704#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034705#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034706
34707int
34708main ()
34709{
John Criswell7a73b802003-06-30 21:59:07 +000034710
34711 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034712 fd = creat ("foo",0777);
34713 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34714 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034715 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034716 ;
34717 return 0;
34718}
John Criswell7a73b802003-06-30 21:59:07 +000034719_ACEOF
34720rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034721if { (ac_try="$ac_link"
34722case "(($ac_try" in
34723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724 *) ac_try_echo=$ac_try;;
34725esac
34726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034728 ac_status=$?
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034731 { (case "(($ac_try" in
34732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733 *) ac_try_echo=$ac_try;;
34734esac
34735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034737 ac_status=$?
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; }; then
34740 ac_cv_func_mmap_file=yes
34741else
34742 echo "$as_me: program exited with status $ac_status" >&5
34743echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034744sed 's/^/| /' conftest.$ac_ext >&5
34745
John Criswell7a73b802003-06-30 21:59:07 +000034746( exit $ac_status )
34747ac_cv_func_mmap_file=no
34748fi
Reid Spencera773bd52006-08-04 18:18:08 +000034749rm -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 +000034750fi
Reid Spencera773bd52006-08-04 18:18:08 +000034751
34752
John Criswell7a73b802003-06-30 21:59:07 +000034753 ac_ext=c
34754ac_cpp='$CPP $CPPFLAGS'
34755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34757ac_compiler_gnu=$ac_cv_c_compiler_gnu
34758
34759
34760fi
Reid Spencera773bd52006-08-04 18:18:08 +000034761{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34762echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034763if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034764
34765cat >>confdefs.h <<\_ACEOF
34766#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034767_ACEOF
34768
34769 MMAP_FILE=yes
34770
34771fi
34772
Reid Spencer30fe5262007-01-20 07:48:49 +000034773 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034774echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034775if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34777else
Reid Spencer582a23c2004-12-29 07:07:57 +000034778 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034779 ac_cv_need_dev_zero_for_mmap=yes
34780 else
34781 ac_cv_need_dev_zero_for_mmap=no
34782 fi
34783
34784fi
Reid Spencera773bd52006-08-04 18:18:08 +000034785{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34786echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034787if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34788
34789cat >>confdefs.h <<\_ACEOF
34790#define NEED_DEV_ZERO_FOR_MMAP 1
34791_ACEOF
34792
34793fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034794
Reid Spencer30fe5262007-01-20 07:48:49 +000034795 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34796 then
34797 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034798echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034799 fi
34800 if test "$ac_cv_func_mmap_file" = "no"
34801 then
34802 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034803echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034804 fi
John Criswellb13092b2003-07-22 21:00:24 +000034805fi
John Criswell7a73b802003-06-30 21:59:07 +000034806
Owen Andersona8603702009-05-19 22:18:56 +000034807{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034808echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034809cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034810/* confdefs.h. */
34811_ACEOF
34812cat confdefs.h >>conftest.$ac_ext
34813cat >>conftest.$ac_ext <<_ACEOF
34814/* end confdefs.h. */
34815int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034816 volatile unsigned long val = 1;
34817 __sync_synchronize();
34818 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034819 __sync_add_and_fetch(&val, 1);
34820 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034821 return 0;
34822 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034823
34824_ACEOF
34825rm -f conftest.$ac_objext conftest$ac_exeext
34826if { (ac_try="$ac_link"
34827case "(($ac_try" in
34828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34829 *) ac_try_echo=$ac_try;;
34830esac
34831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34832 (eval "$ac_link") 2>conftest.er1
34833 ac_status=$?
34834 grep -v '^ *+' conftest.er1 >conftest.err
34835 rm -f conftest.er1
34836 cat conftest.err >&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } &&
34839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34840 { (case "(($ac_try" in
34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842 *) ac_try_echo=$ac_try;;
34843esac
34844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845 (eval "$ac_try") 2>&5
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); }; } &&
34849 { ac_try='test -s conftest$ac_exeext'
34850 { (case "(($ac_try" in
34851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852 *) ac_try_echo=$ac_try;;
34853esac
34854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855 (eval "$ac_try") 2>&5
34856 ac_status=$?
34857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858 (exit $ac_status); }; }; then
34859 { echo "$as_me:$LINENO: result: yes" >&5
34860echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034861
34862cat >>confdefs.h <<\_ACEOF
34863#define LLVM_MULTITHREADED 1
34864_ACEOF
34865
Owen Andersond4b272b2009-05-18 23:58:51 +000034866else
34867 echo "$as_me: failed program was:" >&5
34868sed 's/^/| /' conftest.$ac_ext >&5
34869
34870 { echo "$as_me:$LINENO: result: no" >&5
34871echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034872
Owen Andersona8603702009-05-19 22:18:56 +000034873cat >>confdefs.h <<\_ACEOF
34874#define LLVM_MULTITHREADED 0
34875_ACEOF
34876
34877 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34878echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034879fi
34880
34881rm -f core conftest.err conftest.$ac_objext \
34882 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034883
34884
John Criswell7a73b802003-06-30 21:59:07 +000034885
Reid Spencer9372f152007-07-30 20:13:24 +000034886
34887for ac_func in __dso_handle
34888do
34889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34890{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34892if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34893 echo $ECHO_N "(cached) $ECHO_C" >&6
34894else
34895 cat >conftest.$ac_ext <<_ACEOF
34896/* confdefs.h. */
34897_ACEOF
34898cat confdefs.h >>conftest.$ac_ext
34899cat >>conftest.$ac_ext <<_ACEOF
34900/* end confdefs.h. */
34901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34903#define $ac_func innocuous_$ac_func
34904
34905/* System header to define __stub macros and hopefully few prototypes,
34906 which can conflict with char $ac_func (); below.
34907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908 <limits.h> exists even on freestanding compilers. */
34909
34910#ifdef __STDC__
34911# include <limits.h>
34912#else
34913# include <assert.h>
34914#endif
34915
34916#undef $ac_func
34917
34918/* Override any GCC internal prototype to avoid an error.
34919 Use char because int might match the return type of a GCC
34920 builtin and then its argument prototype would still apply. */
34921#ifdef __cplusplus
34922extern "C"
34923#endif
34924char $ac_func ();
34925/* The GNU C library defines this for functions which it implements
34926 to always fail with ENOSYS. Some functions are actually named
34927 something starting with __ and the normal name is an alias. */
34928#if defined __stub_$ac_func || defined __stub___$ac_func
34929choke me
34930#endif
34931
34932int
34933main ()
34934{
34935return $ac_func ();
34936 ;
34937 return 0;
34938}
34939_ACEOF
34940rm -f conftest.$ac_objext conftest$ac_exeext
34941if { (ac_try="$ac_link"
34942case "(($ac_try" in
34943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944 *) ac_try_echo=$ac_try;;
34945esac
34946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34947 (eval "$ac_link") 2>conftest.er1
34948 ac_status=$?
34949 grep -v '^ *+' conftest.er1 >conftest.err
34950 rm -f conftest.er1
34951 cat conftest.err >&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034953 (exit $ac_status); } &&
34954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34955 { (case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34958esac
34959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_try") 2>&5
34961 ac_status=$?
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; } &&
34964 { ac_try='test -s conftest$ac_exeext'
34965 { (case "(($ac_try" in
34966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34967 *) ac_try_echo=$ac_try;;
34968esac
34969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34970 (eval "$ac_try") 2>&5
34971 ac_status=$?
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034974 eval "$as_ac_var=yes"
34975else
34976 echo "$as_me: failed program was:" >&5
34977sed 's/^/| /' conftest.$ac_ext >&5
34978
34979 eval "$as_ac_var=no"
34980fi
34981
Bill Wendlingebcceee2009-04-18 11:20:33 +000034982rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034983 conftest$ac_exeext conftest.$ac_ext
34984fi
34985ac_res=`eval echo '${'$as_ac_var'}'`
34986 { echo "$as_me:$LINENO: result: $ac_res" >&5
34987echo "${ECHO_T}$ac_res" >&6; }
34988if test `eval echo '${'$as_ac_var'}'` = yes; then
34989 cat >>confdefs.h <<_ACEOF
34990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34991_ACEOF
34992
34993fi
34994done
34995
34996
Reid Spencera773bd52006-08-04 18:18:08 +000034997{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34998echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034999if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35000 echo $ECHO_N "(cached) $ECHO_C" >&6
35001else
35002 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035003if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035004 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035005 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35006 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035007 if test $? -eq 0 ; then
35008 llvm_cv_llvmgcc_sanity="yes"
35009 fi
35010 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035012fi
Reid Spencera773bd52006-08-04 18:18:08 +000035013{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35014echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035015
35016if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035017 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35018echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035019 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035020 LLVMCC1=$llvmcc1path
35021
Reid Spencer502935f2004-12-22 05:56:56 +000035022 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035023 LLVMCC1PLUS=$llvmcc1pluspath
35024
Reid Spencer502935f2004-12-22 05:56:56 +000035025 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35026 LLVMGCCDIR=$llvmgccdir
35027
Reid Spencer282d8c12006-12-21 22:55:41 +000035028 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35029 LLVMGCCLIBEXEC=$llvmgcclibexec
35030
Reid Spencerb5d75b82006-05-09 00:31:01 +000035031 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035032 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35033 LLVMGCC_VERSION=$llvmgccversion
35034
35035 LLVMGCC_MAJVERS=$llvmgccmajvers
35036
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035037 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035038 LLVMGCC_LANGS=$llvmgcclangs
35039
35040 { echo "$as_me:$LINENO: result: ok" >&5
35041echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035042fi
35043
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035044SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035045
35046
Reid Spencere9de0912004-08-20 09:03:57 +000035047# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035048# information into substitutions that will end up in Makefile.config.in
35049# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035050if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035051 prefix="/usr/local"
35052fi
Reid Spencere9de0912004-08-20 09:03:57 +000035053eval LLVM_PREFIX="${prefix}";
35054eval LLVM_BINDIR="${prefix}/bin";
35055eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035056eval LLVM_DATADIR="${prefix}/share/llvm";
35057eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35058eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035059eval LLVM_INCLUDEDIR="${prefix}/include";
35060eval LLVM_INFODIR="${prefix}/info";
35061eval LLVM_MANDIR="${prefix}/man";
35062LLVM_CONFIGTIME=`date`
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035074# Place the various directores into the config.h file as #defines so that we
35075# can know about the installation paths within LLVM.
35076
Reid Spencere9de0912004-08-20 09:03:57 +000035077cat >>confdefs.h <<_ACEOF
35078#define LLVM_PREFIX "$LLVM_PREFIX"
35079_ACEOF
35080
35081
35082cat >>confdefs.h <<_ACEOF
35083#define LLVM_BINDIR "$LLVM_BINDIR"
35084_ACEOF
35085
35086
35087cat >>confdefs.h <<_ACEOF
35088#define LLVM_LIBDIR "$LLVM_LIBDIR"
35089_ACEOF
35090
35091
35092cat >>confdefs.h <<_ACEOF
35093#define LLVM_DATADIR "$LLVM_DATADIR"
35094_ACEOF
35095
35096
35097cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035098#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035099_ACEOF
35100
35101
35102cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035103#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035104_ACEOF
35105
35106
35107cat >>confdefs.h <<_ACEOF
35108#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35109_ACEOF
35110
35111
35112cat >>confdefs.h <<_ACEOF
35113#define LLVM_INFODIR "$LLVM_INFODIR"
35114_ACEOF
35115
35116
35117cat >>confdefs.h <<_ACEOF
35118#define LLVM_MANDIR "$LLVM_MANDIR"
35119_ACEOF
35120
35121
35122cat >>confdefs.h <<_ACEOF
35123#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35124_ACEOF
35125
35126
Eric Christopher790e11c2007-12-01 00:34:39 +000035127cat >>confdefs.h <<_ACEOF
35128#define LLVM_HOSTTRIPLE "$host"
35129_ACEOF
35130
35131
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035132# Determine which bindings to build.
35133if test "$BINDINGS_TO_BUILD" = auto ; then
35134 BINDINGS_TO_BUILD=""
35135 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35136 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35137 fi
35138fi
35139BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35140
35141
35142# This isn't really configurey, but it avoids having to repeat the list in
35143# other files.
35144ALL_BINDINGS=ocaml
35145
35146
Gordon Henriksenf0915682007-10-02 16:42:22 +000035147# Do any work necessary to ensure that bindings have what they need.
35148binding_prereqs_failed=0
35149for a_binding in $BINDINGS_TO_BUILD ; do
35150 case "$a_binding" in
35151 ocaml)
35152 if test "x$OCAMLC" = x ; then
35153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35154echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35155 binding_prereqs_failed=1
35156 fi
35157 if test "x$OCAMLDEP" = x ; then
35158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35159echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35160 binding_prereqs_failed=1
35161 fi
35162 if test "x$OCAMLOPT" = x ; then
35163 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35164echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35165 fi
35166 if test "x$with_ocaml_libdir" != xauto ; then
35167 OCAML_LIBDIR=$with_ocaml_libdir
35168
35169 else
35170 ocaml_stdlib="`"$OCAMLC" -where`"
35171 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35172 then
35173 # ocaml stdlib is beneath our prefix; use stdlib
35174 OCAML_LIBDIR=$ocaml_stdlib
35175
35176 else
35177 # ocaml stdlib is outside our prefix; use libdir/ocaml
35178 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35179
35180 fi
35181 fi
35182 ;;
35183 esac
35184done
35185if test "$binding_prereqs_failed" = 1 ; then
35186 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35187echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35188 { (exit 1); exit 1; }; }
35189fi
35190
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035191{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35192echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35193if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35195else
35196 ac_ext=cpp
35197ac_cpp='$CXXCPP $CPPFLAGS'
35198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35201
35202 oldcxxflags="$CXXFLAGS"
35203 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35204 cat >conftest.$ac_ext <<_ACEOF
35205/* confdefs.h. */
35206_ACEOF
35207cat confdefs.h >>conftest.$ac_ext
35208cat >>conftest.$ac_ext <<_ACEOF
35209/* end confdefs.h. */
35210
35211int
35212main ()
35213{
35214
35215 ;
35216 return 0;
35217}
35218_ACEOF
35219rm -f conftest.$ac_objext
35220if { (ac_try="$ac_compile"
35221case "(($ac_try" in
35222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35223 *) ac_try_echo=$ac_try;;
35224esac
35225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35226 (eval "$ac_compile") 2>conftest.er1
35227 ac_status=$?
35228 grep -v '^ *+' conftest.er1 >conftest.err
35229 rm -f conftest.er1
35230 cat conftest.err >&5
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035232 (exit $ac_status); } &&
35233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35234 { (case "(($ac_try" in
35235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236 *) ac_try_echo=$ac_try;;
35237esac
35238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35239 (eval "$ac_try") 2>&5
35240 ac_status=$?
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); }; } &&
35243 { ac_try='test -s conftest.$ac_objext'
35244 { (case "(($ac_try" in
35245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35246 *) ac_try_echo=$ac_try;;
35247esac
35248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35249 (eval "$ac_try") 2>&5
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035253 llvm_cv_cxx_visibility_inlines_hidden=yes
35254else
35255 echo "$as_me: failed program was:" >&5
35256sed 's/^/| /' conftest.$ac_ext >&5
35257
35258 llvm_cv_cxx_visibility_inlines_hidden=no
35259fi
35260
35261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 CXXFLAGS="$oldcxxflags"
35263 ac_ext=c
35264ac_cpp='$CPP $CPPFLAGS'
35265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35267ac_compiler_gnu=$ac_cv_c_compiler_gnu
35268
35269
35270fi
35271{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35272echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35273if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35274 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35275
35276else
35277 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35278
35279fi
35280
Gordon Henriksenf0915682007-10-02 16:42:22 +000035281
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035282if test "$llvm_cv_link_use_r" = "yes" ; then
35283 RPATH="-Wl,-R"
35284else
35285 RPATH="-Wl,-rpath"
35286fi
35287
35288
35289if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35290 RDYNAMIC="-Wl,-export-dynamic"
35291else
35292 RDYNAMIC=""
35293fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035294
35295
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035296
Reid Spencera773bd52006-08-04 18:18:08 +000035297ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035298
Douglas Gregor1555a232009-06-16 20:12:29 +000035299ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35300
35301ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35302
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035303ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35304
Reid Spencera773bd52006-08-04 18:18:08 +000035305ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035306
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035307
Reid Spencera773bd52006-08-04 18:18:08 +000035308ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035309
35310
Reid Spencerea949cf2006-08-16 00:45:38 +000035311ac_config_files="$ac_config_files llvm.spec"
35312
35313
Reid Spencera773bd52006-08-04 18:18:08 +000035314ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035315
35316
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035317ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35318
35319
Reid Spencera773bd52006-08-04 18:18:08 +000035320ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035321
35322
Reid Spencera773bd52006-08-04 18:18:08 +000035323ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035324
Reid Spencera773bd52006-08-04 18:18:08 +000035325ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035326
35327
Reid Spencera773bd52006-08-04 18:18:08 +000035328ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035329
35330
Reid Spencera773bd52006-08-04 18:18:08 +000035331ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035332
35333
Reid Spencera773bd52006-08-04 18:18:08 +000035334ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035335
35336
Reid Spencer8b2e1412006-11-17 03:32:33 +000035337ac_config_commands="$ac_config_commands runtime/Makefile"
35338
35339
Reid Spencera773bd52006-08-04 18:18:08 +000035340ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035341
35342
Reid Spencera773bd52006-08-04 18:18:08 +000035343ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035344
35345
Bill Wendlingf24eb392009-01-04 23:12:30 +000035346ac_config_commands="$ac_config_commands unittests/Makefile"
35347
35348
Reid Spencera773bd52006-08-04 18:18:08 +000035349ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035350
35351
Reid Spencera773bd52006-08-04 18:18:08 +000035352ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035353
35354
Reid Spencera773bd52006-08-04 18:18:08 +000035355ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035356
35357
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035358ac_config_commands="$ac_config_commands bindings/Makefile"
35359
35360
35361ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35362
35363
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035364
John Criswell7a73b802003-06-30 21:59:07 +000035365cat >confcache <<\_ACEOF
35366# This file is a shell script that caches the results of configure
35367# tests run on this system so they can be shared between configure
35368# scripts and configure runs, see configure's option --config-cache.
35369# It is not useful on other systems. If it contains results you don't
35370# want to keep, you may remove or edit it.
35371#
35372# config.status only pays attention to the cache file if you give it
35373# the --recheck option to rerun configure.
35374#
John Criswell0c38eaf2003-09-10 15:17:25 +000035375# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035376# loading this file, other *unset* `ac_cv_foo' will be assigned the
35377# following values.
35378
35379_ACEOF
35380
35381# The following way of writing the cache mishandles newlines in values,
35382# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035383# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035384# Ultrix sh set writes to stderr and can't be redirected directly,
35385# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035386(
35387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35388 eval ac_val=\$$ac_var
35389 case $ac_val in #(
35390 *${as_nl}*)
35391 case $ac_var in #(
35392 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35393echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35394 esac
35395 case $ac_var in #(
35396 _ | IFS | as_nl) ;; #(
35397 *) $as_unset $ac_var ;;
35398 esac ;;
35399 esac
35400 done
35401
John Criswell7a73b802003-06-30 21:59:07 +000035402 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35404 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035405 # `set' does not quote correctly, so add quotes (double-quote
35406 # substitution turns \\\\ into \\, and sed turns \\ into \).
35407 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035408 "s/'/'\\\\''/g;
35409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035410 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035411 *)
35412 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035415 esac |
35416 sort
35417) |
John Criswell7a73b802003-06-30 21:59:07 +000035418 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035419 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035420 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035421 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35423 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35425 :end' >>confcache
35426if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35427 if test -w "$cache_file"; then
35428 test "x$cache_file" != "x/dev/null" &&
35429 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35430echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035431 cat confcache >$cache_file
35432 else
Reid Spencera773bd52006-08-04 18:18:08 +000035433 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35434echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035435 fi
35436fi
35437rm -f confcache
35438
35439test "x$prefix" = xNONE && prefix=$ac_default_prefix
35440# Let make expand exec_prefix.
35441test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35442
John Criswell7a73b802003-06-30 21:59:07 +000035443DEFS=-DHAVE_CONFIG_H
35444
John Criswell0c38eaf2003-09-10 15:17:25 +000035445ac_libobjs=
35446ac_ltlibobjs=
35447for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35448 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35450 ac_i=`echo "$ac_i" | sed "$ac_script"`
35451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35452 # will be set to the directory where LIBOBJS objects are built.
35453 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35454 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035455done
35456LIBOBJS=$ac_libobjs
35457
35458LTLIBOBJS=$ac_ltlibobjs
35459
35460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035461if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35462 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35463Usually this means the macro was only invoked conditionally." >&5
35464echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35465Usually this means the macro was only invoked conditionally." >&2;}
35466 { (exit 1); exit 1; }; }
35467fi
35468if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35469 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35470Usually this means the macro was only invoked conditionally." >&5
35471echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35472Usually this means the macro was only invoked conditionally." >&2;}
35473 { (exit 1); exit 1; }; }
35474fi
John Criswell7a73b802003-06-30 21:59:07 +000035475
35476: ${CONFIG_STATUS=./config.status}
35477ac_clean_files_save=$ac_clean_files
35478ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35479{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35480echo "$as_me: creating $CONFIG_STATUS" >&6;}
35481cat >$CONFIG_STATUS <<_ACEOF
35482#! $SHELL
35483# Generated by $as_me.
35484# Run this file to recreate the current configuration.
35485# Compiler output produced by configure, useful for debugging
35486# configure, is in config.log if it exists.
35487
35488debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035489ac_cs_recheck=false
35490ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035491SHELL=\${CONFIG_SHELL-$SHELL}
35492_ACEOF
35493
35494cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035495## --------------------- ##
35496## M4sh Initialization. ##
35497## --------------------- ##
35498
Bill Wendlingebcceee2009-04-18 11:20:33 +000035499# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35501 emulate sh
35502 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35504 # is contrary to our usage. Disable this feature.
35505 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035506 setopt NO_GLOB_SUBST
35507else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035508 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035509fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035510BIN_SH=xpg4; export BIN_SH # for Tru64
35511DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035512
John Criswell7a73b802003-06-30 21:59:07 +000035513
Reid Spencera773bd52006-08-04 18:18:08 +000035514# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035515# Avoid depending upon Character Ranges.
35516as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35517as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35518as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35519as_cr_digits='0123456789'
35520as_cr_alnum=$as_cr_Letters$as_cr_digits
35521
35522# The user is always right.
35523if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035524 echo "#! /bin/sh" >conf$$.sh
35525 echo "exit 0" >>conf$$.sh
35526 chmod +x conf$$.sh
35527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035528 PATH_SEPARATOR=';'
35529 else
35530 PATH_SEPARATOR=:
35531 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035532 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035533fi
35534
Reid Spencera773bd52006-08-04 18:18:08 +000035535# Support unset when possible.
35536if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35537 as_unset=unset
35538else
35539 as_unset=false
35540fi
John Criswell7a73b802003-06-30 21:59:07 +000035541
Reid Spencera773bd52006-08-04 18:18:08 +000035542
35543# IFS
35544# We need space, tab and new line, in precisely that order. Quoting is
35545# there to prevent editors from complaining about space-tab.
35546# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35547# splitting by setting IFS to empty value.)
35548as_nl='
35549'
35550IFS=" "" $as_nl"
35551
35552# Find who we are. Look in the path if we contain no directory separator.
35553case $0 in
35554 *[\\/]* ) as_myself=$0 ;;
35555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035556for as_dir in $PATH
35557do
35558 IFS=$as_save_IFS
35559 test -z "$as_dir" && as_dir=.
35560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35561done
Reid Spencera773bd52006-08-04 18:18:08 +000035562IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035563
Reid Spencera773bd52006-08-04 18:18:08 +000035564 ;;
35565esac
35566# We did not find ourselves, most probably we were run as `sh COMMAND'
35567# in which case we are not to be found in the path.
35568if test "x$as_myself" = x; then
35569 as_myself=$0
35570fi
35571if test ! -f "$as_myself"; then
35572 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35573 { (exit 1); exit 1; }
35574fi
35575
35576# Work around bugs in pre-3.0 UWIN ksh.
35577for as_var in ENV MAIL MAILPATH
35578do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35579done
35580PS1='$ '
35581PS2='> '
35582PS4='+ '
35583
35584# NLS nuisances.
35585for as_var in \
35586 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35587 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35588 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035589do
Reid Spencera773bd52006-08-04 18:18:08 +000035590 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35591 eval $as_var=C; export $as_var
35592 else
35593 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35594 fi
35595done
35596
35597# Required to use basename.
35598if expr a : '\(a\)' >/dev/null 2>&1 &&
35599 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35600 as_expr=expr
35601else
35602 as_expr=false
35603fi
35604
35605if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35606 as_basename=basename
35607else
35608 as_basename=false
35609fi
35610
35611
35612# Name of the executable.
35613as_me=`$as_basename -- "$0" ||
35614$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35615 X"$0" : 'X\(//\)$' \| \
35616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35617echo X/"$0" |
35618 sed '/^.*\/\([^/][^/]*\)\/*$/{
35619 s//\1/
35620 q
35621 }
35622 /^X\/\(\/\/\)$/{
35623 s//\1/
35624 q
35625 }
35626 /^X\/\(\/\).*/{
35627 s//\1/
35628 q
35629 }
35630 s/.*/./; q'`
35631
35632# CDPATH.
35633$as_unset CDPATH
35634
35635
35636
John Criswell7a73b802003-06-30 21:59:07 +000035637 as_lineno_1=$LINENO
35638 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035639 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035640 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035641
35642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35643 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035644 # line-number line after each line using $LINENO; the second 'sed'
35645 # does the real work. The second script uses 'N' to pair each
35646 # line-number line with the line containing $LINENO, and appends
35647 # trailing '-' during substitution so that $LINENO is not a special
35648 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035650 # scripts with optimization help from Paolo Bonzini. Blame Lee
35651 # E. McMahon (1931-1989) for sed's syntax. :-)
35652 sed -n '
35653 p
35654 /[$]LINENO/=
35655 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035656 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035657 s/[$]LINENO.*/&-/
35658 t lineno
35659 b
35660 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035661 N
Reid Spencera773bd52006-08-04 18:18:08 +000035662 :loop
35663 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035664 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035665 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035666 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035667 chmod +x "$as_me.lineno" ||
35668 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035669 { (exit 1); exit 1; }; }
35670
35671 # Don't try to exec as it changes $[0], causing all sort of problems
35672 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035673 # original and so on. Autoconf is especially sensitive to this).
35674 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035675 # Exit status is that of the last command.
35676 exit
35677}
35678
35679
Reid Spencera773bd52006-08-04 18:18:08 +000035680if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35681 as_dirname=dirname
35682else
35683 as_dirname=false
35684fi
35685
35686ECHO_C= ECHO_N= ECHO_T=
35687case `echo -n x` in
35688-n*)
35689 case `echo 'x\c'` in
35690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35691 *) ECHO_C='\c';;
35692 esac;;
35693*)
35694 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035695esac
35696
Reid Spencera773bd52006-08-04 18:18:08 +000035697if expr a : '\(a\)' >/dev/null 2>&1 &&
35698 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035699 as_expr=expr
35700else
35701 as_expr=false
35702fi
35703
35704rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035705if test -d conf$$.dir; then
35706 rm -f conf$$.dir/conf$$.file
35707else
35708 rm -f conf$$.dir
35709 mkdir conf$$.dir
35710fi
John Criswell7a73b802003-06-30 21:59:07 +000035711echo >conf$$.file
35712if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035713 as_ln_s='ln -s'
35714 # ... but there are two gotchas:
35715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35717 # In both cases, we have to default to `cp -p'.
35718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035719 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035720elif ln conf$$.file conf$$ 2>/dev/null; then
35721 as_ln_s=ln
35722else
35723 as_ln_s='cp -p'
35724fi
Reid Spencera773bd52006-08-04 18:18:08 +000035725rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35726rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035727
John Criswell0c38eaf2003-09-10 15:17:25 +000035728if mkdir -p . 2>/dev/null; then
35729 as_mkdir_p=:
35730else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035731 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035732 as_mkdir_p=false
35733fi
35734
Bill Wendlingebcceee2009-04-18 11:20:33 +000035735# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35736# systems may use methods other than mode bits to determine executability.
35737cat >conf$$.file <<_ASEOF
35738#! /bin/sh
35739exit 0
35740_ASEOF
35741chmod +x conf$$.file
35742if test -x conf$$.file >/dev/null 2>&1; then
35743 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035744else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035745 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035746fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035747rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035748
35749# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035751
35752# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035754
35755
John Criswell7a73b802003-06-30 21:59:07 +000035756exec 6>&1
35757
Reid Spencera773bd52006-08-04 18:18:08 +000035758# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035759# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035760# values after options handling.
35761ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035762This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035763generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035764
35765 CONFIG_FILES = $CONFIG_FILES
35766 CONFIG_HEADERS = $CONFIG_HEADERS
35767 CONFIG_LINKS = $CONFIG_LINKS
35768 CONFIG_COMMANDS = $CONFIG_COMMANDS
35769 $ $0 $@
35770
Reid Spencera773bd52006-08-04 18:18:08 +000035771on `(hostname || uname -n) 2>/dev/null | sed 1q`
35772"
35773
John Criswell7a73b802003-06-30 21:59:07 +000035774_ACEOF
35775
Reid Spencera773bd52006-08-04 18:18:08 +000035776cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035777# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035778config_files="$ac_config_files"
35779config_headers="$ac_config_headers"
35780config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035781
Reid Spencera773bd52006-08-04 18:18:08 +000035782_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035783
35784cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035785ac_cs_usage="\
35786\`$as_me' instantiates files from templates according to the
35787current configuration.
35788
35789Usage: $0 [OPTIONS] [FILE]...
35790
35791 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035792 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035793 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035794 -d, --debug don't remove temporary files
35795 --recheck update $as_me by reconfiguring in the same conditions
35796 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035797 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035798 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035799 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035800
35801Configuration files:
35802$config_files
35803
35804Configuration headers:
35805$config_headers
35806
John Criswellc764fbc2003-09-06 15:17:13 +000035807Configuration commands:
35808$config_commands
35809
John Criswell7a73b802003-06-30 21:59:07 +000035810Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035811
Reid Spencera773bd52006-08-04 18:18:08 +000035812_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035813cat >>$CONFIG_STATUS <<_ACEOF
35814ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035815llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035816configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035817 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035818
Reid Spencera773bd52006-08-04 18:18:08 +000035819Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035820This config.status script is free software; the Free Software Foundation
35821gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035822
35823ac_pwd='$ac_pwd'
35824srcdir='$srcdir'
35825INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035826_ACEOF
35827
35828cat >>$CONFIG_STATUS <<\_ACEOF
35829# If no file are specified by the user, then we need to provide default
35830# value. By we need to know if files were specified by the user.
35831ac_need_defaults=:
35832while test $# != 0
35833do
35834 case $1 in
35835 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35837 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035838 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035840 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035841 ac_option=$1
35842 ac_optarg=$2
35843 ac_shift=shift
35844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035845 esac
35846
John Criswell0c38eaf2003-09-10 15:17:25 +000035847 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035848 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35850 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35852 echo "$ac_cs_version"; exit ;;
35853 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035854 debug=: ;;
35855 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035856 $ac_shift
35857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035858 ac_need_defaults=false;;
35859 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035860 $ac_shift
35861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035862 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035863 --he | --h)
35864 # Conflict between --help and --header
35865 { echo "$as_me: error: ambiguous option: $1
35866Try \`$0 --help' for more information." >&2
35867 { (exit 1); exit 1; }; };;
35868 --help | --hel | -h )
35869 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35872 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035873
35874 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035875 -*) { echo "$as_me: error: unrecognized option: $1
35876Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035877 { (exit 1); exit 1; }; } ;;
35878
Reid Spencera773bd52006-08-04 18:18:08 +000035879 *) ac_config_targets="$ac_config_targets $1"
35880 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035881
35882 esac
35883 shift
35884done
35885
John Criswell0c38eaf2003-09-10 15:17:25 +000035886ac_configure_extra_args=
35887
35888if $ac_cs_silent; then
35889 exec 6>/dev/null
35890 ac_configure_extra_args="$ac_configure_extra_args --silent"
35891fi
35892
35893_ACEOF
35894cat >>$CONFIG_STATUS <<_ACEOF
35895if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035896 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35897 CONFIG_SHELL=$SHELL
35898 export CONFIG_SHELL
35899 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035900fi
35901
John Criswell7a73b802003-06-30 21:59:07 +000035902_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035903cat >>$CONFIG_STATUS <<\_ACEOF
35904exec 5>>config.log
35905{
35906 echo
35907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35908## Running $as_me. ##
35909_ASBOX
35910 echo "$ac_log"
35911} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035912
Reid Spencera773bd52006-08-04 18:18:08 +000035913_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035914cat >>$CONFIG_STATUS <<_ACEOF
35915#
Reid Spencera773bd52006-08-04 18:18:08 +000035916# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035917#
Reid Spencerc0682832005-02-24 19:05:19 +000035918llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035919
35920_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035921
John Criswell7a73b802003-06-30 21:59:07 +000035922cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035923
35924# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035925for ac_config_target in $ac_config_targets
35926do
Reid Spencera773bd52006-08-04 18:18:08 +000035927 case $ac_config_target in
35928 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035929 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35930 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035931 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035932 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035933 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035934 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035935 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035936 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035937 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35938 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35939 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35940 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35941 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35942 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035943 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035944 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35945 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035946 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035947 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35948 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35949 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035950 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35951 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035952
John Criswell7a73b802003-06-30 21:59:07 +000035953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35954echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35955 { (exit 1); exit 1; }; };;
35956 esac
35957done
35958
Reid Spencera773bd52006-08-04 18:18:08 +000035959
John Criswell7a73b802003-06-30 21:59:07 +000035960# If the user did not use the arguments to specify the items to instantiate,
35961# then the envvar interface is used. Set only those that are not.
35962# We use the long form for the default assignment because of an extremely
35963# bizarre bug on SunOS 4.1.3.
35964if $ac_need_defaults; then
35965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035968fi
35969
John Criswell0c38eaf2003-09-10 15:17:25 +000035970# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035971# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035972# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035973# Hook for its removal unless debugging.
35974# Note that there is a small window in which the directory will not be cleaned:
35975# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035976$debug ||
35977{
Reid Spencera773bd52006-08-04 18:18:08 +000035978 tmp=
35979 trap 'exit_status=$?
35980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35981' 0
John Criswell7a73b802003-06-30 21:59:07 +000035982 trap '{ (exit 1); exit 1; }' 1 2 13 15
35983}
John Criswell7a73b802003-06-30 21:59:07 +000035984# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035985
John Criswell7a73b802003-06-30 21:59:07 +000035986{
Reid Spencera773bd52006-08-04 18:18:08 +000035987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035988 test -n "$tmp" && test -d "$tmp"
35989} ||
35990{
Reid Spencera773bd52006-08-04 18:18:08 +000035991 tmp=./conf$$-$RANDOM
35992 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035993} ||
35994{
John Criswell0c38eaf2003-09-10 15:17:25 +000035995 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035996 { (exit 1); exit 1; }
35997}
35998
John Criswell7a73b802003-06-30 21:59:07 +000035999#
Reid Spencera773bd52006-08-04 18:18:08 +000036000# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036001#
36002
36003# No need to generate the scripts if there are no CONFIG_FILES.
36004# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036005if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036006
36007_ACEOF
36008
Reid Spencera773bd52006-08-04 18:18:08 +000036009
36010
36011ac_delim='%!_!# '
36012for ac_last_try in false false false false false :; do
36013 cat >conf$$subs.sed <<_ACEOF
36014SHELL!$SHELL$ac_delim
36015PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36016PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36017PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36018PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36019PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36020PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36021exec_prefix!$exec_prefix$ac_delim
36022prefix!$prefix$ac_delim
36023program_transform_name!$program_transform_name$ac_delim
36024bindir!$bindir$ac_delim
36025sbindir!$sbindir$ac_delim
36026libexecdir!$libexecdir$ac_delim
36027datarootdir!$datarootdir$ac_delim
36028datadir!$datadir$ac_delim
36029sysconfdir!$sysconfdir$ac_delim
36030sharedstatedir!$sharedstatedir$ac_delim
36031localstatedir!$localstatedir$ac_delim
36032includedir!$includedir$ac_delim
36033oldincludedir!$oldincludedir$ac_delim
36034docdir!$docdir$ac_delim
36035infodir!$infodir$ac_delim
36036htmldir!$htmldir$ac_delim
36037dvidir!$dvidir$ac_delim
36038pdfdir!$pdfdir$ac_delim
36039psdir!$psdir$ac_delim
36040libdir!$libdir$ac_delim
36041localedir!$localedir$ac_delim
36042mandir!$mandir$ac_delim
36043DEFS!$DEFS$ac_delim
36044ECHO_C!$ECHO_C$ac_delim
36045ECHO_N!$ECHO_N$ac_delim
36046ECHO_T!$ECHO_T$ac_delim
36047LIBS!$LIBS$ac_delim
36048build_alias!$build_alias$ac_delim
36049host_alias!$host_alias$ac_delim
36050target_alias!$target_alias$ac_delim
36051LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36052subdirs!$subdirs$ac_delim
36053build!$build$ac_delim
36054build_cpu!$build_cpu$ac_delim
36055build_vendor!$build_vendor$ac_delim
36056build_os!$build_os$ac_delim
36057host!$host$ac_delim
36058host_cpu!$host_cpu$ac_delim
36059host_vendor!$host_vendor$ac_delim
36060host_os!$host_os$ac_delim
36061target!$target$ac_delim
36062target_cpu!$target_cpu$ac_delim
36063target_vendor!$target_vendor$ac_delim
36064target_os!$target_os$ac_delim
36065OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036066HOST_OS!$HOST_OS$ac_delim
36067TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036068LINKALL!$LINKALL$ac_delim
36069NOLINKALL!$NOLINKALL$ac_delim
36070LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36071LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036072ARCH!$ARCH$ac_delim
36073ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036074CC!$CC$ac_delim
36075CFLAGS!$CFLAGS$ac_delim
36076LDFLAGS!$LDFLAGS$ac_delim
36077CPPFLAGS!$CPPFLAGS$ac_delim
36078ac_ct_CC!$ac_ct_CC$ac_delim
36079EXEEXT!$EXEEXT$ac_delim
36080OBJEXT!$OBJEXT$ac_delim
36081CPP!$CPP$ac_delim
36082GREP!$GREP$ac_delim
36083EGREP!$EGREP$ac_delim
36084LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36085BUILD_CC!$BUILD_CC$ac_delim
36086BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036087BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036088CVSBUILD!$CVSBUILD$ac_delim
36089ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036090ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036091DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036092ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36093EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036094DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036095JIT!$JIT$ac_delim
36096TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36097ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36098ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036099ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036100TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036101LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36102LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036103LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036104ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036105EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036106BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036107ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36108ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036109CXX!$CXX$ac_delim
Gabor Greif4c750542009-08-27 17:07:35 +000036110CXXFLAGS!$CXXFLAGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036111_ACEOF
36112
36113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36114 break
36115 elif $ac_last_try; then
36116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36117echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36118 { (exit 1); exit 1; }; }
36119 else
36120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036121 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036122done
36123
36124ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36125if test -n "$ac_eof"; then
36126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36127 ac_eof=`expr $ac_eof + 1`
36128fi
36129
36130cat >>$CONFIG_STATUS <<_ACEOF
36131cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36133_ACEOF
36134sed '
36135s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36136s/^/s,@/; s/!/@,|#_!!_#|/
36137:n
36138t n
36139s/'"$ac_delim"'$/,g/; t
36140s/$/\\/; p
36141N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36142' >>$CONFIG_STATUS <conf$$subs.sed
36143rm -f conf$$subs.sed
36144cat >>$CONFIG_STATUS <<_ACEOF
36145CEOF$ac_eof
36146_ACEOF
36147
36148
36149ac_delim='%!_!# '
36150for ac_last_try in false false false false false :; do
36151 cat >conf$$subs.sed <<_ACEOF
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036152ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036153NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036154ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036155LN_S!$LN_S$ac_delim
36156CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036157CP!$CP$ac_delim
36158DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036159FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036160MKDIR!$MKDIR$ac_delim
36161MV!$MV$ac_delim
36162RANLIB!$RANLIB$ac_delim
36163RM!$RM$ac_delim
36164SED!$SED$ac_delim
36165TAR!$TAR$ac_delim
36166BINPWD!$BINPWD$ac_delim
36167GRAPHVIZ!$GRAPHVIZ$ac_delim
36168DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036169FDP!$FDP$ac_delim
36170NEATO!$NEATO$ac_delim
36171TWOPI!$TWOPI$ac_delim
36172CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036173GV!$GV$ac_delim
36174DOTTY!$DOTTY$ac_delim
36175PERL!$PERL$ac_delim
36176HAVE_PERL!$HAVE_PERL$ac_delim
36177INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36178INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36179INSTALL_DATA!$INSTALL_DATA$ac_delim
36180BZIP2!$BZIP2$ac_delim
36181DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036182GROFF!$GROFF$ac_delim
36183GZIP!$GZIP$ac_delim
36184POD2HTML!$POD2HTML$ac_delim
36185POD2MAN!$POD2MAN$ac_delim
36186RUNTEST!$RUNTEST$ac_delim
36187TCLSH!$TCLSH$ac_delim
36188ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036189OCAMLC!$OCAMLC$ac_delim
36190OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036191OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036192OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036193GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036194INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36195INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36196CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36197CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36198LIBADD_DL!$LIBADD_DL$ac_delim
36199ECHO!$ECHO$ac_delim
36200AR!$AR$ac_delim
36201STRIP!$STRIP$ac_delim
36202CXXCPP!$CXXCPP$ac_delim
36203F77!$F77$ac_delim
36204FFLAGS!$FFLAGS$ac_delim
36205ac_ct_F77!$ac_ct_F77$ac_delim
36206LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036207LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36208LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036209LLVMGCC!$LLVMGCC$ac_delim
36210LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036211USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036212USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036213HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036214HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036215ALLOCA!$ALLOCA$ac_delim
36216MMAP_FILE!$MMAP_FILE$ac_delim
36217LLVMCC1!$LLVMCC1$ac_delim
36218LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36219LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036220LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036221LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36222LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036223LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036224SHLIBEXT!$SHLIBEXT$ac_delim
36225LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36226LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36227LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36228LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36229LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36230LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36231LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36232LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36233LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36234LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036235BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36236ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036237OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036238ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036239RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036240RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036241LIBOBJS!$LIBOBJS$ac_delim
36242LTLIBOBJS!$LTLIBOBJS$ac_delim
36243_ACEOF
36244
Gabor Greif4c750542009-08-27 17:07:35 +000036245 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Reid Spencera773bd52006-08-04 18:18:08 +000036246 break
36247 elif $ac_last_try; then
36248 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36249echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36250 { (exit 1); exit 1; }; }
36251 else
36252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36253 fi
36254done
36255
36256ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36257if test -n "$ac_eof"; then
36258 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36259 ac_eof=`expr $ac_eof + 1`
36260fi
36261
36262cat >>$CONFIG_STATUS <<_ACEOF
36263cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36264/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36265_ACEOF
36266sed '
36267s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36268s/^/s,@/; s/!/@,|#_!!_#|/
36269:n
36270t n
36271s/'"$ac_delim"'$/,g/; t
36272s/$/\\/; p
36273N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36274' >>$CONFIG_STATUS <conf$$subs.sed
36275rm -f conf$$subs.sed
36276cat >>$CONFIG_STATUS <<_ACEOF
36277:end
36278s/|#_!!_#|//g
36279CEOF$ac_eof
36280_ACEOF
36281
36282
36283# VPATH may cause trouble with some makes, so we remove $(srcdir),
36284# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36285# trailing colons and then remove the whole line if VPATH becomes empty
36286# (actually we leave an empty line to preserve line numbers).
36287if test "x$srcdir" = x.; then
36288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36289s/:*\$(srcdir):*/:/
36290s/:*\${srcdir}:*/:/
36291s/:*@srcdir@:*/:/
36292s/^\([^=]*=[ ]*\):*/\1/
36293s/:*$//
36294s/^[^=]*=[ ]*$//
36295}'
36296fi
36297
36298cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036299fi # test -n "$CONFIG_FILES"
36300
Reid Spencera773bd52006-08-04 18:18:08 +000036301
36302for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36303do
36304 case $ac_tag in
36305 :[FHLC]) ac_mode=$ac_tag; continue;;
36306 esac
36307 case $ac_mode$ac_tag in
36308 :[FHL]*:*);;
36309 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36310echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36311 { (exit 1); exit 1; }; };;
36312 :[FH]-) ac_tag=-:-;;
36313 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36314 esac
36315 ac_save_IFS=$IFS
36316 IFS=:
36317 set x $ac_tag
36318 IFS=$ac_save_IFS
36319 shift
36320 ac_file=$1
36321 shift
36322
36323 case $ac_mode in
36324 :L) ac_source=$1;;
36325 :[FH])
36326 ac_file_inputs=
36327 for ac_f
36328 do
36329 case $ac_f in
36330 -) ac_f="$tmp/stdin";;
36331 *) # Look for the file first in the build tree, then in the source tree
36332 # (if the path is not absolute). The absolute path cannot be DOS-style,
36333 # because $ac_f cannot contain `:'.
36334 test -f "$ac_f" ||
36335 case $ac_f in
36336 [\\/$]*) false;;
36337 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36338 esac ||
36339 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36340echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36341 { (exit 1); exit 1; }; };;
36342 esac
36343 ac_file_inputs="$ac_file_inputs $ac_f"
36344 done
36345
36346 # Let's still pretend it is `configure' which instantiates (i.e., don't
36347 # use $as_me), people would be surprised to read:
36348 # /* config.h. Generated by config.status. */
36349 configure_input="Generated from "`IFS=:
36350 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36351 if test x"$ac_file" != x-; then
36352 configure_input="$ac_file. $configure_input"
36353 { echo "$as_me:$LINENO: creating $ac_file" >&5
36354echo "$as_me: creating $ac_file" >&6;}
36355 fi
36356
36357 case $ac_tag in
36358 *:-:* | *:-) cat >"$tmp/stdin";;
36359 esac
36360 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036361 esac
36362
Reid Spencera773bd52006-08-04 18:18:08 +000036363 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036364$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036365 X"$ac_file" : 'X\(//\)[^/]' \| \
36366 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036368echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36370 s//\1/
36371 q
36372 }
36373 /^X\(\/\/\)[^/].*/{
36374 s//\1/
36375 q
36376 }
36377 /^X\(\/\/\)$/{
36378 s//\1/
36379 q
36380 }
36381 /^X\(\/\).*/{
36382 s//\1/
36383 q
36384 }
36385 s/.*/./; q'`
36386 { as_dir="$ac_dir"
36387 case $as_dir in #(
36388 -*) as_dir=./$as_dir;;
36389 esac
36390 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036391 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036392 while :; do
36393 case $as_dir in #(
36394 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36395 *) as_qdir=$as_dir;;
36396 esac
36397 as_dirs="'$as_qdir' $as_dirs"
36398 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036400 X"$as_dir" : 'X\(//\)[^/]' \| \
36401 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036403echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36405 s//\1/
36406 q
36407 }
36408 /^X\(\/\/\)[^/].*/{
36409 s//\1/
36410 q
36411 }
36412 /^X\(\/\/\)$/{
36413 s//\1/
36414 q
36415 }
36416 /^X\(\/\).*/{
36417 s//\1/
36418 q
36419 }
36420 s/.*/./; q'`
36421 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036422 done
Reid Spencera773bd52006-08-04 18:18:08 +000036423 test -z "$as_dirs" || eval "mkdir $as_dirs"
36424 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36425echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036426 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036427 ac_builddir=.
36428
Reid Spencera773bd52006-08-04 18:18:08 +000036429case "$ac_dir" in
36430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36431*)
John Criswell7a73b802003-06-30 21:59:07 +000036432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036433 # A ".." for each directory in $ac_dir_suffix.
36434 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36435 case $ac_top_builddir_sub in
36436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36438 esac ;;
36439esac
36440ac_abs_top_builddir=$ac_pwd
36441ac_abs_builddir=$ac_pwd$ac_dir_suffix
36442# for backward compatibility:
36443ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036444
36445case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036446 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036447 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036448 ac_top_srcdir=$ac_top_builddir_sub
36449 ac_abs_top_srcdir=$ac_pwd ;;
36450 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036451 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036452 ac_top_srcdir=$srcdir
36453 ac_abs_top_srcdir=$srcdir ;;
36454 *) # Relative name.
36455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36456 ac_top_srcdir=$ac_top_build_prefix$srcdir
36457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036458esac
Reid Spencera773bd52006-08-04 18:18:08 +000036459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036460
John Criswell7a73b802003-06-30 21:59:07 +000036461
Reid Spencera773bd52006-08-04 18:18:08 +000036462 case $ac_mode in
36463 :F)
36464 #
36465 # CONFIG_FILE
36466 #
John Criswell7a73b802003-06-30 21:59:07 +000036467
36468 case $INSTALL in
36469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036470 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036471 esac
John Criswell7a73b802003-06-30 21:59:07 +000036472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036473
36474cat >>$CONFIG_STATUS <<\_ACEOF
36475# If the template does not know about datarootdir, expand it.
36476# FIXME: This hack should be removed a few years after 2.60.
36477ac_datarootdir_hack=; ac_datarootdir_seen=
36478
36479case `sed -n '/datarootdir/ {
36480 p
36481 q
36482}
36483/@datadir@/p
36484/@docdir@/p
36485/@infodir@/p
36486/@localedir@/p
36487/@mandir@/p
36488' $ac_file_inputs` in
36489*datarootdir*) ac_datarootdir_seen=yes;;
36490*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36491 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36492echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36493_ACEOF
36494cat >>$CONFIG_STATUS <<_ACEOF
36495 ac_datarootdir_hack='
36496 s&@datadir@&$datadir&g
36497 s&@docdir@&$docdir&g
36498 s&@infodir@&$infodir&g
36499 s&@localedir@&$localedir&g
36500 s&@mandir@&$mandir&g
36501 s&\\\${datarootdir}&$datarootdir&g' ;;
36502esac
36503_ACEOF
36504
36505# Neutralize VPATH when `$srcdir' = `.'.
36506# Shell code in configure.ac might set extrasub.
36507# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036508cat >>$CONFIG_STATUS <<_ACEOF
36509 sed "$ac_vpsub
36510$extrasub
36511_ACEOF
36512cat >>$CONFIG_STATUS <<\_ACEOF
36513:t
36514/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036515s&@configure_input@&$configure_input&;t t
36516s&@top_builddir@&$ac_top_builddir_sub&;t t
36517s&@srcdir@&$ac_srcdir&;t t
36518s&@abs_srcdir@&$ac_abs_srcdir&;t t
36519s&@top_srcdir@&$ac_top_srcdir&;t t
36520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36521s&@builddir@&$ac_builddir&;t t
36522s&@abs_builddir@&$ac_abs_builddir&;t t
36523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36524s&@INSTALL@&$ac_INSTALL&;t t
36525$ac_datarootdir_hack
36526" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036527
Reid Spencera773bd52006-08-04 18:18:08 +000036528test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36529 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36531 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36532which seems to be undefined. Please make sure it is defined." >&5
36533echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36534which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036535
Reid Spencera773bd52006-08-04 18:18:08 +000036536 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036537 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036538 -) cat "$tmp/out"; rm -f "$tmp/out";;
36539 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036540 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036541 ;;
36542 :H)
36543 #
36544 # CONFIG_HEADER
36545 #
John Criswell7a73b802003-06-30 21:59:07 +000036546_ACEOF
36547
Reid Spencera773bd52006-08-04 18:18:08 +000036548# Transform confdefs.h into a sed script `conftest.defines', that
36549# substitutes the proper values into config.h.in to produce config.h.
36550rm -f conftest.defines conftest.tail
36551# First, append a space to every undef/define line, to ease matching.
36552echo 's/$/ /' >conftest.defines
36553# Then, protect against being on the right side of a sed subst, or in
36554# an unquoted here document, in config.status. If some macros were
36555# called several times there might be several #defines for the same
36556# symbol, which is useless. But do not sort them, since the last
36557# AC_DEFINE must be honored.
36558ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36559# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36560# NAME is the cpp macro being defined, VALUE is the value it is being given.
36561# PARAMS is the parameter list in the macro definition--in most cases, it's
36562# just an empty string.
36563ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36564ac_dB='\\)[ (].*,\\1define\\2'
36565ac_dC=' '
36566ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036567
Reid Spencera773bd52006-08-04 18:18:08 +000036568uniq confdefs.h |
36569 sed -n '
36570 t rset
36571 :rset
36572 s/^[ ]*#[ ]*define[ ][ ]*//
36573 t ok
36574 d
36575 :ok
36576 s/[\\&,]/\\&/g
36577 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36578 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36579 ' >>conftest.defines
36580
36581# Remove the space that was appended to ease matching.
36582# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036583# example, in the case of _POSIX_SOURCE, which is predefined and required
36584# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036585# (The regexp can be short, since the line contains either #define or #undef.)
36586echo 's/ $//
36587s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036588
Reid Spencera773bd52006-08-04 18:18:08 +000036589# Break up conftest.defines:
36590ac_max_sed_lines=50
36591
36592# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36593# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36594# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36595# et cetera.
36596ac_in='$ac_file_inputs'
36597ac_out='"$tmp/out1"'
36598ac_nxt='"$tmp/out2"'
36599
36600while :
John Criswell7a73b802003-06-30 21:59:07 +000036601do
Reid Spencera773bd52006-08-04 18:18:08 +000036602 # Write a here document:
36603 cat >>$CONFIG_STATUS <<_ACEOF
36604 # First, check the format of the line:
36605 cat >"\$tmp/defines.sed" <<\\CEOF
36606/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36607/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36608b
36609:def
36610_ACEOF
36611 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036612 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036613 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36614 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36615 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36616 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036617 rm -f conftest.defines
36618 mv conftest.tail conftest.defines
36619done
Reid Spencera773bd52006-08-04 18:18:08 +000036620rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036621
Reid Spencera773bd52006-08-04 18:18:08 +000036622echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036623cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036624 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036625 echo "/* $configure_input */" >"$tmp/config.h"
36626 cat "$ac_result" >>"$tmp/config.h"
36627 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036628 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36629echo "$as_me: $ac_file is unchanged" >&6;}
36630 else
John Criswell7a73b802003-06-30 21:59:07 +000036631 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036632 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036633 fi
36634 else
Reid Spencera773bd52006-08-04 18:18:08 +000036635 echo "/* $configure_input */"
36636 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036637 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036638 rm -f "$tmp/out12"
36639 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036640
Reid Spencera773bd52006-08-04 18:18:08 +000036641 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36642echo "$as_me: executing $ac_file commands" >&6;}
36643 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036644 esac
John Criswell7a73b802003-06-30 21:59:07 +000036645
Reid Spencera773bd52006-08-04 18:18:08 +000036646
36647 case $ac_file$ac_mode in
36648 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036650 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036652 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036654 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036656 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036658 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036660 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036662 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036664 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036666 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036668 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036670 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036671 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036672 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036673 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036674
36675 esac
36676done # for ac_tag
36677
John Criswell7a73b802003-06-30 21:59:07 +000036678
36679{ (exit 0); exit 0; }
36680_ACEOF
36681chmod +x $CONFIG_STATUS
36682ac_clean_files=$ac_clean_files_save
36683
36684
36685# configure is writing to config.log, and then calls config.status.
36686# config.status does its own redirection, appending to config.log.
36687# Unfortunately, on DOS this fails, as config.log is still kept open
36688# by configure, so config.status won't be able to write to it; its
36689# output is simply discarded. So we exec the FD to /dev/null,
36690# effectively closing config.log, so it can be properly (re)opened and
36691# appended to by config.status. When coming back to configure, we
36692# need to make the FD available again.
36693if test "$no_create" != yes; then
36694 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036695 ac_config_status_args=
36696 test "$silent" = yes &&
36697 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036698 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036700 exec 5>>config.log
36701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36702 # would make configure fail if this is the last instruction.
36703 $ac_cs_success || { (exit 1); exit 1; }
36704fi
36705
John Criswell12399a12003-09-30 15:55:44 +000036706#
36707# CONFIG_SUBDIRS section.
36708#
36709if test "$no_recursion" != yes; then
36710
36711 # Remove --cache-file and --srcdir arguments so they do not pile up.
36712 ac_sub_configure_args=
36713 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036714 eval "set x $ac_configure_args"
36715 shift
36716 for ac_arg
36717 do
John Criswell12399a12003-09-30 15:55:44 +000036718 if test -n "$ac_prev"; then
36719 ac_prev=
36720 continue
36721 fi
36722 case $ac_arg in
36723 -cache-file | --cache-file | --cache-fil | --cache-fi \
36724 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36725 ac_prev=cache_file ;;
36726 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36727 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36728 | --c=*)
36729 ;;
36730 --config-cache | -C)
36731 ;;
36732 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36733 ac_prev=srcdir ;;
36734 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36735 ;;
36736 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36737 ac_prev=prefix ;;
36738 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36739 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036740 *)
36741 case $ac_arg in
36742 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36743 esac
36744 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036745 esac
36746 done
36747
36748 # Always prepend --prefix to ensure using the same prefix
36749 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036750 ac_arg="--prefix=$prefix"
36751 case $ac_arg in
36752 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36753 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036754 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036755
36756 ac_popdir=`pwd`
36757 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36758
36759 # Do not complain, so a configure script can configure whichever
36760 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036761 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036762
Reid Spencera773bd52006-08-04 18:18:08 +000036763 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36764 echo "$as_me:$LINENO: $ac_msg" >&5
36765 echo "$ac_msg" >&6
36766 { as_dir="$ac_dir"
36767 case $as_dir in #(
36768 -*) as_dir=./$as_dir;;
36769 esac
36770 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036771 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036772 while :; do
36773 case $as_dir in #(
36774 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36775 *) as_qdir=$as_dir;;
36776 esac
36777 as_dirs="'$as_qdir' $as_dirs"
36778 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036780 X"$as_dir" : 'X\(//\)[^/]' \| \
36781 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036783echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36785 s//\1/
36786 q
36787 }
36788 /^X\(\/\/\)[^/].*/{
36789 s//\1/
36790 q
36791 }
36792 /^X\(\/\/\)$/{
36793 s//\1/
36794 q
36795 }
36796 /^X\(\/\).*/{
36797 s//\1/
36798 q
36799 }
36800 s/.*/./; q'`
36801 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036802 done
Reid Spencera773bd52006-08-04 18:18:08 +000036803 test -z "$as_dirs" || eval "mkdir $as_dirs"
36804 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36805echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036806 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036807 ac_builddir=.
36808
Reid Spencera773bd52006-08-04 18:18:08 +000036809case "$ac_dir" in
36810.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36811*)
John Criswell12399a12003-09-30 15:55:44 +000036812 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036813 # A ".." for each directory in $ac_dir_suffix.
36814 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36815 case $ac_top_builddir_sub in
36816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36818 esac ;;
36819esac
36820ac_abs_top_builddir=$ac_pwd
36821ac_abs_builddir=$ac_pwd$ac_dir_suffix
36822# for backward compatibility:
36823ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036824
36825case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036826 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036827 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036828 ac_top_srcdir=$ac_top_builddir_sub
36829 ac_abs_top_srcdir=$ac_pwd ;;
36830 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036831 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036832 ac_top_srcdir=$srcdir
36833 ac_abs_top_srcdir=$srcdir ;;
36834 *) # Relative name.
36835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36836 ac_top_srcdir=$ac_top_build_prefix$srcdir
36837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036838esac
Reid Spencera773bd52006-08-04 18:18:08 +000036839ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036840
36841
Reid Spencera773bd52006-08-04 18:18:08 +000036842 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036843
36844 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036845 if test -f "$ac_srcdir/configure.gnu"; then
36846 ac_sub_configure=$ac_srcdir/configure.gnu
36847 elif test -f "$ac_srcdir/configure"; then
36848 ac_sub_configure=$ac_srcdir/configure
36849 elif test -f "$ac_srcdir/configure.in"; then
36850 # This should be Cygnus configure.
36851 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036852 else
36853 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36854echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36855 ac_sub_configure=
36856 fi
36857
36858 # The recursion is here.
36859 if test -n "$ac_sub_configure"; then
36860 # Make the cache file name correct relative to the subdirectory.
36861 case $cache_file in
36862 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036863 *) # Relative name.
36864 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036865 esac
36866
Reid Spencera773bd52006-08-04 18:18:08 +000036867 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36868echo "$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 +000036869 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036870 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36871 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036872 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036873echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36874 { (exit 1); exit 1; }; }
36875 fi
36876
Reid Spencera773bd52006-08-04 18:18:08 +000036877 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036878 done
36879fi
36880