blob: 094829b9d76d5fb7936a2c22575eec7554c8c3cd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Daniel Dunbar1fce9482009-11-04 04:32:50 +0000851OPTIMIZE_OPTION
Reid Spencera773bd52006-08-04 18:18:08 +0000852EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000853BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000854ENABLE_LLVMC_DYNAMIC
855ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000856CXX
857CXXFLAGS
858ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000859NM
860ifGNUmake
861LN_S
862CMP
863CP
864DATE
865FIND
866MKDIR
867MV
868RANLIB
869RM
870SED
871TAR
872BINPWD
873GRAPHVIZ
874DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000875FDP
876NEATO
877TWOPI
878CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000879GV
880DOTTY
881PERL
882HAVE_PERL
883INSTALL_PROGRAM
884INSTALL_SCRIPT
885INSTALL_DATA
886BZIP2
887DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000888GROFF
889GZIP
890POD2HTML
891POD2MAN
892RUNTEST
893TCLSH
894ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000895OCAMLC
896OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000897OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000898OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000899GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000900INSTALL_LTDL_TRUE
901INSTALL_LTDL_FALSE
902CONVENIENCE_LTDL_TRUE
903CONVENIENCE_LTDL_FALSE
904LIBADD_DL
905ECHO
906AR
907STRIP
908CXXCPP
909F77
910FFLAGS
911ac_ct_F77
912LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000913LLVMGCCCOMMAND
914LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000915LLVMGCC
916LLVMGXX
Julien Lerouge3a96a4d2009-10-26 20:00:35 +0000917NO_VARIADIC_MACROS
918NO_MISSING_FIELD_INITIALIZERS
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000919USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000920USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000921HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000922HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000923ALLOCA
924MMAP_FILE
925LLVMCC1
926LLVMCC1PLUS
927LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000928LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000929LLVMGCC_VERSION
930LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000931LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000932SHLIBEXT
933LLVM_PREFIX
934LLVM_BINDIR
935LLVM_LIBDIR
936LLVM_DATADIR
937LLVM_DOCSDIR
938LLVM_ETCDIR
939LLVM_INCLUDEDIR
940LLVM_INFODIR
941LLVM_MANDIR
942LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000943BINDINGS_TO_BUILD
944ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000945OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000946ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000947RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000948RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000949LIBOBJS
950LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000951ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000952 ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958CPPFLAGS
959CPP
960CXX
961CXXFLAGS
962CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000963CXXCPP
964F77
965FFLAGS'
966ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000967projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000968projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000969projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000970projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000971projects/llvm-reopt
972projects/llvm-gcc
973projects/llvm-java
974projects/llvm-tv
975projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000976projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000977projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000978
979# Initialize some variables set by options.
980ac_init_help=
981ac_init_version=false
982# The variables have the same names as the options, with
983# dashes changed to underlines.
984cache_file=/dev/null
985exec_prefix=NONE
986no_create=
987no_recursion=
988prefix=NONE
989program_prefix=NONE
990program_suffix=NONE
991program_transform_name=s,x,x,
992silent=
993site=
994srcdir=
995verbose=
996x_includes=NONE
997x_libraries=NONE
998
999# Installation directory options.
1000# These are left unexpanded so users can "make install exec_prefix=/foo"
1001# and all the variables that are supposed to be based on exec_prefix
1002# by default will actually change.
1003# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001004# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001005bindir='${exec_prefix}/bin'
1006sbindir='${exec_prefix}/sbin'
1007libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001008datarootdir='${prefix}/share'
1009datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001010sysconfdir='${prefix}/etc'
1011sharedstatedir='${prefix}/com'
1012localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001013includedir='${prefix}/include'
1014oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016infodir='${datarootdir}/info'
1017htmldir='${docdir}'
1018dvidir='${docdir}'
1019pdfdir='${docdir}'
1020psdir='${docdir}'
1021libdir='${exec_prefix}/lib'
1022localedir='${datarootdir}/locale'
1023mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001026ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001027for ac_option
1028do
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001031 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001032 ac_prev=
1033 continue
1034 fi
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1042
Reid Spencera773bd52006-08-04 18:18:08 +00001043 case $ac_dashdash$ac_option in
1044 --)
1045 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001046
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1051
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1056
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1063
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1066
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001068 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001070 datadir=$ac_optarg ;;
1071
Reid Spencera773bd52006-08-04 18:18:08 +00001072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1078
John Criswell7a73b802003-06-30 21:59:07 +00001079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=no ;;
1087
1088 -docdir | --docdir | --docdi | --doc | --do)
1089 ac_prev=docdir ;;
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1092
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 ac_prev=dvidir ;;
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001097
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001105 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001106
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1115
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1119
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1126
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1131
Reid Spencera773bd52006-08-04 18:18:08 +00001132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1137
John Criswell7a73b802003-06-30 21:59:07 +00001138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1144
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1149
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1154
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1161
Reid Spencera773bd52006-08-04 18:18:08 +00001162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1166
John Criswell7a73b802003-06-30 21:59:07 +00001167 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001172 localstatedir=$ac_optarg ;;
1173
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1178
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1182
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1186
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1190
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1199
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1204
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1211
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1218
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1235
Reid Spencera773bd52006-08-04 18:18:08 +00001236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1240
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1245
John Criswell7a73b802003-06-30 21:59:07 +00001246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1249
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1255
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1266
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1271
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1276
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1283
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1288
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1291
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1294
1295 -with-* | --with-*)
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001301 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001302 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001303
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001310 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001311 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001342 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1360fi
1361
Reid Spencera773bd52006-08-04 18:18:08 +00001362# Be sure to have absolute directory names.
1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001367do
Reid Spencera773bd52006-08-04 18:18:08 +00001368 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001369 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001372 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001375done
1376
1377# There might be people who depend on the old broken behavior: `$host'
1378# used to hold the argument of --host etc.
1379# FIXME: To remove some day.
1380build=$build_alias
1381host=$host_alias
1382target=$target_alias
1383
1384# FIXME: To remove some day.
1385if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393fi
1394
1395ac_tool_prefix=
1396test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398test "$silent" = yes && exec 6>/dev/null
1399
1400
Reid Spencera773bd52006-08-04 18:18:08 +00001401ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402ac_ls_di=`ls -di .` &&
1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1409
1410
John Criswell7a73b802003-06-30 21:59:07 +00001411# Find the source files, if location was not specified.
1412if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001416$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001420echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)[^/].*/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\).*/{
1434 s//\1/
1435 q
1436 }
1437 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001438 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001439 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001440 srcdir=..
1441 fi
1442else
1443 ac_srcdir_defaulted=no
1444fi
Reid Spencera773bd52006-08-04 18:18:08 +00001445if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001448 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001449fi
Reid Spencera773bd52006-08-04 18:18:08 +00001450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001453 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001454 pwd)`
1455# When building in place, set srcdir=.
1456if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458fi
1459# Remove unnecessary trailing slashes from srcdir.
1460# Double slashes in file names in object file debugging info
1461# mess up M-x gdb in Emacs.
1462case $srcdir in
1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464esac
1465for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470done
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472#
1473# Report the --help message.
1474#
1475if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001479\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486Defaults for the options are specified in brackets.
1487
1488Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
John Criswell7a73b802003-06-30 21:59:07 +00001499Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001501 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001503 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001504
1505By default, \`make install' will install all the files in
1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508for instance \`--prefix=\$HOME'.
1509
1510For better control, use the options below.
1511
1512Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001532_ACEOF
1533
1534 cat <<\_ACEOF
1535
1536System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1540_ACEOF
1541fi
1542
1543if test -n "$ac_init_help"; then
1544 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001545 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001546 esac
1547 cat <<\_ACEOF
1548
1549Optional Features:
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001552 --enable-optimized Compile with optimizations enabled (default is NO)
1553 --enable-profiling Compile with profiling enabled (default is NO)
1554 --enable-assertions Compile with assertion checks enabled (default is
1555 YES)
David Greenea696d242007-06-28 19:36:08 +00001556 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001557 Compile with expensive debug checks enabled (default
1558 is NO)
1559 --enable-debug-runtime Build runtime libs with debug symbols (default is
1560 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001561 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1562 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001564 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001565 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001566 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001567 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1574 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001577 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1579 Win32)
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001582 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001583 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001584 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001587 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001588 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001589 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001590 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001591
1592Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1596 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001597 --with-llvmgcc Specify location of llvm-gcc driver (default
1598 searches PATH)
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1600 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001601 --with-optimize-option Select the compiler options to use for optimized
1602 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001603 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1605 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001606 --with-c-include-dirs Colon separated list of directories clang will
1607 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001608 --with-cxx-include-root Directory with the libstdc++ headers.
1609 --with-cxx-include-arch Architecture of the libstdc++ headers.
1610 --with-cxx-include-32bit-dir
1611 32 bit multilib dir.
1612 --with-cxx-include-64bit-dir
1613 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001614 --with-binutils-include Specify path to binutils/include/ containing
1615 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001616 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-pic try to use only PIC/non-PIC objects [default=use
1619 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001620 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001621 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001622 --with-oprofile=<prefix>
1623 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001624
1625Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001626 CC C compiler command
1627 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001630 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001632 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001635 CXXCPP C++ preprocessor
1636 F77 Fortran 77 compiler command
1637 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
1642Report bugs to <llvmbugs@cs.uiuc.edu>.
1643_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001644ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001645fi
1646
1647if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001650 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001651 ac_builddir=.
1652
Reid Spencera773bd52006-08-04 18:18:08 +00001653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
John Criswell7a73b802003-06-30 21:59:07 +00001656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001668
1669case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001670 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001671 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001675 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001682esac
Reid Spencera773bd52006-08-04 18:18:08 +00001683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001684
Reid Spencera773bd52006-08-04 18:18:08 +00001685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001693 else
1694 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001697 done
1698fi
1699
Reid Spencera773bd52006-08-04 18:18:08 +00001700test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001701if $ac_init_version; then
1702 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001703llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001704generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001705
Reid Spencera773bd52006-08-04 18:18:08 +00001706Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17072002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001710
Tanya Lattnerc2264592009-08-22 21:01:26 +00001711Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001712_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001713 exit
John Criswell7a73b802003-06-30 21:59:07 +00001714fi
Reid Spencera773bd52006-08-04 18:18:08 +00001715cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001716This file contains any messages produced by compilers while
1717running configure, to aid debugging if configure makes a mistake.
1718
Tanya Lattner953042b2009-08-22 04:37:30 +00001719It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001720generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001721
1722 $ $0 $@
1723
1724_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001725exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001726{
1727cat <<_ASUNAME
1728## --------- ##
1729## Platform. ##
1730## --------- ##
1731
1732hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737
1738/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1740
1741/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1742/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1743/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001744/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001745/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1746/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1747/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1748
1749_ASUNAME
1750
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 echo "PATH: $as_dir"
1757done
Reid Spencera773bd52006-08-04 18:18:08 +00001758IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760} >&5
1761
1762cat >&5 <<_ACEOF
1763
1764
1765## ----------- ##
1766## Core tests. ##
1767## ----------- ##
1768
1769_ACEOF
1770
1771
1772# Keep a trace of the command line.
1773# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001774# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001775# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001776# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001777ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001778ac_configure_args0=
1779ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001780ac_must_keep_next=false
1781for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001782do
John Criswell0c38eaf2003-09-10 15:17:25 +00001783 for ac_arg
1784 do
1785 case $ac_arg in
1786 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788 | -silent | --silent | --silen | --sile | --sil)
1789 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001790 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792 esac
1793 case $ac_pass in
1794 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795 2)
1796 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001798 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001800 case $ac_arg in
1801 *=* | --config-cache | -C | -disable-* | --disable-* \
1802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804 | -with-* | --with-* | -without-* | --without-* | --x)
1805 case "$ac_configure_args0 " in
1806 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807 esac
1808 ;;
1809 -* ) ac_must_keep_next=true ;;
1810 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001812 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001813 ;;
1814 esac
1815 done
John Criswell7a73b802003-06-30 21:59:07 +00001816done
John Criswell0c38eaf2003-09-10 15:17:25 +00001817$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818$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 +00001819
1820# When interrupted or exit'd, cleanup temporary files, and complete
1821# config.log. We remove comments because anyway the quotes in there
1822# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001823# WARNING: Use '\'' to represent an apostrophe within the trap.
1824# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001825trap 'exit_status=$?
1826 # Save into config.log some information that might help in debugging.
1827 {
1828 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001829
John Criswell7a73b802003-06-30 21:59:07 +00001830 cat <<\_ASBOX
1831## ---------------- ##
1832## Cache variables. ##
1833## ---------------- ##
1834_ASBOX
1835 echo
1836 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001837(
1838 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in #(
1841 *${as_nl}*)
1842 case $ac_var in #(
1843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1844echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1845 esac
1846 case $ac_var in #(
1847 _ | IFS | as_nl) ;; #(
1848 *) $as_unset $ac_var ;;
1849 esac ;;
1850 esac
1851 done
John Criswell7a73b802003-06-30 21:59:07 +00001852 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001855 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001859 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001862 esac |
1863 sort
1864)
John Criswell7a73b802003-06-30 21:59:07 +00001865 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001866
1867 cat <<\_ASBOX
1868## ----------------- ##
1869## Output variables. ##
1870## ----------------- ##
1871_ASBOX
1872 echo
1873 for ac_var in $ac_subst_vars
1874 do
Reid Spencera773bd52006-08-04 18:18:08 +00001875 eval ac_val=\$$ac_var
1876 case $ac_val in
1877 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 esac
1879 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001880 done | sort
1881 echo
1882
1883 if test -n "$ac_subst_files"; then
1884 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001885## ------------------- ##
1886## File substitutions. ##
1887## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001888_ASBOX
1889 echo
1890 for ac_var in $ac_subst_files
1891 do
Reid Spencera773bd52006-08-04 18:18:08 +00001892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001897 done | sort
1898 echo
1899 fi
1900
John Criswell7a73b802003-06-30 21:59:07 +00001901 if test -s confdefs.h; then
1902 cat <<\_ASBOX
1903## ----------- ##
1904## confdefs.h. ##
1905## ----------- ##
1906_ASBOX
1907 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001908 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001909 echo
1910 fi
1911 test "$ac_signal" != 0 &&
1912 echo "$as_me: caught signal $ac_signal"
1913 echo "$as_me: exit $exit_status"
1914 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001917 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001918' 0
John Criswell7a73b802003-06-30 21:59:07 +00001919for ac_signal in 1 2 13 15; do
1920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921done
1922ac_signal=0
1923
1924# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001925rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001926
1927# Predefined preprocessor variables.
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_NAME "$PACKAGE_NAME"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_VERSION "$PACKAGE_VERSION"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_STRING "$PACKAGE_STRING"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951_ACEOF
1952
1953
1954# Let the site file select an alternate cache file if it wants to.
1955# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001956if test -n "$CONFIG_SITE"; then
1957 set x "$CONFIG_SITE"
1958elif test "x$prefix" != xNONE; then
1959 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1960else
1961 set x "$ac_default_prefix/share/config.site" \
1962 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001963fi
Reid Spencera773bd52006-08-04 18:18:08 +00001964shift
1965for ac_site_file
1966do
John Criswell7a73b802003-06-30 21:59:07 +00001967 if test -r "$ac_site_file"; then
1968 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1969echo "$as_me: loading site script $ac_site_file" >&6;}
1970 sed 's/^/| /' "$ac_site_file" >&5
1971 . "$ac_site_file"
1972 fi
1973done
1974
1975if test -r "$cache_file"; then
1976 # Some versions of bash will fail to source /dev/null (special
1977 # files actually), so we avoid doing that.
1978 if test -f "$cache_file"; then
1979 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1980echo "$as_me: loading cache $cache_file" >&6;}
1981 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001982 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1983 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001984 esac
1985 fi
1986else
1987 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1988echo "$as_me: creating cache $cache_file" >&6;}
1989 >$cache_file
1990fi
1991
1992# Check that the precious variables saved in the cache have kept the same
1993# value.
1994ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001995for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001996 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1997 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001998 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1999 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00002000 case $ac_old_set,$ac_new_set in
2001 set,)
2002 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2003echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2004 ac_cache_corrupted=: ;;
2005 ,set)
2006 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2007echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2008 ac_cache_corrupted=: ;;
2009 ,);;
2010 *)
2011 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002012 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002013echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002014 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002015echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002016 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002017echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002018 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002019 fi;;
2020 esac
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2023 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002024 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002025 *) ac_arg=$ac_var=$ac_new_val ;;
2026 esac
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 esac
2031 fi
2032done
2033if $ac_cache_corrupted; then
2034 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038 { (exit 1); exit 1; }; }
2039fi
2040
Reid Spencera773bd52006-08-04 18:18:08 +00002041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
John Criswell7a73b802003-06-30 21:59:07 +00002065ac_ext=c
2066ac_cpp='$CPP $CPPFLAGS'
2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2071
2072
Tanya Lattnerc2264592009-08-22 21:01:26 +00002073LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074
2075
2076
2077
2078
2079
2080
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002082for ac_dir in autoconf "$srcdir"/autoconf; do
2083 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
Reid Spencera773bd52006-08-04 18:18:08 +00002087 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
Reid Spencera773bd52006-08-04 18:18:08 +00002091 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2095 fi
2096done
2097if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2099echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002100 { (exit 1); exit 1; }; }
2101fi
Reid Spencera773bd52006-08-04 18:18:08 +00002102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
John Criswell7a73b802003-06-30 21:59:07 +00002111
John Criswell392aaa32003-07-22 19:18:09 +00002112
Reid Spencer2706f8c2004-09-19 23:53:36 +00002113if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002114 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2115 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002116echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2117 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118 fi
John Criswell93e1c722003-09-15 17:04:06 +00002119fi
2120
John Criswell33a911a2003-11-25 20:36:46 +00002121for i in `ls ${srcdir}/projects`
2122do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 if test -d ${srcdir}/projects/${i} ; then
2124 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 CVS) ;;
2126 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002127 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002128 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002129 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002130 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002131 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002132 # llvm-test is the old name of the test-suite, kept here for backwards
2133 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002134 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002135 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002136 test-suite) subdirs="$subdirs projects/test-suite"
2137 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002138 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002139;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002140 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002141 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002142 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002143 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002144 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002145 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002146 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002147 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002148 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002149 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002150 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002151 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002152 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002153 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2154echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002155 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002156 esac
John Criswell33a911a2003-11-25 20:36:46 +00002157 fi
2158done
John Criswell559a6c12003-09-30 16:31:48 +00002159
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002162$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2163 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2164echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002165 { (exit 1); exit 1; }; }
2166
Reid Spencera773bd52006-08-04 18:18:08 +00002167{ echo "$as_me:$LINENO: checking build system type" >&5
2168echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002169if test "${ac_cv_build+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
Reid Spencera773bd52006-08-04 18:18:08 +00002172 ac_build_alias=$build_alias
2173test "x$ac_build_alias" = x &&
2174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2175test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002176 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2177echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2178 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002179ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2181echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002182 { (exit 1); exit 1; }; }
2183
2184fi
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2186echo "${ECHO_T}$ac_cv_build" >&6; }
2187case $ac_cv_build in
2188*-*-*) ;;
2189*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2190echo "$as_me: error: invalid value of canonical build" >&2;}
2191 { (exit 1); exit 1; }; };;
2192esac
John Criswell7a73b802003-06-30 21:59:07 +00002193build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_build
2196shift
2197build_cpu=$1
2198build_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202build_os=$*
2203IFS=$ac_save_IFS
2204case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002205
2206
Reid Spencera773bd52006-08-04 18:18:08 +00002207{ echo "$as_me:$LINENO: checking host system type" >&5
2208echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002209if test "${ac_cv_host+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
Reid Spencera773bd52006-08-04 18:18:08 +00002212 if test "x$host_alias" = x; then
2213 ac_cv_host=$ac_cv_build
2214else
2215 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2217echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221fi
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2223echo "${ECHO_T}$ac_cv_host" >&6; }
2224case $ac_cv_host in
2225*-*-*) ;;
2226*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2227echo "$as_me: error: invalid value of canonical host" >&2;}
2228 { (exit 1); exit 1; }; };;
2229esac
John Criswell7a73b802003-06-30 21:59:07 +00002230host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_host
2233shift
2234host_cpu=$1
2235host_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239host_os=$*
2240IFS=$ac_save_IFS
2241case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002242
2243
Reid Spencera773bd52006-08-04 18:18:08 +00002244{ echo "$as_me:$LINENO: checking target system type" >&5
2245echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002246if test "${ac_cv_target+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
Reid Spencera773bd52006-08-04 18:18:08 +00002249 if test "x$target_alias" = x; then
2250 ac_cv_target=$ac_cv_host
2251else
2252 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2253 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2254echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002255 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002256fi
John Criswell7a73b802003-06-30 21:59:07 +00002257
2258fi
Reid Spencera773bd52006-08-04 18:18:08 +00002259{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2260echo "${ECHO_T}$ac_cv_target" >&6; }
2261case $ac_cv_target in
2262*-*-*) ;;
2263*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2264echo "$as_me: error: invalid value of canonical target" >&2;}
2265 { (exit 1); exit 1; }; };;
2266esac
John Criswell7a73b802003-06-30 21:59:07 +00002267target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002268ac_save_IFS=$IFS; IFS='-'
2269set x $ac_cv_target
2270shift
2271target_cpu=$1
2272target_vendor=$2
2273shift; shift
2274# Remember, the first character of IFS is used to create $*,
2275# except with old shells:
2276target_os=$*
2277IFS=$ac_save_IFS
2278case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002279
2280
2281# The aliases save the names the user supplied, while $host etc.
2282# will get canonicalized.
2283test -n "$target_alias" &&
2284 test "$program_prefix$program_suffix$program_transform_name" = \
2285 NONENONEs,x,x, &&
2286 program_prefix=${target_alias}-
2287
Reid Spencera773bd52006-08-04 18:18:08 +00002288{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2289echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002293 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="AIX"
2298 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002299 *-*-irix*)
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="IRIX"
2303 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Cygwin"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002311 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="Darwin"
2313 llvm_cv_platform_type="Unix" ;;
2314 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="FreeBSD"
2318 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002319 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002322 llvm_cv_os_type="OpenBSD"
2323 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002324 *-*-netbsd*)
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="NetBSD"
2328 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002329 *-*-dragonfly*)
2330 llvm_cv_link_all_option="-Wl,--whole-archive"
2331 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2332 llvm_cv_os_type="DragonFly"
2333 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002334 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002335 llvm_cv_link_all_option="-Wl,--whole-archive"
2336 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002337 llvm_cv_os_type="HP-UX"
2338 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002340 llvm_cv_link_all_option="-Wl,--whole-archive"
2341 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 llvm_cv_os_type="Interix"
2343 llvm_cv_platform_type="Unix" ;;
2344 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002345 llvm_cv_link_all_option="-Wl,--whole-archive"
2346 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347 llvm_cv_os_type="Linux"
2348 llvm_cv_platform_type="Unix" ;;
2349 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002350 llvm_cv_link_all_option="-Wl,-z,allextract"
2351 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002352 llvm_cv_os_type="SunOS"
2353 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002354 *-*-auroraux*)
2355 llvm_cv_link_all_option="-Wl,-z,allextract"
2356 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2357 llvm_cv_os_type="AuroraUX"
2358 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002360 llvm_cv_link_all_option="-Wl,--whole-archive"
2361 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002362 llvm_cv_os_type="Win32"
2363 llvm_cv_platform_type="Win32" ;;
2364 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002365 llvm_cv_link_all_option="-Wl,--whole-archive"
2366 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367 llvm_cv_os_type="MingW"
2368 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002369 *-*-haiku*)
2370 llvm_cv_link_all_option="-Wl,--whole-archive"
2371 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2372 llvm_cv_os_type="Haiku"
2373 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002374 *-unknown-eabi*)
2375 llvm_cv_link_all_option="-Wl,--whole-archive"
2376 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2377 llvm_cv_os_type="Freestanding"
2378 llvm_cv_platform_type="Unix" ;;
2379 *-unknown-elf*)
2380 llvm_cv_link_all_option="-Wl,--whole-archive"
2381 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2382 llvm_cv_os_type="Freestanding"
2383 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002384 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002385 llvm_cv_link_all_option=""
2386 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002387 llvm_cv_os_type="Unknown"
2388 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002389esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390fi
Reid Spencera773bd52006-08-04 18:18:08 +00002391{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2392echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002393
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002394{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2395echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2396if test "${llvm_cv_target_os_type+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 case $target in
2400 *-*-aix*)
2401 llvm_cv_target_os_type="AIX" ;;
2402 *-*-irix*)
2403 llvm_cv_target_os_type="IRIX" ;;
2404 *-*-cygwin*)
2405 llvm_cv_target_os_type="Cygwin" ;;
2406 *-*-darwin*)
2407 llvm_cv_target_os_type="Darwin" ;;
2408 *-*-freebsd*)
2409 llvm_cv_target_os_type="FreeBSD" ;;
2410 *-*-openbsd*)
2411 llvm_cv_target_os_type="OpenBSD" ;;
2412 *-*-netbsd*)
2413 llvm_cv_target_os_type="NetBSD" ;;
2414 *-*-dragonfly*)
2415 llvm_cv_target_os_type="DragonFly" ;;
2416 *-*-hpux*)
2417 llvm_cv_target_os_type="HP-UX" ;;
2418 *-*-interix*)
2419 llvm_cv_target_os_type="Interix" ;;
2420 *-*-linux*)
2421 llvm_cv_target_os_type="Linux" ;;
2422 *-*-solaris*)
2423 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002424 *-*-auroraux*)
2425 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002426 *-*-win32*)
2427 llvm_cv_target_os_type="Win32" ;;
2428 *-*-mingw*)
2429 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002430 *-*-haiku*)
2431 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002432 *-unknown-eabi*)
2433 llvm_cv_target_os_type="Freestanding" ;;
2434 *)
2435 llvm_cv_target_os_type="Unknown" ;;
2436esac
2437fi
2438{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2439echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2440
Reid Spencer7b3e8512004-12-24 06:29:05 +00002441if test "$llvm_cv_os_type" = "Unknown" ; then
2442 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2443echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002444 { (exit 1); exit 1; }; }
2445fi
2446
Reid Spencer7b3e8512004-12-24 06:29:05 +00002447OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002449HOST_OS=$llvm_cv_os_type
2450
2451TARGET_OS=$llvm_cv_target_os_type
2452
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453
Reid Spencera773bd52006-08-04 18:18:08 +00002454LINKALL=$llvm_cv_link_all_option
2455
2456NOLINKALL=$llvm_cv_no_link_all_option
2457
2458
Reid Spencer7b3e8512004-12-24 06:29:05 +00002459case $llvm_cv_platform_type in
2460 Unix)
2461
2462cat >>confdefs.h <<\_ACEOF
2463#define LLVM_ON_UNIX 1
2464_ACEOF
2465
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002466 LLVM_ON_UNIX=1
2467
2468 LLVM_ON_WIN32=0
2469
Reid Spencer7b3e8512004-12-24 06:29:05 +00002470 ;;
2471 Win32)
2472
2473cat >>confdefs.h <<\_ACEOF
2474#define LLVM_ON_WIN32 1
2475_ACEOF
2476
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002477 LLVM_ON_UNIX=0
2478
2479 LLVM_ON_WIN32=1
2480
Reid Spencer7b3e8512004-12-24 06:29:05 +00002481 ;;
2482esac
2483
Reid Spencera773bd52006-08-04 18:18:08 +00002484{ echo "$as_me:$LINENO: checking target architecture" >&5
2485echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486if test "${llvm_cv_target_arch+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002490 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002491 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002492 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2493 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002494 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002495 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002496 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002497 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002498 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002499 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002500 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002501 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002502 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002503esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504fi
Reid Spencera773bd52006-08-04 18:18:08 +00002505{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2506echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002507
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508if test "$llvm_cv_target_arch" = "Unknown" ; then
2509 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2510echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2511fi
John Criswell76595452003-07-01 22:07:39 +00002512
Nick Lewycky83fc4472009-09-29 05:48:51 +00002513# Determine the LLVM native architecture for the target
2514case "$llvm_cv_target_arch" in
2515 x86) LLVM_NATIVE_ARCH="X86" ;;
2516 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2517 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2518esac
2519
2520ARCH=$llvm_cv_target_arch
2521
2522
2523ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002528if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002545 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 +00002546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551done
Reid Spencera773bd52006-08-04 18:18:08 +00002552IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553
2554fi
2555fi
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002558 { echo "$as_me:$LINENO: result: $CC" >&5
2559echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560else
Reid Spencera773bd52006-08-04 18:18:08 +00002561 { echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563fi
2564
Reid Spencera773bd52006-08-04 18:18:08 +00002565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566fi
2567if test -z "$ac_cv_prog_CC"; then
2568 ac_ct_CC=$CC
2569 # Extract the first word of "gcc", so it can be a program name with args.
2570set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002585 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 +00002586 ac_cv_prog_ac_ct_CC="gcc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591done
Reid Spencera773bd52006-08-04 18:18:08 +00002592IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593
2594fi
2595fi
2596ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600else
Reid Spencera773bd52006-08-04 18:18:08 +00002601 { echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603fi
2604
Reid Spencera773bd52006-08-04 18:18:08 +00002605 if test "x$ac_ct_CC" = x; then
2606 CC=""
2607 else
2608 case $cross_compiling:$ac_tool_warned in
2609yes:)
2610{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2611whose name does not start with the host triplet. If you think this
2612configuration is useful to you, please write to autoconf@gnu.org." >&5
2613echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2614whose name does not start with the host triplet. If you think this
2615configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618 CC=$ac_ct_CC
2619 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620else
2621 CC="$ac_cv_prog_CC"
2622fi
2623
2624if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002625 if test -n "$ac_tool_prefix"; then
2626 # 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 +00002627set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002642 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 +00002643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647done
2648done
Reid Spencera773bd52006-08-04 18:18:08 +00002649IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650
2651fi
2652fi
2653CC=$ac_cv_prog_CC
2654if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002655 { echo "$as_me:$LINENO: result: $CC" >&5
2656echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657else
Reid Spencera773bd52006-08-04 18:18:08 +00002658 { echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660fi
2661
Reid Spencera773bd52006-08-04 18:18:08 +00002662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664fi
2665if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
2676 ac_prog_rejected=no
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002683 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 +00002684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2686 continue
2687 fi
2688 ac_cv_prog_CC="cc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693done
Reid Spencera773bd52006-08-04 18:18:08 +00002694IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002695
2696if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2699 shift
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2704 shift
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2706 fi
2707fi
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002712 { echo "$as_me:$LINENO: result: $CC" >&5
2713echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714else
Reid Spencera773bd52006-08-04 18:18:08 +00002715 { echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717fi
2718
Reid Spencera773bd52006-08-04 18:18:08 +00002719
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002720fi
2721if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002723 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002724 do
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002741 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 +00002742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
Reid Spencera773bd52006-08-04 18:18:08 +00002748IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002749
2750fi
2751fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002754 { echo "$as_me:$LINENO: result: $CC" >&5
2755echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002756else
Reid Spencera773bd52006-08-04 18:18:08 +00002757 { echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002759fi
2760
Reid Spencera773bd52006-08-04 18:18:08 +00002761
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002762 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002763 done
2764fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765if test -z "$CC"; then
2766 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002767 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002768do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002773if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002785 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 +00002786 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791done
Reid Spencera773bd52006-08-04 18:18:08 +00002792IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002793
2794fi
2795fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002796ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002800else
Reid Spencera773bd52006-08-04 18:18:08 +00002801 { echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002803fi
2804
Reid Spencera773bd52006-08-04 18:18:08 +00002805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002806 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002807done
John Criswell7a73b802003-06-30 21:59:07 +00002808
Reid Spencera773bd52006-08-04 18:18:08 +00002809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813yes:)
2814{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815whose name does not start with the host triplet. If you think this
2816configuration is useful to you, please write to autoconf@gnu.org." >&5
2817echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818whose name does not start with the host triplet. If you think this
2819configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820ac_tool_warned=yes ;;
2821esac
2822 CC=$ac_ct_CC
2823 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002824fi
2825
John Criswell7a73b802003-06-30 21:59:07 +00002826fi
2827
2828
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002829test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2830See \`config.log' for more details." >&5
2831echo "$as_me: error: no acceptable C compiler found in \$PATH
2832See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2834
John Criswell7a73b802003-06-30 21:59:07 +00002835# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002836echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002837ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ (ac_try="$ac_compiler --version >&5"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002848{ (ac_try="$ac_compiler -v >&5"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002858{ (ac_try="$ac_compiler -V >&5"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2868
2869cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002870/* confdefs.h. */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002875
John Criswell7a73b802003-06-30 21:59:07 +00002876int
2877main ()
2878{
2879
2880 ;
2881 return 0;
2882}
2883_ACEOF
2884ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002885ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002886# Try to create an executable without -o first, disregard a.out.
2887# It will help us diagnose broken compilers, and finding out an intuition
2888# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2890echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002892#
2893# List of possible output files, starting from the most likely.
2894# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2895# only as a last resort. b.out is created by i960 compilers.
2896ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2897#
2898# The IRIX 6 linker writes into existing files which may not be
2899# executable, retaining their permissions. Remove them first so a
2900# subsequent execution test works.
2901ac_rmfiles=
2902for ac_file in $ac_files
2903do
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2907 esac
2908done
2909rm -f $ac_rmfiles
2910
2911if { (ac_try="$ac_link_default"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002921 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2922# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2923# in a Makefile. We should not override ac_cv_exeext if it was cached,
2924# so that the user can short-circuit this test for compilers unknown to
2925# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002926for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002927do
2928 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002929 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002931 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002932 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002933 # We found the default executable, but exeext='' is most
2934 # certainly right.
2935 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002936 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002937 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2938 then :; else
2939 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 fi
2941 # We set ac_cv_exeext here because the later test for it is not
2942 # safe: cross compilers may not add the suffix if given an `-o'
2943 # argument, so we may need to know it at that point already.
2944 # Even if this section looks crufty: it has the advantage of
2945 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002946 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002947 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002948 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 esac
2950done
Reid Spencera773bd52006-08-04 18:18:08 +00002951test "$ac_cv_exeext" = no && ac_cv_exeext=
2952
John Criswell7a73b802003-06-30 21:59:07 +00002953else
2954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002957{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002958See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002959echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002960See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002961 { (exit 77); exit 77; }; }
2962fi
2963
2964ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002965{ echo "$as_me:$LINENO: result: $ac_file" >&5
2966echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002967
Reid Spencera773bd52006-08-04 18:18:08 +00002968# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002969# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002970{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2971echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002972# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2973# If not cross compiling, check that we can run a simple program.
2974if test "$cross_compiling" != yes; then
2975 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 cross_compiling=no
2986 else
2987 if test "$cross_compiling" = maybe; then
2988 cross_compiling=yes
2989 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002991If you meant to cross compile, use \`--host'.
2992See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002993echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002994If you meant to cross compile, use \`--host'.
2995See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002996 { (exit 1); exit 1; }; }
2997 fi
2998 fi
2999fi
Reid Spencera773bd52006-08-04 18:18:08 +00003000{ echo "$as_me:$LINENO: result: yes" >&5
3001echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003002
John Criswell0c38eaf2003-09-10 15:17:25 +00003003rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00003004ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00003005# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00003006# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00003007{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3008echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3009{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3010echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003011
Reid Spencera773bd52006-08-04 18:18:08 +00003012{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3013echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3014if { (ac_try="$ac_link"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; then
3024 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3025# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3026# work properly (i.e., refer to `conftest.exe'), while it won't with
3027# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003028for ac_file in conftest.exe conftest conftest.*; do
3029 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003030 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003033 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003034 * ) break;;
3035 esac
3036done
3037else
John Criswell0c38eaf2003-09-10 15:17:25 +00003038 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3039See \`config.log' for more details." >&5
3040echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3041See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003042 { (exit 1); exit 1; }; }
3043fi
3044
3045rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003046{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3047echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003048
3049rm -f conftest.$ac_ext
3050EXEEXT=$ac_cv_exeext
3051ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003052{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3053echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003054if test "${ac_cv_objext+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003063
John Criswell7a73b802003-06-30 21:59:07 +00003064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003083 for ac_file in conftest.o conftest.obj conftest.*; do
3084 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003085 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3088 break;;
3089 esac
3090done
3091else
3092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3096See \`config.log' for more details." >&5
3097echo "$as_me: error: cannot compute suffix of object files: cannot compile
3098See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003099 { (exit 1); exit 1; }; }
3100fi
3101
3102rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103fi
Reid Spencera773bd52006-08-04 18:18:08 +00003104{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3105echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003106OBJEXT=$ac_cv_objext
3107ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003108{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3109echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003110if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003119
John Criswell7a73b802003-06-30 21:59:07 +00003120int
3121main ()
3122{
3123#ifndef __GNUC__
3124 choke me
3125#endif
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003165 ac_compiler_gnu=yes
3166else
3167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003168sed 's/^/| /' conftest.$ac_ext >&5
3169
Reid Spencera773bd52006-08-04 18:18:08 +00003170 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003171fi
Reid Spencera773bd52006-08-04 18:18:08 +00003172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003174ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003175
3176fi
Reid Spencera773bd52006-08-04 18:18:08 +00003177{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003179GCC=`test $ac_compiler_gnu = yes && echo yes`
3180ac_test_CFLAGS=${CFLAGS+set}
3181ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003182{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003184if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
Reid Spencera773bd52006-08-04 18:18:08 +00003187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
3191 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003197
John Criswell7a73b802003-06-30 21:59:07 +00003198int
3199main ()
3200{
3201
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003207if { (ac_try="$ac_compile"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3221 { (case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_try") 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003241else
3242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003243sed 's/^/| /' conftest.$ac_ext >&5
3244
Reid Spencera773bd52006-08-04 18:18:08 +00003245 CFLAGS=""
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext
3262if { (ac_try="$ac_compile"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003295 :
3296else
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3301 CFLAGS="-g"
3302 cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h. */
3308
3309int
3310main ()
3311{
3312
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003351 ac_cv_prog_cc_g=yes
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
John Criswell7a73b802003-06-30 21:59:07 +00003357fi
Reid Spencera773bd52006-08-04 18:18:08 +00003358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003360fi
Reid Spencera773bd52006-08-04 18:18:08 +00003361
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_c_werror_flag=$ac_save_c_werror_flag
3367fi
3368{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3369echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370if test "$ac_test_CFLAGS" = set; then
3371 CFLAGS=$ac_save_CFLAGS
3372elif test $ac_cv_prog_cc_g = yes; then
3373 if test "$GCC" = yes; then
3374 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003375 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003377 fi
3378else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379 if test "$GCC" = yes; then
3380 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003381 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003383 fi
3384fi
Reid Spencera773bd52006-08-04 18:18:08 +00003385{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3386echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3387if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
Reid Spencera773bd52006-08-04 18:18:08 +00003390 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391ac_save_CC=$CC
3392cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h. */
3398#include <stdarg.h>
3399#include <stdio.h>
3400#include <sys/types.h>
3401#include <sys/stat.h>
3402/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3403struct buf { int x; };
3404FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405static char *e (p, i)
3406 char **p;
3407 int i;
3408{
3409 return p[i];
3410}
3411static char *f (char * (*g) (char **, int), char **p, ...)
3412{
3413 char *s;
3414 va_list v;
3415 va_start (v,p);
3416 s = g (p, va_arg (v,int));
3417 va_end (v);
3418 return s;
3419}
3420
3421/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3422 function prototypes and stuff, but not '\xHH' hex character constants.
3423 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003424 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3426 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003427 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429
Reid Spencera773bd52006-08-04 18:18:08 +00003430/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431 inside strings and character constants. */
3432#define FOO(x) 'x'
3433int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435int test (int i, double x);
3436struct s1 {int (*f) (int a);};
3437struct s2 {int (*f) (double a);};
3438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3439int argc;
3440char **argv;
3441int
3442main ()
3443{
3444return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 ;
3446 return 0;
3447}
3448_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003449for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451do
3452 CC="$ac_save_CC $ac_arg"
3453 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003454if { (ac_try="$ac_compile"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3468 { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
3472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003487 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003488else
3489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
Reid Spencera773bd52006-08-04 18:18:08 +00003492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493fi
Reid Spencera773bd52006-08-04 18:18:08 +00003494
3495rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497done
Reid Spencera773bd52006-08-04 18:18:08 +00003498rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499CC=$ac_save_CC
3500
3501fi
Reid Spencera773bd52006-08-04 18:18:08 +00003502# AC_CACHE_VAL
3503case "x$ac_cv_prog_cc_c89" in
3504 x)
3505 { echo "$as_me:$LINENO: result: none needed" >&5
3506echo "${ECHO_T}none needed" >&6; } ;;
3507 xno)
3508 { echo "$as_me:$LINENO: result: unsupported" >&5
3509echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003511 CC="$CC $ac_cv_prog_cc_c89"
3512 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3513echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514esac
3515
John Criswell0c38eaf2003-09-10 15:17:25 +00003516
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524ac_ext=c
3525ac_cpp='$CPP $CPPFLAGS'
3526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003529{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3530echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003531# On Suns, sometimes $CPP names a directory.
3532if test -n "$CPP" && test -d "$CPP"; then
3533 CPP=
3534fi
3535if test -z "$CPP"; then
3536 if test "${ac_cv_prog_CPP+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 # Double quotes because CPP needs to be expanded
3540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541 do
3542 ac_preproc_ok=false
3543for ac_c_preproc_warn_flag in '' yes
3544do
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
3557#ifdef __STDC__
3558# include <limits.h>
3559#else
3560# include <assert.h>
3561#endif
3562 Syntax error
3563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003564if { (ac_try="$ac_cpp conftest.$ac_ext"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 else
3581 ac_cpp_err=
3582 fi
3583else
3584 ac_cpp_err=yes
3585fi
3586if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587 :
3588else
3589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 # Broken: fails on valid input.
3593continue
3594fi
Reid Spencera773bd52006-08-04 18:18:08 +00003595
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003596rm -f conftest.err conftest.$ac_ext
3597
Reid Spencera773bd52006-08-04 18:18:08 +00003598 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h. */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h. */
3606#include <ac_nonexistent.h>
3607_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003608if { (ac_try="$ac_cpp conftest.$ac_ext"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3624 else
3625 ac_cpp_err=
3626 fi
3627else
3628 ac_cpp_err=yes
3629fi
3630if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631 # Broken: success on invalid input.
3632continue
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 # Passes both tests.
3638ac_preproc_ok=:
3639break
3640fi
Reid Spencera773bd52006-08-04 18:18:08 +00003641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003642rm -f conftest.err conftest.$ac_ext
3643
3644done
3645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646rm -f conftest.err conftest.$ac_ext
3647if $ac_preproc_ok; then
3648 break
3649fi
3650
3651 done
3652 ac_cv_prog_CPP=$CPP
3653
3654fi
3655 CPP=$ac_cv_prog_CPP
3656else
3657 ac_cv_prog_CPP=$CPP
3658fi
Reid Spencera773bd52006-08-04 18:18:08 +00003659{ echo "$as_me:$LINENO: result: $CPP" >&5
3660echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661ac_preproc_ok=false
3662for ac_c_preproc_warn_flag in '' yes
3663do
3664 # Use a header file that comes with gcc, so configuring glibc
3665 # with a fresh cross-compiler works.
3666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667 # <limits.h> exists even on freestanding compilers.
3668 # On the NeXT, cc -E runs the code through the compiler's parser,
3669 # not just through cpp. "Syntax error" is here to catch this case.
3670 cat >conftest.$ac_ext <<_ACEOF
3671/* confdefs.h. */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h. */
3676#ifdef __STDC__
3677# include <limits.h>
3678#else
3679# include <assert.h>
3680#endif
3681 Syntax error
3682_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003683if { (ac_try="$ac_cpp conftest.$ac_ext"
3684case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687esac
3688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003695 (exit $ac_status); } >/dev/null; then
3696 if test -s conftest.err; then
3697 ac_cpp_err=$ac_c_preproc_warn_flag
3698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699 else
3700 ac_cpp_err=
3701 fi
3702else
3703 ac_cpp_err=yes
3704fi
3705if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003706 :
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 # Broken: fails on valid input.
3712continue
3713fi
Reid Spencera773bd52006-08-04 18:18:08 +00003714
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003715rm -f conftest.err conftest.$ac_ext
3716
Reid Spencera773bd52006-08-04 18:18:08 +00003717 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
3725#include <ac_nonexistent.h>
3726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003727if { (ac_try="$ac_cpp conftest.$ac_ext"
3728case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731esac
3732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003739 (exit $ac_status); } >/dev/null; then
3740 if test -s conftest.err; then
3741 ac_cpp_err=$ac_c_preproc_warn_flag
3742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3743 else
3744 ac_cpp_err=
3745 fi
3746else
3747 ac_cpp_err=yes
3748fi
3749if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003750 # Broken: success on invalid input.
3751continue
3752else
3753 echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 # Passes both tests.
3757ac_preproc_ok=:
3758break
3759fi
Reid Spencera773bd52006-08-04 18:18:08 +00003760
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003761rm -f conftest.err conftest.$ac_ext
3762
3763done
3764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765rm -f conftest.err conftest.$ac_ext
3766if $ac_preproc_ok; then
3767 :
3768else
3769 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3770See \`config.log' for more details." >&5
3771echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3772See \`config.log' for more details." >&2;}
3773 { (exit 1); exit 1; }; }
3774fi
3775
John Criswell7a73b802003-06-30 21:59:07 +00003776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
John Criswell7a73b802003-06-30 21:59:07 +00003782
Reid Spencera773bd52006-08-04 18:18:08 +00003783{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3784echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003785if test "${ac_cv_path_GREP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
Reid Spencera773bd52006-08-04 18:18:08 +00003788 # Extract the first word of "grep ggrep" to use in msg output
3789if test -z "$GREP"; then
3790set dummy grep ggrep; ac_prog_name=$2
3791if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
Reid Spencera773bd52006-08-04 18:18:08 +00003794 ac_path_GREP_found=false
3795# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003801 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003802 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003804 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003805 # Check for GNU ac_path_GREP and select it if it is found.
3806 # Check for GNU $ac_path_GREP
3807case `"$ac_path_GREP" --version 2>&1` in
3808*GNU*)
3809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3810*)
3811 ac_count=0
3812 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3813 while :
3814 do
3815 cat "conftest.in" "conftest.in" >"conftest.tmp"
3816 mv "conftest.tmp" "conftest.in"
3817 cp "conftest.in" "conftest.nl"
3818 echo 'GREP' >> "conftest.nl"
3819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3821 ac_count=`expr $ac_count + 1`
3822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3823 # Best one so far, save it but keep looking for a better one
3824 ac_cv_path_GREP="$ac_path_GREP"
3825 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003826 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003827 # 10*(2^10) chars as input seems more than enough
3828 test $ac_count -gt 10 && break
3829 done
3830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3831esac
3832
3833
3834 $ac_path_GREP_found && break 3
3835 done
3836done
3837
3838done
3839IFS=$as_save_IFS
3840
3841
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003842fi
Reid Spencera773bd52006-08-04 18:18:08 +00003843
3844GREP="$ac_cv_path_GREP"
3845if test -z "$GREP"; then
3846 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3847echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3848 { (exit 1); exit 1; }; }
3849fi
3850
3851else
3852 ac_cv_path_GREP=$GREP
3853fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003854
John Criswell7a73b802003-06-30 21:59:07 +00003855
Reid Spencera773bd52006-08-04 18:18:08 +00003856fi
3857{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3858echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3859 GREP="$ac_cv_path_GREP"
3860
3861
3862{ echo "$as_me:$LINENO: checking for egrep" >&5
3863echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3864if test "${ac_cv_path_EGREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868 then ac_cv_path_EGREP="$GREP -E"
3869 else
3870 # Extract the first word of "egrep" to use in msg output
3871if test -z "$EGREP"; then
3872set dummy egrep; ac_prog_name=$2
3873if test "${ac_cv_path_EGREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_path_EGREP_found=false
3877# Loop through the user's path and test for each of PROGNAME-LIST
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in egrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003886 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003887 # Check for GNU ac_path_EGREP and select it if it is found.
3888 # Check for GNU $ac_path_EGREP
3889case `"$ac_path_EGREP" --version 2>&1` in
3890*GNU*)
3891 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3892*)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'EGREP' >> "conftest.nl"
3901 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_EGREP="$ac_path_EGREP"
3907 ac_path_EGREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915
3916 $ac_path_EGREP_found && break 3
3917 done
3918done
3919
3920done
3921IFS=$as_save_IFS
3922
3923
3924fi
3925
3926EGREP="$ac_cv_path_EGREP"
3927if test -z "$EGREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931fi
3932
3933else
3934 ac_cv_path_EGREP=$EGREP
3935fi
3936
3937
3938 fi
3939fi
3940{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3941echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3942 EGREP="$ac_cv_path_EGREP"
3943
3944
3945{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3946echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003947if test "${ac_cv_header_stdc+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003956#include <stdlib.h>
3957#include <stdarg.h>
3958#include <string.h>
3959#include <float.h>
3960
John Criswell0c38eaf2003-09-10 15:17:25 +00003961int
3962main ()
3963{
3964
3965 ;
3966 return 0;
3967}
John Criswell7a73b802003-06-30 21:59:07 +00003968_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003969rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003970if { (ac_try="$ac_compile"
3971case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3984 { (case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987esac
3988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997esac
3998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_try") 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004003 ac_cv_header_stdc=yes
4004else
4005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004006sed 's/^/| /' conftest.$ac_ext >&5
4007
Reid Spencera773bd52006-08-04 18:18:08 +00004008 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004009fi
Reid Spencera773bd52006-08-04 18:18:08 +00004010
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004012
4013if test $ac_cv_header_stdc = yes; then
4014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004016/* confdefs.h. */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004021#include <string.h>
4022
4023_ACEOF
4024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004025 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004026 :
4027else
4028 ac_cv_header_stdc=no
4029fi
4030rm -f conftest*
4031
4032fi
4033
4034if test $ac_cv_header_stdc = yes; then
4035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004042#include <stdlib.h>
4043
4044_ACEOF
4045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004046 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004047 :
4048else
4049 ac_cv_header_stdc=no
4050fi
4051rm -f conftest*
4052
4053fi
4054
4055if test $ac_cv_header_stdc = yes; then
4056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4057 if test "$cross_compiling" = yes; then
4058 :
4059else
4060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004066#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004067#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004068#if ((' ' & 0x0FF) == 0x020)
4069# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4070# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4071#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004072# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004073 (('a' <= (c) && (c) <= 'i') \
4074 || ('j' <= (c) && (c) <= 'r') \
4075 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004076# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4077#endif
4078
4079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4080int
4081main ()
4082{
4083 int i;
4084 for (i = 0; i < 256; i++)
4085 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004086 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004087 return 2;
4088 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004089}
4090_ACEOF
4091rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004092if { (ac_try="$ac_link"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 :
4112else
4113 echo "$as_me: program exited with status $ac_status" >&5
4114echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004115sed 's/^/| /' conftest.$ac_ext >&5
4116
John Criswell7a73b802003-06-30 21:59:07 +00004117( exit $ac_status )
4118ac_cv_header_stdc=no
4119fi
Reid Spencera773bd52006-08-04 18:18:08 +00004120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4121fi
4122
4123
John Criswell7a73b802003-06-30 21:59:07 +00004124fi
4125fi
Reid Spencera773bd52006-08-04 18:18:08 +00004126{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4127echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004128if test $ac_cv_header_stdc = yes; then
4129
4130cat >>confdefs.h <<\_ACEOF
4131#define STDC_HEADERS 1
4132_ACEOF
4133
4134fi
4135
Reid Spencera773bd52006-08-04 18:18:08 +00004136# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4147 inttypes.h stdint.h unistd.h
4148do
4149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_includes_default
4162
4163#include <$ac_header>
4164_ACEOF
4165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004199 eval "$as_ac_Header=yes"
4200else
4201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 eval "$as_ac_Header=no"
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208fi
4209ac_res=`eval echo '${'$as_ac_Header'}'`
4210 { echo "$as_me:$LINENO: result: $ac_res" >&5
4211echo "${ECHO_T}$ac_res" >&6; }
4212if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4215_ACEOF
4216
4217fi
4218
4219done
4220
4221
4222{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4223echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4224if test "${ac_cv_c_bigendian+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227 # See if sys/param.h defines the BYTE_ORDER macro.
4228cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h. */
4234#include <sys/types.h>
4235#include <sys/param.h>
4236
4237int
4238main ()
4239{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004240#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004241 bogus endian macros
4242#endif
4243
4244 ;
4245 return 0;
4246}
4247_ACEOF
4248rm -f conftest.$ac_objext
4249if { (ac_try="$ac_compile"
4250case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004282 # It does; now see whether it defined to BIG_ENDIAN or not.
4283cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
4289#include <sys/types.h>
4290#include <sys/param.h>
4291
4292int
4293main ()
4294{
4295#if BYTE_ORDER != BIG_ENDIAN
4296 not big endian
4297#endif
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext
4304if { (ac_try="$ac_compile"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004337 ac_cv_c_bigendian=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_cv_c_bigendian=no
4343fi
4344
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346else
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 # It does not; compile a test program.
4351if test "$cross_compiling" = yes; then
4352 # try to guess the endianness by grepping values into an object file
4353 ac_cv_c_bigendian=unknown
4354 cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4361short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4362void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4363short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4364short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4365void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4366int
4367main ()
4368{
4369 _ascii (); _ebcdic ();
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (ac_try="$ac_compile"
4376case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402esac
4403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_try") 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004408 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4409 ac_cv_c_bigendian=yes
4410fi
4411if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4412 if test "$ac_cv_c_bigendian" = unknown; then
4413 ac_cv_c_bigendian=no
4414 else
4415 # finding both strings is unlikely to happen, but who knows?
4416 ac_cv_c_bigendian=unknown
4417 fi
4418fi
4419else
4420 echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423
4424fi
4425
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427else
4428 cat >conftest.$ac_ext <<_ACEOF
4429/* confdefs.h. */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
4433/* end confdefs.h. */
4434$ac_includes_default
4435int
4436main ()
4437{
4438
4439 /* Are we little or big endian? From Harbison&Steele. */
4440 union
4441 {
4442 long int l;
4443 char c[sizeof (long int)];
4444 } u;
4445 u.l = 1;
4446 return u.c[sizeof (long int) - 1] == 1;
4447
4448 ;
4449 return 0;
4450}
4451_ACEOF
4452rm -f conftest$ac_exeext
4453if { (ac_try="$ac_link"
4454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_link") 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_c_bigendian=no
4473else
4474 echo "$as_me: program exited with status $ac_status" >&5
4475echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478( exit $ac_status )
4479ac_cv_c_bigendian=yes
4480fi
4481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4482fi
4483
4484
4485fi
4486
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488fi
4489{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4490echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4491case $ac_cv_c_bigendian in
4492 yes)
4493 ENDIAN=big
4494 ;;
4495 no)
4496 ENDIAN=little
4497 ;;
4498 *)
4499 { { echo "$as_me:$LINENO: error: unknown endianness
4500presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4501echo "$as_me: error: unknown endianness
4502presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4503 { (exit 1); exit 1; }; } ;;
4504esac
4505
4506
4507if test "$cross_compiling" = yes; then
4508 LLVM_CROSS_COMPILING=1
4509
4510
4511{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4512echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4513if test "${ac_cv_build_exeext+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4517 ac_cv_build_exeext=.exe
4518else
4519 ac_build_prefix=${build_alias}-
4520
4521 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4522set dummy ${ac_build_prefix}gcc; ac_word=$2
4523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 if test -n "$BUILD_CC"; then
4529 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004537 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 +00004538 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542done
4543done
4544IFS=$as_save_IFS
4545
4546fi
4547fi
4548BUILD_CC=$ac_cv_prog_BUILD_CC
4549if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551echo "${ECHO_T}$BUILD_CC" >&6; }
4552else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
4555fi
4556
4557
4558 if test -z "$BUILD_CC"; then
4559 # Extract the first word of "gcc", so it can be a program name with args.
4560set dummy gcc; ac_word=$2
4561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 if test -n "$BUILD_CC"; then
4567 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4568else
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004575 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 +00004576 ac_cv_prog_BUILD_CC="gcc"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580done
4581done
4582IFS=$as_save_IFS
4583
4584fi
4585fi
4586BUILD_CC=$ac_cv_prog_BUILD_CC
4587if test -n "$BUILD_CC"; then
4588 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4589echo "${ECHO_T}$BUILD_CC" >&6; }
4590else
4591 { echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6; }
4593fi
4594
4595
4596 if test -z "$BUILD_CC"; then
4597 # Extract the first word of "cc", so it can be a program name with args.
4598set dummy cc; ac_word=$2
4599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 if test -n "$BUILD_CC"; then
4605 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4606else
4607 ac_prog_rejected=no
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004614 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 +00004615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4616 ac_prog_rejected=yes
4617 continue
4618 fi
4619 ac_cv_prog_BUILD_CC="cc"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
4624done
4625IFS=$as_save_IFS
4626
4627if test $ac_prog_rejected = yes; then
4628 # We found a bogon in the path, so make sure we never use it.
4629 set dummy $ac_cv_prog_BUILD_CC
4630 shift
4631 if test $# != 0; then
4632 # We chose a different compiler from the bogus one.
4633 # However, it has the same basename, so the bogon will be chosen
4634 # first if we set BUILD_CC to just the basename; use the full file name.
4635 shift
4636 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4637 fi
4638fi
4639fi
4640fi
4641BUILD_CC=$ac_cv_prog_BUILD_CC
4642if test -n "$BUILD_CC"; then
4643 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4644echo "${ECHO_T}$BUILD_CC" >&6; }
4645else
4646 { echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6; }
4648fi
4649
4650
4651 fi
4652 fi
4653 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4654echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4655 { (exit 1); exit 1; }; }
4656 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4657 rm -f conftest*
4658 echo 'int main () { return 0; }' > conftest.$ac_ext
4659 ac_cv_build_exeext=
4660 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4661 (eval $ac_build_link) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; then
4665 for file in conftest.*; do
4666 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004667 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004668 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4669 esac
4670 done
4671 else
4672 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4673echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4674 { (exit 1); exit 1; }; }
4675 fi
4676 rm -f conftest*
4677 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4678fi
4679fi
4680
4681BUILD_EXEEXT=""
4682test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4683{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4684echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4685ac_build_exeext=$BUILD_EXEEXT
4686
Jim Grosbach673612e2008-10-02 22:56:44 +00004687 ac_build_prefix=${build_alias}-
4688 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4689set dummy ${ac_build_prefix}g++; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$BUILD_CXX"; then
4696 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004704 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 +00004705 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718echo "${ECHO_T}$BUILD_CXX" >&6; }
4719else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
4722fi
4723
4724
4725 if test -z "$BUILD_CXX"; then
4726 # Extract the first word of "g++", so it can be a program name with args.
4727set dummy g++; ac_word=$2
4728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 if test -n "$BUILD_CXX"; then
4734 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004742 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 +00004743 ac_cv_prog_BUILD_CXX="g++"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753BUILD_CXX=$ac_cv_prog_BUILD_CXX
4754if test -n "$BUILD_CXX"; then
4755 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4756echo "${ECHO_T}$BUILD_CXX" >&6; }
4757else
4758 { echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6; }
4760fi
4761
4762
4763 if test -z "$BUILD_CXX"; then
4764 # Extract the first word of "c++", so it can be a program name with args.
4765set dummy c++; ac_word=$2
4766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771 if test -n "$BUILD_CXX"; then
4772 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4773else
4774 ac_prog_rejected=no
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004781 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 +00004782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4783 ac_prog_rejected=yes
4784 continue
4785 fi
4786 ac_cv_prog_BUILD_CXX="c++"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790done
4791done
4792IFS=$as_save_IFS
4793
4794if test $ac_prog_rejected = yes; then
4795 # We found a bogon in the path, so make sure we never use it.
4796 set dummy $ac_cv_prog_BUILD_CXX
4797 shift
4798 if test $# != 0; then
4799 # We chose a different compiler from the bogus one.
4800 # However, it has the same basename, so the bogon will be chosen
4801 # first if we set BUILD_CXX to just the basename; use the full file name.
4802 shift
4803 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4804 fi
4805fi
4806fi
4807fi
4808BUILD_CXX=$ac_cv_prog_BUILD_CXX
4809if test -n "$BUILD_CXX"; then
4810 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4811echo "${ECHO_T}$BUILD_CXX" >&6; }
4812else
4813 { echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6; }
4815fi
4816
4817
4818 fi
4819 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004820else
4821 LLVM_CROSS_COMPILING=0
4822
4823fi
4824
Nick Lewycky5b28f862009-04-10 05:18:27 +00004825if 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 +00004826 cvsbuild="yes"
4827 optimize="no"
4828 CVSBUILD=CVSBUILD=1
4829
4830else
4831 cvsbuild="no"
4832 optimize="yes"
4833fi
4834
4835
4836# Check whether --enable-optimized was given.
4837if test "${enable_optimized+set}" = set; then
4838 enableval=$enable_optimized;
4839else
4840 enableval=$optimize
4841fi
4842
4843if test ${enableval} = "no" ; then
4844 ENABLE_OPTIMIZED=
4845
4846else
4847 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4848
4849fi
4850
David Greene2a5a12c2009-04-17 14:50:39 +00004851# Check whether --enable-profiling was given.
4852if test "${enable_profiling+set}" = set; then
4853 enableval=$enable_profiling;
4854else
4855 enableval="no"
4856fi
4857
4858if test ${enableval} = "no" ; then
4859 ENABLE_PROFILING=
4860
4861else
4862 ENABLE_PROFILING=ENABLE_PROFILING=1
4863
4864fi
4865
Reid Spencera773bd52006-08-04 18:18:08 +00004866# Check whether --enable-assertions was given.
4867if test "${enable_assertions+set}" = set; then
4868 enableval=$enable_assertions;
4869else
4870 enableval="yes"
4871fi
4872
4873if test ${enableval} = "yes" ; then
4874 DISABLE_ASSERTIONS=
4875
4876else
4877 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4878
4879fi
4880
David Greenea696d242007-06-28 19:36:08 +00004881# Check whether --enable-expensive-checks was given.
4882if test "${enable_expensive_checks+set}" = set; then
4883 enableval=$enable_expensive_checks;
4884else
4885 enableval="no"
4886fi
4887
4888if test ${enableval} = "yes" ; then
4889 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4890
4891 EXPENSIVE_CHECKS=yes
4892
4893else
4894 ENABLE_EXPENSIVE_CHECKS=
4895
4896 EXPENSIVE_CHECKS=no
4897
4898fi
4899
Reid Spencer8b2e1412006-11-17 03:32:33 +00004900# Check whether --enable-debug-runtime was given.
4901if test "${enable_debug_runtime+set}" = set; then
4902 enableval=$enable_debug_runtime;
4903else
4904 enableval=no
4905fi
4906
4907if test ${enableval} = "no" ; then
4908 DEBUG_RUNTIME=
4909
4910else
4911 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4912
4913fi
4914
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004915# Check whether --enable-debug-symbols was given.
4916if test "${enable_debug_symbols+set}" = set; then
4917 enableval=$enable_debug_symbols;
4918else
4919 enableval=no
4920fi
4921
4922if test ${enableval} = "no" ; then
4923 DEBUG_SYMBOLS=
4924
4925else
4926 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4927
4928fi
4929
Reid Spencera773bd52006-08-04 18:18:08 +00004930# Check whether --enable-jit was given.
4931if test "${enable_jit+set}" = set; then
4932 enableval=$enable_jit;
4933else
4934 enableval=default
4935fi
4936
4937if test ${enableval} = "no"
4938then
4939 JIT=
4940
4941else
4942 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004943 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004944 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004945 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004946 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004947 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004948 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004949 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004950 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004951 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004952 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004953 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004954 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004955 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004956 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004957 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004958 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004959 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004960 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004961 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004962 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004963 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004964 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004965 Blackfin) TARGET_HAS_JIT=0
4966 ;;
4967 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004968 ;;
4969 esac
4970fi
4971
4972# Check whether --enable-doxygen was given.
4973if test "${enable_doxygen+set}" = set; then
4974 enableval=$enable_doxygen;
4975else
4976 enableval=default
4977fi
4978
4979case "$enableval" in
4980 yes) ENABLE_DOXYGEN=1
4981 ;;
4982 no) ENABLE_DOXYGEN=0
4983 ;;
4984 default) ENABLE_DOXYGEN=0
4985 ;;
4986 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4987echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4988 { (exit 1); exit 1; }; } ;;
4989esac
4990
4991# Check whether --enable-threads was given.
4992if test "${enable_threads+set}" = set; then
4993 enableval=$enable_threads;
4994else
Reid Spencer65c5d752006-11-05 17:08:18 +00004995 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004996fi
4997
4998case "$enableval" in
4999 yes) ENABLE_THREADS=1
5000 ;;
5001 no) ENABLE_THREADS=0
5002 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005003 default) ENABLE_THREADS=1
5004 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005005 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5006echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5007 { (exit 1); exit 1; }; } ;;
5008esac
5009
Owen Andersona8603702009-05-19 22:18:56 +00005010cat >>confdefs.h <<_ACEOF
5011#define ENABLE_THREADS $ENABLE_THREADS
5012_ACEOF
5013
5014
Reid Spencer89b0d992006-12-16 22:07:52 +00005015# Check whether --enable-pic was given.
5016if test "${enable_pic+set}" = set; then
5017 enableval=$enable_pic;
5018else
5019 enableval=default
5020fi
5021
5022case "$enableval" in
5023 yes) ENABLE_PIC=1
5024 ;;
5025 no) ENABLE_PIC=0
5026 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005027 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005028 ;;
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5030echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5032esac
5033
5034cat >>confdefs.h <<_ACEOF
5035#define ENABLE_PIC $ENABLE_PIC
5036_ACEOF
5037
5038
Reid Spencera773bd52006-08-04 18:18:08 +00005039TARGETS_TO_BUILD=""
5040# Check whether --enable-targets was given.
5041if test "${enable_targets+set}" = set; then
5042 enableval=$enable_targets;
5043else
5044 enableval=all
5045fi
5046
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005047if test "$enableval" = host-only ; then
5048 enableval=host
5049fi
Reid Spencera773bd52006-08-04 18:18:08 +00005050case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005051 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 +00005052 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5053 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005054 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5055 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5057 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5058 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5059 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5060 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5061 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5062 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5063 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5064 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5065 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5066 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5067 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5068 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5069 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005070 host) case "$llvm_cv_target_arch" in
5071 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5072 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5074 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5075 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5076 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5077 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5078 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5079 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5080 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5081 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5082 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5083 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5084 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5085echo "$as_me: error: Can not set target to build" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5087 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005088 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5089echo "$as_me: error: Unrecognized target $a_target" >&2;}
5090 { (exit 1); exit 1; }; } ;;
5091 esac
5092 done
5093 ;;
5094esac
Reid Spencera773bd52006-08-04 18:18:08 +00005095TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5096
5097
Douglas Gregor0711c302009-06-17 00:43:20 +00005098# Determine whether we are building LLVM support for the native architecture.
5099# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5100for a_target in $TARGETS_TO_BUILD; do
5101 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005102 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005103
5104cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005105#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005106_ACEOF
5107
5108 fi
5109done
5110
Douglas Gregor1555a232009-06-16 20:12:29 +00005111# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005112# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005113LLVM_ENUM_TARGETS=""
5114LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005115LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005116for target_to_build in $TARGETS_TO_BUILD; do
5117 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5118 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5119 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5120 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005121 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5122 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5123 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005124done
5125
5126
5127
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005128
Reid Spencer65c5d752006-11-05 17:08:18 +00005129# Check whether --enable-cbe-printf-a was given.
5130if test "${enable_cbe_printf_a+set}" = set; then
5131 enableval=$enable_cbe_printf_a;
5132else
5133 enableval=default
5134fi
5135
5136case "$enableval" in
5137 yes) ENABLE_CBE_PRINTF_A=1
5138 ;;
5139 no) ENABLE_CBE_PRINTF_A=0
5140 ;;
5141 default) ENABLE_CBE_PRINTF_A=1
5142 ;;
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5146esac
5147
5148cat >>confdefs.h <<_ACEOF
5149#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5150_ACEOF
5151
5152
Reid Spencera773bd52006-08-04 18:18:08 +00005153
5154# Check whether --with-llvmgccdir was given.
5155if test "${with_llvmgccdir+set}" = set; then
5156 withval=$with_llvmgccdir;
5157else
5158 withval=default
5159fi
5160
5161case "$withval" in
5162 default) WITH_LLVMGCCDIR=default ;;
5163 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5164 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5165echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5167esac
5168
5169
Devang Patel5d28b882007-12-04 22:54:47 +00005170# Check whether --with-llvmgcc was given.
5171if test "${with_llvmgcc+set}" = set; then
5172 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5173 WITH_LLVMGCCDIR=""
5174fi
5175
5176
5177
5178# Check whether --with-llvmgxx was given.
5179if test "${with_llvmgxx+set}" = set; then
5180 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5181 WITH_LLVMGCCDIR=""
5182fi
5183
Douglas Gregor01746742009-05-11 18:05:52 +00005184
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005185if test -n "$LLVMGCC"; then
5186 LLVMGCCCOMMAND="$LLVMGCC"
5187fi
5188
5189if test -n "$LLVMGXX"; then
5190 LLVMGXXCOMMAND="$LLVMGXX"
5191fi
Devang Patel5d28b882007-12-04 22:54:47 +00005192
5193if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5194 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5195echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5196 { (exit 1); exit 1; }; };
5197fi
5198
5199if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5200 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5201echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5202 { (exit 1); exit 1; }; };
5203fi
5204
5205
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005206# Check whether --with-optimize-option was given.
5207if test "${with_optimize_option+set}" = set; then
5208 withval=$with_optimize_option;
5209else
5210 withval=default
5211fi
5212
5213{ echo "$as_me:$LINENO: checking optimization flags" >&5
5214echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5215case "$withval" in
5216 default)
5217 case "$llvm_cv_os_type" in
5218 MingW) optimize_option=-O3 ;;
5219 *) optimize_option=-O2 ;;
5220 esac ;;
5221 *) optimize_option="$withval" ;;
5222esac
5223OPTIMIZE_OPTION=$optimize_option
5224
5225{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5226echo "${ECHO_T}$optimize_option" >&6; }
5227
5228
Reid Spencera773bd52006-08-04 18:18:08 +00005229# Check whether --with-extra-options was given.
5230if test "${with_extra_options+set}" = set; then
5231 withval=$with_extra_options;
5232else
5233 withval=default
5234fi
5235
5236case "$withval" in
5237 default) EXTRA_OPTIONS= ;;
5238 *) EXTRA_OPTIONS=$withval ;;
5239esac
5240EXTRA_OPTIONS=$EXTRA_OPTIONS
5241
5242
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005243# Check whether --enable-bindings was given.
5244if test "${enable_bindings+set}" = set; then
5245 enableval=$enable_bindings;
5246else
5247 enableval=default
5248fi
5249
5250BINDINGS_TO_BUILD=""
5251case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005253 all ) BINDINGS_TO_BUILD="ocaml" ;;
5254 none | no) BINDINGS_TO_BUILD="" ;;
5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256 case "$a_binding" in
5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261 esac
5262 done
5263 ;;
5264esac
5265
Reid Spencera773bd52006-08-04 18:18:08 +00005266
Gordon Henriksenf0915682007-10-02 16:42:22 +00005267# Check whether --with-ocaml-libdir was given.
5268if test "${with_ocaml_libdir+set}" = set; then
5269 withval=$with_ocaml_libdir;
5270else
5271 withval=auto
5272fi
5273
5274case "$withval" in
5275 auto) with_ocaml_libdir="$withval" ;;
5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5280esac
5281
5282
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005283# Check whether --with-c-include-dir was given.
5284if test "${with_c_include_dir+set}" = set; then
5285 withval=$with_c_include_dir;
5286else
5287 withval=""
5288fi
5289
5290
5291cat >>confdefs.h <<_ACEOF
5292#define C_INCLUDE_DIRS "$withval"
5293_ACEOF
5294
5295
5296
Rafael Espindola420d23c2009-11-16 19:46:55 +00005297# Check whether --with-cxx-include-root was given.
5298if test "${with_cxx_include_root+set}" = set; then
5299 withval=$with_cxx_include_root;
5300else
5301 withval=""
5302fi
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define CXX_INCLUDE_ROOT "$withval"
5307_ACEOF
5308
5309
5310
5311# Check whether --with-cxx-include-arch was given.
5312if test "${with_cxx_include_arch+set}" = set; then
5313 withval=$with_cxx_include_arch;
5314else
5315 withval=""
5316fi
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define CXX_INCLUDE_ARCH "$withval"
5321_ACEOF
5322
5323
5324
5325# Check whether --with-cxx-include-32bit-dir was given.
5326if test "${with_cxx_include_32bit_dir+set}" = set; then
5327 withval=$with_cxx_include_32bit_dir;
5328else
5329 withval=""
5330fi
5331
5332
5333cat >>confdefs.h <<_ACEOF
5334#define CXX_INCLUDE_32BIT_DIR "$withval"
5335_ACEOF
5336
5337
5338
5339# Check whether --with-cxx-include-64bit-dir was given.
5340if test "${with_cxx_include_64bit_dir+set}" = set; then
5341 withval=$with_cxx_include_64bit_dir;
5342else
5343 withval=""
5344fi
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define CXX_INCLUDE_64BIT_DIR "$withval"
5349_ACEOF
5350
5351
5352
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005353# Check whether --with-binutils-include was given.
5354if test "${with_binutils_include+set}" = set; then
5355 withval=$with_binutils_include;
5356else
5357 withval=default
5358fi
5359
5360case "$withval" in
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5366esac
5367if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
5375 fi
5376fi
5377
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005378# Check whether --enable-libffi was given.
5379if test "${enable_libffi+set}" = set; then
5380 enableval=$enable_libffi;
5381else
5382 enableval=yes
5383fi
5384
5385case "$enableval" in
5386 yes) llvm_cv_enable_libffi="yes" ;;
5387 no) llvm_cv_enable_libffi="no" ;;
5388 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5389echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5390 { (exit 1); exit 1; }; } ;;
5391esac
5392
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005393if test "$llvm_cv_os_type" = "Win32" ; then
5394 llvmc_dynamic="yes"
5395else
5396 llvmc_dynamic="no"
5397fi
5398
5399# Check whether --enable-llvmc-dynamic was given.
5400if test "${enable_llvmc_dynamic+set}" = set; then
5401 enableval=$enable_llvmc_dynamic;
5402else
5403 enableval=$llvmc_dynamic
5404fi
5405
5406if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5407 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5408
5409else
5410 ENABLE_LLVMC_DYNAMIC=
5411
5412fi
5413
5414# Check whether --enable-llvmc-dynamic-plugins was given.
5415if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5416 enableval=$enable_llvmc_dynamic_plugins;
5417else
5418 enableval=yes
5419fi
5420
5421if test ${enableval} = "yes" ; then
5422 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5423
5424else
5425 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5426
5427fi
5428
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005429
Reid Spencera773bd52006-08-04 18:18:08 +00005430ac_ext=c
5431ac_cpp='$CPP $CPPFLAGS'
5432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5436echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5437# On Suns, sometimes $CPP names a directory.
5438if test -n "$CPP" && test -d "$CPP"; then
5439 CPP=
5440fi
5441if test -z "$CPP"; then
5442 if test "${ac_cv_prog_CPP+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 # Double quotes because CPP needs to be expanded
5446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5447 do
5448 ac_preproc_ok=false
5449for ac_c_preproc_warn_flag in '' yes
5450do
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h. */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h. */
5463#ifdef __STDC__
5464# include <limits.h>
5465#else
5466# include <assert.h>
5467#endif
5468 Syntax error
5469_ACEOF
5470if { (ac_try="$ac_cpp conftest.$ac_ext"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5486 else
5487 ac_cpp_err=
5488 fi
5489else
5490 ac_cpp_err=yes
5491fi
5492if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005493 :
5494else
5495 echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 # Broken: fails on valid input.
5499continue
5500fi
5501
5502rm -f conftest.err conftest.$ac_ext
5503
5504 # OK, works on sane cases. Now check whether nonexistent headers
5505 # can be detected and how.
5506 cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h. */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
5512#include <ac_nonexistent.h>
5513_ACEOF
5514if { (ac_try="$ac_cpp conftest.$ac_ext"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5530 else
5531 ac_cpp_err=
5532 fi
5533else
5534 ac_cpp_err=yes
5535fi
5536if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005537 # Broken: success on invalid input.
5538continue
5539else
5540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 # Passes both tests.
5544ac_preproc_ok=:
5545break
5546fi
5547
5548rm -f conftest.err conftest.$ac_ext
5549
5550done
5551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552rm -f conftest.err conftest.$ac_ext
5553if $ac_preproc_ok; then
5554 break
5555fi
5556
5557 done
5558 ac_cv_prog_CPP=$CPP
5559
5560fi
5561 CPP=$ac_cv_prog_CPP
5562else
5563 ac_cv_prog_CPP=$CPP
5564fi
5565{ echo "$as_me:$LINENO: result: $CPP" >&5
5566echo "${ECHO_T}$CPP" >&6; }
5567ac_preproc_ok=false
5568for ac_c_preproc_warn_flag in '' yes
5569do
5570 # Use a header file that comes with gcc, so configuring glibc
5571 # with a fresh cross-compiler works.
5572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5573 # <limits.h> exists even on freestanding compilers.
5574 # On the NeXT, cc -E runs the code through the compiler's parser,
5575 # not just through cpp. "Syntax error" is here to catch this case.
5576 cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h. */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h. */
5582#ifdef __STDC__
5583# include <limits.h>
5584#else
5585# include <assert.h>
5586#endif
5587 Syntax error
5588_ACEOF
5589if { (ac_try="$ac_cpp conftest.$ac_ext"
5590case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005601 (exit $ac_status); } >/dev/null; then
5602 if test -s conftest.err; then
5603 ac_cpp_err=$ac_c_preproc_warn_flag
5604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5605 else
5606 ac_cpp_err=
5607 fi
5608else
5609 ac_cpp_err=yes
5610fi
5611if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005612 :
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 # Broken: fails on valid input.
5618continue
5619fi
5620
5621rm -f conftest.err conftest.$ac_ext
5622
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631#include <ac_nonexistent.h>
5632_ACEOF
5633if { (ac_try="$ac_cpp conftest.$ac_ext"
5634case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637esac
5638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005645 (exit $ac_status); } >/dev/null; then
5646 if test -s conftest.err; then
5647 ac_cpp_err=$ac_c_preproc_warn_flag
5648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5649 else
5650 ac_cpp_err=
5651 fi
5652else
5653 ac_cpp_err=yes
5654fi
5655if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005656 # Broken: success on invalid input.
5657continue
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 # Passes both tests.
5663ac_preproc_ok=:
5664break
5665fi
5666
5667rm -f conftest.err conftest.$ac_ext
5668
5669done
5670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671rm -f conftest.err conftest.$ac_ext
5672if $ac_preproc_ok; then
5673 :
5674else
5675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5676See \`config.log' for more details." >&5
5677echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5678See \`config.log' for more details." >&2;}
5679 { (exit 1); exit 1; }; }
5680fi
5681
5682ac_ext=c
5683ac_cpp='$CPP $CPPFLAGS'
5684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687
5688ac_ext=c
5689ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693if test -n "$ac_tool_prefix"; then
5694 for ac_prog in gcc
5695 do
5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700if test "${ac_cv_prog_CC+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 if test -n "$CC"; then
5704 ac_cv_prog_CC="$CC" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005712 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 +00005713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723CC=$ac_cv_prog_CC
5724if test -n "$CC"; then
5725 { echo "$as_me:$LINENO: result: $CC" >&5
5726echo "${ECHO_T}$CC" >&6; }
5727else
5728 { echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6; }
5730fi
5731
5732
5733 test -n "$CC" && break
5734 done
5735fi
5736if test -z "$CC"; then
5737 ac_ct_CC=$CC
5738 for ac_prog in gcc
5739do
5740 # Extract the first word of "$ac_prog", so it can be a program name with args.
5741set dummy $ac_prog; ac_word=$2
5742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 if test -n "$ac_ct_CC"; then
5748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005756 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 +00005757 ac_cv_prog_ac_ct_CC="$ac_prog"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761done
5762done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_CC=$ac_cv_prog_ac_ct_CC
5768if test -n "$ac_ct_CC"; then
5769 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5770echo "${ECHO_T}$ac_ct_CC" >&6; }
5771else
5772 { echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6; }
5774fi
5775
5776
5777 test -n "$ac_ct_CC" && break
5778done
5779
5780 if test "x$ac_ct_CC" = x; then
5781 CC=""
5782 else
5783 case $cross_compiling:$ac_tool_warned in
5784yes:)
5785{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5786whose name does not start with the host triplet. If you think this
5787configuration is useful to you, please write to autoconf@gnu.org." >&5
5788echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5789whose name does not start with the host triplet. If you think this
5790configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5791ac_tool_warned=yes ;;
5792esac
5793 CC=$ac_ct_CC
5794 fi
5795fi
5796
5797
5798test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5799See \`config.log' for more details." >&5
5800echo "$as_me: error: no acceptable C compiler found in \$PATH
5801See \`config.log' for more details." >&2;}
5802 { (exit 1); exit 1; }; }
5803
5804# Provide some information about the compiler.
5805echo "$as_me:$LINENO: checking for C compiler version" >&5
5806ac_compiler=`set X $ac_compile; echo $2`
5807{ (ac_try="$ac_compiler --version >&5"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compiler --version >&5") 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }
5817{ (ac_try="$ac_compiler -v >&5"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler -v >&5") 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827{ (ac_try="$ac_compiler -V >&5"
5828case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compiler -V >&5") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5837
5838{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5839echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5840if test "${ac_cv_c_compiler_gnu+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
5849
5850int
5851main ()
5852{
5853#ifndef __GNUC__
5854 choke me
5855#endif
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext
5862if { (ac_try="$ac_compile"
5863case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866esac
5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5876 { (case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_try") 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005895 ac_compiler_gnu=yes
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ac_compiler_gnu=no
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904ac_cv_c_compiler_gnu=$ac_compiler_gnu
5905
5906fi
5907{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5908echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5909GCC=`test $ac_compiler_gnu = yes && echo yes`
5910ac_test_CFLAGS=${CFLAGS+set}
5911ac_save_CFLAGS=$CFLAGS
5912{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5913echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5914if test "${ac_cv_prog_cc_g+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 ac_save_c_werror_flag=$ac_c_werror_flag
5918 ac_c_werror_flag=yes
5919 ac_cv_prog_cc_g=no
5920 CFLAGS="-g"
5921 cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927
5928int
5929main ()
5930{
5931
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (ac_try="$ac_compile"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005970 ac_cv_prog_cc_g=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 CFLAGS=""
5976 cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982
5983int
5984main ()
5985{
5986
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext
5992if { (ac_try="$ac_compile"
5993case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6006 { (case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_try") 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006025 :
6026else
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_c_werror_flag=$ac_save_c_werror_flag
6031 CFLAGS="-g"
6032 cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h. */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h. */
6038
6039int
6040main ()
6041{
6042
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext
6048if { (ac_try="$ac_compile"
6049case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006060 (exit $ac_status); } &&
6061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6062 { (case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_try") 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006081 ac_cv_prog_cc_g=yes
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086
6087fi
6088
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091
6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093fi
6094
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 ac_c_werror_flag=$ac_save_c_werror_flag
6097fi
6098{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6099echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6100if test "$ac_test_CFLAGS" = set; then
6101 CFLAGS=$ac_save_CFLAGS
6102elif test $ac_cv_prog_cc_g = yes; then
6103 if test "$GCC" = yes; then
6104 CFLAGS="-g -O2"
6105 else
6106 CFLAGS="-g"
6107 fi
6108else
6109 if test "$GCC" = yes; then
6110 CFLAGS="-O2"
6111 else
6112 CFLAGS=
6113 fi
6114fi
6115{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6116echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6117if test "${ac_cv_prog_cc_c89+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120 ac_cv_prog_cc_c89=no
6121ac_save_CC=$CC
6122cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h. */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h. */
6128#include <stdarg.h>
6129#include <stdio.h>
6130#include <sys/types.h>
6131#include <sys/stat.h>
6132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6133struct buf { int x; };
6134FILE * (*rcsopen) (struct buf *, struct stat *, int);
6135static char *e (p, i)
6136 char **p;
6137 int i;
6138{
6139 return p[i];
6140}
6141static char *f (char * (*g) (char **, int), char **p, ...)
6142{
6143 char *s;
6144 va_list v;
6145 va_start (v,p);
6146 s = g (p, va_arg (v,int));
6147 va_end (v);
6148 return s;
6149}
6150
6151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6152 function prototypes and stuff, but not '\xHH' hex character constants.
6153 These don't provoke an error unfortunately, instead are silently treated
6154 as 'x'. The following induces an error, until -std is added to get
6155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6156 array size at least. It's necessary to write '\x00'==0 to get something
6157 that's true only with -std. */
6158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6159
6160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6161 inside strings and character constants. */
6162#define FOO(x) 'x'
6163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6164
6165int test (int i, double x);
6166struct s1 {int (*f) (int a);};
6167struct s2 {int (*f) (double a);};
6168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6169int argc;
6170char **argv;
6171int
6172main ()
6173{
6174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6181do
6182 CC="$ac_save_CC $ac_arg"
6183 rm -f conftest.$ac_objext
6184if { (ac_try="$ac_compile"
6185case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6198 { (case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201esac
6202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_try") 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_try") 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006217 ac_cv_prog_cc_c89=$ac_arg
6218else
6219 echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222
6223fi
6224
6225rm -f core conftest.err conftest.$ac_objext
6226 test "x$ac_cv_prog_cc_c89" != "xno" && break
6227done
6228rm -f conftest.$ac_ext
6229CC=$ac_save_CC
6230
6231fi
6232# AC_CACHE_VAL
6233case "x$ac_cv_prog_cc_c89" in
6234 x)
6235 { echo "$as_me:$LINENO: result: none needed" >&5
6236echo "${ECHO_T}none needed" >&6; } ;;
6237 xno)
6238 { echo "$as_me:$LINENO: result: unsupported" >&5
6239echo "${ECHO_T}unsupported" >&6; } ;;
6240 *)
6241 CC="$CC $ac_cv_prog_cc_c89"
6242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6243echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6244esac
6245
6246
6247ac_ext=c
6248ac_cpp='$CPP $CPPFLAGS'
6249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252
6253ac_ext=cpp
6254ac_cpp='$CXXCPP $CPPFLAGS'
6255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258if test -z "$CXX"; then
6259 if test -n "$CCC"; then
6260 CXX=$CCC
6261 else
6262 if test -n "$ac_tool_prefix"; then
6263 for ac_prog in g++
6264 do
6265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6266set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269if test "${ac_cv_prog_CXX+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272 if test -n "$CXX"; then
6273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006281 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 +00006282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286done
6287done
6288IFS=$as_save_IFS
6289
6290fi
6291fi
6292CXX=$ac_cv_prog_CXX
6293if test -n "$CXX"; then
6294 { echo "$as_me:$LINENO: result: $CXX" >&5
6295echo "${ECHO_T}$CXX" >&6; }
6296else
6297 { echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6; }
6299fi
6300
6301
6302 test -n "$CXX" && break
6303 done
6304fi
6305if test -z "$CXX"; then
6306 ac_ct_CXX=$CXX
6307 for ac_prog in g++
6308do
6309 # Extract the first word of "$ac_prog", so it can be a program name with args.
6310set dummy $ac_prog; ac_word=$2
6311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 if test -n "$ac_ct_CXX"; then
6317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006325 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 +00006326 ac_cv_prog_ac_ct_CXX="$ac_prog"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332IFS=$as_save_IFS
6333
6334fi
6335fi
6336ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6337if test -n "$ac_ct_CXX"; then
6338 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6339echo "${ECHO_T}$ac_ct_CXX" >&6; }
6340else
6341 { echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6; }
6343fi
6344
6345
6346 test -n "$ac_ct_CXX" && break
6347done
6348
6349 if test "x$ac_ct_CXX" = x; then
6350 CXX="g++"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353yes:)
6354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6355whose name does not start with the host triplet. If you think this
6356configuration is useful to you, please write to autoconf@gnu.org." >&5
6357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6358whose name does not start with the host triplet. If you think this
6359configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6360ac_tool_warned=yes ;;
6361esac
6362 CXX=$ac_ct_CXX
6363 fi
6364fi
6365
6366 fi
6367fi
6368# Provide some information about the compiler.
6369echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6370ac_compiler=`set X $ac_compile; echo $2`
6371{ (ac_try="$ac_compiler --version >&5"
6372case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compiler --version >&5") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }
6381{ (ac_try="$ac_compiler -v >&5"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compiler -v >&5") 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }
6391{ (ac_try="$ac_compiler -V >&5"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compiler -V >&5") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6401
6402{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6403echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413
6414int
6415main ()
6416{
6417#ifndef __GNUC__
6418 choke me
6419#endif
6420
6421 ;
6422 return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (ac_try="$ac_compile"
6427case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6440 { (case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_try") 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006459 ac_compiler_gnu=yes
6460else
6461 echo "$as_me: failed program was:" >&5
6462sed 's/^/| /' conftest.$ac_ext >&5
6463
6464 ac_compiler_gnu=no
6465fi
6466
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6469
6470fi
6471{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6472echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6473GXX=`test $ac_compiler_gnu = yes && echo yes`
6474ac_test_CXXFLAGS=${CXXFLAGS+set}
6475ac_save_CXXFLAGS=$CXXFLAGS
6476{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6477echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6478if test "${ac_cv_prog_cxx_g+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6482 ac_cxx_werror_flag=yes
6483 ac_cv_prog_cxx_g=no
6484 CXXFLAGS="-g"
6485 cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h. */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h. */
6491
6492int
6493main ()
6494{
6495
6496 ;
6497 return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
6501if { (ac_try="$ac_compile"
6502case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6515 { (case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_try") 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006534 ac_cv_prog_cxx_g=yes
6535else
6536 echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 CXXFLAGS=""
6540 cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546
6547int
6548main ()
6549{
6550
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext
6556if { (ac_try="$ac_compile"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6570 { (case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_try") 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583esac
6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006589 :
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6595 CXXFLAGS="-g"
6596 cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
6602
6603int
6604main ()
6605{
6606
6607 ;
6608 return 0;
6609}
6610_ACEOF
6611rm -f conftest.$ac_objext
6612if { (ac_try="$ac_compile"
6613case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616esac
6617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6626 { (case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629esac
6630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_try") 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_try") 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006645 ac_cv_prog_cxx_g=yes
6646else
6647 echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650
6651fi
6652
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654fi
6655
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657fi
6658
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6661fi
6662{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6663echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6664if test "$ac_test_CXXFLAGS" = set; then
6665 CXXFLAGS=$ac_save_CXXFLAGS
6666elif test $ac_cv_prog_cxx_g = yes; then
6667 if test "$GXX" = yes; then
6668 CXXFLAGS="-g -O2"
6669 else
6670 CXXFLAGS="-g"
6671 fi
6672else
6673 if test "$GXX" = yes; then
6674 CXXFLAGS="-O2"
6675 else
6676 CXXFLAGS=
6677 fi
6678fi
6679ac_ext=c
6680ac_cpp='$CPP $CPPFLAGS'
6681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684
Reid Spencera773bd52006-08-04 18:18:08 +00006685
6686{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6687echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6688if test "${lt_cv_path_NM+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691 if test -n "$NM"; then
6692 # Let the user override the test.
6693 lt_cv_path_NM="$NM"
6694else
6695 lt_nm_to_check="${ac_tool_prefix}nm"
6696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6697 lt_nm_to_check="$lt_nm_to_check nm"
6698 fi
6699 for lt_tmp_nm in $lt_nm_to_check; do
6700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6702 IFS="$lt_save_ifs"
6703 test -z "$ac_dir" && ac_dir=.
6704 tmp_nm="$ac_dir/$lt_tmp_nm"
6705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6706 # Check to see if the nm accepts a BSD-compat flag.
6707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6708 # nm: unknown option "B" ignored
6709 # Tru64's nm complains that /dev/null is an invalid object file
6710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6711 */dev/null* | *'Invalid file or object type'*)
6712 lt_cv_path_NM="$tmp_nm -B"
6713 break
6714 ;;
6715 *)
6716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6717 */dev/null*)
6718 lt_cv_path_NM="$tmp_nm -p"
6719 break
6720 ;;
6721 *)
6722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6723 continue # so that we can try to find one that supports BSD flags
6724 ;;
6725 esac
6726 ;;
6727 esac
6728 fi
6729 done
6730 IFS="$lt_save_ifs"
6731 done
6732 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6733fi
6734fi
6735{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6736echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6737NM="$lt_cv_path_NM"
6738
6739
6740
6741{ echo "$as_me:$LINENO: checking for GNU make" >&5
6742echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6743if test "${llvm_cv_gnu_make_command+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746 llvm_cv_gnu_make_command=''
6747 for a in "$MAKE" make gmake gnumake ; do
6748 if test -z "$a" ; then continue ; fi ;
6749 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6750 then
6751 llvm_cv_gnu_make_command=$a ;
6752 break;
6753 fi
6754 done
6755fi
6756{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6757echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6758 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6759 ifGNUmake='' ;
6760 else
6761 ifGNUmake='#' ;
6762 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6763echo "${ECHO_T}\"Not found\"" >&6; };
6764 fi
6765
6766
6767{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6768echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6769LN_S=$as_ln_s
6770if test "$LN_S" = "ln -s"; then
6771 { echo "$as_me:$LINENO: result: yes" >&5
6772echo "${ECHO_T}yes" >&6; }
6773else
6774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6775echo "${ECHO_T}no, using $LN_S" >&6; }
6776fi
6777
6778# Extract the first word of "cmp", so it can be a program name with args.
6779set dummy cmp; ac_word=$2
6780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782if test "${ac_cv_path_CMP+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 case $CMP in
6786 [\\/]* | ?:[\\/]*)
6787 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6788 ;;
6789 *)
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006796 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 +00006797 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802done
6803IFS=$as_save_IFS
6804
6805 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6806 ;;
6807esac
6808fi
6809CMP=$ac_cv_path_CMP
6810if test -n "$CMP"; then
6811 { echo "$as_me:$LINENO: result: $CMP" >&5
6812echo "${ECHO_T}$CMP" >&6; }
6813else
6814 { echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6; }
6816fi
6817
6818
6819# Extract the first word of "cp", so it can be a program name with args.
6820set dummy cp; ac_word=$2
6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_path_CP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 case $CP in
6827 [\\/]* | ?:[\\/]*)
6828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6829 ;;
6830 *)
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006837 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 +00006838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842done
6843done
6844IFS=$as_save_IFS
6845
6846 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6847 ;;
6848esac
6849fi
6850CP=$ac_cv_path_CP
6851if test -n "$CP"; then
6852 { echo "$as_me:$LINENO: result: $CP" >&5
6853echo "${ECHO_T}$CP" >&6; }
6854else
6855 { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860# Extract the first word of "date", so it can be a program name with args.
6861set dummy date; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_path_DATE+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 case $DATE in
6868 [\\/]* | ?:[\\/]*)
6869 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6870 ;;
6871 *)
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006878 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 +00006879 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6888 ;;
6889esac
6890fi
6891DATE=$ac_cv_path_DATE
6892if test -n "$DATE"; then
6893 { echo "$as_me:$LINENO: result: $DATE" >&5
6894echo "${ECHO_T}$DATE" >&6; }
6895else
6896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
6898fi
6899
6900
6901# Extract the first word of "find", so it can be a program name with args.
6902set dummy find; ac_word=$2
6903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905if test "${ac_cv_path_FIND+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 case $FIND in
6909 [\\/]* | ?:[\\/]*)
6910 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6911 ;;
6912 *)
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006919 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 +00006920 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
6926IFS=$as_save_IFS
6927
6928 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6929 ;;
6930esac
6931fi
6932FIND=$ac_cv_path_FIND
6933if test -n "$FIND"; then
6934 { echo "$as_me:$LINENO: result: $FIND" >&5
6935echo "${ECHO_T}$FIND" >&6; }
6936else
6937 { echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6; }
6939fi
6940
6941
6942# Extract the first word of "grep", so it can be a program name with args.
6943set dummy grep; ac_word=$2
6944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_path_GREP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 case $GREP in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6952 ;;
6953 *)
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006960 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 +00006961 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966done
6967IFS=$as_save_IFS
6968
6969 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6970 ;;
6971esac
6972fi
6973GREP=$ac_cv_path_GREP
6974if test -n "$GREP"; then
6975 { echo "$as_me:$LINENO: result: $GREP" >&5
6976echo "${ECHO_T}$GREP" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983# Extract the first word of "mkdir", so it can be a program name with args.
6984set dummy mkdir; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_path_MKDIR+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 case $MKDIR in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007001 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 +00007002 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008IFS=$as_save_IFS
7009
7010 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7011 ;;
7012esac
7013fi
7014MKDIR=$ac_cv_path_MKDIR
7015if test -n "$MKDIR"; then
7016 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7017echo "${ECHO_T}$MKDIR" >&6; }
7018else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024# Extract the first word of "mv", so it can be a program name with args.
7025set dummy mv; ac_word=$2
7026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028if test "${ac_cv_path_MV+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 case $MV in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7034 ;;
7035 *)
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007042 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 +00007043 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048done
7049IFS=$as_save_IFS
7050
7051 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7052 ;;
7053esac
7054fi
7055MV=$ac_cv_path_MV
7056if test -n "$MV"; then
7057 { echo "$as_me:$LINENO: result: $MV" >&5
7058echo "${ECHO_T}$MV" >&6; }
7059else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064
7065if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070if test "${ac_cv_prog_RANLIB+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7075else
7076as_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_prog_RANLIB="${ac_tool_prefix}ranlib"
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
7091fi
7092fi
7093RANLIB=$ac_cv_prog_RANLIB
7094if test -n "$RANLIB"; then
7095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7096echo "${ECHO_T}$RANLIB" >&6; }
7097else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6; }
7100fi
7101
7102
7103fi
7104if test -z "$ac_cv_prog_RANLIB"; then
7105 ac_ct_RANLIB=$RANLIB
7106 # Extract the first word of "ranlib", so it can be a program name with args.
7107set dummy ranlib; ac_word=$2
7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 if test -n "$ac_ct_RANLIB"; then
7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007122 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 +00007123 ac_cv_prog_ac_ct_RANLIB="ranlib"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7134if test -n "$ac_ct_RANLIB"; then
7135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7136echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7137else
7138 { echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6; }
7140fi
7141
7142 if test "x$ac_ct_RANLIB" = x; then
7143 RANLIB=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146yes:)
7147{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148whose name does not start with the host triplet. If you think this
7149configuration is useful to you, please write to autoconf@gnu.org." >&5
7150echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151whose name does not start with the host triplet. If you think this
7152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153ac_tool_warned=yes ;;
7154esac
7155 RANLIB=$ac_ct_RANLIB
7156 fi
7157else
7158 RANLIB="$ac_cv_prog_RANLIB"
7159fi
7160
7161# Extract the first word of "rm", so it can be a program name with args.
7162set dummy rm; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_RM+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $RM in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007179 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 +00007180 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185done
7186IFS=$as_save_IFS
7187
7188 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7189 ;;
7190esac
7191fi
7192RM=$ac_cv_path_RM
7193if test -n "$RM"; then
7194 { echo "$as_me:$LINENO: result: $RM" >&5
7195echo "${ECHO_T}$RM" >&6; }
7196else
7197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201
7202# Extract the first word of "sed", so it can be a program name with args.
7203set dummy sed; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_SED+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $SED in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007220 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 +00007221 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7230 ;;
7231esac
7232fi
7233SED=$ac_cv_path_SED
7234if test -n "$SED"; then
7235 { echo "$as_me:$LINENO: result: $SED" >&5
7236echo "${ECHO_T}$SED" >&6; }
7237else
7238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
7240fi
7241
7242
7243# Extract the first word of "tar", so it can be a program name with args.
7244set dummy tar; ac_word=$2
7245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247if test "${ac_cv_path_TAR+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 case $TAR in
7251 [\\/]* | ?:[\\/]*)
7252 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7253 ;;
7254 *)
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007261 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 +00007262 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266done
7267done
7268IFS=$as_save_IFS
7269
7270 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7271 ;;
7272esac
7273fi
7274TAR=$ac_cv_path_TAR
7275if test -n "$TAR"; then
7276 { echo "$as_me:$LINENO: result: $TAR" >&5
7277echo "${ECHO_T}$TAR" >&6; }
7278else
7279 { echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6; }
7281fi
7282
7283
7284# Extract the first word of "pwd", so it can be a program name with args.
7285set dummy pwd; ac_word=$2
7286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288if test "${ac_cv_path_BINPWD+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else
7291 case $BINPWD in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007302 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 +00007303 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308done
7309IFS=$as_save_IFS
7310
7311 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7312 ;;
7313esac
7314fi
7315BINPWD=$ac_cv_path_BINPWD
7316if test -n "$BINPWD"; then
7317 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7318echo "${ECHO_T}$BINPWD" >&6; }
7319else
7320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325
7326# Extract the first word of "Graphviz", so it can be a program name with args.
7327set dummy Graphviz; ac_word=$2
7328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 case $GRAPHVIZ in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007344 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 +00007345 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349done
7350done
7351IFS=$as_save_IFS
7352
7353 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7354 ;;
7355esac
7356fi
7357GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7358if test -n "$GRAPHVIZ"; then
7359 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7360echo "${ECHO_T}$GRAPHVIZ" >&6; }
7361else
7362 { echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6; }
7364fi
7365
7366
7367if test "$GRAPHVIZ" != "echo Graphviz" ; then
7368
7369cat >>confdefs.h <<\_ACEOF
7370#define HAVE_GRAPHVIZ 1
7371_ACEOF
7372
Jeff Cohen28783c32007-01-12 18:22:38 +00007373 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007374 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7375 fi
7376
7377cat >>confdefs.h <<_ACEOF
7378#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7379_ACEOF
7380
7381fi
7382# Extract the first word of "dot", so it can be a program name with args.
7383set dummy dot; ac_word=$2
7384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386if test "${ac_cv_path_DOT+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 case $DOT in
7390 [\\/]* | ?:[\\/]*)
7391 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7392 ;;
7393 *)
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007400 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 +00007401 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407IFS=$as_save_IFS
7408
7409 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7410 ;;
7411esac
7412fi
7413DOT=$ac_cv_path_DOT
7414if test -n "$DOT"; then
7415 { echo "$as_me:$LINENO: result: $DOT" >&5
7416echo "${ECHO_T}$DOT" >&6; }
7417else
7418 { echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6; }
7420fi
7421
7422
7423if test "$DOT" != "echo dot" ; then
7424
7425cat >>confdefs.h <<\_ACEOF
7426#define HAVE_DOT 1
7427_ACEOF
7428
Jeff Cohen28783c32007-01-12 18:22:38 +00007429 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007430 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7431 fi
7432
7433cat >>confdefs.h <<_ACEOF
7434#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7435_ACEOF
7436
7437fi
David Greenef0b9eff2009-07-09 17:16:26 +00007438# Extract the first word of "fdp", so it can be a program name with args.
7439set dummy fdp; ac_word=$2
7440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442if test "${ac_cv_path_FDP+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 case $FDP in
7446 [\\/]* | ?:[\\/]*)
7447 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7448 ;;
7449 *)
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462done
7463IFS=$as_save_IFS
7464
7465 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7466 ;;
7467esac
7468fi
7469FDP=$ac_cv_path_FDP
7470if test -n "$FDP"; then
7471 { echo "$as_me:$LINENO: result: $FDP" >&5
7472echo "${ECHO_T}$FDP" >&6; }
7473else
7474 { echo "$as_me:$LINENO: result: no" >&5
7475echo "${ECHO_T}no" >&6; }
7476fi
7477
7478
7479if test "$FDP" != "echo fdp" ; then
7480
7481cat >>confdefs.h <<\_ACEOF
7482#define HAVE_FDP 1
7483_ACEOF
7484
7485 if test "$llvm_cv_os_type" = "MingW" ; then
7486 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7487 fi
7488
7489cat >>confdefs.h <<_ACEOF
7490#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7491_ACEOF
7492
7493fi
7494# Extract the first word of "neato", so it can be a program name with args.
7495set dummy neato; ac_word=$2
7496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_path_NEATO+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 case $NEATO in
7502 [\\/]* | ?:[\\/]*)
7503 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518done
7519IFS=$as_save_IFS
7520
7521 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7522 ;;
7523esac
7524fi
7525NEATO=$ac_cv_path_NEATO
7526if test -n "$NEATO"; then
7527 { echo "$as_me:$LINENO: result: $NEATO" >&5
7528echo "${ECHO_T}$NEATO" >&6; }
7529else
7530 { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
7532fi
7533
7534
7535if test "$NEATO" != "echo neato" ; then
7536
7537cat >>confdefs.h <<\_ACEOF
7538#define HAVE_NEATO 1
7539_ACEOF
7540
7541 if test "$llvm_cv_os_type" = "MingW" ; then
7542 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7543 fi
7544
7545cat >>confdefs.h <<_ACEOF
7546#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7547_ACEOF
7548
7549fi
7550# Extract the first word of "twopi", so it can be a program name with args.
7551set dummy twopi; ac_word=$2
7552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7554if test "${ac_cv_path_TWOPI+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 case $TWOPI in
7558 [\\/]* | ?:[\\/]*)
7559 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7560 ;;
7561 *)
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574done
7575IFS=$as_save_IFS
7576
7577 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7578 ;;
7579esac
7580fi
7581TWOPI=$ac_cv_path_TWOPI
7582if test -n "$TWOPI"; then
7583 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7584echo "${ECHO_T}$TWOPI" >&6; }
7585else
7586 { echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6; }
7588fi
7589
7590
7591if test "$TWOPI" != "echo twopi" ; then
7592
7593cat >>confdefs.h <<\_ACEOF
7594#define HAVE_TWOPI 1
7595_ACEOF
7596
7597 if test "$llvm_cv_os_type" = "MingW" ; then
7598 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7599 fi
7600
7601cat >>confdefs.h <<_ACEOF
7602#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7603_ACEOF
7604
7605fi
7606# Extract the first word of "circo", so it can be a program name with args.
7607set dummy circo; ac_word=$2
7608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7610if test "${ac_cv_path_CIRCO+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613 case $CIRCO in
7614 [\\/]* | ?:[\\/]*)
7615 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7616 ;;
7617 *)
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629done
7630done
7631IFS=$as_save_IFS
7632
7633 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7634 ;;
7635esac
7636fi
7637CIRCO=$ac_cv_path_CIRCO
7638if test -n "$CIRCO"; then
7639 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7640echo "${ECHO_T}$CIRCO" >&6; }
7641else
7642 { echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6; }
7644fi
7645
7646
7647if test "$CIRCO" != "echo circo" ; then
7648
7649cat >>confdefs.h <<\_ACEOF
7650#define HAVE_CIRCO 1
7651_ACEOF
7652
7653 if test "$llvm_cv_os_type" = "MingW" ; then
7654 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7655 fi
7656
7657cat >>confdefs.h <<_ACEOF
7658#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7659_ACEOF
7660
7661fi
Reid Spencera773bd52006-08-04 18:18:08 +00007662for ac_prog in gv gsview32
7663do
7664 # Extract the first word of "$ac_prog", so it can be a program name with args.
7665set dummy $ac_prog; ac_word=$2
7666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668if test "${ac_cv_path_GV+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 case $GV in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7674 ;;
7675 *)
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007682 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 +00007683 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687done
7688done
7689IFS=$as_save_IFS
7690
7691 ;;
7692esac
7693fi
7694GV=$ac_cv_path_GV
7695if test -n "$GV"; then
7696 { echo "$as_me:$LINENO: result: $GV" >&5
7697echo "${ECHO_T}$GV" >&6; }
7698else
7699 { echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6; }
7701fi
7702
7703
7704 test -n "$GV" && break
7705done
7706test -n "$GV" || GV="echo gv"
7707
7708if test "$GV" != "echo gv" ; then
7709
7710cat >>confdefs.h <<\_ACEOF
7711#define HAVE_GV 1
7712_ACEOF
7713
Jeff Cohen28783c32007-01-12 18:22:38 +00007714 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007715 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7716 fi
7717
7718cat >>confdefs.h <<_ACEOF
7719#define LLVM_PATH_GV "$GV${EXEEXT}"
7720_ACEOF
7721
7722fi
7723# Extract the first word of "dotty", so it can be a program name with args.
7724set dummy dotty; ac_word=$2
7725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727if test "${ac_cv_path_DOTTY+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 case $DOTTY in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7733 ;;
7734 *)
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007741 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 +00007742 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748IFS=$as_save_IFS
7749
7750 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7751 ;;
7752esac
7753fi
7754DOTTY=$ac_cv_path_DOTTY
7755if test -n "$DOTTY"; then
7756 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7757echo "${ECHO_T}$DOTTY" >&6; }
7758else
7759 { echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6; }
7761fi
7762
7763
7764if test "$DOTTY" != "echo dotty" ; then
7765
7766cat >>confdefs.h <<\_ACEOF
7767#define HAVE_DOTTY 1
7768_ACEOF
7769
Jeff Cohen28783c32007-01-12 18:22:38 +00007770 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007771 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7772 fi
7773
7774cat >>confdefs.h <<_ACEOF
7775#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7776_ACEOF
7777
7778fi
7779
7780
7781# Extract the first word of "perl", so it can be a program name with args.
7782set dummy perl; ac_word=$2
7783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_PERL+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 case $PERL in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007799 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 +00007800 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806IFS=$as_save_IFS
7807
7808 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7809 ;;
7810esac
7811fi
7812PERL=$ac_cv_path_PERL
7813if test -n "$PERL"; then
7814 { echo "$as_me:$LINENO: result: $PERL" >&5
7815echo "${ECHO_T}$PERL" >&6; }
7816else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
7819fi
7820
7821
7822if test "$PERL" != "none"; then
7823 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7824echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7825 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7826 { echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6; }
7828 else
7829 PERL=none
7830 { echo "$as_me:$LINENO: result: not found" >&5
7831echo "${ECHO_T}not found" >&6; }
7832 fi
7833fi
7834
7835
7836if test x"$PERL" = xnone; then
7837 HAVE_PERL=0
7838
Reid Spencer59807fa2007-05-17 18:11:03 +00007839 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7840echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7841 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007842else
7843 HAVE_PERL=1
7844
7845fi
7846
7847# Find a good install program. We prefer a C program (faster),
7848# so one script is as good as another. But avoid the broken or
7849# incompatible versions:
7850# SysV /etc/install, /usr/sbin/install
7851# SunOS /usr/etc/install
7852# IRIX /sbin/install
7853# AIX /bin/install
7854# AmigaOS /C/install, which installs bootblocks on floppy discs
7855# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7856# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7857# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7858# OS/2's system install, which has a completely different semantic
7859# ./install, which can be erroneously created by make from ./install.sh.
7860{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7861echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7862if test -z "$INSTALL"; then
7863if test "${ac_cv_path_install+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 # Account for people who put trailing slashes in PATH elements.
7872case $as_dir/ in
7873 ./ | .// | /cC/* | \
7874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7875 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7876 /usr/ucb/* ) ;;
7877 *)
7878 # OSF1 and SCO ODT 3.0 have their own names for install.
7879 # Don't use installbsd from OSF since it installs stuff as root
7880 # by default.
7881 for ac_prog in ginstall scoinst install; do
7882 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007883 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 +00007884 if test $ac_prog = install &&
7885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7886 # AIX install. It has an incompatible calling convention.
7887 :
7888 elif test $ac_prog = install &&
7889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7890 # program-specific install script used by HP pwplus--don't use.
7891 :
7892 else
7893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7894 break 3
7895 fi
7896 fi
7897 done
7898 done
7899 ;;
7900esac
7901done
7902IFS=$as_save_IFS
7903
7904
7905fi
7906 if test "${ac_cv_path_install+set}" = set; then
7907 INSTALL=$ac_cv_path_install
7908 else
7909 # As a last resort, use the slow shell script. Don't cache a
7910 # value for INSTALL within a source directory, because that will
7911 # break other packages using the cache if that directory is
7912 # removed, or if the value is a relative name.
7913 INSTALL=$ac_install_sh
7914 fi
7915fi
7916{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7917echo "${ECHO_T}$INSTALL" >&6; }
7918
7919# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7920# It thinks the first close brace ends the variable substitution.
7921test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7922
7923test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7924
7925test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7926
7927
7928# Extract the first word of "bzip2", so it can be a program name with args.
7929set dummy bzip2; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_BZIP2+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 case $BZIP2 in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007947 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952done
7953IFS=$as_save_IFS
7954
Reid Spencera773bd52006-08-04 18:18:08 +00007955 ;;
7956esac
7957fi
7958BZIP2=$ac_cv_path_BZIP2
7959if test -n "$BZIP2"; then
7960 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7961echo "${ECHO_T}$BZIP2" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "doxygen", so it can be a program name with args.
7969set dummy doxygen; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_DOXYGEN+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $DOXYGEN in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007987 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Reid Spencera773bd52006-08-04 18:18:08 +00007995 ;;
7996esac
7997fi
7998DOXYGEN=$ac_cv_path_DOXYGEN
7999if test -n "$DOXYGEN"; then
8000 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8001echo "${ECHO_T}$DOXYGEN" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
Reid Spencera773bd52006-08-04 18:18:08 +00008008# Extract the first word of "groff", so it can be a program name with args.
8009set dummy groff; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_GROFF+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 case $GROFF in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008027 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033IFS=$as_save_IFS
8034
Reid Spencera773bd52006-08-04 18:18:08 +00008035 ;;
8036esac
8037fi
8038GROFF=$ac_cv_path_GROFF
8039if test -n "$GROFF"; then
8040 { echo "$as_me:$LINENO: result: $GROFF" >&5
8041echo "${ECHO_T}$GROFF" >&6; }
8042else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048# Extract the first word of "gzip", so it can be a program name with args.
8049set dummy gzip; ac_word=$2
8050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_GZIP+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 case $GZIP in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008067 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073IFS=$as_save_IFS
8074
Reid Spencera773bd52006-08-04 18:18:08 +00008075 ;;
8076esac
8077fi
8078GZIP=$ac_cv_path_GZIP
8079if test -n "$GZIP"; then
8080 { echo "$as_me:$LINENO: result: $GZIP" >&5
8081echo "${ECHO_T}$GZIP" >&6; }
8082else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088# Extract the first word of "pod2html", so it can be a program name with args.
8089set dummy pod2html; ac_word=$2
8090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092if test "${ac_cv_path_POD2HTML+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094else
8095 case $POD2HTML in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8098 ;;
8099 *)
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008106 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 +00008107 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111done
8112done
8113IFS=$as_save_IFS
8114
Reid Spencera773bd52006-08-04 18:18:08 +00008115 ;;
8116esac
8117fi
8118POD2HTML=$ac_cv_path_POD2HTML
8119if test -n "$POD2HTML"; then
8120 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8121echo "${ECHO_T}$POD2HTML" >&6; }
8122else
8123 { echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; }
8125fi
8126
8127
8128# Extract the first word of "pod2man", so it can be a program name with args.
8129set dummy pod2man; ac_word=$2
8130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_POD2MAN+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 case $POD2MAN in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008146 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 +00008147 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153IFS=$as_save_IFS
8154
Reid Spencera773bd52006-08-04 18:18:08 +00008155 ;;
8156esac
8157fi
8158POD2MAN=$ac_cv_path_POD2MAN
8159if test -n "$POD2MAN"; then
8160 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8161echo "${ECHO_T}$POD2MAN" >&6; }
8162else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167
8168# Extract the first word of "runtest", so it can be a program name with args.
8169set dummy runtest; ac_word=$2
8170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8172if test "${ac_cv_path_RUNTEST+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174else
8175 case $RUNTEST in
8176 [\\/]* | ?:[\\/]*)
8177 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8178 ;;
8179 *)
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008186 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 +00008187 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192done
8193IFS=$as_save_IFS
8194
Reid Spencera773bd52006-08-04 18:18:08 +00008195 ;;
8196esac
8197fi
8198RUNTEST=$ac_cv_path_RUNTEST
8199if test -n "$RUNTEST"; then
8200 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8201echo "${ECHO_T}$RUNTEST" >&6; }
8202else
8203 { echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6; }
8205fi
8206
8207
8208
8209no_itcl=true
8210{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8211echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8212
8213# Check whether --with-tclinclude was given.
8214if test "${with_tclinclude+set}" = set; then
8215 withval=$with_tclinclude; with_tclinclude=${withval}
8216else
8217 with_tclinclude=''
8218fi
8219
8220if test "${ac_cv_path_tclsh+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223
8224if test x"${with_tclinclude}" != x ; then
8225 if test -f ${with_tclinclude}/tclsh ; then
8226 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8227 elif test -f ${with_tclinclude}/src/tclsh ; then
8228 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8229 else
8230 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8231echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8232 { (exit 1); exit 1; }; }
8233 fi
8234fi
8235
8236if test x"${ac_cv_path_tclsh}" = x ; then
8237 { echo "$as_me:$LINENO: result: none" >&5
8238echo "${ECHO_T}none" >&6; }
8239 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
8240do
8241 # Extract the first word of "$ac_prog", so it can be a program name with args.
8242set dummy $ac_prog; ac_word=$2
8243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245if test "${ac_cv_path_TCLSH+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 case $TCLSH in
8249 [\\/]* | ?:[\\/]*)
8250 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8251 ;;
8252 *)
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254for as_dir in $PATH
8255do
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008259 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 +00008260 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264done
8265done
8266IFS=$as_save_IFS
8267
8268 ;;
8269esac
8270fi
8271TCLSH=$ac_cv_path_TCLSH
8272if test -n "$TCLSH"; then
8273 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8274echo "${ECHO_T}$TCLSH" >&6; }
8275else
8276 { echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6; }
8278fi
8279
8280
8281 test -n "$TCLSH" && break
8282done
8283
8284 if test x"${TCLSH}" = x ; then
8285 ac_cv_path_tclsh='';
8286 else
8287 ac_cv_path_tclsh="${TCLSH}";
8288 fi
8289else
8290 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8291echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8292 TCLSH="${ac_cv_path_tclsh}"
8293
8294fi
8295
8296fi
8297
8298# Extract the first word of "zip", so it can be a program name with args.
8299set dummy zip; ac_word=$2
8300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302if test "${ac_cv_path_ZIP+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305 case $ZIP in
8306 [\\/]* | ?:[\\/]*)
8307 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8308 ;;
8309 *)
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008316 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 +00008317 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321done
8322done
8323IFS=$as_save_IFS
8324
Reid Spencera773bd52006-08-04 18:18:08 +00008325 ;;
8326esac
8327fi
8328ZIP=$ac_cv_path_ZIP
8329if test -n "$ZIP"; then
8330 { echo "$as_me:$LINENO: result: $ZIP" >&5
8331echo "${ECHO_T}$ZIP" >&6; }
8332else
8333 { echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6; }
8335fi
8336
8337
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008338for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008339do
8340 # Extract the first word of "$ac_prog", so it can be a program name with args.
8341set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8344if test "${ac_cv_path_OCAMLC+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 case $OCAMLC in
8348 [\\/]* | ?:[\\/]*)
8349 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8350 ;;
8351 *)
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008358 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 +00008359 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363done
8364done
8365IFS=$as_save_IFS
8366
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008367 ;;
8368esac
8369fi
8370OCAMLC=$ac_cv_path_OCAMLC
8371if test -n "$OCAMLC"; then
8372 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8373echo "${ECHO_T}$OCAMLC" >&6; }
8374else
8375 { echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6; }
8377fi
8378
8379
Gordon Henriksene7072162008-03-07 18:20:01 +00008380 test -n "$OCAMLC" && break
8381done
8382
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008383for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008384do
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392 case $OCAMLOPT in
8393 [\\/]* | ?:[\\/]*)
8394 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8395 ;;
8396 *)
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008403 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 +00008404 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408done
8409done
8410IFS=$as_save_IFS
8411
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008412 ;;
8413esac
8414fi
8415OCAMLOPT=$ac_cv_path_OCAMLOPT
8416if test -n "$OCAMLOPT"; then
8417 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8418echo "${ECHO_T}$OCAMLOPT" >&6; }
8419else
8420 { echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6; }
8422fi
8423
8424
Gordon Henriksene7072162008-03-07 18:20:01 +00008425 test -n "$OCAMLOPT" && break
8426done
8427
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008428for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008429do
8430 # Extract the first word of "$ac_prog", so it can be a program name with args.
8431set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 case $OCAMLDEP in
8438 [\\/]* | ?:[\\/]*)
8439 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8440 ;;
8441 *)
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008448 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 +00008449 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8452 fi
8453done
8454done
8455IFS=$as_save_IFS
8456
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008457 ;;
8458esac
8459fi
8460OCAMLDEP=$ac_cv_path_OCAMLDEP
8461if test -n "$OCAMLDEP"; then
8462 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8463echo "${ECHO_T}$OCAMLDEP" >&6; }
8464else
8465 { echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6; }
8467fi
8468
8469
Gordon Henriksene7072162008-03-07 18:20:01 +00008470 test -n "$OCAMLDEP" && break
8471done
8472
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008473for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008474do
8475 # Extract the first word of "$ac_prog", so it can be a program name with args.
8476set dummy $ac_prog; ac_word=$2
8477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 case $OCAMLDOC in
8483 [\\/]* | ?:[\\/]*)
8484 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8485 ;;
8486 *)
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008493 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 +00008494 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499done
8500IFS=$as_save_IFS
8501
8502 ;;
8503esac
8504fi
8505OCAMLDOC=$ac_cv_path_OCAMLDOC
8506if test -n "$OCAMLDOC"; then
8507 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8508echo "${ECHO_T}$OCAMLDOC" >&6; }
8509else
8510 { echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6; }
8512fi
8513
8514
8515 test -n "$OCAMLDOC" && break
8516done
8517
Torok Edwincc499a42008-10-22 09:56:27 +00008518for ac_prog in gas as
8519do
8520 # Extract the first word of "$ac_prog", so it can be a program name with args.
8521set dummy $ac_prog; ac_word=$2
8522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524if test "${ac_cv_path_GAS+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 case $GAS in
8528 [\\/]* | ?:[\\/]*)
8529 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8530 ;;
8531 *)
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533for as_dir in $PATH
8534do
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008538 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 +00008539 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8542 fi
8543done
8544done
8545IFS=$as_save_IFS
8546
8547 ;;
8548esac
8549fi
8550GAS=$ac_cv_path_GAS
8551if test -n "$GAS"; then
8552 { echo "$as_me:$LINENO: result: $GAS" >&5
8553echo "${ECHO_T}$GAS" >&6; }
8554else
8555 { echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6; }
8557fi
8558
8559
8560 test -n "$GAS" && break
8561done
8562
Reid Spencera773bd52006-08-04 18:18:08 +00008563
8564{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8565echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8566if test "${llvm_cv_link_use_r+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569 ac_ext=c
8570ac_cpp='$CPP $CPPFLAGS'
8571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8573ac_compiler_gnu=$ac_cv_c_compiler_gnu
8574
8575 oldcflags="$CFLAGS"
8576 CFLAGS="$CFLAGS -Wl,-R."
8577 cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583
8584int
8585main ()
8586{
8587int main() { return 0; }
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592rm -f conftest.$ac_objext conftest$ac_exeext
8593if { (ac_try="$ac_link"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_link") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_try") 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008626 llvm_cv_link_use_r=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 llvm_cv_link_use_r=no
8632fi
8633
Bill Wendlingebcceee2009-04-18 11:20:33 +00008634rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008635 conftest$ac_exeext conftest.$ac_ext
8636 CFLAGS="$oldcflags"
8637 ac_ext=c
8638ac_cpp='$CPP $CPPFLAGS'
8639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642
8643
8644fi
8645{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8646echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8647if test "$llvm_cv_link_use_r" = yes ; then
8648
8649cat >>confdefs.h <<\_ACEOF
8650#define HAVE_LINK_R 1
8651_ACEOF
8652
8653 fi
8654
8655
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008656{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8657echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8658if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 ac_ext=c
8662ac_cpp='$CPP $CPPFLAGS'
8663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8665ac_compiler_gnu=$ac_cv_c_compiler_gnu
8666
8667 oldcflags="$CFLAGS"
8668 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8669 cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675
8676int
8677main ()
8678{
8679int main() { return 0; }
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext conftest$ac_exeext
8685if { (ac_try="$ac_link"
8686case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689esac
8690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_link") 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702esac
8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
8713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008718 llvm_cv_link_use_export_dynamic=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 llvm_cv_link_use_export_dynamic=no
8724fi
8725
Bill Wendlingebcceee2009-04-18 11:20:33 +00008726rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008727 conftest$ac_exeext conftest.$ac_ext
8728 CFLAGS="$oldcflags"
8729 ac_ext=c
8730ac_cpp='$CPP $CPPFLAGS'
8731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733ac_compiler_gnu=$ac_cv_c_compiler_gnu
8734
8735
8736fi
8737{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8738echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8739if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8740
8741cat >>confdefs.h <<\_ACEOF
8742#define HAVE_LINK_EXPORT_DYNAMIC 1
8743_ACEOF
8744
8745 fi
8746
8747
Reid Spencera773bd52006-08-04 18:18:08 +00008748
8749
8750{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8751echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8752if test "${ac_cv_c_const+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761
8762int
8763main ()
8764{
8765/* FIXME: Include the comments suggested by Paul. */
8766#ifndef __cplusplus
8767 /* Ultrix mips cc rejects this. */
8768 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008769 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008770 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008771 char const *const *ccp;
8772 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008773 /* NEC SVR4.0.2 mips cc rejects this. */
8774 struct point {int x, y;};
8775 static struct point const zero = {0,0};
8776 /* AIX XL C 1.02.0.0 rejects this.
8777 It does not let you subtract one const X* pointer from another in
8778 an arm of an if-expression whose if-part is not a constant
8779 expression */
8780 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008781 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008782 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008783 ++ccp;
8784 p = (char**) ccp;
8785 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008786 { /* SCO 3.2v4 cc rejects this. */
8787 char *t;
8788 char const *s = 0 ? (char *) 0 : (char const *) 0;
8789
8790 *t++ = 0;
8791 if (s) return 0;
8792 }
8793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8794 int x[] = {25, 17};
8795 const int *foo = &x[0];
8796 ++foo;
8797 }
8798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8799 typedef const int *iptr;
8800 iptr p = 0;
8801 ++p;
8802 }
8803 { /* AIX XL C 1.02.0.0 rejects this saying
8804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8805 struct s { int j; const int *ap[3]; };
8806 struct s *b; b->j = 5;
8807 }
8808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8809 const int foo = 10;
8810 if (!foo) return 0;
8811 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008812 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008813#endif
8814
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest.$ac_objext
8820if { (ac_try="$ac_compile"
8821case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824esac
8825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008832 (exit $ac_status); } &&
8833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8834 { (case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837esac
8838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_try") 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_try") 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008853 ac_cv_c_const=yes
8854else
8855 echo "$as_me: failed program was:" >&5
8856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_c_const=no
8859fi
8860
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862fi
8863{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8864echo "${ECHO_T}$ac_cv_c_const" >&6; }
8865if test $ac_cv_c_const = no; then
8866
8867cat >>confdefs.h <<\_ACEOF
8868#define const
8869_ACEOF
8870
8871fi
8872
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873
8874
8875
8876
8877
8878ac_header_dirent=no
8879for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8880 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008881{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8882echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886 cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h. */
8892#include <sys/types.h>
8893#include <$ac_hdr>
8894
8895int
8896main ()
8897{
8898if ((DIR *) 0)
8899return 0;
8900 ;
8901 return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008905if { (ac_try="$ac_compile"
8906case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909esac
8910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919 { (case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_try") 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8932esac
8933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938 eval "$as_ac_Header=yes"
8939else
8940 echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
8942
Reid Spencera773bd52006-08-04 18:18:08 +00008943 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008944fi
Reid Spencera773bd52006-08-04 18:18:08 +00008945
8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008947fi
Reid Spencera773bd52006-08-04 18:18:08 +00008948ac_res=`eval echo '${'$as_ac_Header'}'`
8949 { echo "$as_me:$LINENO: result: $ac_res" >&5
8950echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8954_ACEOF
8955
8956ac_header_dirent=$ac_hdr; break
8957fi
8958
8959done
8960# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8961if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008962 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8963echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008964if test "${ac_cv_search_opendir+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974
Reid Spencera773bd52006-08-04 18:18:08 +00008975/* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978#ifdef __cplusplus
8979extern "C"
8980#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008981char opendir ();
8982int
8983main ()
8984{
Reid Spencera773bd52006-08-04 18:18:08 +00008985return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986 ;
8987 return 0;
8988}
8989_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008990for ac_lib in '' dir; do
8991 if test -z "$ac_lib"; then
8992 ac_res="none required"
8993 else
8994 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008996 fi
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998if { (ac_try="$ac_link"
8999case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9012 { (case "(($ac_try" in
9013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9015esac
9016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_try") 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_try") 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009031 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009036
9037fi
9038
Bill Wendlingebcceee2009-04-18 11:20:33 +00009039rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009040 conftest$ac_exeext
9041 if test "${ac_cv_search_opendir+set}" = set; then
9042 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009043fi
John Criswell7a73b802003-06-30 21:59:07 +00009044done
Reid Spencera773bd52006-08-04 18:18:08 +00009045if test "${ac_cv_search_opendir+set}" = set; then
9046 :
9047else
9048 ac_cv_search_opendir=no
9049fi
9050rm conftest.$ac_ext
9051LIBS=$ac_func_search_save_LIBS
9052fi
9053{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9054echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9055ac_res=$ac_cv_search_opendir
9056if test "$ac_res" != no; then
9057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009058
Reid Spencera773bd52006-08-04 18:18:08 +00009059fi
9060
9061else
9062 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9063echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9064if test "${ac_cv_search_opendir+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067 ac_func_search_save_LIBS=$LIBS
9068cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
9074
9075/* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9078#ifdef __cplusplus
9079extern "C"
9080#endif
9081char opendir ();
9082int
9083main ()
9084{
9085return opendir ();
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090for ac_lib in '' x; do
9091 if test -z "$ac_lib"; then
9092 ac_res="none required"
9093 else
9094 ac_res=-l$ac_lib
9095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9096 fi
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098if { (ac_try="$ac_link"
9099case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102esac
9103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_try") 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009131 ac_cv_search_opendir=$ac_res
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136
9137fi
9138
Bill Wendlingebcceee2009-04-18 11:20:33 +00009139rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009140 conftest$ac_exeext
9141 if test "${ac_cv_search_opendir+set}" = set; then
9142 break
9143fi
9144done
9145if test "${ac_cv_search_opendir+set}" = set; then
9146 :
9147else
9148 ac_cv_search_opendir=no
9149fi
9150rm conftest.$ac_ext
9151LIBS=$ac_func_search_save_LIBS
9152fi
9153{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9154echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9155ac_res=$ac_cv_search_opendir
9156if test "$ac_res" != no; then
9157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9158
9159fi
9160
9161fi
John Criswell7a73b802003-06-30 21:59:07 +00009162
9163
9164for ac_header in dlfcn.h
9165do
9166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009171 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009172fi
Reid Spencera773bd52006-08-04 18:18:08 +00009173ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009176else
Brian Gaeke0a621332004-09-08 20:38:05 +00009177 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009180cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009186$ac_includes_default
9187#include <$ac_header>
9188_ACEOF
9189rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009190if { (ac_try="$ac_compile"
9191case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194esac
9195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest.$ac_objext'
9214 { (case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9217esac
9218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_try") 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009223 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009224else
9225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009226sed 's/^/| /' conftest.$ac_ext >&5
9227
Reid Spencera773bd52006-08-04 18:18:08 +00009228 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009229fi
Reid Spencera773bd52006-08-04 18:18:08 +00009230
9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009234
9235# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009236{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009238cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009239/* confdefs.h. */
9240_ACEOF
9241cat confdefs.h >>conftest.$ac_ext
9242cat >>conftest.$ac_ext <<_ACEOF
9243/* end confdefs.h. */
9244#include <$ac_header>
9245_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009246if { (ac_try="$ac_cpp conftest.$ac_ext"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009258 (exit $ac_status); } >/dev/null; then
9259 if test -s conftest.err; then
9260 ac_cpp_err=$ac_c_preproc_warn_flag
9261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9262 else
9263 ac_cpp_err=
9264 fi
9265else
9266 ac_cpp_err=yes
9267fi
9268if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009269 ac_header_preproc=yes
9270else
9271 echo "$as_me: failed program was:" >&5
9272sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_header_preproc=no
9275fi
Reid Spencera773bd52006-08-04 18:18:08 +00009276
Brian Gaeke0a621332004-09-08 20:38:05 +00009277rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9279echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009280
9281# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9283 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9288 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009289 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009290 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009303 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009304## ----------------------------------- ##
9305## Report this to llvmbugs@cs.uiuc.edu ##
9306## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009307_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009308 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009309 ;;
9310esac
Reid Spencera773bd52006-08-04 18:18:08 +00009311{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009316 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009317fi
Reid Spencera773bd52006-08-04 18:18:08 +00009318ac_res=`eval echo '${'$as_ac_Header'}'`
9319 { echo "$as_me:$LINENO: result: $ac_res" >&5
9320echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009321
9322fi
John Criswell7a73b802003-06-30 21:59:07 +00009323if test `eval echo '${'$as_ac_Header'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326_ACEOF
9327
9328fi
9329
9330done
9331
Reid Spencera773bd52006-08-04 18:18:08 +00009332# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009333if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009334 enableval=$enable_ltdl_install;
9335fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337
Bill Wendlingebcceee2009-04-18 11:20:33 +00009338
9339
9340if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341 INSTALL_LTDL_TRUE=
9342 INSTALL_LTDL_FALSE='#'
9343else
9344 INSTALL_LTDL_TRUE='#'
9345 INSTALL_LTDL_FALSE=
9346fi
9347
Bill Wendlingebcceee2009-04-18 11:20:33 +00009348
9349
9350if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351 CONVENIENCE_LTDL_TRUE=
9352 CONVENIENCE_LTDL_FALSE='#'
9353else
9354 CONVENIENCE_LTDL_TRUE='#'
9355 CONVENIENCE_LTDL_FALSE=
9356fi
9357
9358
Reid Spencera773bd52006-08-04 18:18:08 +00009359{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361library_names_spec=
9362libname_spec='lib$name'
9363soname_spec=
9364shrext_cmds=".so"
9365postinstall_cmds=
9366postuninstall_cmds=
9367finish_cmds=
9368finish_eval=
9369shlibpath_var=
9370shlibpath_overrides_runpath=unknown
9371version_type=none
9372dynamic_linker="$host_os ld.so"
9373sys_lib_dlsearch_path_spec="/lib /usr/lib"
9374if test "$GCC" = yes; then
9375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9377 # if the path contains ";" then we assume it to be the separator
9378 # otherwise default to the standard path separator (i.e. ":") - it is
9379 # assumed that no part of a normal pathname contains ";" but that should
9380 # okay in the real world where ";" in dirpaths is itself problematic.
9381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9384 fi
9385else
9386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9387fi
9388need_lib_prefix=unknown
9389hardcode_into_libs=no
9390
9391# when you set need_version to no, make sure it does not cause -set_version
9392# flags to be left without arguments
9393need_version=unknown
9394
9395case $host_os in
9396aix3*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9399 shlibpath_var=LIBPATH
9400
9401 # AIX 3 has no versioning support, so we append a major version to the name.
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 ;;
9404
9405aix4* | aix5*)
9406 version_type=linux
9407 need_lib_prefix=no
9408 need_version=no
9409 hardcode_into_libs=yes
9410 if test "$host_cpu" = ia64; then
9411 # AIX 5 supports IA64
9412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 else
9415 # With GCC up to 2.95.x, collect2 would create an import file
9416 # for dependence libraries. The import file would start with
9417 # the line `#! .'. This would cause the generated library to
9418 # depend on `.', always an invalid library. This was fixed in
9419 # development snapshots of GCC prior to 3.0.
9420 case $host_os in
9421 aix4 | aix4.[01] | aix4.[01].*)
9422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9423 echo ' yes '
9424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9425 :
9426 else
9427 can_build_shared=no
9428 fi
9429 ;;
9430 esac
9431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9432 # soname into executable. Probably we can add versioning support to
9433 # collect2, so additional links can be useful in future.
9434 if test "$aix_use_runtimelinking" = yes; then
9435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9436 # instead of lib<name>.a to let people know that these are not
9437 # typical AIX shared libraries.
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 else
9440 # We preserve .a as extension for shared libraries through AIX4.2
9441 # and later when we are not doing run time linking.
9442 library_names_spec='${libname}${release}.a $libname.a'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 fi
9445 shlibpath_var=LIBPATH
9446 fi
9447 ;;
9448
9449amigaos*)
9450 library_names_spec='$libname.ixlibrary $libname.a'
9451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9452 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'
9453 ;;
9454
9455beos*)
9456 library_names_spec='${libname}${shared_ext}'
9457 dynamic_linker="$host_os ld.so"
9458 shlibpath_var=LIBRARY_PATH
9459 ;;
9460
9461bsdi[45]*)
9462 version_type=linux
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9470 # the default ld.so.conf also contains /usr/contrib/lib and
9471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9472 # libtool to hard-code these into programs
9473 ;;
9474
9475cygwin* | mingw* | pw32*)
9476 version_type=windows
9477 shrext_cmds=".dll"
9478 need_version=no
9479 need_lib_prefix=no
9480
9481 case $GCC,$host_os in
9482 yes,cygwin* | yes,mingw* | yes,pw32*)
9483 library_names_spec='$libname.dll.a'
9484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9485 postinstall_cmds='base_file=`basename \${file}`~
9486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9487 dldir=$destdir/`dirname \$dlpath`~
9488 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009489 $install_prog $dir/$dlname \$dldir/$dlname~
9490 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9492 dlpath=$dir/\$dldll~
9493 $rm \$dlpath'
9494 shlibpath_overrides_runpath=yes
9495
9496 case $host_os in
9497 cygwin*)
9498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9501 ;;
9502 mingw*)
9503 # MinGW DLLs use traditional 'lib' prefix
9504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9507 # It is most probably a Windows format PATH printed by
9508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9509 # path with ; separators, and with drive letters. We can handle the
9510 # drive letters (cygwin fileutils understands them), so leave them,
9511 # especially as we might pass files found there to a mingw objdump,
9512 # which wouldn't understand a cygwinified path. Ahh.
9513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9514 else
9515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9516 fi
9517 ;;
9518 pw32*)
9519 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009520 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 +00009521 ;;
9522 esac
9523 ;;
9524
9525 *)
9526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9527 ;;
9528 esac
9529 dynamic_linker='Win32 ld.exe'
9530 # FIXME: first we should search . and the directory the executable is in
9531 shlibpath_var=PATH
9532 ;;
9533
9534darwin* | rhapsody*)
9535 dynamic_linker="$host_os dyld"
9536 version_type=darwin
9537 need_lib_prefix=no
9538 need_version=no
9539 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9540 soname_spec='${libname}${release}${major}$shared_ext'
9541 shlibpath_overrides_runpath=yes
9542 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009543 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9545 if test "$GCC" = yes; then
9546 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"`
9547 else
9548 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9549 fi
9550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9551 ;;
9552
9553dgux*)
9554 version_type=linux
9555 need_lib_prefix=no
9556 need_version=no
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 ;;
9561
9562freebsd1*)
9563 dynamic_linker=no
9564 ;;
9565
9566kfreebsd*-gnu)
9567 version_type=linux
9568 need_lib_prefix=no
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 hardcode_into_libs=yes
9575 dynamic_linker='GNU ld.so'
9576 ;;
9577
Reid Spencera773bd52006-08-04 18:18:08 +00009578freebsd* | dragonfly*)
9579 # DragonFly does not have aout. When/if they implement a new
9580 # versioning mechanism, adjust this.
9581 if test -x /usr/bin/objformat; then
9582 objformat=`/usr/bin/objformat`
9583 else
9584 case $host_os in
9585 freebsd[123]*) objformat=aout ;;
9586 *) objformat=elf ;;
9587 esac
9588 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589 version_type=freebsd-$objformat
9590 case $version_type in
9591 freebsd-elf*)
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9593 need_version=no
9594 need_lib_prefix=no
9595 ;;
9596 freebsd-*)
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9598 need_version=yes
9599 ;;
9600 esac
9601 shlibpath_var=LD_LIBRARY_PATH
9602 case $host_os in
9603 freebsd2*)
9604 shlibpath_overrides_runpath=yes
9605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009606 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612 shlibpath_overrides_runpath=no
9613 hardcode_into_libs=yes
9614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009615 freebsd*) # from 4.6 on
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619 esac
9620 ;;
9621
9622gnu*)
9623 version_type=linux
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 hardcode_into_libs=yes
9630 ;;
9631
9632hpux9* | hpux10* | hpux11*)
9633 # Give a soname corresponding to the major version so that dld.sl refuses to
9634 # link against other versions.
9635 version_type=sunos
9636 need_lib_prefix=no
9637 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009638 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639 ia64*)
9640 shrext_cmds='.so'
9641 hardcode_into_libs=yes
9642 dynamic_linker="$host_os dld.so"
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9649 else
9650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9651 fi
9652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9653 ;;
9654 hppa*64*)
9655 shrext_cmds='.sl'
9656 hardcode_into_libs=yes
9657 dynamic_linker="$host_os dld.sl"
9658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9664 ;;
9665 *)
9666 shrext_cmds='.sl'
9667 dynamic_linker="$host_os dld.sl"
9668 shlibpath_var=SHLIB_PATH
9669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 ;;
9673 esac
9674 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9675 postinstall_cmds='chmod 555 $lib'
9676 ;;
9677
Reid Spencera773bd52006-08-04 18:18:08 +00009678interix3*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=no
9687 hardcode_into_libs=yes
9688 ;;
9689
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690irix5* | irix6* | nonstopux*)
9691 case $host_os in
9692 nonstopux*) version_type=nonstopux ;;
9693 *)
9694 if test "$lt_cv_prog_gnu_ld" = yes; then
9695 version_type=linux
9696 else
9697 version_type=irix
9698 fi ;;
9699 esac
9700 need_lib_prefix=no
9701 need_version=no
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9704 case $host_os in
9705 irix5* | nonstopux*)
9706 libsuff= shlibsuff=
9707 ;;
9708 *)
9709 case $LD in # libtool.m4 will add one of these switches to LD
9710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9711 libsuff= shlibsuff= libmagic=32-bit;;
9712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9713 libsuff=32 shlibsuff=N32 libmagic=N32;;
9714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9716 *) libsuff= shlibsuff= libmagic=never-match;;
9717 esac
9718 ;;
9719 esac
9720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9721 shlibpath_overrides_runpath=no
9722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9724 hardcode_into_libs=yes
9725 ;;
9726
9727# No shared lib support for Linux oldld, aout, or coff.
9728linux*oldld* | linux*aout* | linux*coff*)
9729 dynamic_linker=no
9730 ;;
9731
9732# This must be Linux ELF.
9733linux*)
9734 version_type=linux
9735 need_lib_prefix=no
9736 need_version=no
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 shlibpath_overrides_runpath=no
9742 # This implies no fast_install, which is unacceptable.
9743 # Some rework will be needed to allow for fast_install
9744 # before this can be enabled.
9745 hardcode_into_libs=yes
9746
9747 # Append ld.so.conf contents to the search path
9748 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009749 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 +00009750 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9751 fi
9752
9753 # We used to test for /lib/ld.so.1 and disable shared libraries on
9754 # powerpc, because MkLinux only supported shared libraries with the
9755 # GNU dynamic linker. Since this was broken with cross compilers,
9756 # most powerpc-linux boxes support dynamic linking these days and
9757 # people can always --disable-shared, the test was removed, and we
9758 # assume the GNU/Linux dynamic linker is in use.
9759 dynamic_linker='GNU/Linux ld.so'
9760 ;;
9761
9762knetbsd*-gnu)
9763 version_type=linux
9764 need_lib_prefix=no
9765 need_version=no
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=no
9770 hardcode_into_libs=yes
9771 dynamic_linker='GNU ld.so'
9772 ;;
9773
9774netbsd*)
9775 version_type=sunos
9776 need_lib_prefix=no
9777 need_version=no
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9781 dynamic_linker='NetBSD (a.out) ld.so'
9782 else
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 dynamic_linker='NetBSD ld.elf_so'
9786 fi
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=yes
9789 hardcode_into_libs=yes
9790 ;;
9791
9792newsos6)
9793 version_type=linux
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 shlibpath_var=LD_LIBRARY_PATH
9796 shlibpath_overrides_runpath=yes
9797 ;;
9798
9799nto-qnx*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9807 ;;
9808
9809openbsd*)
9810 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009811 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9814 case $host_os in
9815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9816 *) need_version=no ;;
9817 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9822 case $host_os in
9823 openbsd2.[89] | openbsd2.[89].*)
9824 shlibpath_overrides_runpath=no
9825 ;;
9826 *)
9827 shlibpath_overrides_runpath=yes
9828 ;;
9829 esac
9830 else
9831 shlibpath_overrides_runpath=yes
9832 fi
9833 ;;
9834
9835os2*)
9836 libname_spec='$name'
9837 shrext_cmds=".dll"
9838 need_lib_prefix=no
9839 library_names_spec='$libname${shared_ext} $libname.a'
9840 dynamic_linker='OS/2 ld.exe'
9841 shlibpath_var=LIBPATH
9842 ;;
9843
9844osf3* | osf4* | osf5*)
9845 version_type=osf
9846 need_lib_prefix=no
9847 need_version=no
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9853 ;;
9854
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855solaris*)
9856 version_type=linux
9857 need_lib_prefix=no
9858 need_version=no
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=yes
9863 hardcode_into_libs=yes
9864 # ldd complains unless libraries are executable
9865 postinstall_cmds='chmod +x $lib'
9866 ;;
9867
9868sunos4*)
9869 version_type=sunos
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=yes
9874 if test "$with_gnu_ld" = yes; then
9875 need_lib_prefix=no
9876 fi
9877 need_version=yes
9878 ;;
9879
Reid Spencera773bd52006-08-04 18:18:08 +00009880sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881 version_type=linux
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 case $host_vendor in
9886 sni)
9887 shlibpath_overrides_runpath=no
9888 need_lib_prefix=no
9889 export_dynamic_flag_spec='${wl}-Blargedynsym'
9890 runpath_var=LD_RUN_PATH
9891 ;;
9892 siemens)
9893 need_lib_prefix=no
9894 ;;
9895 motorola)
9896 need_lib_prefix=no
9897 need_version=no
9898 shlibpath_overrides_runpath=no
9899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9900 ;;
9901 esac
9902 ;;
9903
9904sysv4*MP*)
9905 if test -d /usr/nec ;then
9906 version_type=linux
9907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9908 soname_spec='$libname${shared_ext}.$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 fi
9911 ;;
9912
Reid Spencera773bd52006-08-04 18:18:08 +00009913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9914 version_type=freebsd-elf
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 hardcode_into_libs=yes
9921 if test "$with_gnu_ld" = yes; then
9922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9923 shlibpath_overrides_runpath=no
9924 else
9925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9926 shlibpath_overrides_runpath=yes
9927 case $host_os in
9928 sco3.2v5*)
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9930 ;;
9931 esac
9932 fi
9933 sys_lib_dlsearch_path_spec='/usr/lib'
9934 ;;
9935
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936uts4*)
9937 version_type=linux
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 ;;
9942
9943*)
9944 dynamic_linker=no
9945 ;;
9946esac
Reid Spencera773bd52006-08-04 18:18:08 +00009947{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9948echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949test "$dynamic_linker" = no && can_build_shared=no
9950
Reid Spencera773bd52006-08-04 18:18:08 +00009951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9952if test "$GCC" = yes; then
9953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9954fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955
Reid Spencera773bd52006-08-04 18:18:08 +00009956
9957{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9958echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959if test "${libltdl_cv_shlibext+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962
9963module=yes
9964eval libltdl_cv_shlibext=$shrext_cmds
9965
9966fi
Reid Spencera773bd52006-08-04 18:18:08 +00009967{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9968echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969if test -n "$libltdl_cv_shlibext"; then
9970
9971cat >>confdefs.h <<_ACEOF
9972#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9973_ACEOF
9974
9975fi
9976
9977
Reid Spencera773bd52006-08-04 18:18:08 +00009978{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9979echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980if test "${libltdl_cv_shlibpath_var+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983 libltdl_cv_shlibpath_var="$shlibpath_var"
9984fi
Reid Spencera773bd52006-08-04 18:18:08 +00009985{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9986echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987if test -n "$libltdl_cv_shlibpath_var"; then
9988
9989cat >>confdefs.h <<_ACEOF
9990#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9991_ACEOF
9992
9993fi
9994
9995
Reid Spencera773bd52006-08-04 18:18:08 +00009996{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9997echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998if test "${libltdl_cv_sys_search_path+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000else
10001 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10002fi
Reid Spencera773bd52006-08-04 18:18:08 +000010003{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10004echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005if test -n "$libltdl_cv_sys_search_path"; then
10006 sys_search_path=
10007 for dir in $libltdl_cv_sys_search_path; do
10008 if test -z "$sys_search_path"; then
10009 sys_search_path="$dir"
10010 else
10011 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10012 fi
10013 done
10014
10015cat >>confdefs.h <<_ACEOF
10016#define LTDL_SYSSEARCHPATH "$sys_search_path"
10017_ACEOF
10018
10019fi
10020
Reid Spencera773bd52006-08-04 18:18:08 +000010021{ echo "$as_me:$LINENO: checking for objdir" >&5
10022echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023if test "${libltdl_cv_objdir+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026 libltdl_cv_objdir="$objdir"
10027 if test -n "$objdir"; then
10028 :
10029 else
10030 rm -f .libs 2>/dev/null
10031 mkdir .libs 2>/dev/null
10032 if test -d .libs; then
10033 libltdl_cv_objdir=.libs
10034 else
10035 # MS-DOS does not allow filenames that begin with a dot.
10036 libltdl_cv_objdir=_libs
10037 fi
10038 rmdir .libs 2>/dev/null
10039 fi
10040
10041fi
Reid Spencera773bd52006-08-04 18:18:08 +000010042{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10043echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044
10045cat >>confdefs.h <<_ACEOF
10046#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10047_ACEOF
10048
10049
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050
10051
10052
10053
10054# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000010055{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10056echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060
10061# These are sane defaults that work on at least a few old systems.
10062# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10063
10064# Character class describing NM global symbol codes.
10065symcode='[BCDEGRST]'
10066
10067# Regexp to match symbols that can be accessed directly from C.
10068sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10069
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070# Transform an extracted symbol line into a proper C declaration
10071lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10072
10073# Transform an extracted symbol line into symbol name and symbol address
10074lt_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'"
10075
10076# Define system-specific variables.
10077case $host_os in
10078aix*)
10079 symcode='[BCDT]'
10080 ;;
10081cygwin* | mingw* | pw32*)
10082 symcode='[ABCDGISTW]'
10083 ;;
10084hpux*) # Its linker distinguishes data from code symbols
10085 if test "$host_cpu" = ia64; then
10086 symcode='[ABCDEGRST]'
10087 fi
10088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10089 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'"
10090 ;;
10091linux*)
10092 if test "$host_cpu" = ia64; then
10093 symcode='[ABCDGIRSTW]'
10094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095 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'"
10096 fi
10097 ;;
10098irix* | nonstopux*)
10099 symcode='[BCDEGRST]'
10100 ;;
10101osf*)
10102 symcode='[BCDEGQRST]'
10103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010104solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 symcode='[BDRT]'
10106 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010107sco3.2v5*)
10108 symcode='[DT]'
10109 ;;
10110sysv4.2uw2*)
10111 symcode='[DT]'
10112 ;;
10113sysv5* | sco5v6* | unixware* | OpenUNIX*)
10114 symcode='[ABDT]'
10115 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116sysv4)
10117 symcode='[DFNSTU]'
10118 ;;
10119esac
10120
10121# Handle CRLF in mingw tool chain
10122opt_cr=
10123case $build_os in
10124mingw*)
10125 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10126 ;;
10127esac
10128
10129# If we're using GNU nm, then use its standard symbol codes.
10130case `$NM -V 2>&1` in
10131*GNU* | *'with BFD'*)
10132 symcode='[ABCDGIRSTW]' ;;
10133esac
10134
10135# Try without a prefix undercore, then with it.
10136for ac_symprfx in "" "_"; do
10137
Reid Spencera773bd52006-08-04 18:18:08 +000010138 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10139 symxfrm="\\1 $ac_symprfx\\2 \\2"
10140
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010142 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 +000010143
10144 # Check to see that the pipe works correctly.
10145 pipe_works=no
10146
10147 rm -f conftest*
10148 cat > conftest.$ac_ext <<EOF
10149#ifdef __cplusplus
10150extern "C" {
10151#endif
10152char nm_test_var;
10153void nm_test_func(){}
10154#ifdef __cplusplus
10155}
10156#endif
10157int main(){nm_test_var='a';nm_test_func();return(0);}
10158EOF
10159
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; then
10165 # Now try to grab the symbols.
10166 nlist=conftest.nm
10167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s "$nlist"; then
10172 # Try sorting and uniquifying the output.
10173 if sort "$nlist" | uniq > "$nlist"T; then
10174 mv -f "$nlist"T "$nlist"
10175 else
10176 rm -f "$nlist"T
10177 fi
10178
10179 # Make sure that we snagged all the symbols we need.
10180 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10181 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10182 cat <<EOF > conftest.$ac_ext
10183#ifdef __cplusplus
10184extern "C" {
10185#endif
10186
10187EOF
10188 # Now generate the symbol file.
10189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10190
10191 cat <<EOF >> conftest.$ac_ext
10192#if defined (__STDC__) && __STDC__
10193# define lt_ptr_t void *
10194#else
10195# define lt_ptr_t char *
10196# define const
10197#endif
10198
10199/* The mapping between symbol names and symbols. */
10200const struct {
10201 const char *name;
10202 lt_ptr_t address;
10203}
10204lt_preloaded_symbols[] =
10205{
10206EOF
10207 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10208 cat <<\EOF >> conftest.$ac_ext
10209 {0, (lt_ptr_t) 0}
10210};
10211
10212#ifdef __cplusplus
10213}
10214#endif
10215EOF
10216 # Now try linking the two files.
10217 mv conftest.$ac_objext conftstm.$ac_objext
10218 lt_save_LIBS="$LIBS"
10219 lt_save_CFLAGS="$CFLAGS"
10220 LIBS="conftstm.$ac_objext"
10221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223 (eval $ac_link) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10227 pipe_works=yes
10228 fi
10229 LIBS="$lt_save_LIBS"
10230 CFLAGS="$lt_save_CFLAGS"
10231 else
10232 echo "cannot find nm_test_func in $nlist" >&5
10233 fi
10234 else
10235 echo "cannot find nm_test_var in $nlist" >&5
10236 fi
10237 else
10238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10239 fi
10240 else
10241 echo "$progname: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 fi
10244 rm -f conftest* conftst*
10245
10246 # Do not use the global_symbol_pipe unless it works.
10247 if test "$pipe_works" = yes; then
10248 break
10249 else
10250 lt_cv_sys_global_symbol_pipe=
10251 fi
10252done
10253
10254fi
10255
10256if test -z "$lt_cv_sys_global_symbol_pipe"; then
10257 lt_cv_sys_global_symbol_to_cdecl=
10258fi
10259if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010260 { echo "$as_me:$LINENO: result: failed" >&5
10261echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262else
Reid Spencera773bd52006-08-04 18:18:08 +000010263 { echo "$as_me:$LINENO: result: ok" >&5
10264echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265fi
10266
10267
Reid Spencera773bd52006-08-04 18:18:08 +000010268{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10269echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10274 libltdl_cv_preloaded_symbols=yes
10275 else
10276 libltdl_cv_preloaded_symbols=no
10277 fi
10278
10279fi
Reid Spencera773bd52006-08-04 18:18:08 +000010280{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10281echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10283
10284cat >>confdefs.h <<\_ACEOF
10285#define HAVE_PRELOADED_SYMBOLS 1
10286_ACEOF
10287
10288fi
10289
10290LIBADD_DL=
10291
10292ac_ext=c
10293ac_cpp='$CPP $CPPFLAGS'
10294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10296ac_compiler_gnu=$ac_cv_c_compiler_gnu
10297
10298
Reid Spencera773bd52006-08-04 18:18:08 +000010299{ echo "$as_me:$LINENO: checking for shl_load" >&5
10300echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301if test "${ac_cv_func_shl_load+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
10304 cat >conftest.$ac_ext <<_ACEOF
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10312#define shl_load innocuous_shl_load
10313
10314/* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char shl_load (); below.
10316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317 <limits.h> exists even on freestanding compilers. */
10318
10319#ifdef __STDC__
10320# include <limits.h>
10321#else
10322# include <assert.h>
10323#endif
10324
10325#undef shl_load
10326
Reid Spencera773bd52006-08-04 18:18:08 +000010327/* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330#ifdef __cplusplus
10331extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333char shl_load ();
10334/* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010337#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339#endif
10340
10341int
10342main ()
10343{
Reid Spencera773bd52006-08-04 18:18:08 +000010344return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010350if { (ac_try="$ac_link"
10351case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 ac_cv_func_shl_load=yes
10384else
10385 echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
Reid Spencera773bd52006-08-04 18:18:08 +000010388 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389fi
Reid Spencera773bd52006-08-04 18:18:08 +000010390
Bill Wendlingebcceee2009-04-18 11:20:33 +000010391rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392 conftest$ac_exeext conftest.$ac_ext
10393fi
Reid Spencera773bd52006-08-04 18:18:08 +000010394{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10395echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396if test $ac_cv_func_shl_load = yes; then
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define HAVE_SHL_LOAD 1
10400_ACEOF
10401
10402else
Reid Spencera773bd52006-08-04 18:18:08 +000010403 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10404echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407else
10408 ac_check_lib_save_LIBS=$LIBS
10409LIBS="-ldld $LIBS"
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416
Reid Spencera773bd52006-08-04 18:18:08 +000010417/* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420#ifdef __cplusplus
10421extern "C"
10422#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423char shl_load ();
10424int
10425main ()
10426{
Reid Spencera773bd52006-08-04 18:18:08 +000010427return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428 ;
10429 return 0;
10430}
10431_ACEOF
10432rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010433if { (ac_try="$ac_link"
10434case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10447 { (case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450esac
10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_try") 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; } &&
10456 { ac_try='test -s conftest$ac_exeext'
10457 { (case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460esac
10461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_try") 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466 ac_cv_lib_dld_shl_load=yes
10467else
10468 echo "$as_me: failed program was:" >&5
10469sed 's/^/| /' conftest.$ac_ext >&5
10470
Reid Spencera773bd52006-08-04 18:18:08 +000010471 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472fi
Reid Spencera773bd52006-08-04 18:18:08 +000010473
Bill Wendlingebcceee2009-04-18 11:20:33 +000010474rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475 conftest$ac_exeext conftest.$ac_ext
10476LIBS=$ac_check_lib_save_LIBS
10477fi
Reid Spencera773bd52006-08-04 18:18:08 +000010478{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10479echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480if test $ac_cv_lib_dld_shl_load = yes; then
10481
10482cat >>confdefs.h <<\_ACEOF
10483#define HAVE_SHL_LOAD 1
10484_ACEOF
10485
10486 LIBADD_DL="$LIBADD_DL -ldld"
10487else
Reid Spencera773bd52006-08-04 18:18:08 +000010488 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493 ac_check_lib_save_LIBS=$LIBS
10494LIBS="-ldl $LIBS"
10495cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501
Reid Spencera773bd52006-08-04 18:18:08 +000010502/* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505#ifdef __cplusplus
10506extern "C"
10507#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508char dlopen ();
10509int
10510main ()
10511{
Reid Spencera773bd52006-08-04 18:18:08 +000010512return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010518if { (ac_try="$ac_link"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 ac_cv_lib_dl_dlopen=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
Reid Spencera773bd52006-08-04 18:18:08 +000010556 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557fi
Reid Spencera773bd52006-08-04 18:18:08 +000010558
Bill Wendlingebcceee2009-04-18 11:20:33 +000010559rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560 conftest$ac_exeext conftest.$ac_ext
10561LIBS=$ac_check_lib_save_LIBS
10562fi
Reid Spencera773bd52006-08-04 18:18:08 +000010563{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10564echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565if test $ac_cv_lib_dl_dlopen = yes; then
10566
10567cat >>confdefs.h <<\_ACEOF
10568#define HAVE_LIBDL 1
10569_ACEOF
10570
10571 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10572else
10573 cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579#if HAVE_DLFCN_H
10580# include <dlfcn.h>
10581#endif
10582
10583int
10584main ()
10585{
10586dlopen(0, 0);
10587 ;
10588 return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010592if { (ac_try="$ac_link"
10593case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625
10626cat >>confdefs.h <<\_ACEOF
10627#define HAVE_LIBDL 1
10628_ACEOF
10629 libltdl_cv_func_dlopen="yes"
10630else
10631 echo "$as_me: failed program was:" >&5
10632sed 's/^/| /' conftest.$ac_ext >&5
10633
Reid Spencera773bd52006-08-04 18:18:08 +000010634 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10635echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638else
10639 ac_check_lib_save_LIBS=$LIBS
10640LIBS="-lsvld $LIBS"
10641cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647
Reid Spencera773bd52006-08-04 18:18:08 +000010648/* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651#ifdef __cplusplus
10652extern "C"
10653#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654char dlopen ();
10655int
10656main ()
10657{
Reid Spencera773bd52006-08-04 18:18:08 +000010658return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 ;
10660 return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010664if { (ac_try="$ac_link"
10665case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668esac
10669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681esac
10682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest$ac_exeext'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697 ac_cv_lib_svld_dlopen=yes
10698else
10699 echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
Reid Spencera773bd52006-08-04 18:18:08 +000010702 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703fi
Reid Spencera773bd52006-08-04 18:18:08 +000010704
Bill Wendlingebcceee2009-04-18 11:20:33 +000010705rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706 conftest$ac_exeext conftest.$ac_ext
10707LIBS=$ac_check_lib_save_LIBS
10708fi
Reid Spencera773bd52006-08-04 18:18:08 +000010709{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711if test $ac_cv_lib_svld_dlopen = yes; then
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define HAVE_LIBDL 1
10715_ACEOF
10716
10717 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10718else
Reid Spencera773bd52006-08-04 18:18:08 +000010719 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10720echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 ac_check_lib_save_LIBS=$LIBS
10725LIBS="-ldld $LIBS"
10726cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732
Reid Spencera773bd52006-08-04 18:18:08 +000010733/* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736#ifdef __cplusplus
10737extern "C"
10738#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739char dld_link ();
10740int
10741main ()
10742{
Reid Spencera773bd52006-08-04 18:18:08 +000010743return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 ;
10745 return 0;
10746}
10747_ACEOF
10748rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010749if { (ac_try="$ac_link"
10750case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753esac
10754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776esac
10777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782 ac_cv_lib_dld_dld_link=yes
10783else
10784 echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
Reid Spencera773bd52006-08-04 18:18:08 +000010787 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788fi
Reid Spencera773bd52006-08-04 18:18:08 +000010789
Bill Wendlingebcceee2009-04-18 11:20:33 +000010790rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791 conftest$ac_exeext conftest.$ac_ext
10792LIBS=$ac_check_lib_save_LIBS
10793fi
Reid Spencera773bd52006-08-04 18:18:08 +000010794{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10795echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010796if test $ac_cv_lib_dld_dld_link = yes; then
10797
10798cat >>confdefs.h <<\_ACEOF
10799#define HAVE_DLD 1
10800_ACEOF
10801
10802 LIBADD_DL="$LIBADD_DL -ldld"
10803else
Reid Spencera773bd52006-08-04 18:18:08 +000010804 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10805echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10817#define _dyld_func_lookup innocuous__dyld_func_lookup
10818
10819/* System header to define __stub macros and hopefully few prototypes,
10820 which can conflict with char _dyld_func_lookup (); below.
10821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10822 <limits.h> exists even on freestanding compilers. */
10823
10824#ifdef __STDC__
10825# include <limits.h>
10826#else
10827# include <assert.h>
10828#endif
10829
10830#undef _dyld_func_lookup
10831
Reid Spencera773bd52006-08-04 18:18:08 +000010832/* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835#ifdef __cplusplus
10836extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838char _dyld_func_lookup ();
10839/* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010842#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844#endif
10845
10846int
10847main ()
10848{
Reid Spencera773bd52006-08-04 18:18:08 +000010849return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010855if { (ac_try="$ac_link"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888 ac_cv_func__dyld_func_lookup=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
Reid Spencera773bd52006-08-04 18:18:08 +000010893 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894fi
Reid Spencera773bd52006-08-04 18:18:08 +000010895
Bill Wendlingebcceee2009-04-18 11:20:33 +000010896rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897 conftest$ac_exeext conftest.$ac_ext
10898fi
Reid Spencera773bd52006-08-04 18:18:08 +000010899{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10900echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901if test $ac_cv_func__dyld_func_lookup = yes; then
10902
10903cat >>confdefs.h <<\_ACEOF
10904#define HAVE_DYLD 1
10905_ACEOF
10906
10907fi
10908
10909
10910fi
10911
10912
10913fi
10914
10915
10916fi
Reid Spencera773bd52006-08-04 18:18:08 +000010917
Bill Wendlingebcceee2009-04-18 11:20:33 +000010918rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 conftest$ac_exeext conftest.$ac_ext
10920
10921fi
10922
10923
10924fi
10925
10926
10927fi
10928
10929
10930if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10931then
10932 lt_save_LIBS="$LIBS"
10933 LIBS="$LIBS $LIBADD_DL"
10934
10935for ac_func in dlerror
10936do
10937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010938{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10940if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else
10943 cat >conftest.$ac_ext <<_ACEOF
10944/* confdefs.h. */
10945_ACEOF
10946cat confdefs.h >>conftest.$ac_ext
10947cat >>conftest.$ac_ext <<_ACEOF
10948/* end confdefs.h. */
10949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10951#define $ac_func innocuous_$ac_func
10952
10953/* System header to define __stub macros and hopefully few prototypes,
10954 which can conflict with char $ac_func (); below.
10955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10956 <limits.h> exists even on freestanding compilers. */
10957
10958#ifdef __STDC__
10959# include <limits.h>
10960#else
10961# include <assert.h>
10962#endif
10963
10964#undef $ac_func
10965
Reid Spencera773bd52006-08-04 18:18:08 +000010966/* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969#ifdef __cplusplus
10970extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972char $ac_func ();
10973/* The GNU C library defines this for functions which it implements
10974 to always fail with ENOSYS. Some functions are actually named
10975 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010976#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978#endif
10979
10980int
10981main ()
10982{
Reid Spencera773bd52006-08-04 18:18:08 +000010983return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010989if { (ac_try="$ac_link"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011001 (exit $ac_status); } &&
11002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003 { (case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_try") 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016esac
11017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_try") 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022 eval "$as_ac_var=yes"
11023else
11024 echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
11026
Reid Spencera773bd52006-08-04 18:18:08 +000011027 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028fi
Reid Spencera773bd52006-08-04 18:18:08 +000011029
Bill Wendlingebcceee2009-04-18 11:20:33 +000011030rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031 conftest$ac_exeext conftest.$ac_ext
11032fi
Reid Spencera773bd52006-08-04 18:18:08 +000011033ac_res=`eval echo '${'$as_ac_var'}'`
11034 { echo "$as_me:$LINENO: result: $ac_res" >&5
11035echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036if test `eval echo '${'$as_ac_var'}'` = yes; then
11037 cat >>confdefs.h <<_ACEOF
11038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11039_ACEOF
11040
11041fi
11042done
11043
11044 LIBS="$lt_save_LIBS"
11045fi
11046ac_ext=c
11047ac_cpp='$CPP $CPPFLAGS'
11048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050ac_compiler_gnu=$ac_cv_c_compiler_gnu
11051
11052
11053
Reid Spencera773bd52006-08-04 18:18:08 +000011054{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11055echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 ac_cv_sys_symbol_underscore=no
11060 cat > conftest.$ac_ext <<EOF
11061void nm_test_func(){}
11062int main(){nm_test_func;return 0;}
11063EOF
11064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11065 (eval $ac_compile) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; then
11069 # Now try to grab the symbols.
11070 ac_nlist=conftest.nm
11071 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11072 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && test -s "$ac_nlist"; then
11076 # See whether the symbols have a leading underscore.
11077 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11078 ac_cv_sys_symbol_underscore=yes
11079 else
11080 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11081 :
11082 else
11083 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11084 fi
11085 fi
11086 else
11087 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11088 fi
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.c >&5
11092 fi
11093 rm -rf conftest*
11094
11095fi
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11097echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098
11099
11100if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11101 if test x"$libltdl_cv_func_dlopen" = xyes ||
11102 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011103 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11104echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105if test "${libltdl_cv_need_uscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 libltdl_cv_need_uscore=unknown
11109 save_LIBS="$LIBS"
11110 LIBS="$LIBS $LIBADD_DL"
11111 if test "$cross_compiling" = yes; then :
11112 libltdl_cv_need_uscore=cross
11113else
11114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11115 lt_status=$lt_dlunknown
11116 cat > conftest.$ac_ext <<EOF
Rafael Espindola420d23c2009-11-16 19:46:55 +000011117#line 11117 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118#include "confdefs.h"
11119
11120#if HAVE_DLFCN_H
11121#include <dlfcn.h>
11122#endif
11123
11124#include <stdio.h>
11125
11126#ifdef RTLD_GLOBAL
11127# define LT_DLGLOBAL RTLD_GLOBAL
11128#else
11129# ifdef DL_GLOBAL
11130# define LT_DLGLOBAL DL_GLOBAL
11131# else
11132# define LT_DLGLOBAL 0
11133# endif
11134#endif
11135
11136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11137 find out it does not work in some platform. */
11138#ifndef LT_DLLAZY_OR_NOW
11139# ifdef RTLD_LAZY
11140# define LT_DLLAZY_OR_NOW RTLD_LAZY
11141# else
11142# ifdef DL_LAZY
11143# define LT_DLLAZY_OR_NOW DL_LAZY
11144# else
11145# ifdef RTLD_NOW
11146# define LT_DLLAZY_OR_NOW RTLD_NOW
11147# else
11148# ifdef DL_NOW
11149# define LT_DLLAZY_OR_NOW DL_NOW
11150# else
11151# define LT_DLLAZY_OR_NOW 0
11152# endif
11153# endif
11154# endif
11155# endif
11156#endif
11157
11158#ifdef __cplusplus
11159extern "C" void exit (int);
11160#endif
11161
11162void fnord() { int i=42;}
11163int main ()
11164{
11165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11166 int status = $lt_dlunknown;
11167
11168 if (self)
11169 {
11170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11172 /* dlclose (self); */
11173 }
Reid Spencera773bd52006-08-04 18:18:08 +000011174 else
11175 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176
11177 exit (status);
11178}
11179EOF
11180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011185 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186 lt_status=$?
11187 case x$lt_status in
11188 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11189 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011190 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 esac
11192 else :
11193 # compilation failed
11194
11195 fi
11196fi
11197rm -fr conftest*
11198
11199 LIBS="$save_LIBS"
11200
11201fi
Reid Spencera773bd52006-08-04 18:18:08 +000011202{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11203echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204 fi
11205fi
11206
11207if test x"$libltdl_cv_need_uscore" = xyes; then
11208
11209cat >>confdefs.h <<\_ACEOF
11210#define NEED_USCORE 1
11211_ACEOF
11212
11213fi
11214
11215
Reid Spencera773bd52006-08-04 18:18:08 +000011216{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11217echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 # PORTME does your system automatically load deplibs for dlopen?
11222 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11223 # For now, we just catch OSes we know something about -- in the
11224 # future, we'll try test this programmatically.
11225 libltdl_cv_sys_dlopen_deplibs=unknown
11226 case "$host_os" in
11227 aix3*|aix4.1.*|aix4.2.*)
11228 # Unknown whether this is true for these versions of AIX, but
11229 # we want this `case' here to explicitly catch those versions.
11230 libltdl_cv_sys_dlopen_deplibs=unknown
11231 ;;
11232 aix[45]*)
11233 libltdl_cv_sys_dlopen_deplibs=yes
11234 ;;
11235 darwin*)
11236 # Assuming the user has installed a libdl from somewhere, this is true
11237 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11238 libltdl_cv_sys_dlopen_deplibs=yes
11239 ;;
11240 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11241 # GNU and its variants, using gnu ld.so (Glibc)
11242 libltdl_cv_sys_dlopen_deplibs=yes
11243 ;;
11244 hpux10*|hpux11*)
11245 libltdl_cv_sys_dlopen_deplibs=yes
11246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011247 interix*)
11248 libltdl_cv_sys_dlopen_deplibs=yes
11249 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 irix[12345]*|irix6.[01]*)
11251 # Catch all versions of IRIX before 6.2, and indicate that we don't
11252 # know how it worked for any of those versions.
11253 libltdl_cv_sys_dlopen_deplibs=unknown
11254 ;;
11255 irix*)
11256 # The case above catches anything before 6.2, and it's known that
11257 # at 6.2 and later dlopen does load deplibs.
11258 libltdl_cv_sys_dlopen_deplibs=yes
11259 ;;
11260 netbsd*)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11262 ;;
11263 openbsd*)
11264 libltdl_cv_sys_dlopen_deplibs=yes
11265 ;;
11266 osf[1234]*)
11267 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11268 # it did *not* use an RPATH in a shared library to find objects the
11269 # library depends on, so we explictly say `no'.
11270 libltdl_cv_sys_dlopen_deplibs=no
11271 ;;
11272 osf5.0|osf5.0a|osf5.1)
11273 # dlopen *does* load deplibs and with the right loader patch applied
11274 # it even uses RPATH in a shared library to search for shared objects
11275 # that the library depends on, but there's no easy way to know if that
11276 # patch is installed. Since this is the case, all we can really
11277 # say is unknown -- it depends on the patch being installed. If
11278 # it is, this changes to `yes'. Without it, it would be `no'.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11280 ;;
11281 osf*)
11282 # the two cases above should catch all versions of osf <= 5.1. Read
11283 # the comments above for what we know about them.
11284 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11285 # is used to find them so we can finally say `yes'.
11286 libltdl_cv_sys_dlopen_deplibs=yes
11287 ;;
11288 solaris*)
11289 libltdl_cv_sys_dlopen_deplibs=yes
11290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11292 libltdl_cv_sys_dlopen_deplibs=yes
11293 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294 esac
11295
11296fi
Reid Spencera773bd52006-08-04 18:18:08 +000011297{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11298echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11300
11301cat >>confdefs.h <<\_ACEOF
11302#define LTDL_DLOPEN_DEPLIBS 1
11303_ACEOF
11304
11305fi
11306
11307
11308for ac_header in argz.h
11309do
11310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316fi
Reid Spencera773bd52006-08-04 18:18:08 +000011317ac_res=`eval echo '${'$as_ac_Header'}'`
11318 { echo "$as_me:$LINENO: result: $ac_res" >&5
11319echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320else
11321 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011324cat >conftest.$ac_ext <<_ACEOF
11325/* confdefs.h. */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
11330$ac_includes_default
11331#include <$ac_header>
11332_ACEOF
11333rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011334if { (ac_try="$ac_compile"
11335case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341 ac_status=$?
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -f conftest.er1
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011346 (exit $ac_status); } &&
11347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11348 { (case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351esac
11352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_try") 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest.$ac_objext'
11358 { (case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_try") 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 ac_header_compiler=yes
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
Reid Spencera773bd52006-08-04 18:18:08 +000011372 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373fi
Reid Spencera773bd52006-08-04 18:18:08 +000011374
11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378
11379# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382cat >conftest.$ac_ext <<_ACEOF
11383/* confdefs.h. */
11384_ACEOF
11385cat confdefs.h >>conftest.$ac_ext
11386cat >>conftest.$ac_ext <<_ACEOF
11387/* end confdefs.h. */
11388#include <$ac_header>
11389_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011390if { (ac_try="$ac_cpp conftest.$ac_ext"
11391case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011402 (exit $ac_status); } >/dev/null; then
11403 if test -s conftest.err; then
11404 ac_cpp_err=$ac_c_preproc_warn_flag
11405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11406 else
11407 ac_cpp_err=
11408 fi
11409else
11410 ac_cpp_err=yes
11411fi
11412if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 ac_header_preproc=yes
11414else
11415 echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_header_preproc=no
11419fi
Reid Spencera773bd52006-08-04 18:18:08 +000011420
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11423echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424
11425# So? What about this header?
11426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11427 yes:no: )
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11432 ac_header_preproc=yes
11433 ;;
11434 no:yes:* )
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011447 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448## ----------------------------------- ##
11449## Report this to llvmbugs@cs.uiuc.edu ##
11450## ----------------------------------- ##
11451_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011452 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453 ;;
11454esac
Reid Spencera773bd52006-08-04 18:18:08 +000011455{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 eval "$as_ac_Header=\$ac_header_preproc"
11461fi
Reid Spencera773bd52006-08-04 18:18:08 +000011462ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465
11466fi
11467if test `eval echo '${'$as_ac_Header'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470_ACEOF
11471
11472fi
11473
11474done
11475
11476
Reid Spencera773bd52006-08-04 18:18:08 +000011477{ echo "$as_me:$LINENO: checking for error_t" >&5
11478echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479if test "${ac_cv_type_error_t+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488#if HAVE_ARGZ_H
11489# include <argz.h>
11490#endif
11491
Reid Spencera773bd52006-08-04 18:18:08 +000011492typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493int
11494main ()
11495{
Reid Spencera773bd52006-08-04 18:18:08 +000011496if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011498if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499 return 0;
11500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011505if { (ac_try="$ac_compile"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538 ac_cv_type_error_t=yes
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
Reid Spencera773bd52006-08-04 18:18:08 +000011543 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544fi
Reid Spencera773bd52006-08-04 18:18:08 +000011545
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547fi
Reid Spencera773bd52006-08-04 18:18:08 +000011548{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11549echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550if test $ac_cv_type_error_t = yes; then
11551
11552cat >>confdefs.h <<_ACEOF
11553#define HAVE_ERROR_T 1
11554_ACEOF
11555
11556
11557else
11558
11559cat >>confdefs.h <<\_ACEOF
11560#define error_t int
11561_ACEOF
11562
11563fi
11564
11565
11566
11567
11568
11569
11570
11571for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11572do
11573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587#define $ac_func innocuous_$ac_func
11588
11589/* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11593
11594#ifdef __STDC__
11595# include <limits.h>
11596#else
11597# include <assert.h>
11598#endif
11599
11600#undef $ac_func
11601
Reid Spencera773bd52006-08-04 18:18:08 +000011602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605#ifdef __cplusplus
11606extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608char $ac_func ();
11609/* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011612#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614#endif
11615
11616int
11617main ()
11618{
Reid Spencera773bd52006-08-04 18:18:08 +000011619return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620 ;
11621 return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 eval "$as_ac_var=yes"
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
Reid Spencera773bd52006-08-04 18:18:08 +000011663 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664fi
Reid Spencera773bd52006-08-04 18:18:08 +000011665
Bill Wendlingebcceee2009-04-18 11:20:33 +000011666rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667 conftest$ac_exeext conftest.$ac_ext
11668fi
Reid Spencera773bd52006-08-04 18:18:08 +000011669ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675_ACEOF
11676
11677fi
11678done
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11708 stdio.h unistd.h
11709do
11710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716fi
Reid Spencera773bd52006-08-04 18:18:08 +000011717ac_res=`eval echo '${'$as_ac_Header'}'`
11718 { echo "$as_me:$LINENO: result: $ac_res" >&5
11719echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720else
11721 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731#include <$ac_header>
11732_ACEOF
11733rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011734if { (ac_try="$ac_compile"
11735case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11748 { (case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751esac
11752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_try") 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_try") 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767 ac_header_compiler=yes
11768else
11769 echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
Reid Spencera773bd52006-08-04 18:18:08 +000011772 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773fi
Reid Spencera773bd52006-08-04 18:18:08 +000011774
11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11777echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778
11779# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788#include <$ac_header>
11789_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011790if { (ac_try="$ac_cpp conftest.$ac_ext"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011802 (exit $ac_status); } >/dev/null; then
11803 if test -s conftest.err; then
11804 ac_cpp_err=$ac_c_preproc_warn_flag
11805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11806 else
11807 ac_cpp_err=
11808 fi
11809else
11810 ac_cpp_err=yes
11811fi
11812if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813 ac_header_preproc=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_header_preproc=no
11819fi
Reid Spencera773bd52006-08-04 18:18:08 +000011820
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824
11825# So? What about this header?
11826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11827 yes:no: )
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11832 ac_header_preproc=yes
11833 ;;
11834 no:yes:* )
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011847 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848## ----------------------------------- ##
11849## Report this to llvmbugs@cs.uiuc.edu ##
11850## ----------------------------------- ##
11851_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011852 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853 ;;
11854esac
Reid Spencera773bd52006-08-04 18:18:08 +000011855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 eval "$as_ac_Header=\$ac_header_preproc"
11861fi
Reid Spencera773bd52006-08-04 18:18:08 +000011862ac_res=`eval echo '${'$as_ac_Header'}'`
11863 { echo "$as_me:$LINENO: result: $ac_res" >&5
11864echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865
11866fi
11867if test `eval echo '${'$as_ac_Header'}'` = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11870_ACEOF
11871
11872fi
11873
11874done
11875
11876
11877
11878
11879
11880for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11881do
11882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888fi
Reid Spencera773bd52006-08-04 18:18:08 +000011889ac_res=`eval echo '${'$as_ac_Header'}'`
11890 { echo "$as_me:$LINENO: result: $ac_res" >&5
11891echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892else
11893 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011894{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
11902$ac_includes_default
11903#include <$ac_header>
11904_ACEOF
11905rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011906if { (ac_try="$ac_compile"
11907case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933esac
11934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 ac_header_compiler=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
Reid Spencera773bd52006-08-04 18:18:08 +000011944 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945fi
Reid Spencera773bd52006-08-04 18:18:08 +000011946
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11949echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950
11951# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011952{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954cat >conftest.$ac_ext <<_ACEOF
11955/* confdefs.h. */
11956_ACEOF
11957cat confdefs.h >>conftest.$ac_ext
11958cat >>conftest.$ac_ext <<_ACEOF
11959/* end confdefs.h. */
11960#include <$ac_header>
11961_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011962if { (ac_try="$ac_cpp conftest.$ac_ext"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011974 (exit $ac_status); } >/dev/null; then
11975 if test -s conftest.err; then
11976 ac_cpp_err=$ac_c_preproc_warn_flag
11977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11978 else
11979 ac_cpp_err=
11980 fi
11981else
11982 ac_cpp_err=yes
11983fi
11984if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985 ac_header_preproc=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_header_preproc=no
11991fi
Reid Spencera773bd52006-08-04 18:18:08 +000011992
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11995echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996
11997# So? What about this header?
11998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11999 yes:no: )
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12004 ac_header_preproc=yes
12005 ;;
12006 no:yes:* )
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012019 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020## ----------------------------------- ##
12021## Report this to llvmbugs@cs.uiuc.edu ##
12022## ----------------------------------- ##
12023_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012024 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025 ;;
12026esac
Reid Spencera773bd52006-08-04 18:18:08 +000012027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 eval "$as_ac_Header=\$ac_header_preproc"
12033fi
Reid Spencera773bd52006-08-04 18:18:08 +000012034ac_res=`eval echo '${'$as_ac_Header'}'`
12035 { echo "$as_me:$LINENO: result: $ac_res" >&5
12036echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037
12038fi
12039if test `eval echo '${'$as_ac_Header'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12042_ACEOF
12043
12044fi
12045
12046done
12047
12048
12049
12050for ac_header in string.h strings.h
12051do
12052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058fi
Reid Spencera773bd52006-08-04 18:18:08 +000012059ac_res=`eval echo '${'$as_ac_Header'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062else
12063 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000012064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072$ac_includes_default
12073#include <$ac_header>
12074_ACEOF
12075rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012076if { (ac_try="$ac_compile"
12077case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012088 (exit $ac_status); } &&
12089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest.$ac_objext'
12100 { (case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109 ac_header_compiler=yes
12110else
12111 echo "$as_me: failed program was:" >&5
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
Reid Spencera773bd52006-08-04 18:18:08 +000012114 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115fi
Reid Spencera773bd52006-08-04 18:18:08 +000012116
12117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120
12121# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012124cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130#include <$ac_header>
12131_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012132if { (ac_try="$ac_cpp conftest.$ac_ext"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012144 (exit $ac_status); } >/dev/null; then
12145 if test -s conftest.err; then
12146 ac_cpp_err=$ac_c_preproc_warn_flag
12147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12148 else
12149 ac_cpp_err=
12150 fi
12151else
12152 ac_cpp_err=yes
12153fi
12154if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155 ac_header_preproc=yes
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_header_preproc=no
12161fi
Reid Spencera773bd52006-08-04 18:18:08 +000012162
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166
12167# So? What about this header?
12168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12169 yes:no: )
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174 ac_header_preproc=yes
12175 ;;
12176 no:yes:* )
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012189 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190## ----------------------------------- ##
12191## Report this to llvmbugs@cs.uiuc.edu ##
12192## ----------------------------------- ##
12193_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012194 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195 ;;
12196esac
Reid Spencera773bd52006-08-04 18:18:08 +000012197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202 eval "$as_ac_Header=\$ac_header_preproc"
12203fi
Reid Spencera773bd52006-08-04 18:18:08 +000012204ac_res=`eval echo '${'$as_ac_Header'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207
12208fi
12209if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212_ACEOF
12213 break
12214fi
12215
12216done
12217
12218
12219
12220
12221for ac_func in strchr index
12222do
12223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012224{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237#define $ac_func innocuous_$ac_func
12238
12239/* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12243
12244#ifdef __STDC__
12245# include <limits.h>
12246#else
12247# include <assert.h>
12248#endif
12249
12250#undef $ac_func
12251
Reid Spencera773bd52006-08-04 18:18:08 +000012252/* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255#ifdef __cplusplus
12256extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258char $ac_func ();
12259/* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012262#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012263choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264#endif
12265
12266int
12267main ()
12268{
Reid Spencera773bd52006-08-04 18:18:08 +000012269return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270 ;
12271 return 0;
12272}
12273_ACEOF
12274rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012275if { (ac_try="$ac_link"
12276case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308 eval "$as_ac_var=yes"
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
Reid Spencera773bd52006-08-04 18:18:08 +000012313 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314fi
Reid Spencera773bd52006-08-04 18:18:08 +000012315
Bill Wendlingebcceee2009-04-18 11:20:33 +000012316rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317 conftest$ac_exeext conftest.$ac_ext
12318fi
Reid Spencera773bd52006-08-04 18:18:08 +000012319ac_res=`eval echo '${'$as_ac_var'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322if test `eval echo '${'$as_ac_var'}'` = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12325_ACEOF
12326 break
12327fi
12328done
12329
12330
12331
12332for ac_func in strrchr rindex
12333do
12334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340 cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348#define $ac_func innocuous_$ac_func
12349
12350/* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char $ac_func (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12354
12355#ifdef __STDC__
12356# include <limits.h>
12357#else
12358# include <assert.h>
12359#endif
12360
12361#undef $ac_func
12362
Reid Spencera773bd52006-08-04 18:18:08 +000012363/* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366#ifdef __cplusplus
12367extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369char $ac_func ();
12370/* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012373#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375#endif
12376
12377int
12378main ()
12379{
Reid Spencera773bd52006-08-04 18:18:08 +000012380return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012386if { (ac_try="$ac_link"
12387case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390esac
12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12400 { (case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_try") 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 eval "$as_ac_var=yes"
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
Reid Spencera773bd52006-08-04 18:18:08 +000012424 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425fi
Reid Spencera773bd52006-08-04 18:18:08 +000012426
Bill Wendlingebcceee2009-04-18 11:20:33 +000012427rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428 conftest$ac_exeext conftest.$ac_ext
12429fi
Reid Spencera773bd52006-08-04 18:18:08 +000012430ac_res=`eval echo '${'$as_ac_var'}'`
12431 { echo "$as_me:$LINENO: result: $ac_res" >&5
12432echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436_ACEOF
12437 break
12438fi
12439done
12440
12441
12442
12443for ac_func in memcpy bcopy
12444do
12445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012446{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12459#define $ac_func innocuous_$ac_func
12460
12461/* System header to define __stub macros and hopefully few prototypes,
12462 which can conflict with char $ac_func (); below.
12463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 <limits.h> exists even on freestanding compilers. */
12465
12466#ifdef __STDC__
12467# include <limits.h>
12468#else
12469# include <assert.h>
12470#endif
12471
12472#undef $ac_func
12473
Reid Spencera773bd52006-08-04 18:18:08 +000012474/* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477#ifdef __cplusplus
12478extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012479#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480char $ac_func ();
12481/* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012484#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486#endif
12487
12488int
12489main ()
12490{
Reid Spencera773bd52006-08-04 18:18:08 +000012491return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492 ;
12493 return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012497if { (ac_try="$ac_link"
12498case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012509 (exit $ac_status); } &&
12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514esac
12515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 eval "$as_ac_var=yes"
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
Reid Spencera773bd52006-08-04 18:18:08 +000012535 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012536fi
Reid Spencera773bd52006-08-04 18:18:08 +000012537
Bill Wendlingebcceee2009-04-18 11:20:33 +000012538rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012539 conftest$ac_exeext conftest.$ac_ext
12540fi
Reid Spencera773bd52006-08-04 18:18:08 +000012541ac_res=`eval echo '${'$as_ac_var'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544if test `eval echo '${'$as_ac_var'}'` = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12547_ACEOF
12548 break
12549fi
12550done
12551
12552
12553
12554for ac_func in memmove strcmp
12555do
12556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012557{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12559if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12570#define $ac_func innocuous_$ac_func
12571
12572/* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char $ac_func (); below.
12574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12575 <limits.h> exists even on freestanding compilers. */
12576
12577#ifdef __STDC__
12578# include <limits.h>
12579#else
12580# include <assert.h>
12581#endif
12582
12583#undef $ac_func
12584
Reid Spencera773bd52006-08-04 18:18:08 +000012585/* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588#ifdef __cplusplus
12589extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012590#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591char $ac_func ();
12592/* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012595#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597#endif
12598
12599int
12600main ()
12601{
Reid Spencera773bd52006-08-04 18:18:08 +000012602return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012608if { (ac_try="$ac_link"
12609case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612esac
12613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625esac
12626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12635esac
12636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_try") 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641 eval "$as_ac_var=yes"
12642else
12643 echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
12645
Reid Spencera773bd52006-08-04 18:18:08 +000012646 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647fi
Reid Spencera773bd52006-08-04 18:18:08 +000012648
Bill Wendlingebcceee2009-04-18 11:20:33 +000012649rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012650 conftest$ac_exeext conftest.$ac_ext
12651fi
Reid Spencera773bd52006-08-04 18:18:08 +000012652ac_res=`eval echo '${'$as_ac_var'}'`
12653 { echo "$as_me:$LINENO: result: $ac_res" >&5
12654echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012655if test `eval echo '${'$as_ac_var'}'` = yes; then
12656 cat >>confdefs.h <<_ACEOF
12657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12658_ACEOF
12659
12660fi
12661done
12662
12663
12664
12665
12666for ac_func in closedir opendir readdir
12667do
12668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012669{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12671if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673else
12674 cat >conftest.$ac_ext <<_ACEOF
12675/* confdefs.h. */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
12679/* end confdefs.h. */
12680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12682#define $ac_func innocuous_$ac_func
12683
12684/* System header to define __stub macros and hopefully few prototypes,
12685 which can conflict with char $ac_func (); below.
12686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12687 <limits.h> exists even on freestanding compilers. */
12688
12689#ifdef __STDC__
12690# include <limits.h>
12691#else
12692# include <assert.h>
12693#endif
12694
12695#undef $ac_func
12696
Reid Spencera773bd52006-08-04 18:18:08 +000012697/* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700#ifdef __cplusplus
12701extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703char $ac_func ();
12704/* The GNU C library defines this for functions which it implements
12705 to always fail with ENOSYS. Some functions are actually named
12706 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012707#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709#endif
12710
12711int
12712main ()
12713{
Reid Spencera773bd52006-08-04 18:18:08 +000012714return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012720if { (ac_try="$ac_link"
12721case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012753 eval "$as_ac_var=yes"
12754else
12755 echo "$as_me: failed program was:" >&5
12756sed 's/^/| /' conftest.$ac_ext >&5
12757
Reid Spencera773bd52006-08-04 18:18:08 +000012758 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012759fi
Reid Spencera773bd52006-08-04 18:18:08 +000012760
Bill Wendlingebcceee2009-04-18 11:20:33 +000012761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012762 conftest$ac_exeext conftest.$ac_ext
12763fi
Reid Spencera773bd52006-08-04 18:18:08 +000012764ac_res=`eval echo '${'$as_ac_var'}'`
12765 { echo "$as_me:$LINENO: result: $ac_res" >&5
12766echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012767if test `eval echo '${'$as_ac_var'}'` = yes; then
12768 cat >>confdefs.h <<_ACEOF
12769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12770_ACEOF
12771
12772fi
12773done
12774
12775
Reid Spencera773bd52006-08-04 18:18:08 +000012776# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012777if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012778 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779 case $enableval in
12780 yes) enable_shared=yes ;;
12781 no) enable_shared=no ;;
12782 *)
12783 enable_shared=no
12784 # Look at the argument we got. We use all the common list separators.
12785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12786 for pkg in $enableval; do
12787 IFS="$lt_save_ifs"
12788 if test "X$pkg" = "X$p"; then
12789 enable_shared=yes
12790 fi
12791 done
12792 IFS="$lt_save_ifs"
12793 ;;
12794 esac
12795else
12796 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012797fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798
Reid Spencera773bd52006-08-04 18:18:08 +000012799
12800# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012801if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012802 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803 case $enableval in
12804 yes) enable_static=yes ;;
12805 no) enable_static=no ;;
12806 *)
12807 enable_static=no
12808 # Look at the argument we got. We use all the common list separators.
12809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12810 for pkg in $enableval; do
12811 IFS="$lt_save_ifs"
12812 if test "X$pkg" = "X$p"; then
12813 enable_static=yes
12814 fi
12815 done
12816 IFS="$lt_save_ifs"
12817 ;;
12818 esac
12819else
12820 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012821fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012822
Reid Spencera773bd52006-08-04 18:18:08 +000012823
12824# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012825if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012826 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827 case $enableval in
12828 yes) enable_fast_install=yes ;;
12829 no) enable_fast_install=no ;;
12830 *)
12831 enable_fast_install=no
12832 # Look at the argument we got. We use all the common list separators.
12833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12834 for pkg in $enableval; do
12835 IFS="$lt_save_ifs"
12836 if test "X$pkg" = "X$p"; then
12837 enable_fast_install=yes
12838 fi
12839 done
12840 IFS="$lt_save_ifs"
12841 ;;
12842 esac
12843else
12844 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012845fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012846
Reid Spencera773bd52006-08-04 18:18:08 +000012847
12848{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12849echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012850if test "${lt_cv_path_SED+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 # Loop through the user's path and test for sed and gsed.
12854# Then use that list of sed's as ones to test for truncation.
12855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856for as_dir in $PATH
12857do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for lt_ac_prog in sed gsed; do
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12863 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12864 fi
12865 done
12866 done
12867done
12868lt_ac_max=0
12869lt_ac_count=0
12870# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12871# along with /bin/sed that truncates output.
12872for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012873 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012874 cat /dev/null > conftest.in
12875 lt_ac_count=0
12876 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12877 # Check for GNU sed and select it if it is found.
12878 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12879 lt_cv_path_SED=$lt_ac_sed
12880 break
12881 fi
12882 while true; do
12883 cat conftest.in conftest.in >conftest.tmp
12884 mv conftest.tmp conftest.in
12885 cp conftest.in conftest.nl
12886 echo >>conftest.nl
12887 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12888 cmp -s conftest.out conftest.nl || break
12889 # 10000 chars as input seems more than enough
12890 test $lt_ac_count -gt 10 && break
12891 lt_ac_count=`expr $lt_ac_count + 1`
12892 if test $lt_ac_count -gt $lt_ac_max; then
12893 lt_ac_max=$lt_ac_count
12894 lt_cv_path_SED=$lt_ac_sed
12895 fi
12896 done
12897done
12898
12899fi
12900
12901SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012902{ echo "$as_me:$LINENO: result: $SED" >&5
12903echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012904
12905
Reid Spencera773bd52006-08-04 18:18:08 +000012906# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012907if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012909else
12910 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012911fi
12912
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012913ac_prog=ld
12914if test "$GCC" = yes; then
12915 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012916 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12917echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012918 case $host in
12919 *-*-mingw*)
12920 # gcc leaves a trailing carriage return which upsets mingw
12921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12922 *)
12923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12924 esac
12925 case $ac_prog in
12926 # Accept absolute paths.
12927 [\\/]* | ?:[\\/]*)
12928 re_direlt='/[^/][^/]*/\.\./'
12929 # Canonicalize the pathname of ld
12930 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12932 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12933 done
12934 test -z "$LD" && LD="$ac_prog"
12935 ;;
12936 "")
12937 # If it fails, then pretend we aren't using GCC.
12938 ac_prog=ld
12939 ;;
12940 *)
12941 # If it is relative, then search for the first ld in PATH.
12942 with_gnu_ld=unknown
12943 ;;
12944 esac
12945elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012946 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12947echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012948else
Reid Spencera773bd52006-08-04 18:18:08 +000012949 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12950echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012951fi
12952if test "${lt_cv_path_LD+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 if test -z "$LD"; then
12956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12957 for ac_dir in $PATH; do
12958 IFS="$lt_save_ifs"
12959 test -z "$ac_dir" && ac_dir=.
12960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12961 lt_cv_path_LD="$ac_dir/$ac_prog"
12962 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012963 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012964 # Break only if it was the GNU/non-GNU ld that we prefer.
12965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12966 *GNU* | *'with BFD'*)
12967 test "$with_gnu_ld" != no && break
12968 ;;
12969 *)
12970 test "$with_gnu_ld" != yes && break
12971 ;;
12972 esac
12973 fi
12974 done
12975 IFS="$lt_save_ifs"
12976else
12977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12978fi
12979fi
12980
12981LD="$lt_cv_path_LD"
12982if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 { echo "$as_me:$LINENO: result: $LD" >&5
12984echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012985else
Reid Spencera773bd52006-08-04 18:18:08 +000012986 { echo "$as_me:$LINENO: result: no" >&5
12987echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012988fi
12989test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12990echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12991 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012992{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12993echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012994if test "${lt_cv_prog_gnu_ld+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
Reid Spencera773bd52006-08-04 18:18:08 +000012997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012998case `$LD -v 2>&1 </dev/null` in
12999*GNU* | *'with BFD'*)
13000 lt_cv_prog_gnu_ld=yes
13001 ;;
13002*)
13003 lt_cv_prog_gnu_ld=no
13004 ;;
13005esac
13006fi
Reid Spencera773bd52006-08-04 18:18:08 +000013007{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13008echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013009with_gnu_ld=$lt_cv_prog_gnu_ld
13010
13011
Reid Spencera773bd52006-08-04 18:18:08 +000013012{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13013echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013014if test "${lt_cv_ld_reload_flag+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016else
13017 lt_cv_ld_reload_flag='-r'
13018fi
Reid Spencera773bd52006-08-04 18:18:08 +000013019{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13020echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013021reload_flag=$lt_cv_ld_reload_flag
13022case $reload_flag in
13023"" | " "*) ;;
13024*) reload_flag=" $reload_flag" ;;
13025esac
13026reload_cmds='$LD$reload_flag -o $output$reload_objs'
13027case $host_os in
13028 darwin*)
13029 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000013030 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013031 else
13032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13033 fi
13034 ;;
13035esac
13036
Reid Spencera773bd52006-08-04 18:18:08 +000013037{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13038echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013039if test "${lt_cv_deplibs_check_method+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 lt_cv_file_magic_cmd='$MAGIC_CMD'
13043lt_cv_file_magic_test_file=
13044lt_cv_deplibs_check_method='unknown'
13045# Need to set the preceding variable on all platforms that support
13046# interlibrary dependencies.
13047# 'none' -- dependencies not supported.
13048# `unknown' -- same as none, but documents that we really don't know.
13049# 'pass_all' -- all dependencies passed with no checks.
13050# 'test_compile' -- check by making test program.
13051# 'file_magic [[regex]]' -- check by looking for files in library path
13052# which responds to the $file_magic_cmd with a given extended regex.
13053# If you have `file' or equivalent on your system and you're not sure
13054# whether `pass_all' will *always* work, you probably want this one.
13055
13056case $host_os in
13057aix4* | aix5*)
13058 lt_cv_deplibs_check_method=pass_all
13059 ;;
13060
13061beos*)
13062 lt_cv_deplibs_check_method=pass_all
13063 ;;
13064
13065bsdi[45]*)
13066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13067 lt_cv_file_magic_cmd='/usr/bin/file -L'
13068 lt_cv_file_magic_test_file=/shlib/libc.so
13069 ;;
13070
13071cygwin*)
13072 # func_win32_libid is a shell function defined in ltmain.sh
13073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13074 lt_cv_file_magic_cmd='func_win32_libid'
13075 ;;
13076
13077mingw* | pw32*)
13078 # Base MSYS/MinGW do not provide the 'file' command needed by
13079 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13080 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13081 lt_cv_file_magic_cmd='$OBJDUMP -f'
13082 ;;
13083
13084darwin* | rhapsody*)
13085 lt_cv_deplibs_check_method=pass_all
13086 ;;
13087
Reid Spencera773bd52006-08-04 18:18:08 +000013088freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013089 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13090 case $host_cpu in
13091 i*86 )
13092 # Not sure whether the presence of OpenBSD here was a mistake.
13093 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000013094 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 +000013095 lt_cv_file_magic_cmd=/usr/bin/file
13096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13097 ;;
13098 esac
13099 else
13100 lt_cv_deplibs_check_method=pass_all
13101 fi
13102 ;;
13103
13104gnu*)
13105 lt_cv_deplibs_check_method=pass_all
13106 ;;
13107
13108hpux10.20* | hpux11*)
13109 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013110 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013111 ia64*)
13112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13113 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13114 ;;
13115 hppa*64*)
13116 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]'
13117 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13118 ;;
13119 *)
13120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13121 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13122 ;;
13123 esac
13124 ;;
13125
Reid Spencera773bd52006-08-04 18:18:08 +000013126interix3*)
13127 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13129 ;;
13130
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013131irix5* | irix6* | nonstopux*)
13132 case $LD in
13133 *-32|*"-32 ") libmagic=32-bit;;
13134 *-n32|*"-n32 ") libmagic=N32;;
13135 *-64|*"-64 ") libmagic=64-bit;;
13136 *) libmagic=never-match;;
13137 esac
13138 lt_cv_deplibs_check_method=pass_all
13139 ;;
13140
13141# This must be Linux ELF.
13142linux*)
13143 lt_cv_deplibs_check_method=pass_all
13144 ;;
13145
13146netbsd*)
13147 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13149 else
13150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13151 fi
13152 ;;
13153
13154newos6*)
13155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13156 lt_cv_file_magic_cmd=/usr/bin/file
13157 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13158 ;;
13159
13160nto-qnx*)
13161 lt_cv_deplibs_check_method=unknown
13162 ;;
13163
13164openbsd*)
13165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13167 else
13168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13169 fi
13170 ;;
13171
13172osf3* | osf4* | osf5*)
13173 lt_cv_deplibs_check_method=pass_all
13174 ;;
13175
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013176solaris*)
13177 lt_cv_deplibs_check_method=pass_all
13178 ;;
13179
Reid Spencera773bd52006-08-04 18:18:08 +000013180sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013181 case $host_vendor in
13182 motorola)
13183 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]'
13184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13185 ;;
13186 ncr)
13187 lt_cv_deplibs_check_method=pass_all
13188 ;;
13189 sequent)
13190 lt_cv_file_magic_cmd='/bin/file'
13191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13192 ;;
13193 sni)
13194 lt_cv_file_magic_cmd='/bin/file'
13195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13196 lt_cv_file_magic_test_file=/lib/libc.so
13197 ;;
13198 siemens)
13199 lt_cv_deplibs_check_method=pass_all
13200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013201 pc)
13202 lt_cv_deplibs_check_method=pass_all
13203 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013204 esac
13205 ;;
13206
Reid Spencera773bd52006-08-04 18:18:08 +000013207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013208 lt_cv_deplibs_check_method=pass_all
13209 ;;
13210esac
13211
13212fi
Reid Spencera773bd52006-08-04 18:18:08 +000013213{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13214echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013215file_magic_cmd=$lt_cv_file_magic_cmd
13216deplibs_check_method=$lt_cv_deplibs_check_method
13217test -z "$deplibs_check_method" && deplibs_check_method=unknown
13218
13219
13220
13221# If no C compiler was specified, use CC.
13222LTCC=${LTCC-"$CC"}
13223
Reid Spencera773bd52006-08-04 18:18:08 +000013224# If no C compiler flags were specified, use CFLAGS.
13225LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13226
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013227# Allow CC to be a program name with arguments.
13228compiler=$CC
13229
Reid Spencera773bd52006-08-04 18:18:08 +000013230# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013231if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013232 enableval=$enable_libtool_lock;
13233fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013234
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13236
13237# Some flags need to be propagated to the compiler or linker for good
13238# libtool support.
13239case $host in
13240ia64-*-hpux*)
13241 # Find out which ABI we are using.
13242 echo 'int i;' > conftest.$ac_ext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; then
13248 case `/usr/bin/file conftest.$ac_objext` in
13249 *ELF-32*)
13250 HPUX_IA64_MODE="32"
13251 ;;
13252 *ELF-64*)
13253 HPUX_IA64_MODE="64"
13254 ;;
13255 esac
13256 fi
13257 rm -rf conftest*
13258 ;;
13259*-*-irix6*)
13260 # Find out which ABI we are using.
Rafael Espindola420d23c2009-11-16 19:46:55 +000013261 echo '#line 13261 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; then
13267 if test "$lt_cv_prog_gnu_ld" = yes; then
13268 case `/usr/bin/file conftest.$ac_objext` in
13269 *32-bit*)
13270 LD="${LD-ld} -melf32bsmip"
13271 ;;
13272 *N32*)
13273 LD="${LD-ld} -melf32bmipn32"
13274 ;;
13275 *64-bit*)
13276 LD="${LD-ld} -melf64bmip"
13277 ;;
13278 esac
13279 else
13280 case `/usr/bin/file conftest.$ac_objext` in
13281 *32-bit*)
13282 LD="${LD-ld} -32"
13283 ;;
13284 *N32*)
13285 LD="${LD-ld} -n32"
13286 ;;
13287 *64-bit*)
13288 LD="${LD-ld} -64"
13289 ;;
13290 esac
13291 fi
13292 fi
13293 rm -rf conftest*
13294 ;;
13295
13296x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13297 # Find out which ABI we are using.
13298 echo 'int i;' > conftest.$ac_ext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013304 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013305 *32-bit*)
13306 case $host in
13307 x86_64-*linux*)
13308 LD="${LD-ld} -m elf_i386"
13309 ;;
13310 ppc64-*linux*|powerpc64-*linux*)
13311 LD="${LD-ld} -m elf32ppclinux"
13312 ;;
13313 s390x-*linux*)
13314 LD="${LD-ld} -m elf_s390"
13315 ;;
13316 sparc64-*linux*)
13317 LD="${LD-ld} -m elf32_sparc"
13318 ;;
13319 esac
13320 ;;
13321 *64-bit*)
13322 case $host in
13323 x86_64-*linux*)
13324 LD="${LD-ld} -m elf_x86_64"
13325 ;;
13326 ppc*-*linux*|powerpc*-*linux*)
13327 LD="${LD-ld} -m elf64ppc"
13328 ;;
13329 s390*-*linux*)
13330 LD="${LD-ld} -m elf64_s390"
13331 ;;
13332 sparc*-*linux*)
13333 LD="${LD-ld} -m elf64_sparc"
13334 ;;
13335 esac
13336 ;;
13337 esac
13338 fi
13339 rm -rf conftest*
13340 ;;
13341
13342*-*-sco3.2v5*)
13343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13344 SAVE_CFLAGS="$CFLAGS"
13345 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013346 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13347echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013348if test "${lt_cv_cc_needs_belf+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350else
13351 ac_ext=c
13352ac_cpp='$CPP $CPPFLAGS'
13353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13355ac_compiler_gnu=$ac_cv_c_compiler_gnu
13356
13357 cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
13363
Reid Spencera773bd52006-08-04 18:18:08 +000013364int
13365main ()
13366{
13367
13368 ;
13369 return 0;
13370}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013371_ACEOF
13372rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013373if { (ac_try="$ac_link"
13374case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13387 { (case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_try") 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_try") 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013406 lt_cv_cc_needs_belf=yes
13407else
13408 echo "$as_me: failed program was:" >&5
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013412fi
Reid Spencera773bd52006-08-04 18:18:08 +000013413
Bill Wendlingebcceee2009-04-18 11:20:33 +000013414rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013415 conftest$ac_exeext conftest.$ac_ext
13416 ac_ext=c
13417ac_cpp='$CPP $CPPFLAGS'
13418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13420ac_compiler_gnu=$ac_cv_c_compiler_gnu
13421
13422fi
Reid Spencera773bd52006-08-04 18:18:08 +000013423{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13424echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013425 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13427 CFLAGS="$SAVE_CFLAGS"
13428 fi
13429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013430sparc*-*solaris*)
13431 # Find out which ABI we are using.
13432 echo 'int i;' > conftest.$ac_ext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; then
13438 case `/usr/bin/file conftest.o` in
13439 *64-bit*)
13440 case $lt_cv_prog_gnu_ld in
13441 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13442 *) LD="${LD-ld} -64" ;;
13443 esac
13444 ;;
13445 esac
13446 fi
13447 rm -rf conftest*
13448 ;;
13449
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013450
13451esac
13452
13453need_locks="$enable_libtool_lock"
13454
13455
Reid Spencer2706f8c2004-09-19 23:53:36 +000013456
13457
13458if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13459 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13460 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013461 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013462ac_cpp='$CXXCPP $CPPFLAGS'
13463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013466{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13467echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013468if test -z "$CXXCPP"; then
13469 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
John Criswell47fdd832003-07-14 16:52:07 +000013472 # Double quotes because CXXCPP needs to be expanded
13473 for CXXCPP in "$CXX -E" "/lib/cpp"
13474 do
13475 ac_preproc_ok=false
13476for ac_cxx_preproc_warn_flag in '' yes
13477do
13478 # Use a header file that comes with gcc, so configuring glibc
13479 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13481 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013482 # On the NeXT, cc -E runs the code through the compiler's parser,
13483 # not just through cpp. "Syntax error" is here to catch this case.
13484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
13490#ifdef __STDC__
13491# include <limits.h>
13492#else
13493# include <assert.h>
13494#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013495 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013497if { (ac_try="$ac_cpp conftest.$ac_ext"
13498case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501esac
13502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013504 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013505 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013509 (exit $ac_status); } >/dev/null; then
13510 if test -s conftest.err; then
13511 ac_cpp_err=$ac_cxx_preproc_warn_flag
13512 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13513 else
13514 ac_cpp_err=
13515 fi
13516else
13517 ac_cpp_err=yes
13518fi
13519if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013520 :
13521else
13522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013523sed 's/^/| /' conftest.$ac_ext >&5
13524
John Criswell47fdd832003-07-14 16:52:07 +000013525 # Broken: fails on valid input.
13526continue
13527fi
Reid Spencera773bd52006-08-04 18:18:08 +000013528
John Criswell47fdd832003-07-14 16:52:07 +000013529rm -f conftest.err conftest.$ac_ext
13530
Reid Spencera773bd52006-08-04 18:18:08 +000013531 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013532 # can be detected and how.
13533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013539#include <ac_nonexistent.h>
13540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013541if { (ac_try="$ac_cpp conftest.$ac_ext"
13542case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545esac
13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013548 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013549 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013553 (exit $ac_status); } >/dev/null; then
13554 if test -s conftest.err; then
13555 ac_cpp_err=$ac_cxx_preproc_warn_flag
13556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13557 else
13558 ac_cpp_err=
13559 fi
13560else
13561 ac_cpp_err=yes
13562fi
13563if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013564 # Broken: success on invalid input.
13565continue
13566else
13567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013568sed 's/^/| /' conftest.$ac_ext >&5
13569
John Criswell47fdd832003-07-14 16:52:07 +000013570 # Passes both tests.
13571ac_preproc_ok=:
13572break
13573fi
Reid Spencera773bd52006-08-04 18:18:08 +000013574
John Criswell47fdd832003-07-14 16:52:07 +000013575rm -f conftest.err conftest.$ac_ext
13576
13577done
13578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13579rm -f conftest.err conftest.$ac_ext
13580if $ac_preproc_ok; then
13581 break
John Criswell7a73b802003-06-30 21:59:07 +000013582fi
13583
John Criswell47fdd832003-07-14 16:52:07 +000013584 done
13585 ac_cv_prog_CXXCPP=$CXXCPP
13586
13587fi
13588 CXXCPP=$ac_cv_prog_CXXCPP
13589else
13590 ac_cv_prog_CXXCPP=$CXXCPP
13591fi
Reid Spencera773bd52006-08-04 18:18:08 +000013592{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13593echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013594ac_preproc_ok=false
13595for ac_cxx_preproc_warn_flag in '' yes
13596do
13597 # Use a header file that comes with gcc, so configuring glibc
13598 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013601 # On the NeXT, cc -E runs the code through the compiler's parser,
13602 # not just through cpp. "Syntax error" is here to catch this case.
13603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609#ifdef __STDC__
13610# include <limits.h>
13611#else
13612# include <assert.h>
13613#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013614 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013615_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013616if { (ac_try="$ac_cpp conftest.$ac_ext"
13617case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013623 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013624 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013628 (exit $ac_status); } >/dev/null; then
13629 if test -s conftest.err; then
13630 ac_cpp_err=$ac_cxx_preproc_warn_flag
13631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13632 else
13633 ac_cpp_err=
13634 fi
13635else
13636 ac_cpp_err=yes
13637fi
13638if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013639 :
13640else
13641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013642sed 's/^/| /' conftest.$ac_ext >&5
13643
John Criswell47fdd832003-07-14 16:52:07 +000013644 # Broken: fails on valid input.
13645continue
13646fi
Reid Spencera773bd52006-08-04 18:18:08 +000013647
John Criswell47fdd832003-07-14 16:52:07 +000013648rm -f conftest.err conftest.$ac_ext
13649
Reid Spencera773bd52006-08-04 18:18:08 +000013650 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013651 # can be detected and how.
13652 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013653/* confdefs.h. */
13654_ACEOF
13655cat confdefs.h >>conftest.$ac_ext
13656cat >>conftest.$ac_ext <<_ACEOF
13657/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013658#include <ac_nonexistent.h>
13659_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013660if { (ac_try="$ac_cpp conftest.$ac_ext"
13661case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013667 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013668 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013672 (exit $ac_status); } >/dev/null; then
13673 if test -s conftest.err; then
13674 ac_cpp_err=$ac_cxx_preproc_warn_flag
13675 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13676 else
13677 ac_cpp_err=
13678 fi
13679else
13680 ac_cpp_err=yes
13681fi
13682if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013683 # Broken: success on invalid input.
13684continue
13685else
13686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013687sed 's/^/| /' conftest.$ac_ext >&5
13688
John Criswell47fdd832003-07-14 16:52:07 +000013689 # Passes both tests.
13690ac_preproc_ok=:
13691break
13692fi
Reid Spencera773bd52006-08-04 18:18:08 +000013693
John Criswell47fdd832003-07-14 16:52:07 +000013694rm -f conftest.err conftest.$ac_ext
13695
13696done
13697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13698rm -f conftest.err conftest.$ac_ext
13699if $ac_preproc_ok; then
13700 :
13701else
John Criswell0c38eaf2003-09-10 15:17:25 +000013702 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13703See \`config.log' for more details." >&5
13704echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13705See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013706 { (exit 1); exit 1; }; }
13707fi
13708
Reid Spencera773bd52006-08-04 18:18:08 +000013709ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013710ac_cpp='$CXXCPP $CPPFLAGS'
13711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13714
Reid Spencer2706f8c2004-09-19 23:53:36 +000013715fi
13716
John Criswell47fdd832003-07-14 16:52:07 +000013717
13718ac_ext=f
13719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13722if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013723 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 +000013724 do
13725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013729if test "${ac_cv_prog_F77+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731else
13732 if test -n "$F77"; then
13733 ac_cv_prog_F77="$F77" # Let the user override the test.
13734else
13735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736for as_dir in $PATH
13737do
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013741 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 +000013742 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 break 2
13745 fi
13746done
13747done
Reid Spencera773bd52006-08-04 18:18:08 +000013748IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013749
13750fi
13751fi
13752F77=$ac_cv_prog_F77
13753if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013754 { echo "$as_me:$LINENO: result: $F77" >&5
13755echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013756else
Reid Spencera773bd52006-08-04 18:18:08 +000013757 { echo "$as_me:$LINENO: result: no" >&5
13758echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013759fi
13760
Reid Spencera773bd52006-08-04 18:18:08 +000013761
John Criswell47fdd832003-07-14 16:52:07 +000013762 test -n "$F77" && break
13763 done
13764fi
13765if test -z "$F77"; then
13766 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013767 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 +000013768do
13769 # Extract the first word of "$ac_prog", so it can be a program name with args.
13770set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013773if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775else
13776 if test -n "$ac_ct_F77"; then
13777 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13778else
13779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013785 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 +000013786 ac_cv_prog_ac_ct_F77="$ac_prog"
13787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13789 fi
13790done
13791done
Reid Spencera773bd52006-08-04 18:18:08 +000013792IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013793
13794fi
13795fi
13796ac_ct_F77=$ac_cv_prog_ac_ct_F77
13797if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013798 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13799echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013800else
Reid Spencera773bd52006-08-04 18:18:08 +000013801 { echo "$as_me:$LINENO: result: no" >&5
13802echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013803fi
13804
Reid Spencera773bd52006-08-04 18:18:08 +000013805
John Criswell47fdd832003-07-14 16:52:07 +000013806 test -n "$ac_ct_F77" && break
13807done
13808
Reid Spencera773bd52006-08-04 18:18:08 +000013809 if test "x$ac_ct_F77" = x; then
13810 F77=""
13811 else
13812 case $cross_compiling:$ac_tool_warned in
13813yes:)
13814{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13815whose name does not start with the host triplet. If you think this
13816configuration is useful to you, please write to autoconf@gnu.org." >&5
13817echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13818whose name does not start with the host triplet. If you think this
13819configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13820ac_tool_warned=yes ;;
13821esac
13822 F77=$ac_ct_F77
13823 fi
John Criswell47fdd832003-07-14 16:52:07 +000013824fi
13825
13826
13827# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013828echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013829ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013830{ (ac_try="$ac_compiler --version >&5"
13831case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834esac
13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013840{ (ac_try="$ac_compiler -v >&5"
13841case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844esac
13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013850{ (ac_try="$ac_compiler -V >&5"
13851case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854esac
13855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013861
13862# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013863# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013864ac_save_ext=$ac_ext
13865ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013866{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13867echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013868if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871 cat >conftest.$ac_ext <<_ACEOF
13872 program main
13873#ifndef __GNUC__
13874 choke me
13875#endif
13876
13877 end
13878_ACEOF
13879rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013880if { (ac_try="$ac_compile"
13881case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013887 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897esac
13898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907esac
13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013913 ac_compiler_gnu=yes
13914else
13915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013916sed 's/^/| /' conftest.$ac_ext >&5
13917
Reid Spencera773bd52006-08-04 18:18:08 +000013918 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013919fi
Reid Spencera773bd52006-08-04 18:18:08 +000013920
13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013922ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13923
13924fi
Reid Spencera773bd52006-08-04 18:18:08 +000013925{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13926echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013927ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013928ac_test_FFLAGS=${FFLAGS+set}
13929ac_save_FFLAGS=$FFLAGS
13930FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013931{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13932echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013933if test "${ac_cv_prog_f77_g+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936 FFLAGS=-g
13937cat >conftest.$ac_ext <<_ACEOF
13938 program main
13939
13940 end
13941_ACEOF
13942rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013943if { (ac_try="$ac_compile"
13944case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947esac
13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013950 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013955 (exit $ac_status); } &&
13956 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013976 ac_cv_prog_f77_g=yes
13977else
13978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013979sed 's/^/| /' conftest.$ac_ext >&5
13980
Reid Spencera773bd52006-08-04 18:18:08 +000013981 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013982fi
Reid Spencera773bd52006-08-04 18:18:08 +000013983
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013985
13986fi
Reid Spencera773bd52006-08-04 18:18:08 +000013987{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13988echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013989if test "$ac_test_FFLAGS" = set; then
13990 FFLAGS=$ac_save_FFLAGS
13991elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013992 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013993 FFLAGS="-g -O2"
13994 else
13995 FFLAGS="-g"
13996 fi
13997else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013998 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013999 FFLAGS="-O2"
14000 else
14001 FFLAGS=
14002 fi
14003fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014004
14005G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000014006ac_ext=c
14007ac_cpp='$CPP $CPPFLAGS'
14008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011
14012
14013
14014# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14015
14016# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000014017{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14018echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014019if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000014023 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000014024
14025 case $build_os in
14026 msdosdjgpp*)
14027 # On DJGPP, this test can blow up pretty badly due to problems in libc
14028 # (any single argument exceeding 2000 bytes causes a buffer overrun
14029 # during glob expansion). Even if it were fixed, the result of this
14030 # check would be larger than it should be.
14031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14032 ;;
14033
14034 gnu*)
14035 # Under GNU Hurd, this test is not required because there is
14036 # no limit to the length of command line arguments.
14037 # Libtool will interpret -1 as no limit whatsoever
14038 lt_cv_sys_max_cmd_len=-1;
14039 ;;
14040
14041 cygwin* | mingw*)
14042 # On Win9x/ME, this test blows up -- it succeeds, but takes
14043 # about 5 minutes as the teststring grows exponentially.
14044 # Worse, since 9x/ME are not pre-emptively multitasking,
14045 # you end up with a "frozen" computer, even though with patience
14046 # the test eventually succeeds (with a max line length of 256k).
14047 # Instead, let's just punt: use the minimum linelength reported by
14048 # all of the supported platforms: 8192 (on NT/2K/XP).
14049 lt_cv_sys_max_cmd_len=8192;
14050 ;;
14051
Reid Spencer2706f8c2004-09-19 23:53:36 +000014052 amigaos*)
14053 # On AmigaOS with pdksh, this test takes hours, literally.
14054 # So we just punt and use a minimum line length of 8192.
14055 lt_cv_sys_max_cmd_len=8192;
14056 ;;
14057
Reid Spencera773bd52006-08-04 18:18:08 +000014058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014059 # This has been around since 386BSD, at least. Likely further.
14060 if test -x /sbin/sysctl; then
14061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14062 elif test -x /usr/sbin/sysctl; then
14063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14064 else
Reid Spencera773bd52006-08-04 18:18:08 +000014065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000014066 fi
14067 # And add a safety zone
14068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000014069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014070 ;;
14071
Reid Spencera773bd52006-08-04 18:18:08 +000014072 interix*)
14073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14074 lt_cv_sys_max_cmd_len=196608
14075 ;;
14076
14077 osf*)
14078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14080 # nice to cause kernel panics so lets avoid the loop below.
14081 # First set a reasonable default.
14082 lt_cv_sys_max_cmd_len=16384
14083 #
14084 if test -x /sbin/sysconfig; then
14085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14087 esac
14088 fi
14089 ;;
14090 sco3.2v5*)
14091 lt_cv_sys_max_cmd_len=102400
14092 ;;
14093 sysv5* | sco5v6* | sysv4.2uw2*)
14094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14095 if test -n "$kargmax"; then
14096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14097 else
14098 lt_cv_sys_max_cmd_len=32768
14099 fi
14100 ;;
14101 *)
John Criswell47fdd832003-07-14 16:52:07 +000014102 # If test is not a shell built-in, we'll probably end up computing a
14103 # maximum length that is only half of the actual maximum length, but
14104 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14106 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14107 = "XX$teststring") >/dev/null 2>&1 &&
14108 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014109 lt_cv_sys_max_cmd_len=$new_result &&
14110 test $i != 17 # 1/2 MB should be enough
14111 do
14112 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014113 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014114 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014115 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014116 # Add a significant safety factor because C++ compilers can tack on massive
14117 # amounts of additional arguments before passing them to the linker.
14118 # It appears as though 1/2 is a usable value.
14119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14120 ;;
14121 esac
14122
14123fi
14124
14125if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014126 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14127echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014128else
Reid Spencera773bd52006-08-04 18:18:08 +000014129 { echo "$as_me:$LINENO: result: none" >&5
14130echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014131fi
14132
14133
14134
14135
14136# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014137{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14138echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014139if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142
14143# These are sane defaults that work on at least a few old systems.
14144# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14145
14146# Character class describing NM global symbol codes.
14147symcode='[BCDEGRST]'
14148
14149# Regexp to match symbols that can be accessed directly from C.
14150sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14151
John Criswell47fdd832003-07-14 16:52:07 +000014152# Transform an extracted symbol line into a proper C declaration
14153lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14154
14155# Transform an extracted symbol line into symbol name and symbol address
14156lt_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'"
14157
14158# Define system-specific variables.
14159case $host_os in
14160aix*)
14161 symcode='[BCDT]'
14162 ;;
14163cygwin* | mingw* | pw32*)
14164 symcode='[ABCDGISTW]'
14165 ;;
14166hpux*) # Its linker distinguishes data from code symbols
14167 if test "$host_cpu" = ia64; then
14168 symcode='[ABCDEGRST]'
14169 fi
14170 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14171 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'"
14172 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014173linux*)
14174 if test "$host_cpu" = ia64; then
14175 symcode='[ABCDGIRSTW]'
14176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177 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'"
14178 fi
14179 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014180irix* | nonstopux*)
14181 symcode='[BCDEGRST]'
14182 ;;
14183osf*)
14184 symcode='[BCDEGQRST]'
14185 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014186solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014187 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014188 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014189sco3.2v5*)
14190 symcode='[DT]'
14191 ;;
14192sysv4.2uw2*)
14193 symcode='[DT]'
14194 ;;
14195sysv5* | sco5v6* | unixware* | OpenUNIX*)
14196 symcode='[ABDT]'
14197 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014198sysv4)
14199 symcode='[DFNSTU]'
14200 ;;
14201esac
14202
14203# Handle CRLF in mingw tool chain
14204opt_cr=
14205case $build_os in
14206mingw*)
14207 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14208 ;;
14209esac
14210
14211# If we're using GNU nm, then use its standard symbol codes.
14212case `$NM -V 2>&1` in
14213*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014214 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014215esac
14216
14217# Try without a prefix undercore, then with it.
14218for ac_symprfx in "" "_"; do
14219
Reid Spencera773bd52006-08-04 18:18:08 +000014220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14221 symxfrm="\\1 $ac_symprfx\\2 \\2"
14222
John Criswell47fdd832003-07-14 16:52:07 +000014223 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014224 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 +000014225
14226 # Check to see that the pipe works correctly.
14227 pipe_works=no
14228
14229 rm -f conftest*
14230 cat > conftest.$ac_ext <<EOF
14231#ifdef __cplusplus
14232extern "C" {
14233#endif
14234char nm_test_var;
14235void nm_test_func(){}
14236#ifdef __cplusplus
14237}
14238#endif
14239int main(){nm_test_var='a';nm_test_func();return(0);}
14240EOF
14241
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; then
14247 # Now try to grab the symbols.
14248 nlist=conftest.nm
14249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && test -s "$nlist"; then
14254 # Try sorting and uniquifying the output.
14255 if sort "$nlist" | uniq > "$nlist"T; then
14256 mv -f "$nlist"T "$nlist"
14257 else
14258 rm -f "$nlist"T
14259 fi
14260
14261 # Make sure that we snagged all the symbols we need.
14262 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14263 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14264 cat <<EOF > conftest.$ac_ext
14265#ifdef __cplusplus
14266extern "C" {
14267#endif
14268
14269EOF
14270 # Now generate the symbol file.
14271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14272
14273 cat <<EOF >> conftest.$ac_ext
14274#if defined (__STDC__) && __STDC__
14275# define lt_ptr_t void *
14276#else
14277# define lt_ptr_t char *
14278# define const
14279#endif
14280
14281/* The mapping between symbol names and symbols. */
14282const struct {
14283 const char *name;
14284 lt_ptr_t address;
14285}
14286lt_preloaded_symbols[] =
14287{
14288EOF
14289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14290 cat <<\EOF >> conftest.$ac_ext
14291 {0, (lt_ptr_t) 0}
14292};
14293
14294#ifdef __cplusplus
14295}
14296#endif
14297EOF
14298 # Now try linking the two files.
14299 mv conftest.$ac_objext conftstm.$ac_objext
14300 lt_save_LIBS="$LIBS"
14301 lt_save_CFLAGS="$CFLAGS"
14302 LIBS="conftstm.$ac_objext"
14303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14305 (eval $ac_link) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14309 pipe_works=yes
14310 fi
14311 LIBS="$lt_save_LIBS"
14312 CFLAGS="$lt_save_CFLAGS"
14313 else
14314 echo "cannot find nm_test_func in $nlist" >&5
14315 fi
14316 else
14317 echo "cannot find nm_test_var in $nlist" >&5
14318 fi
14319 else
14320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14321 fi
14322 else
14323 echo "$progname: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 fi
14326 rm -f conftest* conftst*
14327
14328 # Do not use the global_symbol_pipe unless it works.
14329 if test "$pipe_works" = yes; then
14330 break
14331 else
14332 lt_cv_sys_global_symbol_pipe=
14333 fi
14334done
14335
14336fi
14337
14338if test -z "$lt_cv_sys_global_symbol_pipe"; then
14339 lt_cv_sys_global_symbol_to_cdecl=
14340fi
14341if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014342 { echo "$as_me:$LINENO: result: failed" >&5
14343echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014344else
Reid Spencera773bd52006-08-04 18:18:08 +000014345 { echo "$as_me:$LINENO: result: ok" >&5
14346echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014347fi
14348
Reid Spencera773bd52006-08-04 18:18:08 +000014349{ echo "$as_me:$LINENO: checking for objdir" >&5
14350echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014351if test "${lt_cv_objdir+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354 rm -f .libs 2>/dev/null
14355mkdir .libs 2>/dev/null
14356if test -d .libs; then
14357 lt_cv_objdir=.libs
14358else
14359 # MS-DOS does not allow filenames that begin with a dot.
14360 lt_cv_objdir=_libs
14361fi
14362rmdir .libs 2>/dev/null
14363fi
Reid Spencera773bd52006-08-04 18:18:08 +000014364{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14365echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014366objdir=$lt_cv_objdir
14367
14368
14369
14370
14371
14372case $host_os in
14373aix3*)
14374 # AIX sometimes has problems with the GCC collect2 program. For some
14375 # reason, if we set the COLLECT_NAMES environment variable, the problems
14376 # vanish in a puff of smoke.
14377 if test "X${COLLECT_NAMES+set}" != Xset; then
14378 COLLECT_NAMES=
14379 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014380 fi
14381 ;;
14382esac
14383
John Criswell47fdd832003-07-14 16:52:07 +000014384# Sed substitution that helps us do robust quoting. It backslashifies
14385# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014386Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014387sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14388
14389# Same as above, but do not quote variable references.
14390double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14391
14392# Sed substitution to delay expansion of an escaped shell variable in a
14393# double_quote_subst'ed string.
14394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14395
14396# Sed substitution to avoid accidental globbing in evaled expressions
14397no_glob_subst='s/\*/\\\*/g'
14398
14399# Constants:
14400rm="rm -f"
14401
14402# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014403default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014404can_build_shared=yes
14405
Reid Spencera773bd52006-08-04 18:18:08 +000014406# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014407# which needs '.lib').
14408libext=a
14409ltmain="$ac_aux_dir/ltmain.sh"
14410ofile="$default_ofile"
14411with_gnu_ld="$lt_cv_prog_gnu_ld"
14412
14413if test -n "$ac_tool_prefix"; then
14414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14415set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014418if test "${ac_cv_prog_AR+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420else
14421 if test -n "$AR"; then
14422 ac_cv_prog_AR="$AR" # Let the user override the test.
14423else
14424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425for as_dir in $PATH
14426do
14427 IFS=$as_save_IFS
14428 test -z "$as_dir" && as_dir=.
14429 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014430 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 +000014431 ac_cv_prog_AR="${ac_tool_prefix}ar"
14432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14433 break 2
14434 fi
14435done
14436done
Reid Spencera773bd52006-08-04 18:18:08 +000014437IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014438
14439fi
14440fi
14441AR=$ac_cv_prog_AR
14442if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014443 { echo "$as_me:$LINENO: result: $AR" >&5
14444echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014445else
Reid Spencera773bd52006-08-04 18:18:08 +000014446 { echo "$as_me:$LINENO: result: no" >&5
14447echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014448fi
14449
Reid Spencera773bd52006-08-04 18:18:08 +000014450
John Criswell47fdd832003-07-14 16:52:07 +000014451fi
14452if test -z "$ac_cv_prog_AR"; then
14453 ac_ct_AR=$AR
14454 # Extract the first word of "ar", so it can be a program name with args.
14455set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014458if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460else
14461 if test -n "$ac_ct_AR"; then
14462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14463else
14464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465for as_dir in $PATH
14466do
14467 IFS=$as_save_IFS
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014470 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 +000014471 ac_cv_prog_ac_ct_AR="ar"
14472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14473 break 2
14474 fi
14475done
14476done
Reid Spencera773bd52006-08-04 18:18:08 +000014477IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014478
John Criswell47fdd832003-07-14 16:52:07 +000014479fi
14480fi
14481ac_ct_AR=$ac_cv_prog_ac_ct_AR
14482if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014483 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14484echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014485else
Reid Spencera773bd52006-08-04 18:18:08 +000014486 { echo "$as_me:$LINENO: result: no" >&5
14487echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014488fi
14489
Reid Spencera773bd52006-08-04 18:18:08 +000014490 if test "x$ac_ct_AR" = x; then
14491 AR="false"
14492 else
14493 case $cross_compiling:$ac_tool_warned in
14494yes:)
14495{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14496whose name does not start with the host triplet. If you think this
14497configuration is useful to you, please write to autoconf@gnu.org." >&5
14498echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14499whose name does not start with the host triplet. If you think this
14500configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14501ac_tool_warned=yes ;;
14502esac
14503 AR=$ac_ct_AR
14504 fi
John Criswell47fdd832003-07-14 16:52:07 +000014505else
14506 AR="$ac_cv_prog_AR"
14507fi
14508
John Criswell7a73b802003-06-30 21:59:07 +000014509if test -n "$ac_tool_prefix"; then
14510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14511set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014514if test "${ac_cv_prog_RANLIB+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516else
14517 if test -n "$RANLIB"; then
14518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14519else
14520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521for as_dir in $PATH
14522do
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014526 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 +000014527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14529 break 2
14530 fi
14531done
14532done
Reid Spencera773bd52006-08-04 18:18:08 +000014533IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014534
14535fi
14536fi
14537RANLIB=$ac_cv_prog_RANLIB
14538if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014539 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14540echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014541else
Reid Spencera773bd52006-08-04 18:18:08 +000014542 { echo "$as_me:$LINENO: result: no" >&5
14543echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014544fi
14545
Reid Spencera773bd52006-08-04 18:18:08 +000014546
John Criswell7a73b802003-06-30 21:59:07 +000014547fi
14548if test -z "$ac_cv_prog_RANLIB"; then
14549 ac_ct_RANLIB=$RANLIB
14550 # Extract the first word of "ranlib", so it can be a program name with args.
14551set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014554if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 if test -n "$ac_ct_RANLIB"; then
14558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14559else
14560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561for as_dir in $PATH
14562do
14563 IFS=$as_save_IFS
14564 test -z "$as_dir" && as_dir=.
14565 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014566 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 +000014567 ac_cv_prog_ac_ct_RANLIB="ranlib"
14568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14569 break 2
14570 fi
14571done
14572done
Reid Spencera773bd52006-08-04 18:18:08 +000014573IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014574
John Criswell7a73b802003-06-30 21:59:07 +000014575fi
14576fi
14577ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14578if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014579 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14580echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014581else
Reid Spencera773bd52006-08-04 18:18:08 +000014582 { echo "$as_me:$LINENO: result: no" >&5
14583echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014584fi
14585
Reid Spencera773bd52006-08-04 18:18:08 +000014586 if test "x$ac_ct_RANLIB" = x; then
14587 RANLIB=":"
14588 else
14589 case $cross_compiling:$ac_tool_warned in
14590yes:)
14591{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14592whose name does not start with the host triplet. If you think this
14593configuration is useful to you, please write to autoconf@gnu.org." >&5
14594echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14595whose name does not start with the host triplet. If you think this
14596configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14597ac_tool_warned=yes ;;
14598esac
14599 RANLIB=$ac_ct_RANLIB
14600 fi
John Criswell7a73b802003-06-30 21:59:07 +000014601else
14602 RANLIB="$ac_cv_prog_RANLIB"
14603fi
14604
14605if test -n "$ac_tool_prefix"; then
14606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14607set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014610if test "${ac_cv_prog_STRIP+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613 if test -n "$STRIP"; then
14614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14615else
14616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617for as_dir in $PATH
14618do
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014622 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 +000014623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14626 fi
14627done
14628done
Reid Spencera773bd52006-08-04 18:18:08 +000014629IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014630
14631fi
14632fi
14633STRIP=$ac_cv_prog_STRIP
14634if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014635 { echo "$as_me:$LINENO: result: $STRIP" >&5
14636echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014637else
Reid Spencera773bd52006-08-04 18:18:08 +000014638 { echo "$as_me:$LINENO: result: no" >&5
14639echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014640fi
14641
Reid Spencera773bd52006-08-04 18:18:08 +000014642
John Criswell7a73b802003-06-30 21:59:07 +000014643fi
14644if test -z "$ac_cv_prog_STRIP"; then
14645 ac_ct_STRIP=$STRIP
14646 # Extract the first word of "strip", so it can be a program name with args.
14647set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014650if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652else
14653 if test -n "$ac_ct_STRIP"; then
14654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14655else
14656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657for as_dir in $PATH
14658do
14659 IFS=$as_save_IFS
14660 test -z "$as_dir" && as_dir=.
14661 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014662 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 +000014663 ac_cv_prog_ac_ct_STRIP="strip"
14664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14665 break 2
14666 fi
14667done
14668done
Reid Spencera773bd52006-08-04 18:18:08 +000014669IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014670
John Criswell7a73b802003-06-30 21:59:07 +000014671fi
14672fi
14673ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14674if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014675 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14676echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014677else
Reid Spencera773bd52006-08-04 18:18:08 +000014678 { echo "$as_me:$LINENO: result: no" >&5
14679echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014680fi
14681
Reid Spencera773bd52006-08-04 18:18:08 +000014682 if test "x$ac_ct_STRIP" = x; then
14683 STRIP=":"
14684 else
14685 case $cross_compiling:$ac_tool_warned in
14686yes:)
14687{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14688whose name does not start with the host triplet. If you think this
14689configuration is useful to you, please write to autoconf@gnu.org." >&5
14690echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14691whose name does not start with the host triplet. If you think this
14692configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14693ac_tool_warned=yes ;;
14694esac
14695 STRIP=$ac_ct_STRIP
14696 fi
John Criswell7a73b802003-06-30 21:59:07 +000014697else
14698 STRIP="$ac_cv_prog_STRIP"
14699fi
14700
14701
John Criswell7a73b802003-06-30 21:59:07 +000014702old_CC="$CC"
14703old_CFLAGS="$CFLAGS"
14704
14705# Set sane defaults for various variables
14706test -z "$AR" && AR=ar
14707test -z "$AR_FLAGS" && AR_FLAGS=cru
14708test -z "$AS" && AS=as
14709test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014710test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014711test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014712test -z "$DLLTOOL" && DLLTOOL=dlltool
14713test -z "$LD" && LD=ld
14714test -z "$LN_S" && LN_S="ln -s"
14715test -z "$MAGIC_CMD" && MAGIC_CMD=file
14716test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014717test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014718test -z "$OBJDUMP" && OBJDUMP=objdump
14719test -z "$RANLIB" && RANLIB=:
14720test -z "$STRIP" && STRIP=:
14721test -z "$ac_objext" && ac_objext=o
14722
John Criswell7a73b802003-06-30 21:59:07 +000014723# Determine commands to create old-style static archives.
14724old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14725old_postinstall_cmds='chmod 644 $oldlib'
14726old_postuninstall_cmds=
14727
14728if test -n "$RANLIB"; then
14729 case $host_os in
14730 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014732 ;;
14733 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014735 ;;
14736 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014738fi
14739
Reid Spencera773bd52006-08-04 18:18:08 +000014740for cc_temp in $compiler""; do
14741 case $cc_temp in
14742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14744 \-*) ;;
14745 *) break;;
14746 esac
14747done
14748cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14749
Reid Spencer2706f8c2004-09-19 23:53:36 +000014750
John Criswell47fdd832003-07-14 16:52:07 +000014751# Only perform the check for file, if the check method requires it
14752case $deplibs_check_method in
14753file_magic*)
14754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014755 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14756echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014757if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014759else
John Criswell47fdd832003-07-14 16:52:07 +000014760 case $MAGIC_CMD in
14761[\\/*] | ?:[\\/]*)
14762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14763 ;;
14764*)
14765 lt_save_MAGIC_CMD="$MAGIC_CMD"
14766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768 for ac_dir in $ac_dummy; do
14769 IFS="$lt_save_ifs"
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f $ac_dir/${ac_tool_prefix}file; then
14772 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14773 if test -n "$file_magic_test_file"; then
14774 case $deplibs_check_method in
14775 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779 $EGREP "$file_magic_regex" > /dev/null; then
14780 :
14781 else
14782 cat <<EOF 1>&2
14783
14784*** Warning: the command libtool uses to detect shared libraries,
14785*** $file_magic_cmd, produces output that libtool cannot recognize.
14786*** The result is that libtool may fail to recognize shared libraries
14787*** as such. This will affect the creation of libtool libraries that
14788*** depend on shared libraries, but programs linked with such libtool
14789*** libraries will work regardless of this problem. Nevertheless, you
14790*** may want to report the problem to your system manager and/or to
14791*** bug-libtool@gnu.org
14792
14793EOF
14794 fi ;;
14795 esac
14796 fi
14797 break
14798 fi
14799 done
14800 IFS="$lt_save_ifs"
14801 MAGIC_CMD="$lt_save_MAGIC_CMD"
14802 ;;
14803esac
John Criswell7a73b802003-06-30 21:59:07 +000014804fi
John Criswell7a73b802003-06-30 21:59:07 +000014805
John Criswell47fdd832003-07-14 16:52:07 +000014806MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14807if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014808 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14809echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014810else
Reid Spencera773bd52006-08-04 18:18:08 +000014811 { echo "$as_me:$LINENO: result: no" >&5
14812echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014813fi
John Criswell7a73b802003-06-30 21:59:07 +000014814
John Criswell47fdd832003-07-14 16:52:07 +000014815if test -z "$lt_cv_path_MAGIC_CMD"; then
14816 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014817 { echo "$as_me:$LINENO: checking for file" >&5
14818echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014819if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821else
14822 case $MAGIC_CMD in
14823[\\/*] | ?:[\\/]*)
14824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14825 ;;
14826*)
14827 lt_save_MAGIC_CMD="$MAGIC_CMD"
14828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14830 for ac_dir in $ac_dummy; do
14831 IFS="$lt_save_ifs"
14832 test -z "$ac_dir" && ac_dir=.
14833 if test -f $ac_dir/file; then
14834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14835 if test -n "$file_magic_test_file"; then
14836 case $deplibs_check_method in
14837 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14841 $EGREP "$file_magic_regex" > /dev/null; then
14842 :
14843 else
14844 cat <<EOF 1>&2
14845
14846*** Warning: the command libtool uses to detect shared libraries,
14847*** $file_magic_cmd, produces output that libtool cannot recognize.
14848*** The result is that libtool may fail to recognize shared libraries
14849*** as such. This will affect the creation of libtool libraries that
14850*** depend on shared libraries, but programs linked with such libtool
14851*** libraries will work regardless of this problem. Nevertheless, you
14852*** may want to report the problem to your system manager and/or to
14853*** bug-libtool@gnu.org
14854
14855EOF
14856 fi ;;
14857 esac
14858 fi
14859 break
14860 fi
14861 done
14862 IFS="$lt_save_ifs"
14863 MAGIC_CMD="$lt_save_MAGIC_CMD"
14864 ;;
14865esac
14866fi
14867
14868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14869if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014870 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14871echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014872else
Reid Spencera773bd52006-08-04 18:18:08 +000014873 { echo "$as_me:$LINENO: result: no" >&5
14874echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014875fi
14876
14877 else
14878 MAGIC_CMD=:
14879 fi
14880fi
14881
14882 fi
14883 ;;
14884esac
14885
Reid Spencer17795972004-11-18 09:47:37 +000014886enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014887enable_win32_dll=no
14888
Reid Spencera773bd52006-08-04 18:18:08 +000014889# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014890if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014891 enableval=$enable_libtool_lock;
14892fi
John Criswell47fdd832003-07-14 16:52:07 +000014893
John Criswell47fdd832003-07-14 16:52:07 +000014894test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14895
John Criswell7a73b802003-06-30 21:59:07 +000014896
Reid Spencera773bd52006-08-04 18:18:08 +000014897# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014898if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014899 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014900else
14901 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014902fi
14903
John Criswell7a73b802003-06-30 21:59:07 +000014904test -z "$pic_mode" && pic_mode=default
14905
John Criswell47fdd832003-07-14 16:52:07 +000014906# Use C for the default configuration in the libtool script
14907tagname=
14908lt_save_CC="$CC"
14909ac_ext=c
14910ac_cpp='$CPP $CPPFLAGS'
14911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913ac_compiler_gnu=$ac_cv_c_compiler_gnu
14914
14915
14916# Source file extension for C test sources.
14917ac_ext=c
14918
14919# Object file extension for compiled C test sources.
14920objext=o
14921objext=$objext
14922
14923# Code to be used in simple compile tests
14924lt_simple_compile_test_code="int some_variable = 0;\n"
14925
14926# Code to be used in simple link tests
14927lt_simple_link_test_code='int main(){return(0);}\n'
14928
14929
14930# If no C compiler was specified, use CC.
14931LTCC=${LTCC-"$CC"}
14932
Reid Spencera773bd52006-08-04 18:18:08 +000014933# If no C compiler flags were specified, use CFLAGS.
14934LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14935
John Criswell47fdd832003-07-14 16:52:07 +000014936# Allow CC to be a program name with arguments.
14937compiler=$CC
14938
14939
Reid Spencera773bd52006-08-04 18:18:08 +000014940# save warnings/boilerplate of simple test code
14941ac_outfile=conftest.$ac_objext
14942printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14943eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14944_lt_compiler_boilerplate=`cat conftest.err`
14945$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014946
Reid Spencera773bd52006-08-04 18:18:08 +000014947ac_outfile=conftest.$ac_objext
14948printf "$lt_simple_link_test_code" >conftest.$ac_ext
14949eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950_lt_linker_boilerplate=`cat conftest.err`
14951$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014952
14953
John Criswell47fdd832003-07-14 16:52:07 +000014954
14955lt_prog_compiler_no_builtin_flag=
14956
14957if test "$GCC" = yes; then
14958 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14959
Reid Spencer2706f8c2004-09-19 23:53:36 +000014960
Reid Spencera773bd52006-08-04 18:18:08 +000014961{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14962echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014963if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966 lt_cv_prog_compiler_rtti_exceptions=no
14967 ac_outfile=conftest.$ac_objext
14968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 lt_compiler_flag="-fno-rtti -fno-exceptions"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 # The option is referenced via a variable to avoid confusing sed.
14975 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000014979 (eval echo "\"\$as_me:14979: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014980 (eval "$lt_compile" 2>conftest.err)
14981 ac_status=$?
14982 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000014983 echo "$as_me:14983: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014984 if (exit $ac_status) && test -s "$ac_outfile"; then
14985 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014986 # So say no if there are warnings other than the usual output.
14987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014990 lt_cv_prog_compiler_rtti_exceptions=yes
14991 fi
14992 fi
14993 $rm conftest*
14994
14995fi
Reid Spencera773bd52006-08-04 18:18:08 +000014996{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14997echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014998
14999if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15001else
15002 :
15003fi
15004
15005fi
15006
15007lt_prog_compiler_wl=
15008lt_prog_compiler_pic=
15009lt_prog_compiler_static=
15010
Reid Spencera773bd52006-08-04 18:18:08 +000015011{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15012echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015013
15014 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015015 lt_prog_compiler_wl='-Wl,'
15016 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000015017
15018 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015019 aix*)
15020 # All AIX code is PIC.
15021 if test "$host_cpu" = ia64; then
15022 # AIX 5 now supports IA64 processor
15023 lt_prog_compiler_static='-Bstatic'
15024 fi
John Criswell7a73b802003-06-30 21:59:07 +000015025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015026
John Criswell7a73b802003-06-30 21:59:07 +000015027 amigaos*)
15028 # FIXME: we need at least 68020 code to build shared libraries, but
15029 # adding the `-m68020' flag to GCC prevents building anything better,
15030 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000015031 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000015032 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015033
15034 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000015035 # PIC is the default for these OSes.
15036 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015037
15038 mingw* | pw32* | os2*)
15039 # This hack is so that the source file can tell whether it is being
15040 # built for inclusion in a dll (and should export symbols for example).
15041 lt_prog_compiler_pic='-DDLL_EXPORT'
15042 ;;
15043
John Criswell7a73b802003-06-30 21:59:07 +000015044 darwin* | rhapsody*)
15045 # PIC is the default on this platform
15046 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000015047 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000015048 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015049
Reid Spencera773bd52006-08-04 18:18:08 +000015050 interix3*)
15051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15052 # Instead, we relocate shared libraries at runtime.
15053 ;;
15054
John Criswell47fdd832003-07-14 16:52:07 +000015055 msdosdjgpp*)
15056 # Just because we use GCC doesn't mean we suddenly get shared libraries
15057 # on systems that don't support them.
15058 lt_prog_compiler_can_build_shared=no
15059 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015060 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015061
John Criswell7a73b802003-06-30 21:59:07 +000015062 sysv4*MP*)
15063 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000015064 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000015065 fi
15066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015067
15068 hpux*)
15069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15070 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015071 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015072 hppa*64*|ia64*)
15073 # +Z the default
15074 ;;
15075 *)
15076 lt_prog_compiler_pic='-fPIC'
15077 ;;
15078 esac
15079 ;;
15080
John Criswell7a73b802003-06-30 21:59:07 +000015081 *)
John Criswell47fdd832003-07-14 16:52:07 +000015082 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000015083 ;;
15084 esac
15085 else
John Criswell47fdd832003-07-14 16:52:07 +000015086 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000015087 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015088 aix*)
15089 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015090 if test "$host_cpu" = ia64; then
15091 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000015092 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015093 else
John Criswell47fdd832003-07-14 16:52:07 +000015094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000015095 fi
15096 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015097 darwin*)
15098 # PIC is the default on this platform
15099 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000015100 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015101 xlc*)
15102 lt_prog_compiler_pic='-qnocommon'
15103 lt_prog_compiler_wl='-Wl,'
15104 ;;
15105 esac
15106 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015107
John Criswell47fdd832003-07-14 16:52:07 +000015108 mingw* | pw32* | os2*)
15109 # This hack is so that the source file can tell whether it is being
15110 # built for inclusion in a dll (and should export symbols for example).
15111 lt_prog_compiler_pic='-DDLL_EXPORT'
15112 ;;
15113
John Criswell7a73b802003-06-30 21:59:07 +000015114 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015115 lt_prog_compiler_wl='-Wl,'
15116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015118 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015119 hppa*64*|ia64*)
15120 # +Z the default
15121 ;;
15122 *)
15123 lt_prog_compiler_pic='+Z'
15124 ;;
15125 esac
15126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15127 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015128 ;;
15129
John Criswell47fdd832003-07-14 16:52:07 +000015130 irix5* | irix6* | nonstopux*)
15131 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015132 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015133 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015134 ;;
15135
15136 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15139 ;;
15140
15141 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015142 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015143 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_pic='-KPIC'
15146 lt_prog_compiler_static='-static'
15147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015148 pgcc* | pgf77* | pgf90* | pgf95*)
15149 # Portland Group compilers (*not* the Pentium gcc compiler,
15150 # which looks to be a dead project)
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_pic='-fpic'
15153 lt_prog_compiler_static='-Bstatic'
15154 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015155 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015156 lt_prog_compiler_wl='-Wl,'
15157 # All Alpha code is PIC.
15158 lt_prog_compiler_static='-non_shared'
15159 ;;
15160 esac
John Criswell7a73b802003-06-30 21:59:07 +000015161 ;;
15162
15163 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015164 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015165 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015166 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015167 ;;
15168
John Criswell7a73b802003-06-30 21:59:07 +000015169 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015172 case $cc_basename in
15173 f77* | f90* | f95*)
15174 lt_prog_compiler_wl='-Qoption ld ';;
15175 *)
15176 lt_prog_compiler_wl='-Wl,';;
15177 esac
John Criswell7a73b802003-06-30 21:59:07 +000015178 ;;
15179
15180 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015181 lt_prog_compiler_wl='-Qoption ld '
15182 lt_prog_compiler_pic='-PIC'
15183 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015184 ;;
15185
Reid Spencera773bd52006-08-04 18:18:08 +000015186 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_pic='-KPIC'
15189 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015190 ;;
15191
15192 sysv4*MP*)
15193 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015194 lt_prog_compiler_pic='-Kconform_pic'
15195 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015196 fi
15197 ;;
15198
Reid Spencera773bd52006-08-04 18:18:08 +000015199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_pic='-KPIC'
15202 lt_prog_compiler_static='-Bstatic'
15203 ;;
15204
15205 unicos*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_can_build_shared=no
15208 ;;
15209
John Criswell47fdd832003-07-14 16:52:07 +000015210 uts4*)
15211 lt_prog_compiler_pic='-pic'
15212 lt_prog_compiler_static='-Bstatic'
15213 ;;
15214
John Criswell7a73b802003-06-30 21:59:07 +000015215 *)
John Criswell47fdd832003-07-14 16:52:07 +000015216 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015217 ;;
15218 esac
15219 fi
15220
Reid Spencera773bd52006-08-04 18:18:08 +000015221{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15222echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015223
John Criswell47fdd832003-07-14 16:52:07 +000015224#
15225# Check to make sure the PIC flag actually works.
15226#
15227if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015228
Reid Spencera773bd52006-08-04 18:18:08 +000015229{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15230echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015231if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
John Criswell47fdd832003-07-14 16:52:07 +000015234 lt_prog_compiler_pic_works=no
15235 ac_outfile=conftest.$ac_objext
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15238 # Insert the option either (1) after the last *FLAGS variable, or
15239 # (2) before a word containing "conftest.", or (3) at the end.
15240 # Note that $ac_compile itself does not contain backslashes and begins
15241 # with a dollar sign (not a hyphen), so the echo should work correctly.
15242 # The option is referenced via a variable to avoid confusing sed.
15243 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000015247 (eval echo "\"\$as_me:15247: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015248 (eval "$lt_compile" 2>conftest.err)
15249 ac_status=$?
15250 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000015251 echo "$as_me:15251: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015252 if (exit $ac_status) && test -s "$ac_outfile"; then
15253 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015254 # So say no if there are warnings other than the usual output.
15255 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015258 lt_prog_compiler_pic_works=yes
15259 fi
15260 fi
15261 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015262
John Criswell47fdd832003-07-14 16:52:07 +000015263fi
Reid Spencera773bd52006-08-04 18:18:08 +000015264{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15265echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015266
John Criswell47fdd832003-07-14 16:52:07 +000015267if test x"$lt_prog_compiler_pic_works" = xyes; then
15268 case $lt_prog_compiler_pic in
15269 "" | " "*) ;;
15270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15271 esac
John Criswell7a73b802003-06-30 21:59:07 +000015272else
John Criswell47fdd832003-07-14 16:52:07 +000015273 lt_prog_compiler_pic=
15274 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015275fi
15276
John Criswell7a73b802003-06-30 21:59:07 +000015277fi
Reid Spencera773bd52006-08-04 18:18:08 +000015278case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015279 # For platforms which do not support PIC, -DPIC is meaningless:
15280 *djgpp*)
15281 lt_prog_compiler_pic=
15282 ;;
15283 *)
15284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15285 ;;
15286esac
John Criswell7a73b802003-06-30 21:59:07 +000015287
Reid Spencera773bd52006-08-04 18:18:08 +000015288#
15289# Check to make sure the static flag actually works.
15290#
15291wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15292{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15293echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15294if test "${lt_prog_compiler_static_works+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else
15297 lt_prog_compiler_static_works=no
15298 save_LDFLAGS="$LDFLAGS"
15299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15300 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15302 # The linker can only warn and ignore the option if not recognized
15303 # So say no if there are warnings
15304 if test -s conftest.err; then
15305 # Append any errors to the config.log.
15306 cat conftest.err 1>&5
15307 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15309 if diff conftest.exp conftest.er2 >/dev/null; then
15310 lt_prog_compiler_static_works=yes
15311 fi
15312 else
15313 lt_prog_compiler_static_works=yes
15314 fi
15315 fi
15316 $rm conftest*
15317 LDFLAGS="$save_LDFLAGS"
15318
15319fi
15320{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15321echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15322
15323if test x"$lt_prog_compiler_static_works" = xyes; then
15324 :
15325else
15326 lt_prog_compiler_static=
15327fi
15328
15329
15330{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15331echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015332if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
John Criswell47fdd832003-07-14 16:52:07 +000015335 lt_cv_prog_compiler_c_o=no
15336 $rm -r conftest 2>/dev/null
15337 mkdir conftest
15338 cd conftest
15339 mkdir out
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015341
John Criswell47fdd832003-07-14 16:52:07 +000015342 lt_compiler_flag="-o out/conftest2.$ac_objext"
15343 # Insert the option either (1) after the last *FLAGS variable, or
15344 # (2) before a word containing "conftest.", or (3) at the end.
15345 # Note that $ac_compile itself does not contain backslashes and begins
15346 # with a dollar sign (not a hyphen), so the echo should work correctly.
15347 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000015351 (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015352 (eval "$lt_compile" 2>out/conftest.err)
15353 ac_status=$?
15354 cat out/conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000015355 echo "$as_me:15355: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15357 then
15358 # The compiler can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015360 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015363 lt_cv_prog_compiler_c_o=yes
15364 fi
15365 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015366 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015367 $rm conftest*
15368 # SGI C++ compiler will create directory out/ii_files/ for
15369 # template instantiation
15370 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15371 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015372 cd ..
15373 rmdir conftest
15374 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015375
15376fi
Reid Spencera773bd52006-08-04 18:18:08 +000015377{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15378echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015379
John Criswell7a73b802003-06-30 21:59:07 +000015380
John Criswell7a73b802003-06-30 21:59:07 +000015381hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015382if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015383 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015384 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15385echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015386 hard_links=yes
15387 $rm conftest*
15388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15389 touch conftest.a
15390 ln conftest.a conftest.b 2>&5 || hard_links=no
15391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015392 { echo "$as_me:$LINENO: result: $hard_links" >&5
15393echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015394 if test "$hard_links" = no; then
15395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15396echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15397 need_locks=warn
15398 fi
15399else
15400 need_locks=no
15401fi
John Criswell7a73b802003-06-30 21:59:07 +000015402
Reid Spencera773bd52006-08-04 18:18:08 +000015403{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15404echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015405
15406 runpath_var=
15407 allow_undefined_flag=
15408 enable_shared_with_static_runtimes=no
15409 archive_cmds=
15410 archive_expsym_cmds=
15411 old_archive_From_new_cmds=
15412 old_archive_from_expsyms_cmds=
15413 export_dynamic_flag_spec=
15414 whole_archive_flag_spec=
15415 thread_safe_flag_spec=
15416 hardcode_libdir_flag_spec=
15417 hardcode_libdir_flag_spec_ld=
15418 hardcode_libdir_separator=
15419 hardcode_direct=no
15420 hardcode_minus_L=no
15421 hardcode_shlibpath_var=unsupported
15422 link_all_deplibs=unknown
15423 hardcode_automatic=no
15424 module_cmds=
15425 module_expsym_cmds=
15426 always_export_symbols=no
15427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15428 # include_expsyms should be a list of space-separated symbols to be *always*
15429 # included in the symbol list
15430 include_expsyms=
15431 # exclude_expsyms can be an extended regexp of symbols to exclude
15432 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15433 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15434 # as well as any symbol that contains `d'.
15435 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15437 # platforms (ab)use it in PIC code, but their linkers get confused if
15438 # the symbol is explicitly referenced. Since portable code cannot
15439 # rely on this symbol name, it's probably fine to never include it in
15440 # preloaded symbol tables.
15441 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015442 # Just being paranoid about ensuring that cc_basename is set.
15443 for cc_temp in $compiler""; do
15444 case $cc_temp in
15445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15447 \-*) ;;
15448 *) break;;
15449 esac
15450done
15451cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015452
15453 case $host_os in
15454 cygwin* | mingw* | pw32*)
15455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15456 # When not using gcc, we currently assume that we are using
15457 # Microsoft Visual C++.
15458 if test "$GCC" != yes; then
15459 with_gnu_ld=no
15460 fi
15461 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015462 interix*)
15463 # we just hope/assume this is gcc and not c89 (= MSVC++)
15464 with_gnu_ld=yes
15465 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015466 openbsd*)
15467 with_gnu_ld=no
15468 ;;
15469 esac
15470
15471 ld_shlibs=yes
15472 if test "$with_gnu_ld" = yes; then
15473 # If archive_cmds runs LD, not CC, wlarc should be empty
15474 wlarc='${wl}'
15475
Reid Spencera773bd52006-08-04 18:18:08 +000015476 # Set some defaults for GNU ld with shared library support. These
15477 # are reset later if shared libraries are not supported. Putting them
15478 # here allows them to be overridden if necessary.
15479 runpath_var=LD_RUN_PATH
15480 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15481 export_dynamic_flag_spec='${wl}--export-dynamic'
15482 # ancient GNU ld didn't support --whole-archive et. al.
15483 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15485 else
15486 whole_archive_flag_spec=
15487 fi
15488 supports_anon_versioning=no
15489 case `$LD -v 2>/dev/null` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15493 *\ 2.11.*) ;; # other 2.11 versions
15494 *) supports_anon_versioning=yes ;;
15495 esac
15496
John Criswell47fdd832003-07-14 16:52:07 +000015497 # See if GNU ld supports shared libraries.
15498 case $host_os in
15499 aix3* | aix4* | aix5*)
15500 # On AIX/PPC, the GNU linker is very broken
15501 if test "$host_cpu" != ia64; then
15502 ld_shlibs=no
15503 cat <<EOF 1>&2
15504
15505*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15506*** to be unable to reliably create shared libraries on AIX.
15507*** Therefore, libtool is disabling shared libraries support. If you
15508*** really care for shared libraries, you may want to modify your PATH
15509*** so that a non-GNU linker is found, and then restart.
15510
15511EOF
15512 fi
15513 ;;
15514
15515 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015516 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 +000015517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_minus_L=yes
15519
15520 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15521 # that the semantics of dynamic libraries on AmigaOS, at least up
15522 # to version 4, is to share data among multiple programs linked
15523 # with the same dynamic library. Since this doesn't match the
15524 # behavior of shared libraries on other platforms, we can't use
15525 # them.
15526 ld_shlibs=no
15527 ;;
15528
15529 beos*)
15530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15531 allow_undefined_flag=unsupported
15532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15533 # support --undefined. This deserves some investigation. FIXME
15534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 else
15536 ld_shlibs=no
15537 fi
15538 ;;
15539
15540 cygwin* | mingw* | pw32*)
15541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15542 # as there is no search path for DLLs.
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 allow_undefined_flag=unsupported
15545 always_export_symbols=no
15546 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015547 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 +000015548
15549 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015550 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 +000015551 # If the export-symbols file already is a .def file (1st line
15552 # is EXPORTS), use it as is; otherwise, prepend...
15553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15554 cp $export_symbols $output_objdir/$soname.def;
15555 else
15556 echo EXPORTS > $output_objdir/$soname.def;
15557 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015558 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15560 else
15561 ld_shlibs=no
15562 fi
15563 ;;
15564
15565 interix3*)
15566 hardcode_direct=no
15567 hardcode_shlibpath_var=no
15568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15569 export_dynamic_flag_spec='${wl}-E'
15570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15571 # Instead, shared libraries are loaded at an image base (0x10000000 by
15572 # default) and relocated if they conflict, which is a slow very memory
15573 # consuming and fragmenting process. To avoid this, we pick a random,
15574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15577 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'
15578 ;;
15579
15580 linux*)
15581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15582 tmp_addflag=
15583 case $cc_basename,$host_cpu in
15584 pgcc*) # Portland Group C compiler
15585 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'
15586 tmp_addflag=' $pic_flag'
15587 ;;
15588 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15589 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'
15590 tmp_addflag=' $pic_flag -Mnomain' ;;
15591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15592 tmp_addflag=' -i_dynamic' ;;
15593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15594 tmp_addflag=' -i_dynamic -nofor_main' ;;
15595 ifc* | ifort*) # Intel Fortran compiler
15596 tmp_addflag=' -nofor_main' ;;
15597 esac
15598 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599
15600 if test $supports_anon_versioning = yes; then
15601 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15603 $echo "local: *; };" >> $output_objdir/$libname.ver~
15604 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15605 fi
John Criswell47fdd832003-07-14 16:52:07 +000015606 else
15607 ld_shlibs=no
15608 fi
15609 ;;
15610
15611 netbsd*)
15612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15614 wlarc=
15615 else
15616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15618 fi
15619 ;;
15620
Reid Spencera773bd52006-08-04 18:18:08 +000015621 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15623 ld_shlibs=no
15624 cat <<EOF 1>&2
15625
15626*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15627*** create shared libraries on Solaris systems. Therefore, libtool
15628*** is disabling shared libraries support. We urge you to upgrade GNU
15629*** binutils to release 2.9.1 or newer. Another option is to modify
15630*** your PATH or compiler configuration so that the native linker is
15631*** used, and then restart.
15632
15633EOF
15634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15637 else
15638 ld_shlibs=no
15639 fi
15640 ;;
15641
Reid Spencera773bd52006-08-04 18:18:08 +000015642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15643 case `$LD -v 2>&1` in
15644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15645 ld_shlibs=no
15646 cat <<_LT_EOF 1>&2
15647
15648*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15649*** reliably create shared libraries on SCO systems. Therefore, libtool
15650*** is disabling shared libraries support. We urge you to upgrade GNU
15651*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15652*** your PATH or compiler configuration so that the native linker is
15653*** used, and then restart.
15654
15655_LT_EOF
15656 ;;
15657 *)
15658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15659 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15662 else
15663 ld_shlibs=no
15664 fi
15665 ;;
15666 esac
15667 ;;
15668
John Criswell47fdd832003-07-14 16:52:07 +000015669 sunos4*)
15670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15671 wlarc=
15672 hardcode_direct=yes
15673 hardcode_shlibpath_var=no
15674 ;;
15675
15676 *)
15677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680 else
15681 ld_shlibs=no
15682 fi
15683 ;;
15684 esac
15685
Reid Spencera773bd52006-08-04 18:18:08 +000015686 if test "$ld_shlibs" = no; then
15687 runpath_var=
15688 hardcode_libdir_flag_spec=
15689 export_dynamic_flag_spec=
15690 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015691 fi
15692 else
15693 # PORTME fill in a description of your system's linker (not GNU ld)
15694 case $host_os in
15695 aix3*)
15696 allow_undefined_flag=unsupported
15697 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015698 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 +000015699 # Note: this linker hardcodes the directories in LIBPATH if there
15700 # are no directories specified by -L.
15701 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015702 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015703 # Neither direct hardcoding nor static linking is supported with a
15704 # broken collect2.
15705 hardcode_direct=unsupported
15706 fi
15707 ;;
15708
15709 aix4* | aix5*)
15710 if test "$host_cpu" = ia64; then
15711 # On IA64, the linker does run time linking by default, so we don't
15712 # have to do anything special.
15713 aix_use_runtimelinking=no
15714 exp_sym_flag='-Bexport'
15715 no_entry_flag=""
15716 else
15717 # If we're using GNU nm, then we don't want the "-C" option.
15718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15719 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15720 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'
15721 else
15722 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'
15723 fi
15724 aix_use_runtimelinking=no
15725
15726 # Test if we are trying to use run time linking or normal
15727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15728 # need to do runtime linking.
15729 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15730 for ld_flag in $LDFLAGS; do
15731 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15732 aix_use_runtimelinking=yes
15733 break
15734 fi
15735 done
Reid Spencera773bd52006-08-04 18:18:08 +000015736 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015737 esac
15738
15739 exp_sym_flag='-bexport'
15740 no_entry_flag='-bnoentry'
15741 fi
15742
15743 # When large executables or shared objects are built, AIX ld can
15744 # have problems creating the table of contents. If linking a library
15745 # or program results in "error TOC overflow" add -mminimal-toc to
15746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15748
15749 archive_cmds=''
15750 hardcode_direct=yes
15751 hardcode_libdir_separator=':'
15752 link_all_deplibs=yes
15753
15754 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015755 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015756 # We only want to do this on AIX 4.2 and lower, the check
15757 # below for broken collect2 doesn't work under 4.3+
15758 collect2name=`${CC} -print-prog-name=collect2`
15759 if test -f "$collect2name" && \
15760 strings "$collect2name" | grep resolve_lib_name >/dev/null
15761 then
15762 # We have reworked collect2
15763 hardcode_direct=yes
15764 else
15765 # We have old collect2
15766 hardcode_direct=unsupported
15767 # It fails to find uninstalled libraries when the uninstalled
15768 # path is not listed in the libpath. Setting hardcode_minus_L
15769 # to unsupported forces relinking
15770 hardcode_minus_L=yes
15771 hardcode_libdir_flag_spec='-L$libdir'
15772 hardcode_libdir_separator=
15773 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015774 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015775 esac
15776 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015777 if test "$aix_use_runtimelinking" = yes; then
15778 shared_flag="$shared_flag "'${wl}-G'
15779 fi
John Criswell47fdd832003-07-14 16:52:07 +000015780 else
15781 # not using gcc
15782 if test "$host_cpu" = ia64; then
15783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784 # chokes on -Wl,-G. The following line is correct:
15785 shared_flag='-G'
15786 else
Reid Spencera773bd52006-08-04 18:18:08 +000015787 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015788 shared_flag='${wl}-G'
15789 else
15790 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015791 fi
John Criswell47fdd832003-07-14 16:52:07 +000015792 fi
15793 fi
15794
15795 # It seems that -bexpall does not export symbols beginning with
15796 # underscore (_), so it is better to generate a list of symbols to export.
15797 always_export_symbols=yes
15798 if test "$aix_use_runtimelinking" = yes; then
15799 # Warning - without using the other runtime loading flags (-brtl),
15800 # -berok will link without error, but may produce a broken library.
15801 allow_undefined_flag='-berok'
15802 # Determine the default libpath from the value encoded in an empty executable.
15803 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015804/* confdefs.h. */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015809
John Criswell7a73b802003-06-30 21:59:07 +000015810int
15811main ()
15812{
John Criswell47fdd832003-07-14 16:52:07 +000015813
John Criswell7a73b802003-06-30 21:59:07 +000015814 ;
15815 return 0;
15816}
15817_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015818rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015819if { (ac_try="$ac_link"
15820case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823esac
15824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest$ac_exeext'
15843 { (case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846esac
15847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_try") 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015852
John Criswell47fdd832003-07-14 16:52:07 +000015853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15854}'`
15855# Check for a 64-bit object if we didn't find anything.
15856if 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; }
15857}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015858else
15859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015860sed 's/^/| /' conftest.$ac_ext >&5
15861
Reid Spencera773bd52006-08-04 18:18:08 +000015862
John Criswell7a73b802003-06-30 21:59:07 +000015863fi
Reid Spencera773bd52006-08-04 18:18:08 +000015864
Bill Wendlingebcceee2009-04-18 11:20:33 +000015865rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015866 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015868
John Criswell47fdd832003-07-14 16:52:07 +000015869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015870 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 +000015871 else
15872 if test "$host_cpu" = ia64; then
15873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15874 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015875 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 +000015876 else
15877 # Determine the default libpath from the value encoded in an empty executable.
15878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015879/* confdefs.h. */
15880_ACEOF
15881cat confdefs.h >>conftest.$ac_ext
15882cat >>conftest.$ac_ext <<_ACEOF
15883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015884
John Criswell47fdd832003-07-14 16:52:07 +000015885int
15886main ()
15887{
John Criswell7a73b802003-06-30 21:59:07 +000015888
John Criswell47fdd832003-07-14 16:52:07 +000015889 ;
15890 return 0;
15891}
15892_ACEOF
15893rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015894if { (ac_try="$ac_link"
15895case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898esac
15899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015906 (exit $ac_status); } &&
15907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15908 { (case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911esac
15912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest$ac_exeext'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015927
John Criswell47fdd832003-07-14 16:52:07 +000015928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15929}'`
15930# Check for a 64-bit object if we didn't find anything.
15931if 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; }
15932}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015933else
John Criswell47fdd832003-07-14 16:52:07 +000015934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015935sed 's/^/| /' conftest.$ac_ext >&5
15936
Reid Spencera773bd52006-08-04 18:18:08 +000015937
John Criswell47fdd832003-07-14 16:52:07 +000015938fi
Reid Spencera773bd52006-08-04 18:18:08 +000015939
Bill Wendlingebcceee2009-04-18 11:20:33 +000015940rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015941 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015942if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015943
John Criswell47fdd832003-07-14 16:52:07 +000015944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15945 # Warning - without using the other run time loading flags,
15946 # -berok will link without error, but may produce a broken library.
15947 no_undefined_flag=' ${wl}-bernotok'
15948 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015949 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015950 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015951 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015952 # This is similar to how AIX traditionally builds its shared libraries.
15953 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 +000015954 fi
15955 fi
John Criswell7a73b802003-06-30 21:59:07 +000015956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015957
15958 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015959 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 +000015960 hardcode_libdir_flag_spec='-L$libdir'
15961 hardcode_minus_L=yes
15962 # see comment about different semantics on the GNU ld section
15963 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015965
Reid Spencer2706f8c2004-09-19 23:53:36 +000015966 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015967 export_dynamic_flag_spec=-rdynamic
15968 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015969
John Criswell47fdd832003-07-14 16:52:07 +000015970 cygwin* | mingw* | pw32*)
15971 # When not using gcc, we currently assume that we are using
15972 # Microsoft Visual C++.
15973 # hardcode_libdir_flag_spec is actually meaningless, as there is
15974 # no search path for DLLs.
15975 hardcode_libdir_flag_spec=' '
15976 allow_undefined_flag=unsupported
15977 # Tell ltmain to make .lib files, not .a files.
15978 libext=lib
15979 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015980 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015981 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015983 # The linker will automatically build a .lib file if we build a DLL.
15984 old_archive_From_new_cmds='true'
15985 # FIXME: Should let the user specify the lib program.
15986 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15987 fix_srcfile_path='`cygpath -w "$srcfile"`'
15988 enable_shared_with_static_runtimes=yes
15989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015990
John Criswell47fdd832003-07-14 16:52:07 +000015991 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015992 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015993 rhapsody* | darwin1.[012])
15994 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15995 ;;
15996 *) # Darwin 1.3 on
15997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15998 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15999 else
16000 case ${MACOSX_DEPLOYMENT_TARGET} in
16001 10.[012])
16002 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16003 ;;
16004 10.*)
16005 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16006 ;;
16007 esac
16008 fi
16009 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016010 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016011 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016012 hardcode_direct=no
16013 hardcode_automatic=yes
16014 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016015 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000016016 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016017 if test "$GCC" = yes ; then
16018 output_verbose_link_cmd='echo'
16019 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000016021 # 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 +000016022 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}'
16023 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 +000016024 else
Reid Spencera773bd52006-08-04 18:18:08 +000016025 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016026 xlc*)
16027 output_verbose_link_cmd='echo'
16028 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16029 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000016030 # 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 +000016031 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}'
16032 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 +000016033 ;;
16034 *)
16035 ld_shlibs=no
16036 ;;
16037 esac
John Criswell7a73b802003-06-30 21:59:07 +000016038 fi
John Criswell47fdd832003-07-14 16:52:07 +000016039 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016040
John Criswell47fdd832003-07-14 16:52:07 +000016041 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000016042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016043 hardcode_libdir_flag_spec='-L$libdir'
16044 hardcode_shlibpath_var=no
16045 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016046
John Criswell47fdd832003-07-14 16:52:07 +000016047 freebsd1*)
16048 ld_shlibs=no
16049 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016050
John Criswell47fdd832003-07-14 16:52:07 +000016051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052 # support. Future versions do this automatically, but an explicit c++rt0.o
16053 # does not break anything, and helps significantly (at the cost of a little
16054 # extra space).
16055 freebsd2.2*)
16056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057 hardcode_libdir_flag_spec='-R$libdir'
16058 hardcode_direct=yes
16059 hardcode_shlibpath_var=no
16060 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016061
John Criswell47fdd832003-07-14 16:52:07 +000016062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16063 freebsd2*)
16064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct=yes
16066 hardcode_minus_L=yes
16067 hardcode_shlibpath_var=no
16068 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016069
John Criswell47fdd832003-07-14 16:52:07 +000016070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000016071 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000016072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec='-R$libdir'
16074 hardcode_direct=yes
16075 hardcode_shlibpath_var=no
16076 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016077
John Criswell47fdd832003-07-14 16:52:07 +000016078 hpux9*)
16079 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016080 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 +000016081 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016082 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 +000016083 fi
16084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator=:
16086 hardcode_direct=yes
16087
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L=yes
16091 export_dynamic_flag_spec='${wl}-E'
16092 ;;
16093
Reid Spencera773bd52006-08-04 18:18:08 +000016094 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000016095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16097 else
16098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16099 fi
16100 if test "$with_gnu_ld" = no; then
16101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16102 hardcode_libdir_separator=:
16103
16104 hardcode_direct=yes
16105 export_dynamic_flag_spec='${wl}-E'
16106
16107 # hardcode_minus_L: Not really in the search PATH,
16108 # but as the default location of the library.
16109 hardcode_minus_L=yes
16110 fi
16111 ;;
16112
16113 hpux11*)
16114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16115 case $host_cpu in
16116 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016119 ia64*)
16120 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16121 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016122 *)
16123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16124 ;;
16125 esac
16126 else
Reid Spencera773bd52006-08-04 18:18:08 +000016127 case $host_cpu in
16128 hppa*64*)
16129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 ;;
16131 ia64*)
16132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016133 ;;
16134 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016135 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 +000016136 ;;
16137 esac
16138 fi
16139 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16141 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016142
Reid Spencera773bd52006-08-04 18:18:08 +000016143 case $host_cpu in
16144 hppa*64*|ia64*)
16145 hardcode_libdir_flag_spec_ld='+b $libdir'
16146 hardcode_direct=no
16147 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016148 ;;
16149 *)
John Criswell47fdd832003-07-14 16:52:07 +000016150 hardcode_direct=yes
16151 export_dynamic_flag_spec='${wl}-E'
16152
16153 # hardcode_minus_L: Not really in the search PATH,
16154 # but as the default location of the library.
16155 hardcode_minus_L=yes
16156 ;;
16157 esac
16158 fi
16159 ;;
16160
16161 irix5* | irix6* | nonstopux*)
16162 if test "$GCC" = yes; then
16163 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'
16164 else
16165 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'
16166 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16167 fi
16168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16169 hardcode_libdir_separator=:
16170 link_all_deplibs=yes
16171 ;;
16172
16173 netbsd*)
16174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16176 else
16177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16178 fi
16179 hardcode_libdir_flag_spec='-R$libdir'
16180 hardcode_direct=yes
16181 hardcode_shlibpath_var=no
16182 ;;
16183
16184 newsos6)
16185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct=yes
16187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16188 hardcode_libdir_separator=:
16189 hardcode_shlibpath_var=no
16190 ;;
16191
16192 openbsd*)
16193 hardcode_direct=yes
16194 hardcode_shlibpath_var=no
16195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016197 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 +000016198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16199 export_dynamic_flag_spec='${wl}-E'
16200 else
16201 case $host_os in
16202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_libdir_flag_spec='-R$libdir'
16205 ;;
16206 *)
16207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16209 ;;
16210 esac
16211 fi
16212 ;;
16213
16214 os2*)
16215 hardcode_libdir_flag_spec='-L$libdir'
16216 hardcode_minus_L=yes
16217 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016218 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 +000016219 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16220 ;;
16221
16222 osf3*)
16223 if test "$GCC" = yes; then
16224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16225 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'
16226 else
16227 allow_undefined_flag=' -expect_unresolved \*'
16228 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'
16229 fi
16230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 ;;
16233
16234 osf4* | osf5*) # as osf3* with the addition of -msym flag
16235 if test "$GCC" = yes; then
16236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16237 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'
16238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16239 else
16240 allow_undefined_flag=' -expect_unresolved \*'
16241 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 +000016242 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 +000016243 $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 +000016244
John Criswell47fdd832003-07-14 16:52:07 +000016245 # Both c and cxx compiler support -rpath directly
16246 hardcode_libdir_flag_spec='-rpath $libdir'
16247 fi
16248 hardcode_libdir_separator=:
16249 ;;
16250
John Criswell47fdd832003-07-14 16:52:07 +000016251 solaris*)
16252 no_undefined_flag=' -z text'
16253 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016254 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016255 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016256 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16257 $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 +000016258 else
Reid Spencera773bd52006-08-04 18:18:08 +000016259 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016261 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16262 $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 +000016263 fi
16264 hardcode_libdir_flag_spec='-R$libdir'
16265 hardcode_shlibpath_var=no
16266 case $host_os in
16267 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016268 *)
16269 # The compiler driver will combine linker options so we
16270 # cannot just pass the convience library names through
16271 # without $wl, iff we do not link with $LD.
16272 # Luckily, gcc supports the same syntax we need for Sun Studio.
16273 # Supported since Solaris 2.6 (maybe 2.5.1?)
16274 case $wlarc in
16275 '')
16276 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16277 *)
16278 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' ;;
16279 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016280 esac
16281 link_all_deplibs=yes
16282 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016283
John Criswell47fdd832003-07-14 16:52:07 +000016284 sunos4*)
16285 if test "x$host_vendor" = xsequent; then
16286 # Use $CC to link under sequent, because it throws in some extra .o
16287 # files that make .init and .fini sections work.
16288 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16289 else
16290 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16291 fi
16292 hardcode_libdir_flag_spec='-L$libdir'
16293 hardcode_direct=yes
16294 hardcode_minus_L=yes
16295 hardcode_shlibpath_var=no
16296 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016297
John Criswell47fdd832003-07-14 16:52:07 +000016298 sysv4)
16299 case $host_vendor in
16300 sni)
16301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct=yes # is this really true???
16303 ;;
16304 siemens)
16305 ## LD is ld it makes a PLAMLIB
16306 ## CC just makes a GrossModule.
16307 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16308 reload_cmds='$CC -r -o $output$reload_objs'
16309 hardcode_direct=no
16310 ;;
16311 motorola)
16312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16313 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16314 ;;
16315 esac
16316 runpath_var='LD_RUN_PATH'
16317 hardcode_shlibpath_var=no
16318 ;;
16319
16320 sysv4.3*)
16321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_shlibpath_var=no
16323 export_dynamic_flag_spec='-Bexport'
16324 ;;
16325
16326 sysv4*MP*)
16327 if test -d /usr/nec; then
16328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 hardcode_shlibpath_var=no
16330 runpath_var=LD_RUN_PATH
16331 hardcode_runpath_var=yes
16332 ld_shlibs=yes
16333 fi
16334 ;;
16335
Reid Spencera773bd52006-08-04 18:18:08 +000016336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16337 no_undefined_flag='${wl}-z,text'
16338 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016339 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016340 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016341
John Criswell47fdd832003-07-14 16:52:07 +000016342 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16344 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 +000016345 else
Reid Spencera773bd52006-08-04 18:18:08 +000016346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16347 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 +000016348 fi
John Criswell47fdd832003-07-14 16:52:07 +000016349 ;;
16350
Reid Spencera773bd52006-08-04 18:18:08 +000016351 sysv5* | sco3.2v5* | sco5v6*)
16352 # Note: We can NOT use -z defs as we might desire, because we do not
16353 # link with -lc, and that would cause any symbols used from libc to
16354 # always be unresolved, which means just about no library would
16355 # ever link correctly. If we're not using GNU ld we use -z text
16356 # though, which does catch some bad symbols but isn't as heavy-handed
16357 # as -z defs.
16358 no_undefined_flag='${wl}-z,text'
16359 allow_undefined_flag='${wl}-z,nodefs'
16360 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016361 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016362 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16363 hardcode_libdir_separator=':'
16364 link_all_deplibs=yes
16365 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016366 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016367
16368 if test "$GCC" = yes; then
16369 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16371 else
16372 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16374 fi
John Criswell47fdd832003-07-14 16:52:07 +000016375 ;;
16376
16377 uts4*)
16378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16379 hardcode_libdir_flag_spec='-L$libdir'
16380 hardcode_shlibpath_var=no
16381 ;;
16382
16383 *)
16384 ld_shlibs=no
16385 ;;
16386 esac
16387 fi
16388
Reid Spencera773bd52006-08-04 18:18:08 +000016389{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16390echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016391test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016392
John Criswell47fdd832003-07-14 16:52:07 +000016393#
16394# Do we need to explicitly link libc?
16395#
16396case "x$archive_cmds_need_lc" in
16397x|xyes)
16398 # Assume -lc should be added
16399 archive_cmds_need_lc=yes
16400
16401 if test "$enable_shared" = yes && test "$GCC" = yes; then
16402 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016403 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016404 # FIXME: we may have to deal with multi-command sequences.
16405 ;;
16406 '$CC '*)
16407 # Test whether the compiler implicitly links with -lc since on some
16408 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16409 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016410 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16411echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016412 $rm conftest*
16413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } 2>conftest.err; then
16420 soname=conftest
16421 lib=conftest
16422 libobjs=conftest.$ac_objext
16423 deplibs=
16424 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016425 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016426 compiler_flags=-v
16427 linker_flags=-v
16428 verstring=
16429 output_objdir=.
16430 libname=conftest
16431 lt_save_allow_undefined_flag=$allow_undefined_flag
16432 allow_undefined_flag=
16433 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16434 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }
16438 then
16439 archive_cmds_need_lc=no
16440 else
16441 archive_cmds_need_lc=yes
16442 fi
16443 allow_undefined_flag=$lt_save_allow_undefined_flag
16444 else
16445 cat conftest.err 1>&5
16446 fi
16447 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016448 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16449echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016450 ;;
16451 esac
16452 fi
16453 ;;
16454esac
16455
Reid Spencera773bd52006-08-04 18:18:08 +000016456{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16457echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016458library_names_spec=
16459libname_spec='lib$name'
16460soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016461shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016462postinstall_cmds=
16463postuninstall_cmds=
16464finish_cmds=
16465finish_eval=
16466shlibpath_var=
16467shlibpath_overrides_runpath=unknown
16468version_type=none
16469dynamic_linker="$host_os ld.so"
16470sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016471if test "$GCC" = yes; then
16472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16473 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16474 # if the path contains ";" then we assume it to be the separator
16475 # otherwise default to the standard path separator (i.e. ":") - it is
16476 # assumed that no part of a normal pathname contains ";" but that should
16477 # okay in the real world where ";" in dirpaths is itself problematic.
16478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16479 else
16480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16481 fi
16482else
16483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16484fi
16485need_lib_prefix=unknown
16486hardcode_into_libs=no
16487
16488# when you set need_version to no, make sure it does not cause -set_version
16489# flags to be left without arguments
16490need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016491
16492case $host_os in
16493aix3*)
16494 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016496 shlibpath_var=LIBPATH
16497
John Criswell47fdd832003-07-14 16:52:07 +000016498 # AIX 3 has no versioning support, so we append a major version to the name.
16499 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016500 ;;
16501
16502aix4* | aix5*)
16503 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016504 need_lib_prefix=no
16505 need_version=no
16506 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016507 if test "$host_cpu" = ia64; then
16508 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016510 shlibpath_var=LD_LIBRARY_PATH
16511 else
16512 # With GCC up to 2.95.x, collect2 would create an import file
16513 # for dependence libraries. The import file would start with
16514 # the line `#! .'. This would cause the generated library to
16515 # depend on `.', always an invalid library. This was fixed in
16516 # development snapshots of GCC prior to 3.0.
16517 case $host_os in
16518 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16520 echo ' yes '
16521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16522 :
16523 else
16524 can_build_shared=no
16525 fi
16526 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016527 esac
John Criswell47fdd832003-07-14 16:52:07 +000016528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16529 # soname into executable. Probably we can add versioning support to
16530 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016531 if test "$aix_use_runtimelinking" = yes; then
16532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16533 # instead of lib<name>.a to let people know that these are not
16534 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016536 else
16537 # We preserve .a as extension for shared libraries through AIX4.2
16538 # and later when we are not doing run time linking.
16539 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016540 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016541 fi
16542 shlibpath_var=LIBPATH
16543 fi
16544 ;;
16545
16546amigaos*)
16547 library_names_spec='$libname.ixlibrary $libname.a'
16548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016549 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 +000016550 ;;
16551
16552beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016553 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016554 dynamic_linker="$host_os ld.so"
16555 shlibpath_var=LIBRARY_PATH
16556 ;;
16557
Reid Spencer2706f8c2004-09-19 23:53:36 +000016558bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016559 version_type=linux
16560 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16564 shlibpath_var=LD_LIBRARY_PATH
16565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016567 # the default ld.so.conf also contains /usr/contrib/lib and
16568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16569 # libtool to hard-code these into programs
16570 ;;
16571
16572cygwin* | mingw* | pw32*)
16573 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016574 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016575 need_version=no
16576 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016577
John Criswell7a73b802003-06-30 21:59:07 +000016578 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016579 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016580 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016582 postinstall_cmds='base_file=`basename \${file}`~
16583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16584 dldir=$destdir/`dirname \$dlpath`~
16585 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016586 $install_prog $dir/$dlname \$dldir/$dlname~
16587 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16589 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016590 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016591 shlibpath_overrides_runpath=yes
16592
16593 case $host_os in
16594 cygwin*)
16595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16596 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 +000016597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016598 ;;
16599 mingw*)
16600 # MinGW DLLs use traditional 'lib' prefix
16601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16604 # It is most probably a Windows format PATH printed by
16605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16606 # path with ; separators, and with drive letters. We can handle the
16607 # drive letters (cygwin fileutils understands them), so leave them,
16608 # especially as we might pass files found there to a mingw objdump,
16609 # which wouldn't understand a cygwinified path. Ahh.
16610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16611 else
16612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16613 fi
16614 ;;
16615 pw32*)
16616 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016617 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 +000016618 ;;
16619 esac
John Criswell7a73b802003-06-30 21:59:07 +000016620 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016621
John Criswell7a73b802003-06-30 21:59:07 +000016622 *)
John Criswell47fdd832003-07-14 16:52:07 +000016623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016624 ;;
16625 esac
16626 dynamic_linker='Win32 ld.exe'
16627 # FIXME: first we should search . and the directory the executable is in
16628 shlibpath_var=PATH
16629 ;;
16630
16631darwin* | rhapsody*)
16632 dynamic_linker="$host_os dyld"
16633 version_type=darwin
16634 need_lib_prefix=no
16635 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016637 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016638 shlibpath_overrides_runpath=yes
16639 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016640 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642 if test "$GCC" = yes; then
16643 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"`
16644 else
16645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016646 fi
16647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16648 ;;
16649
16650dgux*)
16651 version_type=linux
16652 need_lib_prefix=no
16653 need_version=no
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016657 ;;
16658
16659freebsd1*)
16660 dynamic_linker=no
16661 ;;
16662
Reid Spencer2706f8c2004-09-19 23:53:36 +000016663kfreebsd*-gnu)
16664 version_type=linux
16665 need_lib_prefix=no
16666 need_version=no
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=no
16671 hardcode_into_libs=yes
16672 dynamic_linker='GNU ld.so'
16673 ;;
16674
Reid Spencera773bd52006-08-04 18:18:08 +000016675freebsd* | dragonfly*)
16676 # DragonFly does not have aout. When/if they implement a new
16677 # versioning mechanism, adjust this.
16678 if test -x /usr/bin/objformat; then
16679 objformat=`/usr/bin/objformat`
16680 else
16681 case $host_os in
16682 freebsd[123]*) objformat=aout ;;
16683 *) objformat=elf ;;
16684 esac
16685 fi
John Criswell7a73b802003-06-30 21:59:07 +000016686 version_type=freebsd-$objformat
16687 case $version_type in
16688 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016690 need_version=no
16691 need_lib_prefix=no
16692 ;;
16693 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016695 need_version=yes
16696 ;;
16697 esac
16698 shlibpath_var=LD_LIBRARY_PATH
16699 case $host_os in
16700 freebsd2*)
16701 shlibpath_overrides_runpath=yes
16702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016703 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016704 shlibpath_overrides_runpath=yes
16705 hardcode_into_libs=yes
16706 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016709 shlibpath_overrides_runpath=no
16710 hardcode_into_libs=yes
16711 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016712 freebsd*) # from 4.6 on
16713 shlibpath_overrides_runpath=yes
16714 hardcode_into_libs=yes
16715 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016716 esac
16717 ;;
16718
16719gnu*)
16720 version_type=linux
16721 need_lib_prefix=no
16722 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016725 shlibpath_var=LD_LIBRARY_PATH
16726 hardcode_into_libs=yes
16727 ;;
16728
16729hpux9* | hpux10* | hpux11*)
16730 # Give a soname corresponding to the major version so that dld.sl refuses to
16731 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016732 version_type=sunos
16733 need_lib_prefix=no
16734 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016735 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016736 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016737 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016738 hardcode_into_libs=yes
16739 dynamic_linker="$host_os dld.so"
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 if test "X$HPUX_IA64_MODE" = X32; then
16745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16746 else
16747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16748 fi
16749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16750 ;;
16751 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016752 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016753 hardcode_into_libs=yes
16754 dynamic_linker="$host_os dld.sl"
16755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16761 ;;
16762 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016763 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016764 dynamic_linker="$host_os dld.sl"
16765 shlibpath_var=SHLIB_PATH
16766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 ;;
16770 esac
John Criswell7a73b802003-06-30 21:59:07 +000016771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16772 postinstall_cmds='chmod 555 $lib'
16773 ;;
16774
Reid Spencera773bd52006-08-04 18:18:08 +000016775interix3*)
16776 version_type=linux
16777 need_lib_prefix=no
16778 need_version=no
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=no
16784 hardcode_into_libs=yes
16785 ;;
16786
John Criswell47fdd832003-07-14 16:52:07 +000016787irix5* | irix6* | nonstopux*)
16788 case $host_os in
16789 nonstopux*) version_type=nonstopux ;;
16790 *)
16791 if test "$lt_cv_prog_gnu_ld" = yes; then
16792 version_type=linux
16793 else
16794 version_type=irix
16795 fi ;;
16796 esac
John Criswell7a73b802003-06-30 21:59:07 +000016797 need_lib_prefix=no
16798 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016799 soname_spec='${libname}${release}${shared_ext}$major'
16800 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 +000016801 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016802 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016803 libsuff= shlibsuff=
16804 ;;
16805 *)
16806 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16808 libsuff= shlibsuff= libmagic=32-bit;;
16809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16810 libsuff=32 shlibsuff=N32 libmagic=N32;;
16811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016813 *) libsuff= shlibsuff= libmagic=never-match;;
16814 esac
16815 ;;
16816 esac
16817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16818 shlibpath_overrides_runpath=no
16819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016821 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016822 ;;
16823
16824# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016825linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016826 dynamic_linker=no
16827 ;;
16828
16829# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016830linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016831 version_type=linux
16832 need_lib_prefix=no
16833 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=no
16839 # This implies no fast_install, which is unacceptable.
16840 # Some rework will be needed to allow for fast_install
16841 # before this can be enabled.
16842 hardcode_into_libs=yes
16843
Reid Spencer2706f8c2004-09-19 23:53:36 +000016844 # Append ld.so.conf contents to the search path
16845 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016846 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 +000016847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16848 fi
16849
John Criswell7a73b802003-06-30 21:59:07 +000016850 # We used to test for /lib/ld.so.1 and disable shared libraries on
16851 # powerpc, because MkLinux only supported shared libraries with the
16852 # GNU dynamic linker. Since this was broken with cross compilers,
16853 # most powerpc-linux boxes support dynamic linking these days and
16854 # people can always --disable-shared, the test was removed, and we
16855 # assume the GNU/Linux dynamic linker is in use.
16856 dynamic_linker='GNU/Linux ld.so'
16857 ;;
16858
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859knetbsd*-gnu)
16860 version_type=linux
16861 need_lib_prefix=no
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16868 dynamic_linker='GNU ld.so'
16869 ;;
16870
John Criswell7a73b802003-06-30 21:59:07 +000016871netbsd*)
16872 version_type=sunos
16873 need_lib_prefix=no
16874 need_version=no
16875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16878 dynamic_linker='NetBSD (a.out) ld.so'
16879 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016881 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016882 dynamic_linker='NetBSD ld.elf_so'
16883 fi
16884 shlibpath_var=LD_LIBRARY_PATH
16885 shlibpath_overrides_runpath=yes
16886 hardcode_into_libs=yes
16887 ;;
16888
16889newsos6)
16890 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 shlibpath_overrides_runpath=yes
16894 ;;
16895
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016897 version_type=linux
16898 need_lib_prefix=no
16899 need_version=no
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016902 shlibpath_var=LD_LIBRARY_PATH
16903 shlibpath_overrides_runpath=yes
16904 ;;
16905
16906openbsd*)
16907 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016908 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016909 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16911 case $host_os in
16912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16913 *) need_version=no ;;
16914 esac
John Criswell47fdd832003-07-14 16:52:07 +000016915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16917 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016918 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 +000016919 case $host_os in
16920 openbsd2.[89] | openbsd2.[89].*)
16921 shlibpath_overrides_runpath=no
16922 ;;
16923 *)
16924 shlibpath_overrides_runpath=yes
16925 ;;
16926 esac
John Criswell7a73b802003-06-30 21:59:07 +000016927 else
16928 shlibpath_overrides_runpath=yes
16929 fi
John Criswell7a73b802003-06-30 21:59:07 +000016930 ;;
16931
16932os2*)
16933 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016934 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016935 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016936 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016937 dynamic_linker='OS/2 ld.exe'
16938 shlibpath_var=LIBPATH
16939 ;;
16940
16941osf3* | osf4* | osf5*)
16942 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016943 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016944 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016945 soname_spec='${libname}${release}${shared_ext}$major'
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016947 shlibpath_var=LD_LIBRARY_PATH
16948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16950 ;;
16951
John Criswell7a73b802003-06-30 21:59:07 +000016952solaris*)
16953 version_type=linux
16954 need_lib_prefix=no
16955 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=yes
16960 hardcode_into_libs=yes
16961 # ldd complains unless libraries are executable
16962 postinstall_cmds='chmod +x $lib'
16963 ;;
16964
16965sunos4*)
16966 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath=yes
16971 if test "$with_gnu_ld" = yes; then
16972 need_lib_prefix=no
16973 fi
16974 need_version=yes
16975 ;;
16976
Reid Spencera773bd52006-08-04 18:18:08 +000016977sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016978 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016981 shlibpath_var=LD_LIBRARY_PATH
16982 case $host_vendor in
16983 sni)
16984 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016985 need_lib_prefix=no
16986 export_dynamic_flag_spec='${wl}-Blargedynsym'
16987 runpath_var=LD_RUN_PATH
16988 ;;
16989 siemens)
16990 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016991 ;;
16992 motorola)
16993 need_lib_prefix=no
16994 need_version=no
16995 shlibpath_overrides_runpath=no
16996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16997 ;;
16998 esac
16999 ;;
17000
John Criswell7a73b802003-06-30 21:59:07 +000017001sysv4*MP*)
17002 if test -d /usr/nec ;then
17003 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000017004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17005 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000017006 shlibpath_var=LD_LIBRARY_PATH
17007 fi
17008 ;;
17009
Reid Spencera773bd52006-08-04 18:18:08 +000017010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17011 version_type=freebsd-elf
17012 need_lib_prefix=no
17013 need_version=no
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 hardcode_into_libs=yes
17018 if test "$with_gnu_ld" = yes; then
17019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17020 shlibpath_overrides_runpath=no
17021 else
17022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17023 shlibpath_overrides_runpath=yes
17024 case $host_os in
17025 sco3.2v5*)
17026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17027 ;;
17028 esac
17029 fi
17030 sys_lib_dlsearch_path_spec='/usr/lib'
17031 ;;
17032
John Criswell47fdd832003-07-14 16:52:07 +000017033uts4*)
17034 version_type=linux
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 ;;
17039
John Criswell7a73b802003-06-30 21:59:07 +000017040*)
17041 dynamic_linker=no
17042 ;;
17043esac
Reid Spencera773bd52006-08-04 18:18:08 +000017044{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17045echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017046test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000017047
Reid Spencera773bd52006-08-04 18:18:08 +000017048variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17049if test "$GCC" = yes; then
17050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17051fi
17052
17053{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17054echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017055hardcode_action=
17056if test -n "$hardcode_libdir_flag_spec" || \
17057 test -n "$runpath_var" || \
17058 test "X$hardcode_automatic" = "Xyes" ; then
17059
17060 # We can hardcode non-existant directories.
17061 if test "$hardcode_direct" != no &&
17062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17063 # have to relink, otherwise we might link with an installed library
17064 # when we should be linking with a yet-to-be-installed one
17065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17066 test "$hardcode_minus_L" != no; then
17067 # Linking always hardcodes the temporary library directory.
17068 hardcode_action=relink
17069 else
17070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17071 hardcode_action=immediate
17072 fi
17073else
17074 # We cannot hardcode anything, or else we can only hardcode existing
17075 # directories.
17076 hardcode_action=unsupported
17077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17079echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080
17081if test "$hardcode_action" = relink; then
17082 # Fast installation is not supported
17083 enable_fast_install=no
17084elif test "$shlibpath_overrides_runpath" = yes ||
17085 test "$enable_shared" = no; then
17086 # Fast installation is not necessary
17087 enable_fast_install=needless
17088fi
17089
17090striplib=
17091old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000017092{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17093echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017094if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000017097 { echo "$as_me:$LINENO: result: yes" >&5
17098echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017099else
17100# FIXME - insert some real tests, host_os isn't really good enough
17101 case $host_os in
17102 darwin*)
17103 if test -n "$STRIP" ; then
17104 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000017105 { echo "$as_me:$LINENO: result: yes" >&5
17106echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017107 else
Reid Spencera773bd52006-08-04 18:18:08 +000017108 { echo "$as_me:$LINENO: result: no" >&5
17109echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017110fi
17111 ;;
17112 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017113 { echo "$as_me:$LINENO: result: no" >&5
17114echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017115 ;;
17116 esac
17117fi
17118
John Criswell7a73b802003-06-30 21:59:07 +000017119if test "x$enable_dlopen" != xyes; then
17120 enable_dlopen=unknown
17121 enable_dlopen_self=unknown
17122 enable_dlopen_self_static=unknown
17123else
17124 lt_cv_dlopen=no
17125 lt_cv_dlopen_libs=
17126
17127 case $host_os in
17128 beos*)
17129 lt_cv_dlopen="load_add_on"
17130 lt_cv_dlopen_libs=
17131 lt_cv_dlopen_self=yes
17132 ;;
17133
John Criswell47fdd832003-07-14 16:52:07 +000017134 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017135 lt_cv_dlopen="LoadLibrary"
17136 lt_cv_dlopen_libs=
17137 ;;
17138
John Criswell47fdd832003-07-14 16:52:07 +000017139 cygwin*)
17140 lt_cv_dlopen="dlopen"
17141 lt_cv_dlopen_libs=
17142 ;;
17143
17144 darwin*)
17145 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017146 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17147echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017148if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 ac_check_lib_save_LIBS=$LIBS
17152LIBS="-ldl $LIBS"
17153cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017159
Reid Spencera773bd52006-08-04 18:18:08 +000017160/* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017163#ifdef __cplusplus
17164extern "C"
17165#endif
John Criswell47fdd832003-07-14 16:52:07 +000017166char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017167int
17168main ()
17169{
Reid Spencera773bd52006-08-04 18:18:08 +000017170return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017176if { (ac_try="$ac_link"
17177case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017183 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017209 ac_cv_lib_dl_dlopen=yes
17210else
17211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017212sed 's/^/| /' conftest.$ac_ext >&5
17213
Reid Spencera773bd52006-08-04 18:18:08 +000017214 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017215fi
Reid Spencera773bd52006-08-04 18:18:08 +000017216
Bill Wendlingebcceee2009-04-18 11:20:33 +000017217rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017218 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017219LIBS=$ac_check_lib_save_LIBS
17220fi
Reid Spencera773bd52006-08-04 18:18:08 +000017221{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17222echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017223if test $ac_cv_lib_dl_dlopen = yes; then
17224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17225else
17226
17227 lt_cv_dlopen="dyld"
17228 lt_cv_dlopen_libs=
17229 lt_cv_dlopen_self=yes
17230
17231fi
17232
17233 ;;
17234
John Criswell7a73b802003-06-30 21:59:07 +000017235 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017236 { echo "$as_me:$LINENO: checking for shl_load" >&5
17237echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017238if test "${ac_cv_func_shl_load+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017247/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17249#define shl_load innocuous_shl_load
17250
John Criswell7a73b802003-06-30 21:59:07 +000017251/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017252 which can conflict with char shl_load (); below.
17253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17254 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255
John Criswell0c38eaf2003-09-10 15:17:25 +000017256#ifdef __STDC__
17257# include <limits.h>
17258#else
17259# include <assert.h>
17260#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017261
17262#undef shl_load
17263
Reid Spencera773bd52006-08-04 18:18:08 +000017264/* Override any GCC internal prototype to avoid an error.
17265 Use char because int might match the return type of a GCC
17266 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017267#ifdef __cplusplus
17268extern "C"
17269#endif
John Criswell7a73b802003-06-30 21:59:07 +000017270char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017271/* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017274#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017275choke me
John Criswell7a73b802003-06-30 21:59:07 +000017276#endif
17277
John Criswell0c38eaf2003-09-10 15:17:25 +000017278int
17279main ()
17280{
Reid Spencera773bd52006-08-04 18:18:08 +000017281return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017282 ;
17283 return 0;
17284}
17285_ACEOF
17286rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017287if { (ac_try="$ac_link"
17288case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest$ac_exeext'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314esac
17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017320 ac_cv_func_shl_load=yes
17321else
17322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017323sed 's/^/| /' conftest.$ac_ext >&5
17324
Reid Spencera773bd52006-08-04 18:18:08 +000017325 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017326fi
Reid Spencera773bd52006-08-04 18:18:08 +000017327
Bill Wendlingebcceee2009-04-18 11:20:33 +000017328rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017329 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017330fi
Reid Spencera773bd52006-08-04 18:18:08 +000017331{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17332echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017333if test $ac_cv_func_shl_load = yes; then
17334 lt_cv_dlopen="shl_load"
17335else
Reid Spencera773bd52006-08-04 18:18:08 +000017336 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17337echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017338if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340else
17341 ac_check_lib_save_LIBS=$LIBS
17342LIBS="-ldld $LIBS"
17343cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017349
Reid Spencera773bd52006-08-04 18:18:08 +000017350/* Override any GCC internal prototype to avoid an error.
17351 Use char because int might match the return type of a GCC
17352 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017353#ifdef __cplusplus
17354extern "C"
17355#endif
John Criswell7a73b802003-06-30 21:59:07 +000017356char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017357int
17358main ()
17359{
Reid Spencera773bd52006-08-04 18:18:08 +000017360return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017361 ;
17362 return 0;
17363}
17364_ACEOF
17365rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017366if { (ac_try="$ac_link"
17367case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017374 grep -v '^ *+' conftest.er1 >conftest.err
17375 rm -f conftest.er1
17376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383esac
17384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017399 ac_cv_lib_dld_shl_load=yes
17400else
17401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017402sed 's/^/| /' conftest.$ac_ext >&5
17403
Reid Spencera773bd52006-08-04 18:18:08 +000017404 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017405fi
Reid Spencera773bd52006-08-04 18:18:08 +000017406
Bill Wendlingebcceee2009-04-18 11:20:33 +000017407rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017409LIBS=$ac_check_lib_save_LIBS
17410fi
Reid Spencera773bd52006-08-04 18:18:08 +000017411{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017413if test $ac_cv_lib_dld_shl_load = yes; then
17414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17415else
Reid Spencera773bd52006-08-04 18:18:08 +000017416 { echo "$as_me:$LINENO: checking for dlopen" >&5
17417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017418if test "${ac_cv_func_dlopen+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017427/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429#define dlopen innocuous_dlopen
17430
John Criswell7a73b802003-06-30 21:59:07 +000017431/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017432 which can conflict with char dlopen (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017435
John Criswell0c38eaf2003-09-10 15:17:25 +000017436#ifdef __STDC__
17437# include <limits.h>
17438#else
17439# include <assert.h>
17440#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441
17442#undef dlopen
17443
Reid Spencera773bd52006-08-04 18:18:08 +000017444/* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017447#ifdef __cplusplus
17448extern "C"
17449#endif
John Criswell7a73b802003-06-30 21:59:07 +000017450char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017454#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017455choke me
John Criswell7a73b802003-06-30 21:59:07 +000017456#endif
17457
John Criswell0c38eaf2003-09-10 15:17:25 +000017458int
17459main ()
17460{
Reid Spencera773bd52006-08-04 18:18:08 +000017461return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017467if { (ac_try="$ac_link"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest$ac_exeext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494esac
17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017500 ac_cv_func_dlopen=yes
17501else
17502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017503sed 's/^/| /' conftest.$ac_ext >&5
17504
Reid Spencera773bd52006-08-04 18:18:08 +000017505 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017506fi
Reid Spencera773bd52006-08-04 18:18:08 +000017507
Bill Wendlingebcceee2009-04-18 11:20:33 +000017508rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017509 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017510fi
Reid Spencera773bd52006-08-04 18:18:08 +000017511{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17512echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017513if test $ac_cv_func_dlopen = yes; then
17514 lt_cv_dlopen="dlopen"
17515else
Reid Spencera773bd52006-08-04 18:18:08 +000017516 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17517echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017518if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521 ac_check_lib_save_LIBS=$LIBS
17522LIBS="-ldl $LIBS"
17523cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017529
Reid Spencera773bd52006-08-04 18:18:08 +000017530/* Override any GCC internal prototype to avoid an error.
17531 Use char because int might match the return type of a GCC
17532 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017533#ifdef __cplusplus
17534extern "C"
17535#endif
John Criswell7a73b802003-06-30 21:59:07 +000017536char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017537int
17538main ()
17539{
Reid Spencera773bd52006-08-04 18:18:08 +000017540return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017546if { (ac_try="$ac_link"
17547case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017553 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17563esac
17564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_try") 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest$ac_exeext'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573esac
17574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017579 ac_cv_lib_dl_dlopen=yes
17580else
17581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017582sed 's/^/| /' conftest.$ac_ext >&5
17583
Reid Spencera773bd52006-08-04 18:18:08 +000017584 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017585fi
Reid Spencera773bd52006-08-04 18:18:08 +000017586
Bill Wendlingebcceee2009-04-18 11:20:33 +000017587rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017588 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017589LIBS=$ac_check_lib_save_LIBS
17590fi
Reid Spencera773bd52006-08-04 18:18:08 +000017591{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17592echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017593if test $ac_cv_lib_dl_dlopen = yes; then
17594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17595else
Reid Spencera773bd52006-08-04 18:18:08 +000017596 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17597echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017598if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600else
17601 ac_check_lib_save_LIBS=$LIBS
17602LIBS="-lsvld $LIBS"
17603cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017609
Reid Spencera773bd52006-08-04 18:18:08 +000017610/* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017613#ifdef __cplusplus
17614extern "C"
17615#endif
John Criswell7a73b802003-06-30 21:59:07 +000017616char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017617int
17618main ()
17619{
Reid Spencera773bd52006-08-04 18:18:08 +000017620return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017621 ;
17622 return 0;
17623}
17624_ACEOF
17625rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017626if { (ac_try="$ac_link"
17627case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630esac
17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643esac
17644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017659 ac_cv_lib_svld_dlopen=yes
17660else
17661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017662sed 's/^/| /' conftest.$ac_ext >&5
17663
Reid Spencera773bd52006-08-04 18:18:08 +000017664 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017665fi
Reid Spencera773bd52006-08-04 18:18:08 +000017666
Bill Wendlingebcceee2009-04-18 11:20:33 +000017667rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017668 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017669LIBS=$ac_check_lib_save_LIBS
17670fi
Reid Spencera773bd52006-08-04 18:18:08 +000017671{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17672echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017673if test $ac_cv_lib_svld_dlopen = yes; then
17674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17675else
Reid Spencera773bd52006-08-04 18:18:08 +000017676 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17677echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017678if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 ac_check_lib_save_LIBS=$LIBS
17682LIBS="-ldld $LIBS"
17683cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017689
Reid Spencera773bd52006-08-04 18:18:08 +000017690/* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017693#ifdef __cplusplus
17694extern "C"
17695#endif
John Criswell7a73b802003-06-30 21:59:07 +000017696char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017697int
17698main ()
17699{
Reid Spencera773bd52006-08-04 18:18:08 +000017700return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017701 ;
17702 return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017706if { (ac_try="$ac_link"
17707case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710esac
17711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest$ac_exeext'
17730 { (case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733esac
17734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_try") 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017739 ac_cv_lib_dld_dld_link=yes
17740else
17741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017742sed 's/^/| /' conftest.$ac_ext >&5
17743
Reid Spencera773bd52006-08-04 18:18:08 +000017744 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017745fi
Reid Spencera773bd52006-08-04 18:18:08 +000017746
Bill Wendlingebcceee2009-04-18 11:20:33 +000017747rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017748 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017749LIBS=$ac_check_lib_save_LIBS
17750fi
Reid Spencera773bd52006-08-04 18:18:08 +000017751{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17752echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017753if test $ac_cv_lib_dld_dld_link = yes; then
17754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17755fi
17756
17757
17758fi
17759
17760
17761fi
17762
17763
17764fi
17765
17766
17767fi
17768
17769
17770fi
17771
17772 ;;
17773 esac
17774
17775 if test "x$lt_cv_dlopen" != xno; then
17776 enable_dlopen=yes
17777 else
17778 enable_dlopen=no
17779 fi
17780
17781 case $lt_cv_dlopen in
17782 dlopen)
17783 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017785
17786 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017788
17789 save_LIBS="$LIBS"
17790 LIBS="$lt_cv_dlopen_libs $LIBS"
17791
Reid Spencera773bd52006-08-04 18:18:08 +000017792 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17793echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017794if test "${lt_cv_dlopen_self+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797 if test "$cross_compiling" = yes; then :
17798 lt_cv_dlopen_self=cross
17799else
John Criswell47fdd832003-07-14 16:52:07 +000017800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017801 lt_status=$lt_dlunknown
17802 cat > conftest.$ac_ext <<EOF
Rafael Espindola420d23c2009-11-16 19:46:55 +000017803#line 17803 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017804#include "confdefs.h"
17805
17806#if HAVE_DLFCN_H
17807#include <dlfcn.h>
17808#endif
17809
17810#include <stdio.h>
17811
17812#ifdef RTLD_GLOBAL
17813# define LT_DLGLOBAL RTLD_GLOBAL
17814#else
17815# ifdef DL_GLOBAL
17816# define LT_DLGLOBAL DL_GLOBAL
17817# else
17818# define LT_DLGLOBAL 0
17819# endif
17820#endif
17821
17822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17823 find out it does not work in some platform. */
17824#ifndef LT_DLLAZY_OR_NOW
17825# ifdef RTLD_LAZY
17826# define LT_DLLAZY_OR_NOW RTLD_LAZY
17827# else
17828# ifdef DL_LAZY
17829# define LT_DLLAZY_OR_NOW DL_LAZY
17830# else
17831# ifdef RTLD_NOW
17832# define LT_DLLAZY_OR_NOW RTLD_NOW
17833# else
17834# ifdef DL_NOW
17835# define LT_DLLAZY_OR_NOW DL_NOW
17836# else
17837# define LT_DLLAZY_OR_NOW 0
17838# endif
17839# endif
17840# endif
17841# endif
17842#endif
17843
17844#ifdef __cplusplus
17845extern "C" void exit (int);
17846#endif
17847
17848void fnord() { int i=42;}
17849int main ()
17850{
17851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17852 int status = $lt_dlunknown;
17853
17854 if (self)
17855 {
17856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17858 /* dlclose (self); */
17859 }
Reid Spencera773bd52006-08-04 18:18:08 +000017860 else
17861 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017862
17863 exit (status);
17864}
17865EOF
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017871 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017872 lt_status=$?
17873 case x$lt_status in
17874 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17875 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017876 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017877 esac
17878 else :
17879 # compilation failed
17880 lt_cv_dlopen_self=no
17881 fi
17882fi
17883rm -fr conftest*
17884
17885
17886fi
Reid Spencera773bd52006-08-04 18:18:08 +000017887{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17888echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017889
17890 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17892 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17893echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017894if test "${lt_cv_dlopen_self_static+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896else
17897 if test "$cross_compiling" = yes; then :
17898 lt_cv_dlopen_self_static=cross
17899else
John Criswell47fdd832003-07-14 16:52:07 +000017900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017901 lt_status=$lt_dlunknown
17902 cat > conftest.$ac_ext <<EOF
Rafael Espindola420d23c2009-11-16 19:46:55 +000017903#line 17903 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017904#include "confdefs.h"
17905
17906#if HAVE_DLFCN_H
17907#include <dlfcn.h>
17908#endif
17909
17910#include <stdio.h>
17911
17912#ifdef RTLD_GLOBAL
17913# define LT_DLGLOBAL RTLD_GLOBAL
17914#else
17915# ifdef DL_GLOBAL
17916# define LT_DLGLOBAL DL_GLOBAL
17917# else
17918# define LT_DLGLOBAL 0
17919# endif
17920#endif
17921
17922/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17923 find out it does not work in some platform. */
17924#ifndef LT_DLLAZY_OR_NOW
17925# ifdef RTLD_LAZY
17926# define LT_DLLAZY_OR_NOW RTLD_LAZY
17927# else
17928# ifdef DL_LAZY
17929# define LT_DLLAZY_OR_NOW DL_LAZY
17930# else
17931# ifdef RTLD_NOW
17932# define LT_DLLAZY_OR_NOW RTLD_NOW
17933# else
17934# ifdef DL_NOW
17935# define LT_DLLAZY_OR_NOW DL_NOW
17936# else
17937# define LT_DLLAZY_OR_NOW 0
17938# endif
17939# endif
17940# endif
17941# endif
17942#endif
17943
17944#ifdef __cplusplus
17945extern "C" void exit (int);
17946#endif
17947
17948void fnord() { int i=42;}
17949int main ()
17950{
17951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17952 int status = $lt_dlunknown;
17953
17954 if (self)
17955 {
17956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17957 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17958 /* dlclose (self); */
17959 }
Reid Spencera773bd52006-08-04 18:18:08 +000017960 else
17961 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017962
17963 exit (status);
17964}
17965EOF
17966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967 (eval $ac_link) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017971 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017972 lt_status=$?
17973 case x$lt_status in
17974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017977 esac
17978 else :
17979 # compilation failed
17980 lt_cv_dlopen_self_static=no
17981 fi
17982fi
17983rm -fr conftest*
17984
17985
17986fi
Reid Spencera773bd52006-08-04 18:18:08 +000017987{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17988echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017989 fi
17990
17991 CPPFLAGS="$save_CPPFLAGS"
17992 LDFLAGS="$save_LDFLAGS"
17993 LIBS="$save_LIBS"
17994 ;;
17995 esac
17996
17997 case $lt_cv_dlopen_self in
17998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17999 *) enable_dlopen_self=unknown ;;
18000 esac
18001
18002 case $lt_cv_dlopen_self_static in
18003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18004 *) enable_dlopen_self_static=unknown ;;
18005 esac
18006fi
18007
18008
Reid Spencera773bd52006-08-04 18:18:08 +000018009# Report which library types will actually be built
18010{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18011echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18012{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
18013echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000018014
Reid Spencera773bd52006-08-04 18:18:08 +000018015{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18016echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018017test "$can_build_shared" = "no" && enable_shared=no
18018
18019# On AIX, shared libraries and static libraries use the same namespace, and
18020# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000018021case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018022aix3*)
18023 test "$enable_shared" = yes && enable_static=no
18024 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018026 postinstall_cmds='$RANLIB $lib'
18027 fi
18028 ;;
18029
Reid Spencer2706f8c2004-09-19 23:53:36 +000018030aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18032 test "$enable_shared" = yes && enable_static=no
18033 fi
John Criswell7a73b802003-06-30 21:59:07 +000018034 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018035esac
Reid Spencera773bd52006-08-04 18:18:08 +000018036{ echo "$as_me:$LINENO: result: $enable_shared" >&5
18037echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000018038
Reid Spencera773bd52006-08-04 18:18:08 +000018039{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18040echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018041# Make sure either enable_shared or enable_static is yes.
18042test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018043{ echo "$as_me:$LINENO: result: $enable_static" >&5
18044echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018045
18046# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000018047# libtool distribution, otherwise you forgot to ship ltmain.sh
18048# with your package, and you will get complaints that there are
18049# no rules to generate ltmain.sh.
18050if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000018051 # See if we are running on zsh, and set the options which allow our commands through
18052 # without removal of \ escapes.
18053 if test -n "${ZSH_VERSION+set}" ; then
18054 setopt NO_GLOB_SUBST
18055 fi
John Criswell7a73b802003-06-30 21:59:07 +000018056 # Now quote all the things that may contain metacharacters while being
18057 # careful not to overquote the AC_SUBSTed values. We take copies of the
18058 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000018059 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 +000018060 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18063 deplibs_check_method reload_flag reload_cmds need_locks \
18064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18065 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000018066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000018067 old_postinstall_cmds old_postuninstall_cmds \
18068 compiler \
18069 CC \
18070 LD \
18071 lt_prog_compiler_wl \
18072 lt_prog_compiler_pic \
18073 lt_prog_compiler_static \
18074 lt_prog_compiler_no_builtin_flag \
18075 export_dynamic_flag_spec \
18076 thread_safe_flag_spec \
18077 whole_archive_flag_spec \
18078 enable_shared_with_static_runtimes \
18079 old_archive_cmds \
18080 old_archive_from_new_cmds \
18081 predep_objects \
18082 postdep_objects \
18083 predeps \
18084 postdeps \
18085 compiler_lib_search_path \
18086 archive_cmds \
18087 archive_expsym_cmds \
18088 postinstall_cmds \
18089 postuninstall_cmds \
18090 old_archive_from_expsyms_cmds \
18091 allow_undefined_flag \
18092 no_undefined_flag \
18093 export_symbols_cmds \
18094 hardcode_libdir_flag_spec \
18095 hardcode_libdir_flag_spec_ld \
18096 hardcode_libdir_separator \
18097 hardcode_automatic \
18098 module_cmds \
18099 module_expsym_cmds \
18100 lt_cv_prog_compiler_c_o \
18101 exclude_expsyms \
18102 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000018103
18104 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000018105 old_archive_cmds | \
18106 old_archive_from_new_cmds | \
18107 archive_cmds | \
18108 archive_expsym_cmds | \
18109 module_cmds | \
18110 module_expsym_cmds | \
18111 old_archive_from_expsyms_cmds | \
18112 export_symbols_cmds | \
18113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018114 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018115 old_postinstall_cmds | old_postuninstall_cmds | \
18116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018117 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018118 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 +000018119 ;;
18120 *)
18121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18122 ;;
18123 esac
18124 done
18125
John Criswell47fdd832003-07-14 16:52:07 +000018126 case $lt_echo in
18127 *'\$0 --fallback-echo"')
18128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18129 ;;
18130 esac
18131
18132cfgfile="${ofile}T"
18133 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18134 $rm -f "$cfgfile"
18135 { echo "$as_me:$LINENO: creating $ofile" >&5
18136echo "$as_me: creating $ofile" >&6;}
18137
18138 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018139#! $SHELL
18140
John Criswell47fdd832003-07-14 16:52:07 +000018141# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018142# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18143# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18144#
John Criswell47fdd832003-07-14 16:52:07 +000018145# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18146# Free Software Foundation, Inc.
18147#
18148# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018149# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18150#
18151# This program is free software; you can redistribute it and/or modify
18152# it under the terms of the GNU General Public License as published by
18153# the Free Software Foundation; either version 2 of the License, or
18154# (at your option) any later version.
18155#
18156# This program is distributed in the hope that it will be useful, but
18157# WITHOUT ANY WARRANTY; without even the implied warranty of
18158# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18159# General Public License for more details.
18160#
18161# You should have received a copy of the GNU General Public License
18162# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018163# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018164#
18165# As a special exception to the GNU General Public License, if you
18166# distribute this file as part of a program that contains a
18167# configuration script generated by Autoconf, you may include it under
18168# the same distribution terms that you use for the rest of that program.
18169
John Criswell47fdd832003-07-14 16:52:07 +000018170# A sed program that does not truncate output.
18171SED=$lt_SED
18172
John Criswell7a73b802003-06-30 21:59:07 +000018173# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018174Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018175
18176# The HP-UX ksh and POSIX shell print the target directory to stdout
18177# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018179
John Criswell47fdd832003-07-14 16:52:07 +000018180# The names of the tagged configurations supported by this script.
18181available_tags=
18182
John Criswell7a73b802003-06-30 21:59:07 +000018183# ### BEGIN LIBTOOL CONFIG
18184
18185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18186
18187# Shell to use when invoking shell scripts.
18188SHELL=$lt_SHELL
18189
18190# Whether or not to build shared libraries.
18191build_libtool_libs=$enable_shared
18192
18193# Whether or not to build static libraries.
18194build_old_libs=$enable_static
18195
18196# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018197build_libtool_need_lc=$archive_cmds_need_lc
18198
18199# Whether or not to disallow shared libs when runtime libs are static
18200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018201
18202# Whether or not to optimize for fast installation.
18203fast_install=$enable_fast_install
18204
18205# The host system.
18206host_alias=$host_alias
18207host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018208host_os=$host_os
18209
18210# The build system.
18211build_alias=$build_alias
18212build=$build
18213build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018214
18215# An echo program that does not interpret backslashes.
18216echo=$lt_echo
18217
18218# The archiver.
18219AR=$lt_AR
18220AR_FLAGS=$lt_AR_FLAGS
18221
John Criswell47fdd832003-07-14 16:52:07 +000018222# A C compiler.
18223LTCC=$lt_LTCC
18224
Reid Spencera773bd52006-08-04 18:18:08 +000018225# LTCC compiler flags.
18226LTCFLAGS=$lt_LTCFLAGS
18227
John Criswell47fdd832003-07-14 16:52:07 +000018228# A language-specific compiler.
18229CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018230
18231# Is the compiler the GNU C compiler?
18232with_gcc=$GCC
18233
John Criswell47fdd832003-07-14 16:52:07 +000018234# An ERE matcher.
18235EGREP=$lt_EGREP
18236
John Criswell7a73b802003-06-30 21:59:07 +000018237# The linker used to build libraries.
18238LD=$lt_LD
18239
18240# Whether we need hard or soft links.
18241LN_S=$lt_LN_S
18242
18243# A BSD-compatible nm program.
18244NM=$lt_NM
18245
18246# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018247STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018248
18249# Used to examine libraries when file_magic_cmd begins "file"
18250MAGIC_CMD=$MAGIC_CMD
18251
18252# Used on cygwin: DLL creation program.
18253DLLTOOL="$DLLTOOL"
18254
18255# Used on cygwin: object dumper.
18256OBJDUMP="$OBJDUMP"
18257
18258# Used on cygwin: assembler.
18259AS="$AS"
18260
18261# The name of the directory that contains temporary libtool files.
18262objdir=$objdir
18263
18264# How to create reloadable object files.
18265reload_flag=$lt_reload_flag
18266reload_cmds=$lt_reload_cmds
18267
18268# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018269wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018270
18271# Object file suffix (normally "o").
18272objext="$ac_objext"
18273
18274# Old archive suffix (normally "a").
18275libext="$libext"
18276
John Criswell47fdd832003-07-14 16:52:07 +000018277# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018278shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018279
John Criswell7a73b802003-06-30 21:59:07 +000018280# Executable file suffix (normally "").
18281exeext="$exeext"
18282
18283# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018284pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018285pic_mode=$pic_mode
18286
John Criswell47fdd832003-07-14 16:52:07 +000018287# What is the maximum length of a command?
18288max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018289
John Criswell47fdd832003-07-14 16:52:07 +000018290# Does compiler simultaneously support -c and -o options?
18291compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018292
Reid Spencera773bd52006-08-04 18:18:08 +000018293# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018294need_locks=$lt_need_locks
18295
18296# Do we need the lib prefix for modules?
18297need_lib_prefix=$need_lib_prefix
18298
18299# Do we need a version for libraries?
18300need_version=$need_version
18301
18302# Whether dlopen is supported.
18303dlopen_support=$enable_dlopen
18304
18305# Whether dlopen of programs is supported.
18306dlopen_self=$enable_dlopen_self
18307
18308# Whether dlopen of statically linked programs is supported.
18309dlopen_self_static=$enable_dlopen_self_static
18310
18311# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018312link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018313
18314# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018316
18317# Compiler flag to allow reflexive dlopens.
18318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18319
18320# Compiler flag to generate shared objects directly from archives.
18321whole_archive_flag_spec=$lt_whole_archive_flag_spec
18322
18323# Compiler flag to generate thread-safe objects.
18324thread_safe_flag_spec=$lt_thread_safe_flag_spec
18325
18326# Library versioning type.
18327version_type=$version_type
18328
18329# Format of library name prefix.
18330libname_spec=$lt_libname_spec
18331
18332# List of archive names. First name is the real one, the rest are links.
18333# The last name is the one that the linker finds with -lNAME.
18334library_names_spec=$lt_library_names_spec
18335
18336# The coded name of the library, if different from the real name.
18337soname_spec=$lt_soname_spec
18338
18339# Commands used to build and install an old-style archive.
18340RANLIB=$lt_RANLIB
18341old_archive_cmds=$lt_old_archive_cmds
18342old_postinstall_cmds=$lt_old_postinstall_cmds
18343old_postuninstall_cmds=$lt_old_postuninstall_cmds
18344
18345# Create an old-style archive from a shared archive.
18346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18347
18348# Create a temporary old-style archive to link instead of a shared archive.
18349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18350
18351# Commands used to build and install a shared archive.
18352archive_cmds=$lt_archive_cmds
18353archive_expsym_cmds=$lt_archive_expsym_cmds
18354postinstall_cmds=$lt_postinstall_cmds
18355postuninstall_cmds=$lt_postuninstall_cmds
18356
John Criswell47fdd832003-07-14 16:52:07 +000018357# Commands used to build a loadable module (assumed same as above if empty)
18358module_cmds=$lt_module_cmds
18359module_expsym_cmds=$lt_module_expsym_cmds
18360
John Criswell7a73b802003-06-30 21:59:07 +000018361# Commands to strip libraries.
18362old_striplib=$lt_old_striplib
18363striplib=$lt_striplib
18364
John Criswell47fdd832003-07-14 16:52:07 +000018365# Dependencies to place before the objects being linked to create a
18366# shared library.
18367predep_objects=$lt_predep_objects
18368
18369# Dependencies to place after the objects being linked to create a
18370# shared library.
18371postdep_objects=$lt_postdep_objects
18372
18373# Dependencies to place before the objects being linked to create a
18374# shared library.
18375predeps=$lt_predeps
18376
18377# Dependencies to place after the objects being linked to create a
18378# shared library.
18379postdeps=$lt_postdeps
18380
18381# The library search path used internally by the compiler when linking
18382# a shared library.
18383compiler_lib_search_path=$lt_compiler_lib_search_path
18384
John Criswell7a73b802003-06-30 21:59:07 +000018385# Method to check whether dependent libraries are shared objects.
18386deplibs_check_method=$lt_deplibs_check_method
18387
18388# Command to use when deplibs_check_method == file_magic.
18389file_magic_cmd=$lt_file_magic_cmd
18390
18391# Flag that allows shared libraries with undefined symbols to be built.
18392allow_undefined_flag=$lt_allow_undefined_flag
18393
18394# Flag that forces no undefined symbols.
18395no_undefined_flag=$lt_no_undefined_flag
18396
18397# Commands used to finish a libtool library installation in a directory.
18398finish_cmds=$lt_finish_cmds
18399
18400# Same as above, but a single script fragment to be evaled but not shown.
18401finish_eval=$lt_finish_eval
18402
18403# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018405
18406# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018408
18409# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018411
18412# This is the shared library runtime path variable.
18413runpath_var=$runpath_var
18414
18415# This is the shared library path variable.
18416shlibpath_var=$shlibpath_var
18417
18418# Is shlibpath searched before the hard-coded library search path?
18419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18420
18421# How to hardcode a shared library path into an executable.
18422hardcode_action=$hardcode_action
18423
18424# Whether we should hardcode library paths into libraries.
18425hardcode_into_libs=$hardcode_into_libs
18426
18427# Flag to hardcode \$libdir into a binary during linking.
18428# This must work even if \$libdir does not exist.
18429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18430
John Criswell47fdd832003-07-14 16:52:07 +000018431# If ld is used when linking, flag to hardcode \$libdir into
18432# a binary during linking. This must work even if \$libdir does
18433# not exist.
18434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18435
John Criswell7a73b802003-06-30 21:59:07 +000018436# Whether we need a single -rpath flag with a separated argument.
18437hardcode_libdir_separator=$lt_hardcode_libdir_separator
18438
John Criswell47fdd832003-07-14 16:52:07 +000018439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018440# resulting binary.
18441hardcode_direct=$hardcode_direct
18442
18443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18444# resulting binary.
18445hardcode_minus_L=$hardcode_minus_L
18446
18447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18448# the resulting binary.
18449hardcode_shlibpath_var=$hardcode_shlibpath_var
18450
John Criswell47fdd832003-07-14 16:52:07 +000018451# Set to yes if building a shared library automatically hardcodes DIR into the library
18452# and all subsequent libraries and executables linked against it.
18453hardcode_automatic=$hardcode_automatic
18454
John Criswell7a73b802003-06-30 21:59:07 +000018455# Variables whose values should be saved in libtool wrapper scripts and
18456# restored at relink time.
18457variables_saved_for_relink="$variables_saved_for_relink"
18458
18459# Whether libtool must link a program against all its dependency libraries.
18460link_all_deplibs=$link_all_deplibs
18461
18462# Compile-time system search path for libraries
18463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18464
18465# Run-time system search path for libraries
18466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18467
18468# Fix the shell variable \$srcfile for the compiler.
18469fix_srcfile_path="$fix_srcfile_path"
18470
18471# Set to yes if exported symbols are required.
18472always_export_symbols=$always_export_symbols
18473
18474# The commands to list exported symbols.
18475export_symbols_cmds=$lt_export_symbols_cmds
18476
18477# The commands to extract the exported symbol list from a shared archive.
18478extract_expsyms_cmds=$lt_extract_expsyms_cmds
18479
18480# Symbols that should not be listed in the preloaded symbols.
18481exclude_expsyms=$lt_exclude_expsyms
18482
18483# Symbols that must always be exported.
18484include_expsyms=$lt_include_expsyms
18485
18486# ### END LIBTOOL CONFIG
18487
18488__EOF__
18489
John Criswell47fdd832003-07-14 16:52:07 +000018490
John Criswell7a73b802003-06-30 21:59:07 +000018491 case $host_os in
18492 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018493 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018494
18495# AIX sometimes has problems with the GCC collect2 program. For some
18496# reason, if we set the COLLECT_NAMES environment variable, the problems
18497# vanish in a puff of smoke.
18498if test "X${COLLECT_NAMES+set}" != Xset; then
18499 COLLECT_NAMES=
18500 export COLLECT_NAMES
18501fi
18502EOF
18503 ;;
18504 esac
18505
John Criswell7a73b802003-06-30 21:59:07 +000018506 # We use sed instead of cat because bash on DJGPP gets confused if
18507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18508 # text mode, it properly converts lines to CR/LF. This bash problem
18509 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018510 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018511
John Criswell47fdd832003-07-14 16:52:07 +000018512 mv -f "$cfgfile" "$ofile" || \
18513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018514 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018515
18516else
18517 # If there is no Makefile yet, we rely on a make rule to execute
18518 # `config.status --recheck' to rerun these tests and create the
18519 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18521 if test -f "$ltmain_in"; then
18522 test -f Makefile && make "$ltmain"
18523 fi
John Criswell7a73b802003-06-30 21:59:07 +000018524fi
John Criswell7a73b802003-06-30 21:59:07 +000018525
18526
John Criswell47fdd832003-07-14 16:52:07 +000018527ac_ext=c
18528ac_cpp='$CPP $CPPFLAGS'
18529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531ac_compiler_gnu=$ac_cv_c_compiler_gnu
18532
18533CC="$lt_save_CC"
18534
18535
Reid Spencera773bd52006-08-04 18:18:08 +000018536# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018537if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018538 withval=$with_tags; tagnames="$withval"
18539fi
18540
John Criswell47fdd832003-07-14 16:52:07 +000018541
18542if test -f "$ltmain" && test -n "$tagnames"; then
18543 if test ! -f "${ofile}"; then
18544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18545echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18546 fi
18547
18548 if test -z "$LTCC"; then
18549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18550 if test -z "$LTCC"; then
18551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18552echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18553 else
18554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18555echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18556 fi
18557 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018558 if test -z "$LTCFLAGS"; then
18559 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18560 fi
John Criswell47fdd832003-07-14 16:52:07 +000018561
18562 # Extract list of available tagged configurations in $ofile.
18563 # Note that this assumes the entire list is on one line.
18564 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18565
18566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18567 for tagname in $tagnames; do
18568 IFS="$lt_save_ifs"
18569 # Check whether tagname contains only valid characters
18570 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18571 "") ;;
18572 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18573echo "$as_me: error: invalid tag name: $tagname" >&2;}
18574 { (exit 1); exit 1; }; }
18575 ;;
18576 esac
18577
18578 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18579 then
18580 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18581echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18582 { (exit 1); exit 1; }; }
18583 fi
18584
18585 # Update the list of available tags.
18586 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018587 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018588
18589 case $tagname in
18590 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018591 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18592 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18593 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018594 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018595ac_cpp='$CXXCPP $CPPFLAGS'
18596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18599
18600
18601
18602
18603archive_cmds_need_lc_CXX=no
18604allow_undefined_flag_CXX=
18605always_export_symbols_CXX=no
18606archive_expsym_cmds_CXX=
18607export_dynamic_flag_spec_CXX=
18608hardcode_direct_CXX=no
18609hardcode_libdir_flag_spec_CXX=
18610hardcode_libdir_flag_spec_ld_CXX=
18611hardcode_libdir_separator_CXX=
18612hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018613hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018614hardcode_automatic_CXX=no
18615module_cmds_CXX=
18616module_expsym_cmds_CXX=
18617link_all_deplibs_CXX=unknown
18618old_archive_cmds_CXX=$old_archive_cmds
18619no_undefined_flag_CXX=
18620whole_archive_flag_spec_CXX=
18621enable_shared_with_static_runtimes_CXX=no
18622
18623# Dependencies to place before and after the object being linked:
18624predep_objects_CXX=
18625postdep_objects_CXX=
18626predeps_CXX=
18627postdeps_CXX=
18628compiler_lib_search_path_CXX=
18629
18630# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018631ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018632
18633# Object file extension for compiled C++ test sources.
18634objext=o
18635objext_CXX=$objext
18636
18637# Code to be used in simple compile tests
18638lt_simple_compile_test_code="int some_variable = 0;\n"
18639
18640# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018641lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018642
18643# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18644
18645# If no C compiler was specified, use CC.
18646LTCC=${LTCC-"$CC"}
18647
Reid Spencera773bd52006-08-04 18:18:08 +000018648# If no C compiler flags were specified, use CFLAGS.
18649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18650
John Criswell47fdd832003-07-14 16:52:07 +000018651# Allow CC to be a program name with arguments.
18652compiler=$CC
18653
18654
Reid Spencera773bd52006-08-04 18:18:08 +000018655# save warnings/boilerplate of simple test code
18656ac_outfile=conftest.$ac_objext
18657printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18659_lt_compiler_boilerplate=`cat conftest.err`
18660$rm conftest*
18661
18662ac_outfile=conftest.$ac_objext
18663printf "$lt_simple_link_test_code" >conftest.$ac_ext
18664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665_lt_linker_boilerplate=`cat conftest.err`
18666$rm conftest*
18667
18668
John Criswell47fdd832003-07-14 16:52:07 +000018669# Allow CC to be a program name with arguments.
18670lt_save_CC=$CC
18671lt_save_LD=$LD
18672lt_save_GCC=$GCC
18673GCC=$GXX
18674lt_save_with_gnu_ld=$with_gnu_ld
18675lt_save_path_LD=$lt_cv_path_LD
18676if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18677 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18678else
Reid Spencera773bd52006-08-04 18:18:08 +000018679 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018680fi
18681if test -n "${lt_cv_path_LDCXX+set}"; then
18682 lt_cv_path_LD=$lt_cv_path_LDCXX
18683else
Reid Spencera773bd52006-08-04 18:18:08 +000018684 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018685fi
18686test -z "${LDCXX+set}" || LD=$LDCXX
18687CC=${CXX-"c++"}
18688compiler=$CC
18689compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018690for cc_temp in $compiler""; do
18691 case $cc_temp in
18692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18694 \-*) ;;
18695 *) break;;
18696 esac
18697done
18698cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18699
John Criswell47fdd832003-07-14 16:52:07 +000018700
18701# We don't want -fno-exception wen compiling C++ code, so set the
18702# no_builtin_flag separately
18703if test "$GXX" = yes; then
18704 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18705else
18706 lt_prog_compiler_no_builtin_flag_CXX=
18707fi
18708
18709if test "$GXX" = yes; then
18710 # Set up default GNU C++ configuration
18711
18712
Reid Spencera773bd52006-08-04 18:18:08 +000018713# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018714if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018716else
18717 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018718fi
18719
John Criswell47fdd832003-07-14 16:52:07 +000018720ac_prog=ld
18721if test "$GCC" = yes; then
18722 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018723 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18724echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018725 case $host in
18726 *-*-mingw*)
18727 # gcc leaves a trailing carriage return which upsets mingw
18728 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18729 *)
18730 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18731 esac
18732 case $ac_prog in
18733 # Accept absolute paths.
18734 [\\/]* | ?:[\\/]*)
18735 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018736 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018737 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18738 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18739 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18740 done
18741 test -z "$LD" && LD="$ac_prog"
18742 ;;
18743 "")
18744 # If it fails, then pretend we aren't using GCC.
18745 ac_prog=ld
18746 ;;
18747 *)
18748 # If it is relative, then search for the first ld in PATH.
18749 with_gnu_ld=unknown
18750 ;;
18751 esac
18752elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018753 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18754echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018755else
Reid Spencera773bd52006-08-04 18:18:08 +000018756 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18757echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018758fi
18759if test "${lt_cv_path_LD+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 if test -z "$LD"; then
18763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18764 for ac_dir in $PATH; do
18765 IFS="$lt_save_ifs"
18766 test -z "$ac_dir" && ac_dir=.
18767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18768 lt_cv_path_LD="$ac_dir/$ac_prog"
18769 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018770 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018771 # Break only if it was the GNU/non-GNU ld that we prefer.
18772 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18773 *GNU* | *'with BFD'*)
18774 test "$with_gnu_ld" != no && break
18775 ;;
18776 *)
18777 test "$with_gnu_ld" != yes && break
18778 ;;
18779 esac
18780 fi
18781 done
18782 IFS="$lt_save_ifs"
18783else
18784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18785fi
18786fi
18787
18788LD="$lt_cv_path_LD"
18789if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018790 { echo "$as_me:$LINENO: result: $LD" >&5
18791echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018792else
Reid Spencera773bd52006-08-04 18:18:08 +000018793 { echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018795fi
18796test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18797echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18798 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018799{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18800echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018801if test "${lt_cv_prog_gnu_ld+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
Reid Spencera773bd52006-08-04 18:18:08 +000018804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018805case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018806*GNU* | *'with BFD'*)
18807 lt_cv_prog_gnu_ld=yes
18808 ;;
18809*)
18810 lt_cv_prog_gnu_ld=no
18811 ;;
18812esac
18813fi
Reid Spencera773bd52006-08-04 18:18:08 +000018814{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18815echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018816with_gnu_ld=$lt_cv_prog_gnu_ld
18817
18818
18819
18820 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18821 # archiving commands below assume that GNU ld is being used.
18822 if test "$with_gnu_ld" = yes; then
18823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18824 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'
18825
18826 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18828
18829 # If archive_cmds runs LD, not CC, wlarc should be empty
18830 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18831 # investigate it a little bit more. (MM)
18832 wlarc='${wl}'
18833
18834 # ancient GNU ld didn't support --whole-archive et. al.
18835 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18836 grep 'no-whole-archive' > /dev/null; then
18837 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18838 else
18839 whole_archive_flag_spec_CXX=
18840 fi
18841 else
18842 with_gnu_ld=no
18843 wlarc=
18844
18845 # A generic and very simple default shared library creation
18846 # command for GNU C++ for the case where it uses the native
18847 # linker, instead of GNU ld. If possible, this setting should
18848 # overridden to take advantage of the native linker features on
18849 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018851 fi
18852
18853 # Commands to make compiler produce verbose output that lists
18854 # what "hidden" libraries, object files and flags are used when
18855 # linking a shared library.
18856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18857
18858else
18859 GXX=no
18860 with_gnu_ld=no
18861 wlarc=
18862fi
18863
18864# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018865{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018867ld_shlibs_CXX=yes
18868case $host_os in
18869 aix3*)
18870 # FIXME: insert proper C++ library support
18871 ld_shlibs_CXX=no
18872 ;;
18873 aix4* | aix5*)
18874 if test "$host_cpu" = ia64; then
18875 # On IA64, the linker does run time linking by default, so we don't
18876 # have to do anything special.
18877 aix_use_runtimelinking=no
18878 exp_sym_flag='-Bexport'
18879 no_entry_flag=""
18880 else
18881 aix_use_runtimelinking=no
18882
18883 # Test if we are trying to use run time linking or normal
18884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18885 # need to do runtime linking.
18886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18887 for ld_flag in $LDFLAGS; do
18888 case $ld_flag in
18889 *-brtl*)
18890 aix_use_runtimelinking=yes
18891 break
18892 ;;
18893 esac
18894 done
Reid Spencera773bd52006-08-04 18:18:08 +000018895 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018896 esac
18897
18898 exp_sym_flag='-bexport'
18899 no_entry_flag='-bnoentry'
18900 fi
18901
18902 # When large executables or shared objects are built, AIX ld can
18903 # have problems creating the table of contents. If linking a library
18904 # or program results in "error TOC overflow" add -mminimal-toc to
18905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18907
18908 archive_cmds_CXX=''
18909 hardcode_direct_CXX=yes
18910 hardcode_libdir_separator_CXX=':'
18911 link_all_deplibs_CXX=yes
18912
18913 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018914 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018915 # We only want to do this on AIX 4.2 and lower, the check
18916 # below for broken collect2 doesn't work under 4.3+
18917 collect2name=`${CC} -print-prog-name=collect2`
18918 if test -f "$collect2name" && \
18919 strings "$collect2name" | grep resolve_lib_name >/dev/null
18920 then
18921 # We have reworked collect2
18922 hardcode_direct_CXX=yes
18923 else
18924 # We have old collect2
18925 hardcode_direct_CXX=unsupported
18926 # It fails to find uninstalled libraries when the uninstalled
18927 # path is not listed in the libpath. Setting hardcode_minus_L
18928 # to unsupported forces relinking
18929 hardcode_minus_L_CXX=yes
18930 hardcode_libdir_flag_spec_CXX='-L$libdir'
18931 hardcode_libdir_separator_CXX=
18932 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018933 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018934 esac
18935 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018936 if test "$aix_use_runtimelinking" = yes; then
18937 shared_flag="$shared_flag "'${wl}-G'
18938 fi
John Criswell47fdd832003-07-14 16:52:07 +000018939 else
18940 # not using gcc
18941 if test "$host_cpu" = ia64; then
18942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18943 # chokes on -Wl,-G. The following line is correct:
18944 shared_flag='-G'
18945 else
18946 if test "$aix_use_runtimelinking" = yes; then
18947 shared_flag='${wl}-G'
18948 else
18949 shared_flag='${wl}-bM:SRE'
18950 fi
18951 fi
18952 fi
18953
18954 # It seems that -bexpall does not export symbols beginning with
18955 # underscore (_), so it is better to generate a list of symbols to export.
18956 always_export_symbols_CXX=yes
18957 if test "$aix_use_runtimelinking" = yes; then
18958 # Warning - without using the other runtime loading flags (-brtl),
18959 # -berok will link without error, but may produce a broken library.
18960 allow_undefined_flag_CXX='-berok'
18961 # Determine the default libpath from the value encoded in an empty executable.
18962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018968
John Criswell47fdd832003-07-14 16:52:07 +000018969int
18970main ()
18971{
18972
18973 ;
18974 return 0;
18975}
18976_ACEOF
18977rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018978if { (ac_try="$ac_link"
18979case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18982esac
18983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019011
19012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19013}'`
19014# Check for a 64-bit object if we didn't find anything.
19015if 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; }
19016}'`; fi
19017else
19018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019019sed 's/^/| /' conftest.$ac_ext >&5
19020
Reid Spencera773bd52006-08-04 18:18:08 +000019021
John Criswell47fdd832003-07-14 16:52:07 +000019022fi
Reid Spencera773bd52006-08-04 18:18:08 +000019023
Bill Wendlingebcceee2009-04-18 11:20:33 +000019024rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019025 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19027
19028 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19029
Reid Spencera773bd52006-08-04 18:18:08 +000019030 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 +000019031 else
19032 if test "$host_cpu" = ia64; then
19033 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19034 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000019035 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 +000019036 else
19037 # Determine the default libpath from the value encoded in an empty executable.
19038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000019044
John Criswell47fdd832003-07-14 16:52:07 +000019045int
19046main ()
19047{
19048
19049 ;
19050 return 0;
19051}
19052_ACEOF
19053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000019054if { (ac_try="$ac_link"
19055case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000019066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019087
19088aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19089}'`
19090# Check for a 64-bit object if we didn't find anything.
19091if 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; }
19092}'`; fi
19093else
19094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019095sed 's/^/| /' conftest.$ac_ext >&5
19096
Reid Spencera773bd52006-08-04 18:18:08 +000019097
John Criswell47fdd832003-07-14 16:52:07 +000019098fi
Reid Spencera773bd52006-08-04 18:18:08 +000019099
Bill Wendlingebcceee2009-04-18 11:20:33 +000019100rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019101 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19103
19104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19105 # Warning - without using the other run time loading flags,
19106 # -berok will link without error, but may produce a broken library.
19107 no_undefined_flag_CXX=' ${wl}-bernotok'
19108 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019109 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019110 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019111 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019112 # This is similar to how AIX traditionally builds its shared libraries.
19113 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 +000019114 fi
19115 fi
19116 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019117
19118 beos*)
19119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19120 allow_undefined_flag_CXX=unsupported
19121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19122 # support --undefined. This deserves some investigation. FIXME
19123 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 else
19125 ld_shlibs_CXX=no
19126 fi
19127 ;;
19128
John Criswell47fdd832003-07-14 16:52:07 +000019129 chorus*)
19130 case $cc_basename in
19131 *)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 esac
19136 ;;
19137
19138 cygwin* | mingw* | pw32*)
19139 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19140 # as there is no search path for DLLs.
19141 hardcode_libdir_flag_spec_CXX='-L$libdir'
19142 allow_undefined_flag_CXX=unsupported
19143 always_export_symbols_CXX=no
19144 enable_shared_with_static_runtimes_CXX=yes
19145
19146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019147 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 +000019148 # If the export-symbols file already is a .def file (1st line
19149 # is EXPORTS), use it as is; otherwise, prepend...
19150 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19151 cp $export_symbols $output_objdir/$soname.def;
19152 else
19153 echo EXPORTS > $output_objdir/$soname.def;
19154 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019155 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019156 $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 +000019157 else
19158 ld_shlibs_CXX=no
19159 fi
19160 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019161 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019162 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019163 rhapsody* | darwin1.[012])
19164 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19165 ;;
19166 *) # Darwin 1.3 on
19167 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19168 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19169 else
19170 case ${MACOSX_DEPLOYMENT_TARGET} in
19171 10.[012])
19172 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19173 ;;
19174 10.*)
19175 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19176 ;;
19177 esac
19178 fi
19179 ;;
19180 esac
19181 archive_cmds_need_lc_CXX=no
19182 hardcode_direct_CXX=no
19183 hardcode_automatic_CXX=yes
19184 hardcode_shlibpath_var_CXX=unsupported
19185 whole_archive_flag_spec_CXX=''
19186 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019187
Reid Spencer2706f8c2004-09-19 23:53:36 +000019188 if test "$GXX" = yes ; then
19189 lt_int_apple_cc_single_mod=no
19190 output_verbose_link_cmd='echo'
19191 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19192 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019193 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019194 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019195 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 +000019196 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019197 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 +000019198 fi
19199 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019200 # 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 +000019201 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019202 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 +000019203 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019204 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 +000019205 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019206 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 +000019207 else
Reid Spencera773bd52006-08-04 18:18:08 +000019208 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019209 xlc*)
19210 output_verbose_link_cmd='echo'
19211 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'
19212 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019213 # 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 +000019214 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}'
19215 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 +000019216 ;;
19217 *)
19218 ld_shlibs_CXX=no
19219 ;;
19220 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019221 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019222 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019223
19224 dgux*)
19225 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019226 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019227 # FIXME: insert proper C++ library support
19228 ld_shlibs_CXX=no
19229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019230 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019231 # Green Hills C++ Compiler
19232 # FIXME: insert proper C++ library support
19233 ld_shlibs_CXX=no
19234 ;;
19235 *)
19236 # FIXME: insert proper C++ library support
19237 ld_shlibs_CXX=no
19238 ;;
19239 esac
19240 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019241 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019242 # C++ shared libraries reported to be fairly broken before switch to ELF
19243 ld_shlibs_CXX=no
19244 ;;
19245 freebsd-elf*)
19246 archive_cmds_need_lc_CXX=no
19247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019248 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019249 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19250 # conventions
19251 ld_shlibs_CXX=yes
19252 ;;
19253 gnu*)
19254 ;;
19255 hpux9*)
19256 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19257 hardcode_libdir_separator_CXX=:
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19259 hardcode_direct_CXX=yes
19260 hardcode_minus_L_CXX=yes # Not in the search PATH,
19261 # but as the default
19262 # location of the library.
19263
19264 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019265 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019266 # FIXME: insert proper C++ library support
19267 ld_shlibs_CXX=no
19268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019269 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019270 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 +000019271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19274 #
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19278 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019279 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 +000019280 ;;
19281 *)
19282 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019283 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 +000019284 else
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 fi
19288 ;;
19289 esac
19290 ;;
19291 hpux10*|hpux11*)
19292 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019293 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19294 hardcode_libdir_separator_CXX=:
19295
19296 case $host_cpu in
19297 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019298 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019299 ;;
19300 *)
John Criswell47fdd832003-07-14 16:52:07 +000019301 export_dynamic_flag_spec_CXX='${wl}-E'
19302 ;;
19303 esac
19304 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019305 case $host_cpu in
19306 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019307 hardcode_direct_CXX=no
19308 hardcode_shlibpath_var_CXX=no
19309 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019310 *)
19311 hardcode_direct_CXX=yes
19312 hardcode_minus_L_CXX=yes # Not in the search PATH,
19313 # but as the default
19314 # location of the library.
19315 ;;
19316 esac
19317
19318 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019319 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019320 # FIXME: insert proper C++ library support
19321 ld_shlibs_CXX=no
19322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019323 aCC*)
19324 case $host_cpu in
19325 hppa*64*)
19326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19327 ;;
19328 ia64*)
19329 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 +000019330 ;;
19331 *)
19332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19333 ;;
19334 esac
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19338 #
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19342 # dependencies.
19343 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'
19344 ;;
19345 *)
19346 if test "$GXX" = yes; then
19347 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019348 case $host_cpu in
19349 hppa*64*)
19350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19351 ;;
19352 ia64*)
19353 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 +000019354 ;;
19355 *)
19356 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'
19357 ;;
19358 esac
19359 fi
19360 else
19361 # FIXME: insert proper C++ library support
19362 ld_shlibs_CXX=no
19363 fi
19364 ;;
19365 esac
19366 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019367 interix3*)
19368 hardcode_direct_CXX=no
19369 hardcode_shlibpath_var_CXX=no
19370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19371 export_dynamic_flag_spec_CXX='${wl}-E'
19372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19373 # Instead, shared libraries are loaded at an image base (0x10000000 by
19374 # default) and relocated if they conflict, which is a slow very memory
19375 # consuming and fragmenting process. To avoid this, we pick a random,
19376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19378 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'
19379 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'
19380 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019381 irix5* | irix6*)
19382 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019383 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019384 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019385 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 +000019386
19387 # Archives containing C++ object files must be created using
19388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19389 # necessary to make sure instantiated templates are included
19390 # in the archive.
19391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19392 ;;
19393 *)
19394 if test "$GXX" = yes; then
19395 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019396 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 +000019397 else
19398 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'
19399 fi
19400 fi
19401 link_all_deplibs_CXX=yes
19402 ;;
19403 esac
19404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19405 hardcode_libdir_separator_CXX=:
19406 ;;
19407 linux*)
19408 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019409 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019410 # Kuck and Associates, Inc. (KAI) C++ Compiler
19411
19412 # KCC will only create a shared library if the output file
19413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19414 # to its proper name (with version) after linking.
19415 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'
19416 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'
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19420 #
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19424 # dependencies.
19425 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'
19426
19427 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19429
19430 # Archives containing C++ object files must be created using
19431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19432 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19433 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019434 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019435 # Intel C++
19436 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019437 # version 8.0 and above of icpc choke on multiply defined symbols
19438 # if we add $predep_objects and $postdep_objects, however 7.1 and
19439 # earlier do not add the objects themselves.
19440 case `$CC -V 2>&1` in
19441 *"Version 7."*)
19442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19443 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'
19444 ;;
19445 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019446 tmp_idyn=
19447 case $host_cpu in
19448 ia64*) tmp_idyn=' -i_dynamic';;
19449 esac
19450 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19451 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 +000019452 ;;
19453 esac
John Criswell47fdd832003-07-14 16:52:07 +000019454 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19457 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019459 pgCC*)
19460 # Portland Group C++ compiler
19461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19462 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'
19463
19464 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19466 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'
19467 ;;
19468 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019469 # Compaq C++
19470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471 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'
19472
19473 runpath_var=LD_RUN_PATH
19474 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19475 hardcode_libdir_separator_CXX=:
19476
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19480 #
19481 # There doesn't appear to be a way to prevent this compiler from
19482 # explicitly linking system object files so we need to strip them
19483 # from the output so that they don't get included in the library
19484 # dependencies.
19485 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'
19486 ;;
19487 esac
19488 ;;
19489 lynxos*)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493 m88k*)
19494 # FIXME: insert proper C++ library support
19495 ld_shlibs_CXX=no
19496 ;;
19497 mvs*)
19498 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019499 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19502 ;;
19503 *)
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19506 ;;
19507 esac
19508 ;;
19509 netbsd*)
19510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19511 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19512 wlarc=
19513 hardcode_libdir_flag_spec_CXX='-R$libdir'
19514 hardcode_direct_CXX=yes
19515 hardcode_shlibpath_var_CXX=no
19516 fi
19517 # Workaround some broken pre-1.5 toolchains
19518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19519 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019520 openbsd2*)
19521 # C++ shared libraries are fairly broken
19522 ld_shlibs_CXX=no
19523 ;;
19524 openbsd*)
19525 hardcode_direct_CXX=yes
19526 hardcode_shlibpath_var_CXX=no
19527 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19531 export_dynamic_flag_spec_CXX='${wl}-E'
19532 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19533 fi
19534 output_verbose_link_cmd='echo'
19535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019536 osf3*)
19537 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019538 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019539 # Kuck and Associates, Inc. (KAI) C++ Compiler
19540
19541 # KCC will only create a shared library if the output file
19542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19543 # to its proper name (with version) after linking.
19544 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'
19545
19546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19547 hardcode_libdir_separator_CXX=:
19548
19549 # Archives containing C++ object files must be created using
19550 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19551 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19552
19553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019554 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019555 # Rational C++ 2.4.1
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019559 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019561 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 +000019562
19563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19564 hardcode_libdir_separator_CXX=:
19565
19566 # Commands to make compiler produce verbose output that lists
19567 # what "hidden" libraries, object files and flags are used when
19568 # linking a shared library.
19569 #
19570 # There doesn't appear to be a way to prevent this compiler from
19571 # explicitly linking system object files so we need to strip them
19572 # from the output so that they don't get included in the library
19573 # dependencies.
19574 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'
19575 ;;
19576 *)
19577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019579 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 +000019580
19581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19582 hardcode_libdir_separator_CXX=:
19583
19584 # Commands to make compiler produce verbose output that lists
19585 # what "hidden" libraries, object files and flags are used when
19586 # linking a shared library.
19587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19588
19589 else
19590 # FIXME: insert proper C++ library support
19591 ld_shlibs_CXX=no
19592 fi
19593 ;;
19594 esac
19595 ;;
19596 osf4* | osf5*)
19597 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019598 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019599 # Kuck and Associates, Inc. (KAI) C++ Compiler
19600
19601 # KCC will only create a shared library if the output file
19602 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19603 # to its proper name (with version) after linking.
19604 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'
19605
19606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19607 hardcode_libdir_separator_CXX=:
19608
19609 # Archives containing C++ object files must be created using
19610 # the KAI C++ compiler.
19611 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019613 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019614 # Rational C++ 2.4.1
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019618 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019619 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019620 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 +000019621 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19622 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019623 $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 +000019624 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019625
19626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19627 hardcode_libdir_separator_CXX=:
19628
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19632 #
19633 # There doesn't appear to be a way to prevent this compiler from
19634 # explicitly linking system object files so we need to strip them
19635 # from the output so that they don't get included in the library
19636 # dependencies.
19637 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'
19638 ;;
19639 *)
19640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019642 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 +000019643
19644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19645 hardcode_libdir_separator_CXX=:
19646
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19651
19652 else
19653 # FIXME: insert proper C++ library support
19654 ld_shlibs_CXX=no
19655 fi
19656 ;;
19657 esac
19658 ;;
19659 psos*)
19660 # FIXME: insert proper C++ library support
19661 ld_shlibs_CXX=no
19662 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019663 sunos4*)
19664 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019665 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019666 # Sun C++ 4.x
19667 # FIXME: insert proper C++ library support
19668 ld_shlibs_CXX=no
19669 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019670 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019671 # Lucid
19672 # FIXME: insert proper C++ library support
19673 ld_shlibs_CXX=no
19674 ;;
19675 *)
19676 # FIXME: insert proper C++ library support
19677 ld_shlibs_CXX=no
19678 ;;
19679 esac
19680 ;;
19681 solaris*)
19682 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019683 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019684 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019685 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019686 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019687 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 +000019688 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 +000019689 $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 +000019690
19691 hardcode_libdir_flag_spec_CXX='-R$libdir'
19692 hardcode_shlibpath_var_CXX=no
19693 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019694 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019695 *)
19696 # The C++ compiler is used as linker so we must use $wl
19697 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019698 # linker. We must also pass each convience library through
19699 # to the system linker between allextract/defaultextract.
19700 # The C++ compiler will combine linker options so we
19701 # cannot just pass the convience library names through
19702 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019703 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019704 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 +000019705 ;;
19706 esac
19707 link_all_deplibs_CXX=yes
19708
Reid Spencera773bd52006-08-04 18:18:08 +000019709 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019710
19711 # Archives containing C++ object files must be created using
19712 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19713 # necessary to make sure instantiated templates are included
19714 # in the archive.
19715 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019717 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019718 # Green Hills C++ Compiler
19719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19720
19721 # The C++ compiler must be used to create the archive.
19722 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19723 ;;
19724 *)
19725 # GNU C++ compiler with Solaris linker
19726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19727 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19728 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019729 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 +000019730 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19731 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19732
John Criswell47fdd832003-07-14 16:52:07 +000019733 # Commands to make compiler produce verbose output that lists
19734 # what "hidden" libraries, object files and flags are used when
19735 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019736 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019737 else
19738 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19739 # platform.
19740 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 +000019741 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19742 $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 +000019743
19744 # Commands to make compiler produce verbose output that lists
19745 # what "hidden" libraries, object files and flags are used when
19746 # linking a shared library.
19747 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19748 fi
19749
19750 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19751 fi
19752 ;;
19753 esac
19754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19756 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019757 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019758 hardcode_shlibpath_var_CXX=no
19759 runpath_var='LD_RUN_PATH'
19760
19761 case $cc_basename in
19762 CC*)
19763 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 ;;
19766 *)
19767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 ;;
19770 esac
19771 ;;
19772 sysv5* | sco3.2v5* | sco5v6*)
19773 # Note: We can NOT use -z defs as we might desire, because we do not
19774 # link with -lc, and that would cause any symbols used from libc to
19775 # always be unresolved, which means just about no library would
19776 # ever link correctly. If we're not using GNU ld we use -z text
19777 # though, which does catch some bad symbols but isn't as heavy-handed
19778 # as -z defs.
19779 # For security reasons, it is highly recommended that you always
19780 # use absolute paths for naming shared libraries, and exclude the
19781 # DT_RUNPATH tag from executables and libraries. But doing so
19782 # requires that you compile everything twice, which is a pain.
19783 # So that behaviour is only enabled if SCOABSPATH is set to a
19784 # non-empty value in the environment. Most likely only useful for
19785 # creating official distributions of packages.
19786 # This is a hack until libtool officially supports absolute path
19787 # names for shared libraries.
19788 no_undefined_flag_CXX='${wl}-z,text'
19789 allow_undefined_flag_CXX='${wl}-z,nodefs'
19790 archive_cmds_need_lc_CXX=no
19791 hardcode_shlibpath_var_CXX=no
19792 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19793 hardcode_libdir_separator_CXX=':'
19794 link_all_deplibs_CXX=yes
19795 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19796 runpath_var='LD_RUN_PATH'
19797
19798 case $cc_basename in
19799 CC*)
19800 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 ;;
19803 *)
19804 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19805 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19806 ;;
19807 esac
John Criswell47fdd832003-07-14 16:52:07 +000019808 ;;
19809 tandem*)
19810 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019811 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019812 # NonStop-UX NCC 3.20
19813 # FIXME: insert proper C++ library support
19814 ld_shlibs_CXX=no
19815 ;;
19816 *)
19817 # FIXME: insert proper C++ library support
19818 ld_shlibs_CXX=no
19819 ;;
19820 esac
19821 ;;
19822 vxworks*)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19825 ;;
19826 *)
19827 # FIXME: insert proper C++ library support
19828 ld_shlibs_CXX=no
19829 ;;
19830esac
Reid Spencera773bd52006-08-04 18:18:08 +000019831{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19832echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019833test "$ld_shlibs_CXX" = no && can_build_shared=no
19834
19835GCC_CXX="$GXX"
19836LD_CXX="$LD"
19837
John Criswell47fdd832003-07-14 16:52:07 +000019838
19839cat > conftest.$ac_ext <<EOF
19840class Foo
19841{
19842public:
19843 Foo (void) { a = 0; }
19844private:
19845 int a;
19846};
19847EOF
19848
19849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850 (eval $ac_compile) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; then
19854 # Parse the compiler output and extract the necessary
19855 # objects, libraries and library flags.
19856
19857 # Sentinel used to keep track of whether or not we are before
19858 # the conftest object file.
19859 pre_test_object_deps_done=no
19860
19861 # The `*' in the case matches for architectures that use `case' in
19862 # $output_verbose_cmd can trigger glob expansion during the loop
19863 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019864 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019865
19866 for p in `eval $output_verbose_link_cmd`; do
19867 case $p in
19868
19869 -L* | -R* | -l*)
19870 # Some compilers place space between "-{L,R}" and the path.
19871 # Remove the space.
19872 if test $p = "-L" \
19873 || test $p = "-R"; then
19874 prev=$p
19875 continue
19876 else
19877 prev=
19878 fi
19879
19880 if test "$pre_test_object_deps_done" = no; then
19881 case $p in
19882 -L* | -R*)
19883 # Internal compiler library paths should come after those
19884 # provided the user. The postdeps already come after the
19885 # user supplied libs so there is no need to process them.
19886 if test -z "$compiler_lib_search_path_CXX"; then
19887 compiler_lib_search_path_CXX="${prev}${p}"
19888 else
19889 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19890 fi
19891 ;;
19892 # The "-l" case would never come before the object being
19893 # linked, so don't bother handling this case.
19894 esac
19895 else
19896 if test -z "$postdeps_CXX"; then
19897 postdeps_CXX="${prev}${p}"
19898 else
19899 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19900 fi
19901 fi
19902 ;;
19903
19904 *.$objext)
19905 # This assumes that the test object file only shows up
19906 # once in the compiler output.
19907 if test "$p" = "conftest.$objext"; then
19908 pre_test_object_deps_done=yes
19909 continue
19910 fi
19911
19912 if test "$pre_test_object_deps_done" = no; then
19913 if test -z "$predep_objects_CXX"; then
19914 predep_objects_CXX="$p"
19915 else
19916 predep_objects_CXX="$predep_objects_CXX $p"
19917 fi
19918 else
19919 if test -z "$postdep_objects_CXX"; then
19920 postdep_objects_CXX="$p"
19921 else
19922 postdep_objects_CXX="$postdep_objects_CXX $p"
19923 fi
19924 fi
19925 ;;
19926
19927 *) ;; # Ignore the rest.
19928
19929 esac
19930 done
19931
19932 # Clean up.
19933 rm -f a.out a.exe
19934else
19935 echo "libtool.m4: error: problem compiling CXX test program"
19936fi
19937
19938$rm -f confest.$objext
19939
Reid Spencera773bd52006-08-04 18:18:08 +000019940# PORTME: override above test on systems where it is broken
19941case $host_os in
19942interix3*)
19943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19944 # hack all around it, let's just trust "g++" to DTRT.
19945 predep_objects_CXX=
19946 postdep_objects_CXX=
19947 postdeps_CXX=
19948 ;;
19949
19950solaris*)
19951 case $cc_basename in
19952 CC*)
19953 # Adding this requires a known-good setup of shared libraries for
19954 # Sun compiler versions before 5.6, else PIC objects from an old
19955 # archive will be linked into the output, leading to subtle bugs.
19956 postdeps_CXX='-lCstd -lCrun'
19957 ;;
19958 esac
19959 ;;
19960esac
19961
19962
John Criswell47fdd832003-07-14 16:52:07 +000019963case " $postdeps_CXX " in
19964*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19965esac
19966
19967lt_prog_compiler_wl_CXX=
19968lt_prog_compiler_pic_CXX=
19969lt_prog_compiler_static_CXX=
19970
Reid Spencera773bd52006-08-04 18:18:08 +000019971{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19972echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019973
19974 # C++ specific cases for pic, static, wl, etc.
19975 if test "$GXX" = yes; then
19976 lt_prog_compiler_wl_CXX='-Wl,'
19977 lt_prog_compiler_static_CXX='-static'
19978
19979 case $host_os in
19980 aix*)
19981 # All AIX code is PIC.
19982 if test "$host_cpu" = ia64; then
19983 # AIX 5 now supports IA64 processor
19984 lt_prog_compiler_static_CXX='-Bstatic'
19985 fi
19986 ;;
19987 amigaos*)
19988 # FIXME: we need at least 68020 code to build shared libraries, but
19989 # adding the `-m68020' flag to GCC prevents building anything better,
19990 # like `-m68040'.
19991 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19992 ;;
19993 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19994 # PIC is the default for these OSes.
19995 ;;
19996 mingw* | os2* | pw32*)
19997 # This hack is so that the source file can tell whether it is being
19998 # built for inclusion in a dll (and should export symbols for example).
19999 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20000 ;;
20001 darwin* | rhapsody*)
20002 # PIC is the default on this platform
20003 # Common symbols not allowed in MH_DYLIB files
20004 lt_prog_compiler_pic_CXX='-fno-common'
20005 ;;
20006 *djgpp*)
20007 # DJGPP does not support shared libraries at all
20008 lt_prog_compiler_pic_CXX=
20009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020010 interix3*)
20011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20012 # Instead, we relocate shared libraries at runtime.
20013 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020014 sysv4*MP*)
20015 if test -d /usr/nec; then
20016 lt_prog_compiler_pic_CXX=-Kconform_pic
20017 fi
20018 ;;
20019 hpux*)
20020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20021 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020022 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020023 hppa*64*|ia64*)
20024 ;;
20025 *)
20026 lt_prog_compiler_pic_CXX='-fPIC'
20027 ;;
20028 esac
20029 ;;
20030 *)
20031 lt_prog_compiler_pic_CXX='-fPIC'
20032 ;;
20033 esac
20034 else
20035 case $host_os in
20036 aix4* | aix5*)
20037 # All AIX code is PIC.
20038 if test "$host_cpu" = ia64; then
20039 # AIX 5 now supports IA64 processor
20040 lt_prog_compiler_static_CXX='-Bstatic'
20041 else
20042 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20043 fi
20044 ;;
20045 chorus*)
20046 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020047 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000020048 # Green Hills C++ Compiler
20049 # _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"
20050 ;;
20051 esac
20052 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020053 darwin*)
20054 # PIC is the default on this platform
20055 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020056 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057 xlc*)
20058 lt_prog_compiler_pic_CXX='-qnocommon'
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 ;;
20061 esac
20062 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020063 dgux*)
20064 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020065 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000020066 lt_prog_compiler_pic_CXX='-KPIC'
20067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020068 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020069 # Green Hills C++ Compiler
20070 lt_prog_compiler_pic_CXX='-pic'
20071 ;;
20072 *)
20073 ;;
20074 esac
20075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020076 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000020077 # FreeBSD uses GNU C++
20078 ;;
20079 hpux9* | hpux10* | hpux11*)
20080 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020081 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020082 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020083 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000020084 if test "$host_cpu" != ia64; then
20085 lt_prog_compiler_pic_CXX='+Z'
20086 fi
20087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020088 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020089 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020090 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20091 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020092 hppa*64*|ia64*)
20093 # +Z the default
20094 ;;
20095 *)
20096 lt_prog_compiler_pic_CXX='+Z'
20097 ;;
20098 esac
20099 ;;
20100 *)
20101 ;;
20102 esac
20103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020104 interix*)
20105 # This is c89, which is MS Visual C++ (no shared libs)
20106 # Anyone wants to do a port?
20107 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020108 irix5* | irix6* | nonstopux*)
20109 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020110 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_static_CXX='-non_shared'
20113 # CC pic flag -KPIC is the default.
20114 ;;
20115 *)
20116 ;;
20117 esac
20118 ;;
20119 linux*)
20120 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020121 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020122 # KAI C++ Compiler
20123 lt_prog_compiler_wl_CXX='--backend -Wl,'
20124 lt_prog_compiler_pic_CXX='-fPIC'
20125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020126 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020127 # Intel C++
20128 lt_prog_compiler_wl_CXX='-Wl,'
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-static'
20131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020132 pgCC*)
20133 # Portland Group C++ compiler.
20134 lt_prog_compiler_wl_CXX='-Wl,'
20135 lt_prog_compiler_pic_CXX='-fpic'
20136 lt_prog_compiler_static_CXX='-Bstatic'
20137 ;;
20138 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020139 # Compaq C++
20140 # Make sure the PIC flag is empty. It appears that all Alpha
20141 # Linux and Compaq Tru64 Unix objects are PIC.
20142 lt_prog_compiler_pic_CXX=
20143 lt_prog_compiler_static_CXX='-non_shared'
20144 ;;
20145 *)
20146 ;;
20147 esac
20148 ;;
20149 lynxos*)
20150 ;;
20151 m88k*)
20152 ;;
20153 mvs*)
20154 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020155 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020156 lt_prog_compiler_pic_CXX='-W c,exportall'
20157 ;;
20158 *)
20159 ;;
20160 esac
20161 ;;
20162 netbsd*)
20163 ;;
20164 osf3* | osf4* | osf5*)
20165 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020166 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020167 lt_prog_compiler_wl_CXX='--backend -Wl,'
20168 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020169 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020170 # Rational C++ 2.4.1
20171 lt_prog_compiler_pic_CXX='-pic'
20172 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020173 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020174 # Digital/Compaq C++
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 # Make sure the PIC flag is empty. It appears that all Alpha
20177 # Linux and Compaq Tru64 Unix objects are PIC.
20178 lt_prog_compiler_pic_CXX=
20179 lt_prog_compiler_static_CXX='-non_shared'
20180 ;;
20181 *)
20182 ;;
20183 esac
20184 ;;
20185 psos*)
20186 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020187 solaris*)
20188 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020189 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020190 # Sun C++ 4.2, 5.x and Centerline C++
20191 lt_prog_compiler_pic_CXX='-KPIC'
20192 lt_prog_compiler_static_CXX='-Bstatic'
20193 lt_prog_compiler_wl_CXX='-Qoption ld '
20194 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020195 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020196 # Green Hills C++ Compiler
20197 lt_prog_compiler_pic_CXX='-PIC'
20198 ;;
20199 *)
20200 ;;
20201 esac
20202 ;;
20203 sunos4*)
20204 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020205 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020206 # Sun C++ 4.x
20207 lt_prog_compiler_pic_CXX='-pic'
20208 lt_prog_compiler_static_CXX='-Bstatic'
20209 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020210 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020211 # Lucid
20212 lt_prog_compiler_pic_CXX='-pic'
20213 ;;
20214 *)
20215 ;;
20216 esac
20217 ;;
20218 tandem*)
20219 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020220 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020221 # NonStop-UX NCC 3.20
20222 lt_prog_compiler_pic_CXX='-KPIC'
20223 ;;
20224 *)
20225 ;;
20226 esac
20227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20229 case $cc_basename in
20230 CC*)
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 lt_prog_compiler_pic_CXX='-KPIC'
20233 lt_prog_compiler_static_CXX='-Bstatic'
20234 ;;
20235 esac
John Criswell47fdd832003-07-14 16:52:07 +000020236 ;;
20237 vxworks*)
20238 ;;
20239 *)
20240 lt_prog_compiler_can_build_shared_CXX=no
20241 ;;
20242 esac
20243 fi
20244
Reid Spencera773bd52006-08-04 18:18:08 +000020245{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20246echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020247
20248#
20249# Check to make sure the PIC flag actually works.
20250#
20251if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020252
Reid Spencera773bd52006-08-04 18:18:08 +000020253{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20254echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020255if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 lt_prog_compiler_pic_works_CXX=no
20259 ac_outfile=conftest.$ac_objext
20260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20262 # Insert the option either (1) after the last *FLAGS variable, or
20263 # (2) before a word containing "conftest.", or (3) at the end.
20264 # Note that $ac_compile itself does not contain backslashes and begins
20265 # with a dollar sign (not a hyphen), so the echo should work correctly.
20266 # The option is referenced via a variable to avoid confusing sed.
20267 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20270 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000020271 (eval echo "\"\$as_me:20271: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020272 (eval "$lt_compile" 2>conftest.err)
20273 ac_status=$?
20274 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000020275 echo "$as_me:20275: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020276 if (exit $ac_status) && test -s "$ac_outfile"; then
20277 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020278 # So say no if there are warnings other than the usual output.
20279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020282 lt_prog_compiler_pic_works_CXX=yes
20283 fi
20284 fi
20285 $rm conftest*
20286
20287fi
Reid Spencera773bd52006-08-04 18:18:08 +000020288{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20289echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020290
20291if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20292 case $lt_prog_compiler_pic_CXX in
20293 "" | " "*) ;;
20294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20295 esac
20296else
20297 lt_prog_compiler_pic_CXX=
20298 lt_prog_compiler_can_build_shared_CXX=no
20299fi
20300
20301fi
Reid Spencera773bd52006-08-04 18:18:08 +000020302case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020303 # For platforms which do not support PIC, -DPIC is meaningless:
20304 *djgpp*)
20305 lt_prog_compiler_pic_CXX=
20306 ;;
20307 *)
20308 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20309 ;;
20310esac
20311
Reid Spencera773bd52006-08-04 18:18:08 +000020312#
20313# Check to make sure the static flag actually works.
20314#
20315wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20316{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20317echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20318if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
20321 lt_prog_compiler_static_works_CXX=no
20322 save_LDFLAGS="$LDFLAGS"
20323 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20324 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20326 # The linker can only warn and ignore the option if not recognized
20327 # So say no if there are warnings
20328 if test -s conftest.err; then
20329 # Append any errors to the config.log.
20330 cat conftest.err 1>&5
20331 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20333 if diff conftest.exp conftest.er2 >/dev/null; then
20334 lt_prog_compiler_static_works_CXX=yes
20335 fi
20336 else
20337 lt_prog_compiler_static_works_CXX=yes
20338 fi
20339 fi
20340 $rm conftest*
20341 LDFLAGS="$save_LDFLAGS"
20342
20343fi
20344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20345echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20346
20347if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20348 :
20349else
20350 lt_prog_compiler_static_CXX=
20351fi
20352
20353
20354{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20355echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020356if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359 lt_cv_prog_compiler_c_o_CXX=no
20360 $rm -r conftest 2>/dev/null
20361 mkdir conftest
20362 cd conftest
20363 mkdir out
20364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20365
John Criswell47fdd832003-07-14 16:52:07 +000020366 lt_compiler_flag="-o out/conftest2.$ac_objext"
20367 # Insert the option either (1) after the last *FLAGS variable, or
20368 # (2) before a word containing "conftest.", or (3) at the end.
20369 # Note that $ac_compile itself does not contain backslashes and begins
20370 # with a dollar sign (not a hyphen), so the echo should work correctly.
20371 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20374 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000020375 (eval echo "\"\$as_me:20375: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020376 (eval "$lt_compile" 2>out/conftest.err)
20377 ac_status=$?
20378 cat out/conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000020379 echo "$as_me:20379: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20381 then
20382 # The compiler can only warn and ignore the option if not recognized
20383 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020387 lt_cv_prog_compiler_c_o_CXX=yes
20388 fi
20389 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020390 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020391 $rm conftest*
20392 # SGI C++ compiler will create directory out/ii_files/ for
20393 # template instantiation
20394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20395 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020396 cd ..
20397 rmdir conftest
20398 $rm conftest*
20399
20400fi
Reid Spencera773bd52006-08-04 18:18:08 +000020401{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20402echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020403
20404
20405hard_links="nottested"
20406if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20407 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020408 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20409echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020410 hard_links=yes
20411 $rm conftest*
20412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20413 touch conftest.a
20414 ln conftest.a conftest.b 2>&5 || hard_links=no
20415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020416 { echo "$as_me:$LINENO: result: $hard_links" >&5
20417echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020418 if test "$hard_links" = no; then
20419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20420echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20421 need_locks=warn
20422 fi
20423else
20424 need_locks=no
20425fi
20426
Reid Spencera773bd52006-08-04 18:18:08 +000020427{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20428echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020429
20430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20431 case $host_os in
20432 aix4* | aix5*)
20433 # If we're using GNU nm, then we don't want the "-C" option.
20434 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20436 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'
20437 else
20438 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'
20439 fi
20440 ;;
20441 pw32*)
20442 export_symbols_cmds_CXX="$ltdll_cmds"
20443 ;;
20444 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020445 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 +000020446 ;;
20447 *)
20448 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20449 ;;
20450 esac
20451
Reid Spencera773bd52006-08-04 18:18:08 +000020452{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20453echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020454test "$ld_shlibs_CXX" = no && can_build_shared=no
20455
John Criswell47fdd832003-07-14 16:52:07 +000020456#
20457# Do we need to explicitly link libc?
20458#
20459case "x$archive_cmds_need_lc_CXX" in
20460x|xyes)
20461 # Assume -lc should be added
20462 archive_cmds_need_lc_CXX=yes
20463
20464 if test "$enable_shared" = yes && test "$GCC" = yes; then
20465 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020466 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020467 # FIXME: we may have to deal with multi-command sequences.
20468 ;;
20469 '$CC '*)
20470 # Test whether the compiler implicitly links with -lc since on some
20471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20472 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020473 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20474echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020475 $rm conftest*
20476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20477
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } 2>conftest.err; then
20483 soname=conftest
20484 lib=conftest
20485 libobjs=conftest.$ac_objext
20486 deplibs=
20487 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020488 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020489 compiler_flags=-v
20490 linker_flags=-v
20491 verstring=
20492 output_objdir=.
20493 libname=conftest
20494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20495 allow_undefined_flag_CXX=
20496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20497 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }
20501 then
20502 archive_cmds_need_lc_CXX=no
20503 else
20504 archive_cmds_need_lc_CXX=yes
20505 fi
20506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20507 else
20508 cat conftest.err 1>&5
20509 fi
20510 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020511 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20512echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020513 ;;
20514 esac
20515 fi
20516 ;;
20517esac
20518
Reid Spencera773bd52006-08-04 18:18:08 +000020519{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20520echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020521library_names_spec=
20522libname_spec='lib$name'
20523soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020524shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020525postinstall_cmds=
20526postuninstall_cmds=
20527finish_cmds=
20528finish_eval=
20529shlibpath_var=
20530shlibpath_overrides_runpath=unknown
20531version_type=none
20532dynamic_linker="$host_os ld.so"
20533sys_lib_dlsearch_path_spec="/lib /usr/lib"
20534if test "$GCC" = yes; then
20535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20537 # if the path contains ";" then we assume it to be the separator
20538 # otherwise default to the standard path separator (i.e. ":") - it is
20539 # assumed that no part of a normal pathname contains ";" but that should
20540 # okay in the real world where ";" in dirpaths is itself problematic.
20541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20542 else
20543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20544 fi
20545else
20546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20547fi
20548need_lib_prefix=unknown
20549hardcode_into_libs=no
20550
20551# when you set need_version to no, make sure it does not cause -set_version
20552# flags to be left without arguments
20553need_version=unknown
20554
20555case $host_os in
20556aix3*)
20557 version_type=linux
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20559 shlibpath_var=LIBPATH
20560
20561 # AIX 3 has no versioning support, so we append a major version to the name.
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 ;;
20564
20565aix4* | aix5*)
20566 version_type=linux
20567 need_lib_prefix=no
20568 need_version=no
20569 hardcode_into_libs=yes
20570 if test "$host_cpu" = ia64; then
20571 # AIX 5 supports IA64
20572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20573 shlibpath_var=LD_LIBRARY_PATH
20574 else
20575 # With GCC up to 2.95.x, collect2 would create an import file
20576 # for dependence libraries. The import file would start with
20577 # the line `#! .'. This would cause the generated library to
20578 # depend on `.', always an invalid library. This was fixed in
20579 # development snapshots of GCC prior to 3.0.
20580 case $host_os in
20581 aix4 | aix4.[01] | aix4.[01].*)
20582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20583 echo ' yes '
20584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20585 :
20586 else
20587 can_build_shared=no
20588 fi
20589 ;;
20590 esac
20591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20592 # soname into executable. Probably we can add versioning support to
20593 # collect2, so additional links can be useful in future.
20594 if test "$aix_use_runtimelinking" = yes; then
20595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20596 # instead of lib<name>.a to let people know that these are not
20597 # typical AIX shared libraries.
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599 else
20600 # We preserve .a as extension for shared libraries through AIX4.2
20601 # and later when we are not doing run time linking.
20602 library_names_spec='${libname}${release}.a $libname.a'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 fi
20605 shlibpath_var=LIBPATH
20606 fi
20607 ;;
20608
20609amigaos*)
20610 library_names_spec='$libname.ixlibrary $libname.a'
20611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020612 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 +000020613 ;;
20614
20615beos*)
20616 library_names_spec='${libname}${shared_ext}'
20617 dynamic_linker="$host_os ld.so"
20618 shlibpath_var=LIBRARY_PATH
20619 ;;
20620
Reid Spencer2706f8c2004-09-19 23:53:36 +000020621bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020622 version_type=linux
20623 need_version=no
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20627 shlibpath_var=LD_LIBRARY_PATH
20628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20630 # the default ld.so.conf also contains /usr/contrib/lib and
20631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20632 # libtool to hard-code these into programs
20633 ;;
20634
20635cygwin* | mingw* | pw32*)
20636 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020637 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020638 need_version=no
20639 need_lib_prefix=no
20640
20641 case $GCC,$host_os in
20642 yes,cygwin* | yes,mingw* | yes,pw32*)
20643 library_names_spec='$libname.dll.a'
20644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020645 postinstall_cmds='base_file=`basename \${file}`~
20646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20647 dldir=$destdir/`dirname \$dlpath`~
20648 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020649 $install_prog $dir/$dlname \$dldir/$dlname~
20650 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20652 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020653 $rm \$dlpath'
20654 shlibpath_overrides_runpath=yes
20655
20656 case $host_os in
20657 cygwin*)
20658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20659 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 +000020660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020661 ;;
20662 mingw*)
20663 # MinGW DLLs use traditional 'lib' prefix
20664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20667 # It is most probably a Windows format PATH printed by
20668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20669 # path with ; separators, and with drive letters. We can handle the
20670 # drive letters (cygwin fileutils understands them), so leave them,
20671 # especially as we might pass files found there to a mingw objdump,
20672 # which wouldn't understand a cygwinified path. Ahh.
20673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20674 else
20675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20676 fi
20677 ;;
20678 pw32*)
20679 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020680 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 +000020681 ;;
20682 esac
20683 ;;
20684
20685 *)
20686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20687 ;;
20688 esac
20689 dynamic_linker='Win32 ld.exe'
20690 # FIXME: first we should search . and the directory the executable is in
20691 shlibpath_var=PATH
20692 ;;
20693
20694darwin* | rhapsody*)
20695 dynamic_linker="$host_os dyld"
20696 version_type=darwin
20697 need_lib_prefix=no
20698 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020700 soname_spec='${libname}${release}${major}$shared_ext'
20701 shlibpath_overrides_runpath=yes
20702 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020703 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020705 if test "$GCC" = yes; then
20706 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"`
20707 else
20708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020709 fi
20710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20711 ;;
20712
20713dgux*)
20714 version_type=linux
20715 need_lib_prefix=no
20716 need_version=no
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 ;;
20721
20722freebsd1*)
20723 dynamic_linker=no
20724 ;;
20725
Reid Spencer2706f8c2004-09-19 23:53:36 +000020726kfreebsd*-gnu)
20727 version_type=linux
20728 need_lib_prefix=no
20729 need_version=no
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20731 soname_spec='${libname}${release}${shared_ext}$major'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=no
20734 hardcode_into_libs=yes
20735 dynamic_linker='GNU ld.so'
20736 ;;
20737
Reid Spencera773bd52006-08-04 18:18:08 +000020738freebsd* | dragonfly*)
20739 # DragonFly does not have aout. When/if they implement a new
20740 # versioning mechanism, adjust this.
20741 if test -x /usr/bin/objformat; then
20742 objformat=`/usr/bin/objformat`
20743 else
20744 case $host_os in
20745 freebsd[123]*) objformat=aout ;;
20746 *) objformat=elf ;;
20747 esac
20748 fi
John Criswell47fdd832003-07-14 16:52:07 +000020749 version_type=freebsd-$objformat
20750 case $version_type in
20751 freebsd-elf*)
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20753 need_version=no
20754 need_lib_prefix=no
20755 ;;
20756 freebsd-*)
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20758 need_version=yes
20759 ;;
20760 esac
20761 shlibpath_var=LD_LIBRARY_PATH
20762 case $host_os in
20763 freebsd2*)
20764 shlibpath_overrides_runpath=yes
20765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020766 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020767 shlibpath_overrides_runpath=yes
20768 hardcode_into_libs=yes
20769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020772 shlibpath_overrides_runpath=no
20773 hardcode_into_libs=yes
20774 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020775 freebsd*) # from 4.6 on
20776 shlibpath_overrides_runpath=yes
20777 hardcode_into_libs=yes
20778 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020779 esac
20780 ;;
20781
20782gnu*)
20783 version_type=linux
20784 need_lib_prefix=no
20785 need_version=no
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20787 soname_spec='${libname}${release}${shared_ext}$major'
20788 shlibpath_var=LD_LIBRARY_PATH
20789 hardcode_into_libs=yes
20790 ;;
20791
20792hpux9* | hpux10* | hpux11*)
20793 # Give a soname corresponding to the major version so that dld.sl refuses to
20794 # link against other versions.
20795 version_type=sunos
20796 need_lib_prefix=no
20797 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020798 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020799 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020800 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020801 hardcode_into_libs=yes
20802 dynamic_linker="$host_os dld.so"
20803 shlibpath_var=LD_LIBRARY_PATH
20804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 if test "X$HPUX_IA64_MODE" = X32; then
20808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20809 else
20810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20811 fi
20812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20813 ;;
20814 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020815 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020816 hardcode_into_libs=yes
20817 dynamic_linker="$host_os dld.sl"
20818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20821 soname_spec='${libname}${release}${shared_ext}$major'
20822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20824 ;;
20825 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020826 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020827 dynamic_linker="$host_os dld.sl"
20828 shlibpath_var=SHLIB_PATH
20829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 ;;
20833 esac
20834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20835 postinstall_cmds='chmod 555 $lib'
20836 ;;
20837
Reid Spencera773bd52006-08-04 18:18:08 +000020838interix3*)
20839 version_type=linux
20840 need_lib_prefix=no
20841 need_version=no
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=no
20847 hardcode_into_libs=yes
20848 ;;
20849
John Criswell47fdd832003-07-14 16:52:07 +000020850irix5* | irix6* | nonstopux*)
20851 case $host_os in
20852 nonstopux*) version_type=nonstopux ;;
20853 *)
20854 if test "$lt_cv_prog_gnu_ld" = yes; then
20855 version_type=linux
20856 else
20857 version_type=irix
20858 fi ;;
20859 esac
20860 need_lib_prefix=no
20861 need_version=no
20862 soname_spec='${libname}${release}${shared_ext}$major'
20863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20864 case $host_os in
20865 irix5* | nonstopux*)
20866 libsuff= shlibsuff=
20867 ;;
20868 *)
20869 case $LD in # libtool.m4 will add one of these switches to LD
20870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20871 libsuff= shlibsuff= libmagic=32-bit;;
20872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20873 libsuff=32 shlibsuff=N32 libmagic=N32;;
20874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20876 *) libsuff= shlibsuff= libmagic=never-match;;
20877 esac
20878 ;;
20879 esac
20880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20881 shlibpath_overrides_runpath=no
20882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20884 hardcode_into_libs=yes
20885 ;;
20886
20887# No shared lib support for Linux oldld, aout, or coff.
20888linux*oldld* | linux*aout* | linux*coff*)
20889 dynamic_linker=no
20890 ;;
20891
20892# This must be Linux ELF.
20893linux*)
20894 version_type=linux
20895 need_lib_prefix=no
20896 need_version=no
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20900 shlibpath_var=LD_LIBRARY_PATH
20901 shlibpath_overrides_runpath=no
20902 # This implies no fast_install, which is unacceptable.
20903 # Some rework will be needed to allow for fast_install
20904 # before this can be enabled.
20905 hardcode_into_libs=yes
20906
Reid Spencer2706f8c2004-09-19 23:53:36 +000020907 # Append ld.so.conf contents to the search path
20908 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020909 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 +000020910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20911 fi
20912
John Criswell47fdd832003-07-14 16:52:07 +000020913 # We used to test for /lib/ld.so.1 and disable shared libraries on
20914 # powerpc, because MkLinux only supported shared libraries with the
20915 # GNU dynamic linker. Since this was broken with cross compilers,
20916 # most powerpc-linux boxes support dynamic linking these days and
20917 # people can always --disable-shared, the test was removed, and we
20918 # assume the GNU/Linux dynamic linker is in use.
20919 dynamic_linker='GNU/Linux ld.so'
20920 ;;
20921
Reid Spencer2706f8c2004-09-19 23:53:36 +000020922knetbsd*-gnu)
20923 version_type=linux
20924 need_lib_prefix=no
20925 need_version=no
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20927 soname_spec='${libname}${release}${shared_ext}$major'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=no
20930 hardcode_into_libs=yes
20931 dynamic_linker='GNU ld.so'
20932 ;;
20933
John Criswell47fdd832003-07-14 16:52:07 +000020934netbsd*)
20935 version_type=sunos
20936 need_lib_prefix=no
20937 need_version=no
20938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20941 dynamic_linker='NetBSD (a.out) ld.so'
20942 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020944 soname_spec='${libname}${release}${shared_ext}$major'
20945 dynamic_linker='NetBSD ld.elf_so'
20946 fi
20947 shlibpath_var=LD_LIBRARY_PATH
20948 shlibpath_overrides_runpath=yes
20949 hardcode_into_libs=yes
20950 ;;
20951
20952newsos6)
20953 version_type=linux
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955 shlibpath_var=LD_LIBRARY_PATH
20956 shlibpath_overrides_runpath=yes
20957 ;;
20958
Reid Spencer2706f8c2004-09-19 23:53:36 +000020959nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020960 version_type=linux
20961 need_lib_prefix=no
20962 need_version=no
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath=yes
20967 ;;
20968
20969openbsd*)
20970 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020971 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020972 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20974 case $host_os in
20975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20976 *) need_version=no ;;
20977 esac
John Criswell47fdd832003-07-14 16:52:07 +000020978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20982 case $host_os in
20983 openbsd2.[89] | openbsd2.[89].*)
20984 shlibpath_overrides_runpath=no
20985 ;;
20986 *)
20987 shlibpath_overrides_runpath=yes
20988 ;;
20989 esac
20990 else
20991 shlibpath_overrides_runpath=yes
20992 fi
20993 ;;
20994
20995os2*)
20996 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020997 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020998 need_lib_prefix=no
20999 library_names_spec='$libname${shared_ext} $libname.a'
21000 dynamic_linker='OS/2 ld.exe'
21001 shlibpath_var=LIBPATH
21002 ;;
21003
21004osf3* | osf4* | osf5*)
21005 version_type=osf
21006 need_lib_prefix=no
21007 need_version=no
21008 soname_spec='${libname}${release}${shared_ext}$major'
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010 shlibpath_var=LD_LIBRARY_PATH
21011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21013 ;;
21014
John Criswell47fdd832003-07-14 16:52:07 +000021015solaris*)
21016 version_type=linux
21017 need_lib_prefix=no
21018 need_version=no
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath=yes
21023 hardcode_into_libs=yes
21024 # ldd complains unless libraries are executable
21025 postinstall_cmds='chmod +x $lib'
21026 ;;
21027
21028sunos4*)
21029 version_type=sunos
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=yes
21034 if test "$with_gnu_ld" = yes; then
21035 need_lib_prefix=no
21036 fi
21037 need_version=yes
21038 ;;
21039
Reid Spencera773bd52006-08-04 18:18:08 +000021040sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021041 version_type=linux
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 case $host_vendor in
21046 sni)
21047 shlibpath_overrides_runpath=no
21048 need_lib_prefix=no
21049 export_dynamic_flag_spec='${wl}-Blargedynsym'
21050 runpath_var=LD_RUN_PATH
21051 ;;
21052 siemens)
21053 need_lib_prefix=no
21054 ;;
21055 motorola)
21056 need_lib_prefix=no
21057 need_version=no
21058 shlibpath_overrides_runpath=no
21059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21060 ;;
21061 esac
21062 ;;
21063
21064sysv4*MP*)
21065 if test -d /usr/nec ;then
21066 version_type=linux
21067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21068 soname_spec='$libname${shared_ext}.$major'
21069 shlibpath_var=LD_LIBRARY_PATH
21070 fi
21071 ;;
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21074 version_type=freebsd-elf
21075 need_lib_prefix=no
21076 need_version=no
21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21078 soname_spec='${libname}${release}${shared_ext}$major'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 hardcode_into_libs=yes
21081 if test "$with_gnu_ld" = yes; then
21082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21083 shlibpath_overrides_runpath=no
21084 else
21085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21086 shlibpath_overrides_runpath=yes
21087 case $host_os in
21088 sco3.2v5*)
21089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21090 ;;
21091 esac
21092 fi
21093 sys_lib_dlsearch_path_spec='/usr/lib'
21094 ;;
21095
John Criswell47fdd832003-07-14 16:52:07 +000021096uts4*)
21097 version_type=linux
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 ;;
21102
21103*)
21104 dynamic_linker=no
21105 ;;
21106esac
Reid Spencera773bd52006-08-04 18:18:08 +000021107{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21108echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021109test "$dynamic_linker" = no && can_build_shared=no
21110
Reid Spencera773bd52006-08-04 18:18:08 +000021111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21112if test "$GCC" = yes; then
21113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21114fi
21115
21116{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21117echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021118hardcode_action_CXX=
21119if test -n "$hardcode_libdir_flag_spec_CXX" || \
21120 test -n "$runpath_var_CXX" || \
21121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21122
21123 # We can hardcode non-existant directories.
21124 if test "$hardcode_direct_CXX" != no &&
21125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21126 # have to relink, otherwise we might link with an installed library
21127 # when we should be linking with a yet-to-be-installed one
21128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21129 test "$hardcode_minus_L_CXX" != no; then
21130 # Linking always hardcodes the temporary library directory.
21131 hardcode_action_CXX=relink
21132 else
21133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21134 hardcode_action_CXX=immediate
21135 fi
21136else
21137 # We cannot hardcode anything, or else we can only hardcode existing
21138 # directories.
21139 hardcode_action_CXX=unsupported
21140fi
Reid Spencera773bd52006-08-04 18:18:08 +000021141{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21142echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021143
21144if test "$hardcode_action_CXX" = relink; then
21145 # Fast installation is not supported
21146 enable_fast_install=no
21147elif test "$shlibpath_overrides_runpath" = yes ||
21148 test "$enable_shared" = no; then
21149 # Fast installation is not necessary
21150 enable_fast_install=needless
21151fi
21152
John Criswell47fdd832003-07-14 16:52:07 +000021153
21154# The else clause should only fire when bootstrapping the
21155# libtool distribution, otherwise you forgot to ship ltmain.sh
21156# with your package, and you will get complaints that there are
21157# no rules to generate ltmain.sh.
21158if test -f "$ltmain"; then
21159 # See if we are running on zsh, and set the options which allow our commands through
21160 # without removal of \ escapes.
21161 if test -n "${ZSH_VERSION+set}" ; then
21162 setopt NO_GLOB_SUBST
21163 fi
21164 # Now quote all the things that may contain metacharacters while being
21165 # careful not to overquote the AC_SUBSTed values. We take copies of the
21166 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021167 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 +000021168 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21171 deplibs_check_method reload_flag reload_cmds need_locks \
21172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21173 lt_cv_sys_global_symbol_to_c_name_address \
21174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21175 old_postinstall_cmds old_postuninstall_cmds \
21176 compiler_CXX \
21177 CC_CXX \
21178 LD_CXX \
21179 lt_prog_compiler_wl_CXX \
21180 lt_prog_compiler_pic_CXX \
21181 lt_prog_compiler_static_CXX \
21182 lt_prog_compiler_no_builtin_flag_CXX \
21183 export_dynamic_flag_spec_CXX \
21184 thread_safe_flag_spec_CXX \
21185 whole_archive_flag_spec_CXX \
21186 enable_shared_with_static_runtimes_CXX \
21187 old_archive_cmds_CXX \
21188 old_archive_from_new_cmds_CXX \
21189 predep_objects_CXX \
21190 postdep_objects_CXX \
21191 predeps_CXX \
21192 postdeps_CXX \
21193 compiler_lib_search_path_CXX \
21194 archive_cmds_CXX \
21195 archive_expsym_cmds_CXX \
21196 postinstall_cmds_CXX \
21197 postuninstall_cmds_CXX \
21198 old_archive_from_expsyms_cmds_CXX \
21199 allow_undefined_flag_CXX \
21200 no_undefined_flag_CXX \
21201 export_symbols_cmds_CXX \
21202 hardcode_libdir_flag_spec_CXX \
21203 hardcode_libdir_flag_spec_ld_CXX \
21204 hardcode_libdir_separator_CXX \
21205 hardcode_automatic_CXX \
21206 module_cmds_CXX \
21207 module_expsym_cmds_CXX \
21208 lt_cv_prog_compiler_c_o_CXX \
21209 exclude_expsyms_CXX \
21210 include_expsyms_CXX; do
21211
21212 case $var in
21213 old_archive_cmds_CXX | \
21214 old_archive_from_new_cmds_CXX | \
21215 archive_cmds_CXX | \
21216 archive_expsym_cmds_CXX | \
21217 module_cmds_CXX | \
21218 module_expsym_cmds_CXX | \
21219 old_archive_from_expsyms_cmds_CXX | \
21220 export_symbols_cmds_CXX | \
21221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21222 postinstall_cmds | postuninstall_cmds | \
21223 old_postinstall_cmds | old_postuninstall_cmds | \
21224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21225 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021226 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 +000021227 ;;
21228 *)
21229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21230 ;;
21231 esac
21232 done
21233
21234 case $lt_echo in
21235 *'\$0 --fallback-echo"')
21236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21237 ;;
21238 esac
21239
21240cfgfile="$ofile"
21241
21242 cat <<__EOF__ >> "$cfgfile"
21243# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21244
21245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21246
21247# Shell to use when invoking shell scripts.
21248SHELL=$lt_SHELL
21249
21250# Whether or not to build shared libraries.
21251build_libtool_libs=$enable_shared
21252
21253# Whether or not to build static libraries.
21254build_old_libs=$enable_static
21255
21256# Whether or not to add -lc for building shared libraries.
21257build_libtool_need_lc=$archive_cmds_need_lc_CXX
21258
21259# Whether or not to disallow shared libs when runtime libs are static
21260allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21261
21262# Whether or not to optimize for fast installation.
21263fast_install=$enable_fast_install
21264
21265# The host system.
21266host_alias=$host_alias
21267host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021268host_os=$host_os
21269
21270# The build system.
21271build_alias=$build_alias
21272build=$build
21273build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021274
21275# An echo program that does not interpret backslashes.
21276echo=$lt_echo
21277
21278# The archiver.
21279AR=$lt_AR
21280AR_FLAGS=$lt_AR_FLAGS
21281
21282# A C compiler.
21283LTCC=$lt_LTCC
21284
Reid Spencera773bd52006-08-04 18:18:08 +000021285# LTCC compiler flags.
21286LTCFLAGS=$lt_LTCFLAGS
21287
John Criswell47fdd832003-07-14 16:52:07 +000021288# A language-specific compiler.
21289CC=$lt_compiler_CXX
21290
21291# Is the compiler the GNU C compiler?
21292with_gcc=$GCC_CXX
21293
21294# An ERE matcher.
21295EGREP=$lt_EGREP
21296
21297# The linker used to build libraries.
21298LD=$lt_LD_CXX
21299
21300# Whether we need hard or soft links.
21301LN_S=$lt_LN_S
21302
21303# A BSD-compatible nm program.
21304NM=$lt_NM
21305
21306# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021307STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021308
21309# Used to examine libraries when file_magic_cmd begins "file"
21310MAGIC_CMD=$MAGIC_CMD
21311
21312# Used on cygwin: DLL creation program.
21313DLLTOOL="$DLLTOOL"
21314
21315# Used on cygwin: object dumper.
21316OBJDUMP="$OBJDUMP"
21317
21318# Used on cygwin: assembler.
21319AS="$AS"
21320
21321# The name of the directory that contains temporary libtool files.
21322objdir=$objdir
21323
21324# How to create reloadable object files.
21325reload_flag=$lt_reload_flag
21326reload_cmds=$lt_reload_cmds
21327
21328# How to pass a linker flag through the compiler.
21329wl=$lt_lt_prog_compiler_wl_CXX
21330
21331# Object file suffix (normally "o").
21332objext="$ac_objext"
21333
21334# Old archive suffix (normally "a").
21335libext="$libext"
21336
21337# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021338shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021339
21340# Executable file suffix (normally "").
21341exeext="$exeext"
21342
21343# Additional compiler flags for building library objects.
21344pic_flag=$lt_lt_prog_compiler_pic_CXX
21345pic_mode=$pic_mode
21346
21347# What is the maximum length of a command?
21348max_cmd_len=$lt_cv_sys_max_cmd_len
21349
21350# Does compiler simultaneously support -c and -o options?
21351compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21352
Reid Spencera773bd52006-08-04 18:18:08 +000021353# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021354need_locks=$lt_need_locks
21355
21356# Do we need the lib prefix for modules?
21357need_lib_prefix=$need_lib_prefix
21358
21359# Do we need a version for libraries?
21360need_version=$need_version
21361
21362# Whether dlopen is supported.
21363dlopen_support=$enable_dlopen
21364
21365# Whether dlopen of programs is supported.
21366dlopen_self=$enable_dlopen_self
21367
21368# Whether dlopen of statically linked programs is supported.
21369dlopen_self_static=$enable_dlopen_self_static
21370
21371# Compiler flag to prevent dynamic linking.
21372link_static_flag=$lt_lt_prog_compiler_static_CXX
21373
21374# Compiler flag to turn off builtin functions.
21375no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21376
21377# Compiler flag to allow reflexive dlopens.
21378export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21379
21380# Compiler flag to generate shared objects directly from archives.
21381whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21382
21383# Compiler flag to generate thread-safe objects.
21384thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21385
21386# Library versioning type.
21387version_type=$version_type
21388
21389# Format of library name prefix.
21390libname_spec=$lt_libname_spec
21391
21392# List of archive names. First name is the real one, the rest are links.
21393# The last name is the one that the linker finds with -lNAME.
21394library_names_spec=$lt_library_names_spec
21395
21396# The coded name of the library, if different from the real name.
21397soname_spec=$lt_soname_spec
21398
21399# Commands used to build and install an old-style archive.
21400RANLIB=$lt_RANLIB
21401old_archive_cmds=$lt_old_archive_cmds_CXX
21402old_postinstall_cmds=$lt_old_postinstall_cmds
21403old_postuninstall_cmds=$lt_old_postuninstall_cmds
21404
21405# Create an old-style archive from a shared archive.
21406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21407
21408# Create a temporary old-style archive to link instead of a shared archive.
21409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21410
21411# Commands used to build and install a shared archive.
21412archive_cmds=$lt_archive_cmds_CXX
21413archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21414postinstall_cmds=$lt_postinstall_cmds
21415postuninstall_cmds=$lt_postuninstall_cmds
21416
21417# Commands used to build a loadable module (assumed same as above if empty)
21418module_cmds=$lt_module_cmds_CXX
21419module_expsym_cmds=$lt_module_expsym_cmds_CXX
21420
21421# Commands to strip libraries.
21422old_striplib=$lt_old_striplib
21423striplib=$lt_striplib
21424
21425# Dependencies to place before the objects being linked to create a
21426# shared library.
21427predep_objects=$lt_predep_objects_CXX
21428
21429# Dependencies to place after the objects being linked to create a
21430# shared library.
21431postdep_objects=$lt_postdep_objects_CXX
21432
21433# Dependencies to place before the objects being linked to create a
21434# shared library.
21435predeps=$lt_predeps_CXX
21436
21437# Dependencies to place after the objects being linked to create a
21438# shared library.
21439postdeps=$lt_postdeps_CXX
21440
21441# The library search path used internally by the compiler when linking
21442# a shared library.
21443compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21444
21445# Method to check whether dependent libraries are shared objects.
21446deplibs_check_method=$lt_deplibs_check_method
21447
21448# Command to use when deplibs_check_method == file_magic.
21449file_magic_cmd=$lt_file_magic_cmd
21450
21451# Flag that allows shared libraries with undefined symbols to be built.
21452allow_undefined_flag=$lt_allow_undefined_flag_CXX
21453
21454# Flag that forces no undefined symbols.
21455no_undefined_flag=$lt_no_undefined_flag_CXX
21456
21457# Commands used to finish a libtool library installation in a directory.
21458finish_cmds=$lt_finish_cmds
21459
21460# Same as above, but a single script fragment to be evaled but not shown.
21461finish_eval=$lt_finish_eval
21462
21463# Take the output of nm and produce a listing of raw symbols and C names.
21464global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21465
21466# Transform the output of nm in a proper C declaration
21467global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21468
21469# Transform the output of nm in a C name address pair
21470global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21471
21472# This is the shared library runtime path variable.
21473runpath_var=$runpath_var
21474
21475# This is the shared library path variable.
21476shlibpath_var=$shlibpath_var
21477
21478# Is shlibpath searched before the hard-coded library search path?
21479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21480
21481# How to hardcode a shared library path into an executable.
21482hardcode_action=$hardcode_action_CXX
21483
21484# Whether we should hardcode library paths into libraries.
21485hardcode_into_libs=$hardcode_into_libs
21486
21487# Flag to hardcode \$libdir into a binary during linking.
21488# This must work even if \$libdir does not exist.
21489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21490
21491# If ld is used when linking, flag to hardcode \$libdir into
21492# a binary during linking. This must work even if \$libdir does
21493# not exist.
21494hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21495
21496# Whether we need a single -rpath flag with a separated argument.
21497hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21498
21499# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21500# resulting binary.
21501hardcode_direct=$hardcode_direct_CXX
21502
21503# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21504# resulting binary.
21505hardcode_minus_L=$hardcode_minus_L_CXX
21506
21507# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21508# the resulting binary.
21509hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21510
21511# Set to yes if building a shared library automatically hardcodes DIR into the library
21512# and all subsequent libraries and executables linked against it.
21513hardcode_automatic=$hardcode_automatic_CXX
21514
21515# Variables whose values should be saved in libtool wrapper scripts and
21516# restored at relink time.
21517variables_saved_for_relink="$variables_saved_for_relink"
21518
21519# Whether libtool must link a program against all its dependency libraries.
21520link_all_deplibs=$link_all_deplibs_CXX
21521
21522# Compile-time system search path for libraries
21523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21524
21525# Run-time system search path for libraries
21526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21527
21528# Fix the shell variable \$srcfile for the compiler.
21529fix_srcfile_path="$fix_srcfile_path_CXX"
21530
21531# Set to yes if exported symbols are required.
21532always_export_symbols=$always_export_symbols_CXX
21533
21534# The commands to list exported symbols.
21535export_symbols_cmds=$lt_export_symbols_cmds_CXX
21536
21537# The commands to extract the exported symbol list from a shared archive.
21538extract_expsyms_cmds=$lt_extract_expsyms_cmds
21539
21540# Symbols that should not be listed in the preloaded symbols.
21541exclude_expsyms=$lt_exclude_expsyms_CXX
21542
21543# Symbols that must always be exported.
21544include_expsyms=$lt_include_expsyms_CXX
21545
21546# ### END LIBTOOL TAG CONFIG: $tagname
21547
21548__EOF__
21549
21550
21551else
21552 # If there is no Makefile yet, we rely on a make rule to execute
21553 # `config.status --recheck' to rerun these tests and create the
21554 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21556 if test -f "$ltmain_in"; then
21557 test -f Makefile && make "$ltmain"
21558 fi
John Criswell47fdd832003-07-14 16:52:07 +000021559fi
21560
21561
21562ac_ext=c
21563ac_cpp='$CPP $CPPFLAGS'
21564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568CC=$lt_save_CC
21569LDCXX=$LD
21570LD=$lt_save_LD
21571GCC=$lt_save_GCC
21572with_gnu_ldcxx=$with_gnu_ld
21573with_gnu_ld=$lt_save_with_gnu_ld
21574lt_cv_path_LDCXX=$lt_cv_path_LD
21575lt_cv_path_LD=$lt_save_path_LD
21576lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21577lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21578
21579 else
21580 tagname=""
21581 fi
21582 ;;
21583
21584 F77)
21585 if test -n "$F77" && test "X$F77" != "Xno"; then
21586
21587ac_ext=f
21588ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21589ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21591
21592
21593archive_cmds_need_lc_F77=no
21594allow_undefined_flag_F77=
21595always_export_symbols_F77=no
21596archive_expsym_cmds_F77=
21597export_dynamic_flag_spec_F77=
21598hardcode_direct_F77=no
21599hardcode_libdir_flag_spec_F77=
21600hardcode_libdir_flag_spec_ld_F77=
21601hardcode_libdir_separator_F77=
21602hardcode_minus_L_F77=no
21603hardcode_automatic_F77=no
21604module_cmds_F77=
21605module_expsym_cmds_F77=
21606link_all_deplibs_F77=unknown
21607old_archive_cmds_F77=$old_archive_cmds
21608no_undefined_flag_F77=
21609whole_archive_flag_spec_F77=
21610enable_shared_with_static_runtimes_F77=no
21611
21612# Source file extension for f77 test sources.
21613ac_ext=f
21614
21615# Object file extension for compiled f77 test sources.
21616objext=o
21617objext_F77=$objext
21618
21619# Code to be used in simple compile tests
21620lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21621
21622# Code to be used in simple link tests
21623lt_simple_link_test_code=" program t\n end\n"
21624
21625# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21626
21627# If no C compiler was specified, use CC.
21628LTCC=${LTCC-"$CC"}
21629
Reid Spencera773bd52006-08-04 18:18:08 +000021630# If no C compiler flags were specified, use CFLAGS.
21631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21632
John Criswell47fdd832003-07-14 16:52:07 +000021633# Allow CC to be a program name with arguments.
21634compiler=$CC
21635
21636
Reid Spencera773bd52006-08-04 18:18:08 +000021637# save warnings/boilerplate of simple test code
21638ac_outfile=conftest.$ac_objext
21639printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21640eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21641_lt_compiler_boilerplate=`cat conftest.err`
21642$rm conftest*
21643
21644ac_outfile=conftest.$ac_objext
21645printf "$lt_simple_link_test_code" >conftest.$ac_ext
21646eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647_lt_linker_boilerplate=`cat conftest.err`
21648$rm conftest*
21649
21650
John Criswell47fdd832003-07-14 16:52:07 +000021651# Allow CC to be a program name with arguments.
21652lt_save_CC="$CC"
21653CC=${F77-"f77"}
21654compiler=$CC
21655compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021656for cc_temp in $compiler""; do
21657 case $cc_temp in
21658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21660 \-*) ;;
21661 *) break;;
21662 esac
21663done
21664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021665
John Criswell47fdd832003-07-14 16:52:07 +000021666
Reid Spencera773bd52006-08-04 18:18:08 +000021667{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21668echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21669{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21670echo "${ECHO_T}$can_build_shared" >&6; }
21671
21672{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21673echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021674test "$can_build_shared" = "no" && enable_shared=no
21675
21676# On AIX, shared libraries and static libraries use the same namespace, and
21677# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021678case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021679aix3*)
21680 test "$enable_shared" = yes && enable_static=no
21681 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021683 postinstall_cmds='$RANLIB $lib'
21684 fi
21685 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021686aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21688 test "$enable_shared" = yes && enable_static=no
21689 fi
John Criswell47fdd832003-07-14 16:52:07 +000021690 ;;
21691esac
Reid Spencera773bd52006-08-04 18:18:08 +000021692{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21693echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021694
Reid Spencera773bd52006-08-04 18:18:08 +000021695{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21696echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021697# Make sure either enable_shared or enable_static is yes.
21698test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021699{ echo "$as_me:$LINENO: result: $enable_static" >&5
21700echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021701
21702GCC_F77="$G77"
21703LD_F77="$LD"
21704
21705lt_prog_compiler_wl_F77=
21706lt_prog_compiler_pic_F77=
21707lt_prog_compiler_static_F77=
21708
Reid Spencera773bd52006-08-04 18:18:08 +000021709{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21710echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021711
21712 if test "$GCC" = yes; then
21713 lt_prog_compiler_wl_F77='-Wl,'
21714 lt_prog_compiler_static_F77='-static'
21715
21716 case $host_os in
21717 aix*)
21718 # All AIX code is PIC.
21719 if test "$host_cpu" = ia64; then
21720 # AIX 5 now supports IA64 processor
21721 lt_prog_compiler_static_F77='-Bstatic'
21722 fi
21723 ;;
21724
21725 amigaos*)
21726 # FIXME: we need at least 68020 code to build shared libraries, but
21727 # adding the `-m68020' flag to GCC prevents building anything better,
21728 # like `-m68040'.
21729 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21730 ;;
21731
21732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21733 # PIC is the default for these OSes.
21734 ;;
21735
21736 mingw* | pw32* | os2*)
21737 # This hack is so that the source file can tell whether it is being
21738 # built for inclusion in a dll (and should export symbols for example).
21739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21740 ;;
21741
21742 darwin* | rhapsody*)
21743 # PIC is the default on this platform
21744 # Common symbols not allowed in MH_DYLIB files
21745 lt_prog_compiler_pic_F77='-fno-common'
21746 ;;
21747
Reid Spencera773bd52006-08-04 18:18:08 +000021748 interix3*)
21749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21750 # Instead, we relocate shared libraries at runtime.
21751 ;;
21752
John Criswell47fdd832003-07-14 16:52:07 +000021753 msdosdjgpp*)
21754 # Just because we use GCC doesn't mean we suddenly get shared libraries
21755 # on systems that don't support them.
21756 lt_prog_compiler_can_build_shared_F77=no
21757 enable_shared=no
21758 ;;
21759
21760 sysv4*MP*)
21761 if test -d /usr/nec; then
21762 lt_prog_compiler_pic_F77=-Kconform_pic
21763 fi
21764 ;;
21765
21766 hpux*)
21767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21768 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021769 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021770 hppa*64*|ia64*)
21771 # +Z the default
21772 ;;
21773 *)
21774 lt_prog_compiler_pic_F77='-fPIC'
21775 ;;
21776 esac
21777 ;;
21778
21779 *)
21780 lt_prog_compiler_pic_F77='-fPIC'
21781 ;;
21782 esac
21783 else
21784 # PORTME Check for flag to pass linker flags through the system compiler.
21785 case $host_os in
21786 aix*)
21787 lt_prog_compiler_wl_F77='-Wl,'
21788 if test "$host_cpu" = ia64; then
21789 # AIX 5 now supports IA64 processor
21790 lt_prog_compiler_static_F77='-Bstatic'
21791 else
21792 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21793 fi
21794 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021795 darwin*)
21796 # PIC is the default on this platform
21797 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021798 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021799 xlc*)
21800 lt_prog_compiler_pic_F77='-qnocommon'
21801 lt_prog_compiler_wl_F77='-Wl,'
21802 ;;
21803 esac
21804 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021805
21806 mingw* | pw32* | os2*)
21807 # This hack is so that the source file can tell whether it is being
21808 # built for inclusion in a dll (and should export symbols for example).
21809 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21810 ;;
21811
21812 hpux9* | hpux10* | hpux11*)
21813 lt_prog_compiler_wl_F77='-Wl,'
21814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21815 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021816 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021817 hppa*64*|ia64*)
21818 # +Z the default
21819 ;;
21820 *)
21821 lt_prog_compiler_pic_F77='+Z'
21822 ;;
21823 esac
21824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21825 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21826 ;;
21827
21828 irix5* | irix6* | nonstopux*)
21829 lt_prog_compiler_wl_F77='-Wl,'
21830 # PIC (with -KPIC) is the default.
21831 lt_prog_compiler_static_F77='-non_shared'
21832 ;;
21833
21834 newsos6)
21835 lt_prog_compiler_pic_F77='-KPIC'
21836 lt_prog_compiler_static_F77='-Bstatic'
21837 ;;
21838
21839 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021840 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021841 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021842 lt_prog_compiler_wl_F77='-Wl,'
21843 lt_prog_compiler_pic_F77='-KPIC'
21844 lt_prog_compiler_static_F77='-static'
21845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021846 pgcc* | pgf77* | pgf90* | pgf95*)
21847 # Portland Group compilers (*not* the Pentium gcc compiler,
21848 # which looks to be a dead project)
21849 lt_prog_compiler_wl_F77='-Wl,'
21850 lt_prog_compiler_pic_F77='-fpic'
21851 lt_prog_compiler_static_F77='-Bstatic'
21852 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021854 lt_prog_compiler_wl_F77='-Wl,'
21855 # All Alpha code is PIC.
21856 lt_prog_compiler_static_F77='-non_shared'
21857 ;;
21858 esac
21859 ;;
21860
21861 osf3* | osf4* | osf5*)
21862 lt_prog_compiler_wl_F77='-Wl,'
21863 # All OSF/1 code is PIC.
21864 lt_prog_compiler_static_F77='-non_shared'
21865 ;;
21866
John Criswell47fdd832003-07-14 16:52:07 +000021867 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021868 lt_prog_compiler_pic_F77='-KPIC'
21869 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021870 case $cc_basename in
21871 f77* | f90* | f95*)
21872 lt_prog_compiler_wl_F77='-Qoption ld ';;
21873 *)
21874 lt_prog_compiler_wl_F77='-Wl,';;
21875 esac
John Criswell47fdd832003-07-14 16:52:07 +000021876 ;;
21877
21878 sunos4*)
21879 lt_prog_compiler_wl_F77='-Qoption ld '
21880 lt_prog_compiler_pic_F77='-PIC'
21881 lt_prog_compiler_static_F77='-Bstatic'
21882 ;;
21883
Reid Spencera773bd52006-08-04 18:18:08 +000021884 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021885 lt_prog_compiler_wl_F77='-Wl,'
21886 lt_prog_compiler_pic_F77='-KPIC'
21887 lt_prog_compiler_static_F77='-Bstatic'
21888 ;;
21889
21890 sysv4*MP*)
21891 if test -d /usr/nec ;then
21892 lt_prog_compiler_pic_F77='-Kconform_pic'
21893 lt_prog_compiler_static_F77='-Bstatic'
21894 fi
21895 ;;
21896
Reid Spencera773bd52006-08-04 18:18:08 +000021897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21898 lt_prog_compiler_wl_F77='-Wl,'
21899 lt_prog_compiler_pic_F77='-KPIC'
21900 lt_prog_compiler_static_F77='-Bstatic'
21901 ;;
21902
21903 unicos*)
21904 lt_prog_compiler_wl_F77='-Wl,'
21905 lt_prog_compiler_can_build_shared_F77=no
21906 ;;
21907
John Criswell47fdd832003-07-14 16:52:07 +000021908 uts4*)
21909 lt_prog_compiler_pic_F77='-pic'
21910 lt_prog_compiler_static_F77='-Bstatic'
21911 ;;
21912
21913 *)
21914 lt_prog_compiler_can_build_shared_F77=no
21915 ;;
21916 esac
21917 fi
21918
Reid Spencera773bd52006-08-04 18:18:08 +000021919{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21920echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021921
21922#
21923# Check to make sure the PIC flag actually works.
21924#
21925if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021926
Reid Spencera773bd52006-08-04 18:18:08 +000021927{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21928echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021929if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 lt_prog_compiler_pic_works_F77=no
21933 ac_outfile=conftest.$ac_objext
21934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21935 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21936 # Insert the option either (1) after the last *FLAGS variable, or
21937 # (2) before a word containing "conftest.", or (3) at the end.
21938 # Note that $ac_compile itself does not contain backslashes and begins
21939 # with a dollar sign (not a hyphen), so the echo should work correctly.
21940 # The option is referenced via a variable to avoid confusing sed.
21941 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21944 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000021945 (eval echo "\"\$as_me:21945: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021946 (eval "$lt_compile" 2>conftest.err)
21947 ac_status=$?
21948 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000021949 echo "$as_me:21949: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021950 if (exit $ac_status) && test -s "$ac_outfile"; then
21951 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021952 # So say no if there are warnings other than the usual output.
21953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021956 lt_prog_compiler_pic_works_F77=yes
21957 fi
21958 fi
21959 $rm conftest*
21960
21961fi
Reid Spencera773bd52006-08-04 18:18:08 +000021962{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21963echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021964
21965if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21966 case $lt_prog_compiler_pic_F77 in
21967 "" | " "*) ;;
21968 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21969 esac
21970else
21971 lt_prog_compiler_pic_F77=
21972 lt_prog_compiler_can_build_shared_F77=no
21973fi
21974
21975fi
Reid Spencera773bd52006-08-04 18:18:08 +000021976case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021977 # For platforms which do not support PIC, -DPIC is meaningless:
21978 *djgpp*)
21979 lt_prog_compiler_pic_F77=
21980 ;;
21981 *)
21982 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21983 ;;
21984esac
21985
Reid Spencera773bd52006-08-04 18:18:08 +000021986#
21987# Check to make sure the static flag actually works.
21988#
21989wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21990{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21991echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21992if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994else
21995 lt_prog_compiler_static_works_F77=no
21996 save_LDFLAGS="$LDFLAGS"
21997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21998 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22000 # The linker can only warn and ignore the option if not recognized
22001 # So say no if there are warnings
22002 if test -s conftest.err; then
22003 # Append any errors to the config.log.
22004 cat conftest.err 1>&5
22005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22007 if diff conftest.exp conftest.er2 >/dev/null; then
22008 lt_prog_compiler_static_works_F77=yes
22009 fi
22010 else
22011 lt_prog_compiler_static_works_F77=yes
22012 fi
22013 fi
22014 $rm conftest*
22015 LDFLAGS="$save_LDFLAGS"
22016
22017fi
22018{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22019echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22020
22021if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22022 :
22023else
22024 lt_prog_compiler_static_F77=
22025fi
22026
22027
22028{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22029echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022030if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22032else
22033 lt_cv_prog_compiler_c_o_F77=no
22034 $rm -r conftest 2>/dev/null
22035 mkdir conftest
22036 cd conftest
22037 mkdir out
22038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22039
John Criswell47fdd832003-07-14 16:52:07 +000022040 lt_compiler_flag="-o out/conftest2.$ac_objext"
22041 # Insert the option either (1) after the last *FLAGS variable, or
22042 # (2) before a word containing "conftest.", or (3) at the end.
22043 # Note that $ac_compile itself does not contain backslashes and begins
22044 # with a dollar sign (not a hyphen), so the echo should work correctly.
22045 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22048 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000022049 (eval echo "\"\$as_me:22049: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022050 (eval "$lt_compile" 2>out/conftest.err)
22051 ac_status=$?
22052 cat out/conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000022053 echo "$as_me:22053: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22055 then
22056 # The compiler can only warn and ignore the option if not recognized
22057 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022061 lt_cv_prog_compiler_c_o_F77=yes
22062 fi
22063 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022064 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022065 $rm conftest*
22066 # SGI C++ compiler will create directory out/ii_files/ for
22067 # template instantiation
22068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22069 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022070 cd ..
22071 rmdir conftest
22072 $rm conftest*
22073
22074fi
Reid Spencera773bd52006-08-04 18:18:08 +000022075{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22076echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022077
22078
22079hard_links="nottested"
22080if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22081 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022082 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22083echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022084 hard_links=yes
22085 $rm conftest*
22086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22087 touch conftest.a
22088 ln conftest.a conftest.b 2>&5 || hard_links=no
22089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022090 { echo "$as_me:$LINENO: result: $hard_links" >&5
22091echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022092 if test "$hard_links" = no; then
22093 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22094echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22095 need_locks=warn
22096 fi
22097else
22098 need_locks=no
22099fi
22100
Reid Spencera773bd52006-08-04 18:18:08 +000022101{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22102echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022103
22104 runpath_var=
22105 allow_undefined_flag_F77=
22106 enable_shared_with_static_runtimes_F77=no
22107 archive_cmds_F77=
22108 archive_expsym_cmds_F77=
22109 old_archive_From_new_cmds_F77=
22110 old_archive_from_expsyms_cmds_F77=
22111 export_dynamic_flag_spec_F77=
22112 whole_archive_flag_spec_F77=
22113 thread_safe_flag_spec_F77=
22114 hardcode_libdir_flag_spec_F77=
22115 hardcode_libdir_flag_spec_ld_F77=
22116 hardcode_libdir_separator_F77=
22117 hardcode_direct_F77=no
22118 hardcode_minus_L_F77=no
22119 hardcode_shlibpath_var_F77=unsupported
22120 link_all_deplibs_F77=unknown
22121 hardcode_automatic_F77=no
22122 module_cmds_F77=
22123 module_expsym_cmds_F77=
22124 always_export_symbols_F77=no
22125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22126 # include_expsyms should be a list of space-separated symbols to be *always*
22127 # included in the symbol list
22128 include_expsyms_F77=
22129 # exclude_expsyms can be an extended regexp of symbols to exclude
22130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22132 # as well as any symbol that contains `d'.
22133 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22135 # platforms (ab)use it in PIC code, but their linkers get confused if
22136 # the symbol is explicitly referenced. Since portable code cannot
22137 # rely on this symbol name, it's probably fine to never include it in
22138 # preloaded symbol tables.
22139 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022140 # Just being paranoid about ensuring that cc_basename is set.
22141 for cc_temp in $compiler""; do
22142 case $cc_temp in
22143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22145 \-*) ;;
22146 *) break;;
22147 esac
22148done
22149cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022150
22151 case $host_os in
22152 cygwin* | mingw* | pw32*)
22153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22154 # When not using gcc, we currently assume that we are using
22155 # Microsoft Visual C++.
22156 if test "$GCC" != yes; then
22157 with_gnu_ld=no
22158 fi
22159 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022160 interix*)
22161 # we just hope/assume this is gcc and not c89 (= MSVC++)
22162 with_gnu_ld=yes
22163 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022164 openbsd*)
22165 with_gnu_ld=no
22166 ;;
22167 esac
22168
22169 ld_shlibs_F77=yes
22170 if test "$with_gnu_ld" = yes; then
22171 # If archive_cmds runs LD, not CC, wlarc should be empty
22172 wlarc='${wl}'
22173
Reid Spencera773bd52006-08-04 18:18:08 +000022174 # Set some defaults for GNU ld with shared library support. These
22175 # are reset later if shared libraries are not supported. Putting them
22176 # here allows them to be overridden if necessary.
22177 runpath_var=LD_RUN_PATH
22178 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22179 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22180 # ancient GNU ld didn't support --whole-archive et. al.
22181 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22182 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22183 else
22184 whole_archive_flag_spec_F77=
22185 fi
22186 supports_anon_versioning=no
22187 case `$LD -v 2>/dev/null` in
22188 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22189 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22190 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22191 *\ 2.11.*) ;; # other 2.11 versions
22192 *) supports_anon_versioning=yes ;;
22193 esac
22194
John Criswell47fdd832003-07-14 16:52:07 +000022195 # See if GNU ld supports shared libraries.
22196 case $host_os in
22197 aix3* | aix4* | aix5*)
22198 # On AIX/PPC, the GNU linker is very broken
22199 if test "$host_cpu" != ia64; then
22200 ld_shlibs_F77=no
22201 cat <<EOF 1>&2
22202
22203*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22204*** to be unable to reliably create shared libraries on AIX.
22205*** Therefore, libtool is disabling shared libraries support. If you
22206*** really care for shared libraries, you may want to modify your PATH
22207*** so that a non-GNU linker is found, and then restart.
22208
22209EOF
22210 fi
22211 ;;
22212
22213 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022214 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 +000022215 hardcode_libdir_flag_spec_F77='-L$libdir'
22216 hardcode_minus_L_F77=yes
22217
22218 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22219 # that the semantics of dynamic libraries on AmigaOS, at least up
22220 # to version 4, is to share data among multiple programs linked
22221 # with the same dynamic library. Since this doesn't match the
22222 # behavior of shared libraries on other platforms, we can't use
22223 # them.
22224 ld_shlibs_F77=no
22225 ;;
22226
22227 beos*)
22228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22229 allow_undefined_flag_F77=unsupported
22230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22231 # support --undefined. This deserves some investigation. FIXME
22232 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22233 else
22234 ld_shlibs_F77=no
22235 fi
22236 ;;
22237
22238 cygwin* | mingw* | pw32*)
22239 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22240 # as there is no search path for DLLs.
22241 hardcode_libdir_flag_spec_F77='-L$libdir'
22242 allow_undefined_flag_F77=unsupported
22243 always_export_symbols_F77=no
22244 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022245 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 +000022246
22247 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022248 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 +000022249 # If the export-symbols file already is a .def file (1st line
22250 # is EXPORTS), use it as is; otherwise, prepend...
22251 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22252 cp $export_symbols $output_objdir/$soname.def;
22253 else
22254 echo EXPORTS > $output_objdir/$soname.def;
22255 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022256 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022257 $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 +000022258 else
Reid Spencera773bd52006-08-04 18:18:08 +000022259 ld_shlibs_F77=no
22260 fi
22261 ;;
22262
22263 interix3*)
22264 hardcode_direct_F77=no
22265 hardcode_shlibpath_var_F77=no
22266 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22267 export_dynamic_flag_spec_F77='${wl}-E'
22268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22269 # Instead, shared libraries are loaded at an image base (0x10000000 by
22270 # default) and relocated if they conflict, which is a slow very memory
22271 # consuming and fragmenting process. To avoid this, we pick a random,
22272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22274 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'
22275 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'
22276 ;;
22277
22278 linux*)
22279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22280 tmp_addflag=
22281 case $cc_basename,$host_cpu in
22282 pgcc*) # Portland Group C compiler
22283 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'
22284 tmp_addflag=' $pic_flag'
22285 ;;
22286 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22287 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'
22288 tmp_addflag=' $pic_flag -Mnomain' ;;
22289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22290 tmp_addflag=' -i_dynamic' ;;
22291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22292 tmp_addflag=' -i_dynamic -nofor_main' ;;
22293 ifc* | ifort*) # Intel Fortran compiler
22294 tmp_addflag=' -nofor_main' ;;
22295 esac
22296 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22297
22298 if test $supports_anon_versioning = yes; then
22299 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22301 $echo "local: *; };" >> $output_objdir/$libname.ver~
22302 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22303 fi
22304 else
22305 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022306 fi
22307 ;;
22308
22309 netbsd*)
22310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22311 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22312 wlarc=
22313 else
22314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22316 fi
22317 ;;
22318
Reid Spencera773bd52006-08-04 18:18:08 +000022319 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022320 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22321 ld_shlibs_F77=no
22322 cat <<EOF 1>&2
22323
22324*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22325*** create shared libraries on Solaris systems. Therefore, libtool
22326*** is disabling shared libraries support. We urge you to upgrade GNU
22327*** binutils to release 2.9.1 or newer. Another option is to modify
22328*** your PATH or compiler configuration so that the native linker is
22329*** used, and then restart.
22330
22331EOF
22332 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22333 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22334 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22335 else
22336 ld_shlibs_F77=no
22337 fi
22338 ;;
22339
Reid Spencera773bd52006-08-04 18:18:08 +000022340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22341 case `$LD -v 2>&1` in
22342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22343 ld_shlibs_F77=no
22344 cat <<_LT_EOF 1>&2
22345
22346*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22347*** reliably create shared libraries on SCO systems. Therefore, libtool
22348*** is disabling shared libraries support. We urge you to upgrade GNU
22349*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22350*** your PATH or compiler configuration so that the native linker is
22351*** used, and then restart.
22352
22353_LT_EOF
22354 ;;
22355 *)
22356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22357 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22359 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22360 else
22361 ld_shlibs_F77=no
22362 fi
22363 ;;
22364 esac
22365 ;;
22366
John Criswell47fdd832003-07-14 16:52:07 +000022367 sunos4*)
22368 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22369 wlarc=
22370 hardcode_direct_F77=yes
22371 hardcode_shlibpath_var_F77=no
22372 ;;
22373
22374 *)
22375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22376 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22377 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22378 else
22379 ld_shlibs_F77=no
22380 fi
22381 ;;
22382 esac
22383
Reid Spencera773bd52006-08-04 18:18:08 +000022384 if test "$ld_shlibs_F77" = no; then
22385 runpath_var=
22386 hardcode_libdir_flag_spec_F77=
22387 export_dynamic_flag_spec_F77=
22388 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022389 fi
22390 else
22391 # PORTME fill in a description of your system's linker (not GNU ld)
22392 case $host_os in
22393 aix3*)
22394 allow_undefined_flag_F77=unsupported
22395 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022396 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 +000022397 # Note: this linker hardcodes the directories in LIBPATH if there
22398 # are no directories specified by -L.
22399 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022400 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022401 # Neither direct hardcoding nor static linking is supported with a
22402 # broken collect2.
22403 hardcode_direct_F77=unsupported
22404 fi
22405 ;;
22406
22407 aix4* | aix5*)
22408 if test "$host_cpu" = ia64; then
22409 # On IA64, the linker does run time linking by default, so we don't
22410 # have to do anything special.
22411 aix_use_runtimelinking=no
22412 exp_sym_flag='-Bexport'
22413 no_entry_flag=""
22414 else
22415 # If we're using GNU nm, then we don't want the "-C" option.
22416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22417 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22418 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'
22419 else
22420 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'
22421 fi
22422 aix_use_runtimelinking=no
22423
22424 # Test if we are trying to use run time linking or normal
22425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22426 # need to do runtime linking.
22427 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22428 for ld_flag in $LDFLAGS; do
22429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22430 aix_use_runtimelinking=yes
22431 break
22432 fi
22433 done
Reid Spencera773bd52006-08-04 18:18:08 +000022434 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022435 esac
22436
22437 exp_sym_flag='-bexport'
22438 no_entry_flag='-bnoentry'
22439 fi
22440
22441 # When large executables or shared objects are built, AIX ld can
22442 # have problems creating the table of contents. If linking a library
22443 # or program results in "error TOC overflow" add -mminimal-toc to
22444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22446
22447 archive_cmds_F77=''
22448 hardcode_direct_F77=yes
22449 hardcode_libdir_separator_F77=':'
22450 link_all_deplibs_F77=yes
22451
22452 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022453 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022454 # We only want to do this on AIX 4.2 and lower, the check
22455 # below for broken collect2 doesn't work under 4.3+
22456 collect2name=`${CC} -print-prog-name=collect2`
22457 if test -f "$collect2name" && \
22458 strings "$collect2name" | grep resolve_lib_name >/dev/null
22459 then
22460 # We have reworked collect2
22461 hardcode_direct_F77=yes
22462 else
22463 # We have old collect2
22464 hardcode_direct_F77=unsupported
22465 # It fails to find uninstalled libraries when the uninstalled
22466 # path is not listed in the libpath. Setting hardcode_minus_L
22467 # to unsupported forces relinking
22468 hardcode_minus_L_F77=yes
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_libdir_separator_F77=
22471 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022472 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022473 esac
22474 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022475 if test "$aix_use_runtimelinking" = yes; then
22476 shared_flag="$shared_flag "'${wl}-G'
22477 fi
John Criswell47fdd832003-07-14 16:52:07 +000022478 else
22479 # not using gcc
22480 if test "$host_cpu" = ia64; then
22481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22482 # chokes on -Wl,-G. The following line is correct:
22483 shared_flag='-G'
22484 else
Reid Spencera773bd52006-08-04 18:18:08 +000022485 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022486 shared_flag='${wl}-G'
22487 else
22488 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022489 fi
John Criswell47fdd832003-07-14 16:52:07 +000022490 fi
22491 fi
22492
22493 # It seems that -bexpall does not export symbols beginning with
22494 # underscore (_), so it is better to generate a list of symbols to export.
22495 always_export_symbols_F77=yes
22496 if test "$aix_use_runtimelinking" = yes; then
22497 # Warning - without using the other runtime loading flags (-brtl),
22498 # -berok will link without error, but may produce a broken library.
22499 allow_undefined_flag_F77='-berok'
22500 # Determine the default libpath from the value encoded in an empty executable.
22501 cat >conftest.$ac_ext <<_ACEOF
22502 program main
22503
22504 end
22505_ACEOF
22506rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022507if { (ac_try="$ac_link"
22508case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511esac
22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524esac
22525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest$ac_exeext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534esac
22535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022540
22541aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22542}'`
22543# Check for a 64-bit object if we didn't find anything.
22544if 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; }
22545}'`; fi
22546else
22547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022548sed 's/^/| /' conftest.$ac_ext >&5
22549
Reid Spencera773bd52006-08-04 18:18:08 +000022550
John Criswell47fdd832003-07-14 16:52:07 +000022551fi
Reid Spencera773bd52006-08-04 18:18:08 +000022552
Bill Wendlingebcceee2009-04-18 11:20:33 +000022553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022554 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22556
22557 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022558 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 +000022559 else
22560 if test "$host_cpu" = ia64; then
22561 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22562 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022563 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 +000022564 else
22565 # Determine the default libpath from the value encoded in an empty executable.
22566 cat >conftest.$ac_ext <<_ACEOF
22567 program main
22568
22569 end
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022572if { (ac_try="$ac_link"
22573case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22576esac
22577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022580 grep -v '^ *+' conftest.er1 >conftest.err
22581 rm -f conftest.er1
22582 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022584 (exit $ac_status); } &&
22585 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22586 { (case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22589esac
22590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591 (eval "$ac_try") 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; } &&
22595 { ac_try='test -s conftest$ac_exeext'
22596 { (case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599esac
22600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_try") 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022605
22606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22607}'`
22608# Check for a 64-bit object if we didn't find anything.
22609if 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; }
22610}'`; fi
22611else
22612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022613sed 's/^/| /' conftest.$ac_ext >&5
22614
Reid Spencera773bd52006-08-04 18:18:08 +000022615
John Criswell47fdd832003-07-14 16:52:07 +000022616fi
Reid Spencera773bd52006-08-04 18:18:08 +000022617
Bill Wendlingebcceee2009-04-18 11:20:33 +000022618rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022619 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22621
22622 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22623 # Warning - without using the other run time loading flags,
22624 # -berok will link without error, but may produce a broken library.
22625 no_undefined_flag_F77=' ${wl}-bernotok'
22626 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022627 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022628 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022629 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022630 # This is similar to how AIX traditionally builds its shared libraries.
22631 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 +000022632 fi
22633 fi
22634 ;;
22635
22636 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022637 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 +000022638 hardcode_libdir_flag_spec_F77='-L$libdir'
22639 hardcode_minus_L_F77=yes
22640 # see comment about different semantics on the GNU ld section
22641 ld_shlibs_F77=no
22642 ;;
22643
Reid Spencer2706f8c2004-09-19 23:53:36 +000022644 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022645 export_dynamic_flag_spec_F77=-rdynamic
22646 ;;
22647
22648 cygwin* | mingw* | pw32*)
22649 # When not using gcc, we currently assume that we are using
22650 # Microsoft Visual C++.
22651 # hardcode_libdir_flag_spec is actually meaningless, as there is
22652 # no search path for DLLs.
22653 hardcode_libdir_flag_spec_F77=' '
22654 allow_undefined_flag_F77=unsupported
22655 # Tell ltmain to make .lib files, not .a files.
22656 libext=lib
22657 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022658 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022659 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022660 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 +000022661 # The linker will automatically build a .lib file if we build a DLL.
22662 old_archive_From_new_cmds_F77='true'
22663 # FIXME: Should let the user specify the lib program.
22664 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022665 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022666 enable_shared_with_static_runtimes_F77=yes
22667 ;;
22668
22669 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022670 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022671 rhapsody* | darwin1.[012])
22672 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22673 ;;
22674 *) # Darwin 1.3 on
22675 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22676 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22677 else
22678 case ${MACOSX_DEPLOYMENT_TARGET} in
22679 10.[012])
22680 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22681 ;;
22682 10.*)
22683 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22684 ;;
22685 esac
22686 fi
22687 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022688 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022689 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022690 hardcode_direct_F77=no
22691 hardcode_automatic_F77=yes
22692 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022693 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022694 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022695 if test "$GCC" = yes ; then
22696 output_verbose_link_cmd='echo'
22697 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22698 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022699 # 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 +000022700 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}'
22701 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 +000022702 else
Reid Spencera773bd52006-08-04 18:18:08 +000022703 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022704 xlc*)
22705 output_verbose_link_cmd='echo'
22706 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22707 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022708 # 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 +000022709 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}'
22710 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 +000022711 ;;
22712 *)
22713 ld_shlibs_F77=no
22714 ;;
22715 esac
John Criswell47fdd832003-07-14 16:52:07 +000022716 fi
22717 ;;
22718
22719 dgux*)
22720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22721 hardcode_libdir_flag_spec_F77='-L$libdir'
22722 hardcode_shlibpath_var_F77=no
22723 ;;
22724
22725 freebsd1*)
22726 ld_shlibs_F77=no
22727 ;;
22728
22729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22730 # support. Future versions do this automatically, but an explicit c++rt0.o
22731 # does not break anything, and helps significantly (at the cost of a little
22732 # extra space).
22733 freebsd2.2*)
22734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22735 hardcode_libdir_flag_spec_F77='-R$libdir'
22736 hardcode_direct_F77=yes
22737 hardcode_shlibpath_var_F77=no
22738 ;;
22739
22740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22741 freebsd2*)
22742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22743 hardcode_direct_F77=yes
22744 hardcode_minus_L_F77=yes
22745 hardcode_shlibpath_var_F77=no
22746 ;;
22747
22748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022749 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022750 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22751 hardcode_libdir_flag_spec_F77='-R$libdir'
22752 hardcode_direct_F77=yes
22753 hardcode_shlibpath_var_F77=no
22754 ;;
22755
22756 hpux9*)
22757 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022758 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 +000022759 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022760 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 +000022761 fi
22762 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22763 hardcode_libdir_separator_F77=:
22764 hardcode_direct_F77=yes
22765
22766 # hardcode_minus_L: Not really in the search PATH,
22767 # but as the default location of the library.
22768 hardcode_minus_L_F77=yes
22769 export_dynamic_flag_spec_F77='${wl}-E'
22770 ;;
22771
Reid Spencera773bd52006-08-04 18:18:08 +000022772 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022774 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22775 else
22776 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22777 fi
22778 if test "$with_gnu_ld" = no; then
22779 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22780 hardcode_libdir_separator_F77=:
22781
22782 hardcode_direct_F77=yes
22783 export_dynamic_flag_spec_F77='${wl}-E'
22784
22785 # hardcode_minus_L: Not really in the search PATH,
22786 # but as the default location of the library.
22787 hardcode_minus_L_F77=yes
22788 fi
22789 ;;
22790
22791 hpux11*)
22792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22793 case $host_cpu in
22794 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022795 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022797 ia64*)
22798 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22799 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022800 *)
22801 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22802 ;;
22803 esac
22804 else
Reid Spencera773bd52006-08-04 18:18:08 +000022805 case $host_cpu in
22806 hppa*64*)
22807 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22808 ;;
22809 ia64*)
22810 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022811 ;;
22812 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022813 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 +000022814 ;;
22815 esac
22816 fi
22817 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022818 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22819 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022820
Reid Spencera773bd52006-08-04 18:18:08 +000022821 case $host_cpu in
22822 hppa*64*|ia64*)
22823 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22824 hardcode_direct_F77=no
22825 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022826 ;;
22827 *)
John Criswell47fdd832003-07-14 16:52:07 +000022828 hardcode_direct_F77=yes
22829 export_dynamic_flag_spec_F77='${wl}-E'
22830
22831 # hardcode_minus_L: Not really in the search PATH,
22832 # but as the default location of the library.
22833 hardcode_minus_L_F77=yes
22834 ;;
22835 esac
22836 fi
22837 ;;
22838
22839 irix5* | irix6* | nonstopux*)
22840 if test "$GCC" = yes; then
22841 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'
22842 else
22843 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'
22844 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22845 fi
22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847 hardcode_libdir_separator_F77=:
22848 link_all_deplibs_F77=yes
22849 ;;
22850
22851 netbsd*)
22852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22853 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22854 else
22855 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22856 fi
22857 hardcode_libdir_flag_spec_F77='-R$libdir'
22858 hardcode_direct_F77=yes
22859 hardcode_shlibpath_var_F77=no
22860 ;;
22861
22862 newsos6)
22863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22864 hardcode_direct_F77=yes
22865 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22866 hardcode_libdir_separator_F77=:
22867 hardcode_shlibpath_var_F77=no
22868 ;;
22869
22870 openbsd*)
22871 hardcode_direct_F77=yes
22872 hardcode_shlibpath_var_F77=no
22873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22874 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022875 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 +000022876 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22877 export_dynamic_flag_spec_F77='${wl}-E'
22878 else
22879 case $host_os in
22880 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22881 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22882 hardcode_libdir_flag_spec_F77='-R$libdir'
22883 ;;
22884 *)
22885 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22886 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22887 ;;
22888 esac
22889 fi
22890 ;;
22891
22892 os2*)
22893 hardcode_libdir_flag_spec_F77='-L$libdir'
22894 hardcode_minus_L_F77=yes
22895 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022896 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 +000022897 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22898 ;;
22899
22900 osf3*)
22901 if test "$GCC" = yes; then
22902 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22903 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'
22904 else
22905 allow_undefined_flag_F77=' -expect_unresolved \*'
22906 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'
22907 fi
22908 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22909 hardcode_libdir_separator_F77=:
22910 ;;
22911
22912 osf4* | osf5*) # as osf3* with the addition of -msym flag
22913 if test "$GCC" = yes; then
22914 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22915 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'
22916 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22917 else
22918 allow_undefined_flag_F77=' -expect_unresolved \*'
22919 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 +000022920 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 +000022921 $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 +000022922
John Criswell47fdd832003-07-14 16:52:07 +000022923 # Both c and cxx compiler support -rpath directly
22924 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22925 fi
22926 hardcode_libdir_separator_F77=:
22927 ;;
22928
John Criswell47fdd832003-07-14 16:52:07 +000022929 solaris*)
22930 no_undefined_flag_F77=' -z text'
22931 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022932 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022933 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022934 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22935 $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 +000022936 else
Reid Spencera773bd52006-08-04 18:18:08 +000022937 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022938 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022939 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22940 $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 +000022941 fi
22942 hardcode_libdir_flag_spec_F77='-R$libdir'
22943 hardcode_shlibpath_var_F77=no
22944 case $host_os in
22945 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022946 *)
22947 # The compiler driver will combine linker options so we
22948 # cannot just pass the convience library names through
22949 # without $wl, iff we do not link with $LD.
22950 # Luckily, gcc supports the same syntax we need for Sun Studio.
22951 # Supported since Solaris 2.6 (maybe 2.5.1?)
22952 case $wlarc in
22953 '')
22954 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22955 *)
22956 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' ;;
22957 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022958 esac
22959 link_all_deplibs_F77=yes
22960 ;;
22961
22962 sunos4*)
22963 if test "x$host_vendor" = xsequent; then
22964 # Use $CC to link under sequent, because it throws in some extra .o
22965 # files that make .init and .fini sections work.
22966 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22967 else
22968 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22969 fi
22970 hardcode_libdir_flag_spec_F77='-L$libdir'
22971 hardcode_direct_F77=yes
22972 hardcode_minus_L_F77=yes
22973 hardcode_shlibpath_var_F77=no
22974 ;;
22975
22976 sysv4)
22977 case $host_vendor in
22978 sni)
22979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22980 hardcode_direct_F77=yes # is this really true???
22981 ;;
22982 siemens)
22983 ## LD is ld it makes a PLAMLIB
22984 ## CC just makes a GrossModule.
22985 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22986 reload_cmds_F77='$CC -r -o $output$reload_objs'
22987 hardcode_direct_F77=no
22988 ;;
22989 motorola)
22990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22991 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22992 ;;
22993 esac
22994 runpath_var='LD_RUN_PATH'
22995 hardcode_shlibpath_var_F77=no
22996 ;;
22997
22998 sysv4.3*)
22999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23000 hardcode_shlibpath_var_F77=no
23001 export_dynamic_flag_spec_F77='-Bexport'
23002 ;;
23003
23004 sysv4*MP*)
23005 if test -d /usr/nec; then
23006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23007 hardcode_shlibpath_var_F77=no
23008 runpath_var=LD_RUN_PATH
23009 hardcode_runpath_var=yes
23010 ld_shlibs_F77=yes
23011 fi
23012 ;;
23013
Reid Spencera773bd52006-08-04 18:18:08 +000023014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23015 no_undefined_flag_F77='${wl}-z,text'
23016 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000023017 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000023018 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023019
John Criswell47fdd832003-07-14 16:52:07 +000023020 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023021 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23022 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 +000023023 else
Reid Spencera773bd52006-08-04 18:18:08 +000023024 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23025 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 +000023026 fi
John Criswell47fdd832003-07-14 16:52:07 +000023027 ;;
23028
Reid Spencera773bd52006-08-04 18:18:08 +000023029 sysv5* | sco3.2v5* | sco5v6*)
23030 # Note: We can NOT use -z defs as we might desire, because we do not
23031 # link with -lc, and that would cause any symbols used from libc to
23032 # always be unresolved, which means just about no library would
23033 # ever link correctly. If we're not using GNU ld we use -z text
23034 # though, which does catch some bad symbols but isn't as heavy-handed
23035 # as -z defs.
23036 no_undefined_flag_F77='${wl}-z,text'
23037 allow_undefined_flag_F77='${wl}-z,nodefs'
23038 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000023039 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000023040 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23041 hardcode_libdir_separator_F77=':'
23042 link_all_deplibs_F77=yes
23043 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023044 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023045
23046 if test "$GCC" = yes; then
23047 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23048 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23049 else
23050 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23051 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23052 fi
John Criswell47fdd832003-07-14 16:52:07 +000023053 ;;
23054
23055 uts4*)
23056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23057 hardcode_libdir_flag_spec_F77='-L$libdir'
23058 hardcode_shlibpath_var_F77=no
23059 ;;
23060
23061 *)
23062 ld_shlibs_F77=no
23063 ;;
23064 esac
23065 fi
23066
Reid Spencera773bd52006-08-04 18:18:08 +000023067{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23068echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023069test "$ld_shlibs_F77" = no && can_build_shared=no
23070
John Criswell47fdd832003-07-14 16:52:07 +000023071#
23072# Do we need to explicitly link libc?
23073#
23074case "x$archive_cmds_need_lc_F77" in
23075x|xyes)
23076 # Assume -lc should be added
23077 archive_cmds_need_lc_F77=yes
23078
23079 if test "$enable_shared" = yes && test "$GCC" = yes; then
23080 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023081 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023082 # FIXME: we may have to deal with multi-command sequences.
23083 ;;
23084 '$CC '*)
23085 # Test whether the compiler implicitly links with -lc since on some
23086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23087 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023088 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23089echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023090 $rm conftest*
23091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23092
23093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23094 (eval $ac_compile) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } 2>conftest.err; then
23098 soname=conftest
23099 lib=conftest
23100 libobjs=conftest.$ac_objext
23101 deplibs=
23102 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000023103 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000023104 compiler_flags=-v
23105 linker_flags=-v
23106 verstring=
23107 output_objdir=.
23108 libname=conftest
23109 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23110 allow_undefined_flag_F77=
23111 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23112 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23113 ac_status=$?
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }
23116 then
23117 archive_cmds_need_lc_F77=no
23118 else
23119 archive_cmds_need_lc_F77=yes
23120 fi
23121 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23122 else
23123 cat conftest.err 1>&5
23124 fi
23125 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023126 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23127echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023128 ;;
23129 esac
23130 fi
23131 ;;
23132esac
23133
Reid Spencera773bd52006-08-04 18:18:08 +000023134{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23135echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023136library_names_spec=
23137libname_spec='lib$name'
23138soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023139shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023140postinstall_cmds=
23141postuninstall_cmds=
23142finish_cmds=
23143finish_eval=
23144shlibpath_var=
23145shlibpath_overrides_runpath=unknown
23146version_type=none
23147dynamic_linker="$host_os ld.so"
23148sys_lib_dlsearch_path_spec="/lib /usr/lib"
23149if test "$GCC" = yes; then
23150 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23151 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23152 # if the path contains ";" then we assume it to be the separator
23153 # otherwise default to the standard path separator (i.e. ":") - it is
23154 # assumed that no part of a normal pathname contains ";" but that should
23155 # okay in the real world where ";" in dirpaths is itself problematic.
23156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23157 else
23158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23159 fi
23160else
23161 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23162fi
23163need_lib_prefix=unknown
23164hardcode_into_libs=no
23165
23166# when you set need_version to no, make sure it does not cause -set_version
23167# flags to be left without arguments
23168need_version=unknown
23169
23170case $host_os in
23171aix3*)
23172 version_type=linux
23173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23174 shlibpath_var=LIBPATH
23175
23176 # AIX 3 has no versioning support, so we append a major version to the name.
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 ;;
23179
23180aix4* | aix5*)
23181 version_type=linux
23182 need_lib_prefix=no
23183 need_version=no
23184 hardcode_into_libs=yes
23185 if test "$host_cpu" = ia64; then
23186 # AIX 5 supports IA64
23187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23188 shlibpath_var=LD_LIBRARY_PATH
23189 else
23190 # With GCC up to 2.95.x, collect2 would create an import file
23191 # for dependence libraries. The import file would start with
23192 # the line `#! .'. This would cause the generated library to
23193 # depend on `.', always an invalid library. This was fixed in
23194 # development snapshots of GCC prior to 3.0.
23195 case $host_os in
23196 aix4 | aix4.[01] | aix4.[01].*)
23197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23198 echo ' yes '
23199 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23200 :
23201 else
23202 can_build_shared=no
23203 fi
23204 ;;
23205 esac
23206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23207 # soname into executable. Probably we can add versioning support to
23208 # collect2, so additional links can be useful in future.
23209 if test "$aix_use_runtimelinking" = yes; then
23210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23211 # instead of lib<name>.a to let people know that these are not
23212 # typical AIX shared libraries.
23213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23214 else
23215 # We preserve .a as extension for shared libraries through AIX4.2
23216 # and later when we are not doing run time linking.
23217 library_names_spec='${libname}${release}.a $libname.a'
23218 soname_spec='${libname}${release}${shared_ext}$major'
23219 fi
23220 shlibpath_var=LIBPATH
23221 fi
23222 ;;
23223
23224amigaos*)
23225 library_names_spec='$libname.ixlibrary $libname.a'
23226 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023227 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 +000023228 ;;
23229
23230beos*)
23231 library_names_spec='${libname}${shared_ext}'
23232 dynamic_linker="$host_os ld.so"
23233 shlibpath_var=LIBRARY_PATH
23234 ;;
23235
Reid Spencer2706f8c2004-09-19 23:53:36 +000023236bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023237 version_type=linux
23238 need_version=no
23239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 soname_spec='${libname}${release}${shared_ext}$major'
23241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23242 shlibpath_var=LD_LIBRARY_PATH
23243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23245 # the default ld.so.conf also contains /usr/contrib/lib and
23246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23247 # libtool to hard-code these into programs
23248 ;;
23249
23250cygwin* | mingw* | pw32*)
23251 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023252 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023253 need_version=no
23254 need_lib_prefix=no
23255
23256 case $GCC,$host_os in
23257 yes,cygwin* | yes,mingw* | yes,pw32*)
23258 library_names_spec='$libname.dll.a'
23259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023260 postinstall_cmds='base_file=`basename \${file}`~
23261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23262 dldir=$destdir/`dirname \$dlpath`~
23263 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023264 $install_prog $dir/$dlname \$dldir/$dlname~
23265 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23267 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023268 $rm \$dlpath'
23269 shlibpath_overrides_runpath=yes
23270
23271 case $host_os in
23272 cygwin*)
23273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23274 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 +000023275 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023276 ;;
23277 mingw*)
23278 # MinGW DLLs use traditional 'lib' prefix
23279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23280 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23281 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23282 # It is most probably a Windows format PATH printed by
23283 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23284 # path with ; separators, and with drive letters. We can handle the
23285 # drive letters (cygwin fileutils understands them), so leave them,
23286 # especially as we might pass files found there to a mingw objdump,
23287 # which wouldn't understand a cygwinified path. Ahh.
23288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23289 else
23290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23291 fi
23292 ;;
23293 pw32*)
23294 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023295 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 +000023296 ;;
23297 esac
23298 ;;
23299
23300 *)
23301 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23302 ;;
23303 esac
23304 dynamic_linker='Win32 ld.exe'
23305 # FIXME: first we should search . and the directory the executable is in
23306 shlibpath_var=PATH
23307 ;;
23308
23309darwin* | rhapsody*)
23310 dynamic_linker="$host_os dyld"
23311 version_type=darwin
23312 need_lib_prefix=no
23313 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023314 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023315 soname_spec='${libname}${release}${major}$shared_ext'
23316 shlibpath_overrides_runpath=yes
23317 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023318 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023319 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023320 if test "$GCC" = yes; then
23321 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"`
23322 else
23323 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023324 fi
23325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23326 ;;
23327
23328dgux*)
23329 version_type=linux
23330 need_lib_prefix=no
23331 need_version=no
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 ;;
23336
23337freebsd1*)
23338 dynamic_linker=no
23339 ;;
23340
Reid Spencer2706f8c2004-09-19 23:53:36 +000023341kfreebsd*-gnu)
23342 version_type=linux
23343 need_lib_prefix=no
23344 need_version=no
23345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23346 soname_spec='${libname}${release}${shared_ext}$major'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=no
23349 hardcode_into_libs=yes
23350 dynamic_linker='GNU ld.so'
23351 ;;
23352
Reid Spencera773bd52006-08-04 18:18:08 +000023353freebsd* | dragonfly*)
23354 # DragonFly does not have aout. When/if they implement a new
23355 # versioning mechanism, adjust this.
23356 if test -x /usr/bin/objformat; then
23357 objformat=`/usr/bin/objformat`
23358 else
23359 case $host_os in
23360 freebsd[123]*) objformat=aout ;;
23361 *) objformat=elf ;;
23362 esac
23363 fi
John Criswell47fdd832003-07-14 16:52:07 +000023364 version_type=freebsd-$objformat
23365 case $version_type in
23366 freebsd-elf*)
23367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23368 need_version=no
23369 need_lib_prefix=no
23370 ;;
23371 freebsd-*)
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23373 need_version=yes
23374 ;;
23375 esac
23376 shlibpath_var=LD_LIBRARY_PATH
23377 case $host_os in
23378 freebsd2*)
23379 shlibpath_overrides_runpath=yes
23380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023381 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023382 shlibpath_overrides_runpath=yes
23383 hardcode_into_libs=yes
23384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023385 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23386 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023387 shlibpath_overrides_runpath=no
23388 hardcode_into_libs=yes
23389 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023390 freebsd*) # from 4.6 on
23391 shlibpath_overrides_runpath=yes
23392 hardcode_into_libs=yes
23393 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023394 esac
23395 ;;
23396
23397gnu*)
23398 version_type=linux
23399 need_lib_prefix=no
23400 need_version=no
23401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23402 soname_spec='${libname}${release}${shared_ext}$major'
23403 shlibpath_var=LD_LIBRARY_PATH
23404 hardcode_into_libs=yes
23405 ;;
23406
23407hpux9* | hpux10* | hpux11*)
23408 # Give a soname corresponding to the major version so that dld.sl refuses to
23409 # link against other versions.
23410 version_type=sunos
23411 need_lib_prefix=no
23412 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023413 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023414 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023415 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023416 hardcode_into_libs=yes
23417 dynamic_linker="$host_os dld.so"
23418 shlibpath_var=LD_LIBRARY_PATH
23419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23421 soname_spec='${libname}${release}${shared_ext}$major'
23422 if test "X$HPUX_IA64_MODE" = X32; then
23423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23424 else
23425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23426 fi
23427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23428 ;;
23429 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023430 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023431 hardcode_into_libs=yes
23432 dynamic_linker="$host_os dld.sl"
23433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23436 soname_spec='${libname}${release}${shared_ext}$major'
23437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23439 ;;
23440 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023441 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023442 dynamic_linker="$host_os dld.sl"
23443 shlibpath_var=SHLIB_PATH
23444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 ;;
23448 esac
23449 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23450 postinstall_cmds='chmod 555 $lib'
23451 ;;
23452
Reid Spencera773bd52006-08-04 18:18:08 +000023453interix3*)
23454 version_type=linux
23455 need_lib_prefix=no
23456 need_version=no
23457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23458 soname_spec='${libname}${release}${shared_ext}$major'
23459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=no
23462 hardcode_into_libs=yes
23463 ;;
23464
John Criswell47fdd832003-07-14 16:52:07 +000023465irix5* | irix6* | nonstopux*)
23466 case $host_os in
23467 nonstopux*) version_type=nonstopux ;;
23468 *)
23469 if test "$lt_cv_prog_gnu_ld" = yes; then
23470 version_type=linux
23471 else
23472 version_type=irix
23473 fi ;;
23474 esac
23475 need_lib_prefix=no
23476 need_version=no
23477 soname_spec='${libname}${release}${shared_ext}$major'
23478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23479 case $host_os in
23480 irix5* | nonstopux*)
23481 libsuff= shlibsuff=
23482 ;;
23483 *)
23484 case $LD in # libtool.m4 will add one of these switches to LD
23485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23486 libsuff= shlibsuff= libmagic=32-bit;;
23487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23488 libsuff=32 shlibsuff=N32 libmagic=N32;;
23489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23491 *) libsuff= shlibsuff= libmagic=never-match;;
23492 esac
23493 ;;
23494 esac
23495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23496 shlibpath_overrides_runpath=no
23497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23499 hardcode_into_libs=yes
23500 ;;
23501
23502# No shared lib support for Linux oldld, aout, or coff.
23503linux*oldld* | linux*aout* | linux*coff*)
23504 dynamic_linker=no
23505 ;;
23506
23507# This must be Linux ELF.
23508linux*)
23509 version_type=linux
23510 need_lib_prefix=no
23511 need_version=no
23512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23513 soname_spec='${libname}${release}${shared_ext}$major'
23514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23515 shlibpath_var=LD_LIBRARY_PATH
23516 shlibpath_overrides_runpath=no
23517 # This implies no fast_install, which is unacceptable.
23518 # Some rework will be needed to allow for fast_install
23519 # before this can be enabled.
23520 hardcode_into_libs=yes
23521
Reid Spencer2706f8c2004-09-19 23:53:36 +000023522 # Append ld.so.conf contents to the search path
23523 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023524 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 +000023525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23526 fi
23527
John Criswell47fdd832003-07-14 16:52:07 +000023528 # We used to test for /lib/ld.so.1 and disable shared libraries on
23529 # powerpc, because MkLinux only supported shared libraries with the
23530 # GNU dynamic linker. Since this was broken with cross compilers,
23531 # most powerpc-linux boxes support dynamic linking these days and
23532 # people can always --disable-shared, the test was removed, and we
23533 # assume the GNU/Linux dynamic linker is in use.
23534 dynamic_linker='GNU/Linux ld.so'
23535 ;;
23536
Reid Spencer2706f8c2004-09-19 23:53:36 +000023537knetbsd*-gnu)
23538 version_type=linux
23539 need_lib_prefix=no
23540 need_version=no
23541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23542 soname_spec='${libname}${release}${shared_ext}$major'
23543 shlibpath_var=LD_LIBRARY_PATH
23544 shlibpath_overrides_runpath=no
23545 hardcode_into_libs=yes
23546 dynamic_linker='GNU ld.so'
23547 ;;
23548
John Criswell47fdd832003-07-14 16:52:07 +000023549netbsd*)
23550 version_type=sunos
23551 need_lib_prefix=no
23552 need_version=no
23553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23556 dynamic_linker='NetBSD (a.out) ld.so'
23557 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023559 soname_spec='${libname}${release}${shared_ext}$major'
23560 dynamic_linker='NetBSD ld.elf_so'
23561 fi
23562 shlibpath_var=LD_LIBRARY_PATH
23563 shlibpath_overrides_runpath=yes
23564 hardcode_into_libs=yes
23565 ;;
23566
23567newsos6)
23568 version_type=linux
23569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23570 shlibpath_var=LD_LIBRARY_PATH
23571 shlibpath_overrides_runpath=yes
23572 ;;
23573
Reid Spencer2706f8c2004-09-19 23:53:36 +000023574nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023575 version_type=linux
23576 need_lib_prefix=no
23577 need_version=no
23578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23579 soname_spec='${libname}${release}${shared_ext}$major'
23580 shlibpath_var=LD_LIBRARY_PATH
23581 shlibpath_overrides_runpath=yes
23582 ;;
23583
23584openbsd*)
23585 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023586 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023587 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23589 case $host_os in
23590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23591 *) need_version=no ;;
23592 esac
John Criswell47fdd832003-07-14 16:52:07 +000023593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23595 shlibpath_var=LD_LIBRARY_PATH
23596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23597 case $host_os in
23598 openbsd2.[89] | openbsd2.[89].*)
23599 shlibpath_overrides_runpath=no
23600 ;;
23601 *)
23602 shlibpath_overrides_runpath=yes
23603 ;;
23604 esac
23605 else
23606 shlibpath_overrides_runpath=yes
23607 fi
23608 ;;
23609
23610os2*)
23611 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023612 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023613 need_lib_prefix=no
23614 library_names_spec='$libname${shared_ext} $libname.a'
23615 dynamic_linker='OS/2 ld.exe'
23616 shlibpath_var=LIBPATH
23617 ;;
23618
23619osf3* | osf4* | osf5*)
23620 version_type=osf
23621 need_lib_prefix=no
23622 need_version=no
23623 soname_spec='${libname}${release}${shared_ext}$major'
23624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23625 shlibpath_var=LD_LIBRARY_PATH
23626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23628 ;;
23629
John Criswell47fdd832003-07-14 16:52:07 +000023630solaris*)
23631 version_type=linux
23632 need_lib_prefix=no
23633 need_version=no
23634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23635 soname_spec='${libname}${release}${shared_ext}$major'
23636 shlibpath_var=LD_LIBRARY_PATH
23637 shlibpath_overrides_runpath=yes
23638 hardcode_into_libs=yes
23639 # ldd complains unless libraries are executable
23640 postinstall_cmds='chmod +x $lib'
23641 ;;
23642
23643sunos4*)
23644 version_type=sunos
23645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23647 shlibpath_var=LD_LIBRARY_PATH
23648 shlibpath_overrides_runpath=yes
23649 if test "$with_gnu_ld" = yes; then
23650 need_lib_prefix=no
23651 fi
23652 need_version=yes
23653 ;;
23654
Reid Spencera773bd52006-08-04 18:18:08 +000023655sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023656 version_type=linux
23657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23658 soname_spec='${libname}${release}${shared_ext}$major'
23659 shlibpath_var=LD_LIBRARY_PATH
23660 case $host_vendor in
23661 sni)
23662 shlibpath_overrides_runpath=no
23663 need_lib_prefix=no
23664 export_dynamic_flag_spec='${wl}-Blargedynsym'
23665 runpath_var=LD_RUN_PATH
23666 ;;
23667 siemens)
23668 need_lib_prefix=no
23669 ;;
23670 motorola)
23671 need_lib_prefix=no
23672 need_version=no
23673 shlibpath_overrides_runpath=no
23674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23675 ;;
23676 esac
23677 ;;
23678
23679sysv4*MP*)
23680 if test -d /usr/nec ;then
23681 version_type=linux
23682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23683 soname_spec='$libname${shared_ext}.$major'
23684 shlibpath_var=LD_LIBRARY_PATH
23685 fi
23686 ;;
23687
Reid Spencera773bd52006-08-04 18:18:08 +000023688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23689 version_type=freebsd-elf
23690 need_lib_prefix=no
23691 need_version=no
23692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23693 soname_spec='${libname}${release}${shared_ext}$major'
23694 shlibpath_var=LD_LIBRARY_PATH
23695 hardcode_into_libs=yes
23696 if test "$with_gnu_ld" = yes; then
23697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23698 shlibpath_overrides_runpath=no
23699 else
23700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23701 shlibpath_overrides_runpath=yes
23702 case $host_os in
23703 sco3.2v5*)
23704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23705 ;;
23706 esac
23707 fi
23708 sys_lib_dlsearch_path_spec='/usr/lib'
23709 ;;
23710
John Criswell47fdd832003-07-14 16:52:07 +000023711uts4*)
23712 version_type=linux
23713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23714 soname_spec='${libname}${release}${shared_ext}$major'
23715 shlibpath_var=LD_LIBRARY_PATH
23716 ;;
23717
23718*)
23719 dynamic_linker=no
23720 ;;
23721esac
Reid Spencera773bd52006-08-04 18:18:08 +000023722{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23723echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023724test "$dynamic_linker" = no && can_build_shared=no
23725
Reid Spencera773bd52006-08-04 18:18:08 +000023726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23727if test "$GCC" = yes; then
23728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23729fi
23730
23731{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23732echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023733hardcode_action_F77=
23734if test -n "$hardcode_libdir_flag_spec_F77" || \
23735 test -n "$runpath_var_F77" || \
23736 test "X$hardcode_automatic_F77" = "Xyes" ; then
23737
23738 # We can hardcode non-existant directories.
23739 if test "$hardcode_direct_F77" != no &&
23740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23741 # have to relink, otherwise we might link with an installed library
23742 # when we should be linking with a yet-to-be-installed one
23743 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23744 test "$hardcode_minus_L_F77" != no; then
23745 # Linking always hardcodes the temporary library directory.
23746 hardcode_action_F77=relink
23747 else
23748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23749 hardcode_action_F77=immediate
23750 fi
23751else
23752 # We cannot hardcode anything, or else we can only hardcode existing
23753 # directories.
23754 hardcode_action_F77=unsupported
23755fi
Reid Spencera773bd52006-08-04 18:18:08 +000023756{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23757echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023758
23759if test "$hardcode_action_F77" = relink; then
23760 # Fast installation is not supported
23761 enable_fast_install=no
23762elif test "$shlibpath_overrides_runpath" = yes ||
23763 test "$enable_shared" = no; then
23764 # Fast installation is not necessary
23765 enable_fast_install=needless
23766fi
23767
John Criswell47fdd832003-07-14 16:52:07 +000023768
23769# The else clause should only fire when bootstrapping the
23770# libtool distribution, otherwise you forgot to ship ltmain.sh
23771# with your package, and you will get complaints that there are
23772# no rules to generate ltmain.sh.
23773if test -f "$ltmain"; then
23774 # See if we are running on zsh, and set the options which allow our commands through
23775 # without removal of \ escapes.
23776 if test -n "${ZSH_VERSION+set}" ; then
23777 setopt NO_GLOB_SUBST
23778 fi
23779 # Now quote all the things that may contain metacharacters while being
23780 # careful not to overquote the AC_SUBSTed values. We take copies of the
23781 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023782 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 +000023783 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23786 deplibs_check_method reload_flag reload_cmds need_locks \
23787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23788 lt_cv_sys_global_symbol_to_c_name_address \
23789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23790 old_postinstall_cmds old_postuninstall_cmds \
23791 compiler_F77 \
23792 CC_F77 \
23793 LD_F77 \
23794 lt_prog_compiler_wl_F77 \
23795 lt_prog_compiler_pic_F77 \
23796 lt_prog_compiler_static_F77 \
23797 lt_prog_compiler_no_builtin_flag_F77 \
23798 export_dynamic_flag_spec_F77 \
23799 thread_safe_flag_spec_F77 \
23800 whole_archive_flag_spec_F77 \
23801 enable_shared_with_static_runtimes_F77 \
23802 old_archive_cmds_F77 \
23803 old_archive_from_new_cmds_F77 \
23804 predep_objects_F77 \
23805 postdep_objects_F77 \
23806 predeps_F77 \
23807 postdeps_F77 \
23808 compiler_lib_search_path_F77 \
23809 archive_cmds_F77 \
23810 archive_expsym_cmds_F77 \
23811 postinstall_cmds_F77 \
23812 postuninstall_cmds_F77 \
23813 old_archive_from_expsyms_cmds_F77 \
23814 allow_undefined_flag_F77 \
23815 no_undefined_flag_F77 \
23816 export_symbols_cmds_F77 \
23817 hardcode_libdir_flag_spec_F77 \
23818 hardcode_libdir_flag_spec_ld_F77 \
23819 hardcode_libdir_separator_F77 \
23820 hardcode_automatic_F77 \
23821 module_cmds_F77 \
23822 module_expsym_cmds_F77 \
23823 lt_cv_prog_compiler_c_o_F77 \
23824 exclude_expsyms_F77 \
23825 include_expsyms_F77; do
23826
23827 case $var in
23828 old_archive_cmds_F77 | \
23829 old_archive_from_new_cmds_F77 | \
23830 archive_cmds_F77 | \
23831 archive_expsym_cmds_F77 | \
23832 module_cmds_F77 | \
23833 module_expsym_cmds_F77 | \
23834 old_archive_from_expsyms_cmds_F77 | \
23835 export_symbols_cmds_F77 | \
23836 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23837 postinstall_cmds | postuninstall_cmds | \
23838 old_postinstall_cmds | old_postuninstall_cmds | \
23839 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23840 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023841 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 +000023842 ;;
23843 *)
23844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23845 ;;
23846 esac
23847 done
23848
23849 case $lt_echo in
23850 *'\$0 --fallback-echo"')
23851 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23852 ;;
23853 esac
23854
23855cfgfile="$ofile"
23856
23857 cat <<__EOF__ >> "$cfgfile"
23858# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23859
23860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23861
23862# Shell to use when invoking shell scripts.
23863SHELL=$lt_SHELL
23864
23865# Whether or not to build shared libraries.
23866build_libtool_libs=$enable_shared
23867
23868# Whether or not to build static libraries.
23869build_old_libs=$enable_static
23870
23871# Whether or not to add -lc for building shared libraries.
23872build_libtool_need_lc=$archive_cmds_need_lc_F77
23873
23874# Whether or not to disallow shared libs when runtime libs are static
23875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23876
23877# Whether or not to optimize for fast installation.
23878fast_install=$enable_fast_install
23879
23880# The host system.
23881host_alias=$host_alias
23882host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023883host_os=$host_os
23884
23885# The build system.
23886build_alias=$build_alias
23887build=$build
23888build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023889
23890# An echo program that does not interpret backslashes.
23891echo=$lt_echo
23892
23893# The archiver.
23894AR=$lt_AR
23895AR_FLAGS=$lt_AR_FLAGS
23896
23897# A C compiler.
23898LTCC=$lt_LTCC
23899
Reid Spencera773bd52006-08-04 18:18:08 +000023900# LTCC compiler flags.
23901LTCFLAGS=$lt_LTCFLAGS
23902
John Criswell47fdd832003-07-14 16:52:07 +000023903# A language-specific compiler.
23904CC=$lt_compiler_F77
23905
23906# Is the compiler the GNU C compiler?
23907with_gcc=$GCC_F77
23908
23909# An ERE matcher.
23910EGREP=$lt_EGREP
23911
23912# The linker used to build libraries.
23913LD=$lt_LD_F77
23914
23915# Whether we need hard or soft links.
23916LN_S=$lt_LN_S
23917
23918# A BSD-compatible nm program.
23919NM=$lt_NM
23920
23921# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023922STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023923
23924# Used to examine libraries when file_magic_cmd begins "file"
23925MAGIC_CMD=$MAGIC_CMD
23926
23927# Used on cygwin: DLL creation program.
23928DLLTOOL="$DLLTOOL"
23929
23930# Used on cygwin: object dumper.
23931OBJDUMP="$OBJDUMP"
23932
23933# Used on cygwin: assembler.
23934AS="$AS"
23935
23936# The name of the directory that contains temporary libtool files.
23937objdir=$objdir
23938
23939# How to create reloadable object files.
23940reload_flag=$lt_reload_flag
23941reload_cmds=$lt_reload_cmds
23942
23943# How to pass a linker flag through the compiler.
23944wl=$lt_lt_prog_compiler_wl_F77
23945
23946# Object file suffix (normally "o").
23947objext="$ac_objext"
23948
23949# Old archive suffix (normally "a").
23950libext="$libext"
23951
23952# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023953shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023954
23955# Executable file suffix (normally "").
23956exeext="$exeext"
23957
23958# Additional compiler flags for building library objects.
23959pic_flag=$lt_lt_prog_compiler_pic_F77
23960pic_mode=$pic_mode
23961
23962# What is the maximum length of a command?
23963max_cmd_len=$lt_cv_sys_max_cmd_len
23964
23965# Does compiler simultaneously support -c and -o options?
23966compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23967
Reid Spencera773bd52006-08-04 18:18:08 +000023968# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023969need_locks=$lt_need_locks
23970
23971# Do we need the lib prefix for modules?
23972need_lib_prefix=$need_lib_prefix
23973
23974# Do we need a version for libraries?
23975need_version=$need_version
23976
23977# Whether dlopen is supported.
23978dlopen_support=$enable_dlopen
23979
23980# Whether dlopen of programs is supported.
23981dlopen_self=$enable_dlopen_self
23982
23983# Whether dlopen of statically linked programs is supported.
23984dlopen_self_static=$enable_dlopen_self_static
23985
23986# Compiler flag to prevent dynamic linking.
23987link_static_flag=$lt_lt_prog_compiler_static_F77
23988
23989# Compiler flag to turn off builtin functions.
23990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23991
23992# Compiler flag to allow reflexive dlopens.
23993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23994
23995# Compiler flag to generate shared objects directly from archives.
23996whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23997
23998# Compiler flag to generate thread-safe objects.
23999thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24000
24001# Library versioning type.
24002version_type=$version_type
24003
24004# Format of library name prefix.
24005libname_spec=$lt_libname_spec
24006
24007# List of archive names. First name is the real one, the rest are links.
24008# The last name is the one that the linker finds with -lNAME.
24009library_names_spec=$lt_library_names_spec
24010
24011# The coded name of the library, if different from the real name.
24012soname_spec=$lt_soname_spec
24013
24014# Commands used to build and install an old-style archive.
24015RANLIB=$lt_RANLIB
24016old_archive_cmds=$lt_old_archive_cmds_F77
24017old_postinstall_cmds=$lt_old_postinstall_cmds
24018old_postuninstall_cmds=$lt_old_postuninstall_cmds
24019
24020# Create an old-style archive from a shared archive.
24021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24022
24023# Create a temporary old-style archive to link instead of a shared archive.
24024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24025
24026# Commands used to build and install a shared archive.
24027archive_cmds=$lt_archive_cmds_F77
24028archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24029postinstall_cmds=$lt_postinstall_cmds
24030postuninstall_cmds=$lt_postuninstall_cmds
24031
24032# Commands used to build a loadable module (assumed same as above if empty)
24033module_cmds=$lt_module_cmds_F77
24034module_expsym_cmds=$lt_module_expsym_cmds_F77
24035
24036# Commands to strip libraries.
24037old_striplib=$lt_old_striplib
24038striplib=$lt_striplib
24039
24040# Dependencies to place before the objects being linked to create a
24041# shared library.
24042predep_objects=$lt_predep_objects_F77
24043
24044# Dependencies to place after the objects being linked to create a
24045# shared library.
24046postdep_objects=$lt_postdep_objects_F77
24047
24048# Dependencies to place before the objects being linked to create a
24049# shared library.
24050predeps=$lt_predeps_F77
24051
24052# Dependencies to place after the objects being linked to create a
24053# shared library.
24054postdeps=$lt_postdeps_F77
24055
24056# The library search path used internally by the compiler when linking
24057# a shared library.
24058compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24059
24060# Method to check whether dependent libraries are shared objects.
24061deplibs_check_method=$lt_deplibs_check_method
24062
24063# Command to use when deplibs_check_method == file_magic.
24064file_magic_cmd=$lt_file_magic_cmd
24065
24066# Flag that allows shared libraries with undefined symbols to be built.
24067allow_undefined_flag=$lt_allow_undefined_flag_F77
24068
24069# Flag that forces no undefined symbols.
24070no_undefined_flag=$lt_no_undefined_flag_F77
24071
24072# Commands used to finish a libtool library installation in a directory.
24073finish_cmds=$lt_finish_cmds
24074
24075# Same as above, but a single script fragment to be evaled but not shown.
24076finish_eval=$lt_finish_eval
24077
24078# Take the output of nm and produce a listing of raw symbols and C names.
24079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24080
24081# Transform the output of nm in a proper C declaration
24082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24083
24084# Transform the output of nm in a C name address pair
24085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24086
24087# This is the shared library runtime path variable.
24088runpath_var=$runpath_var
24089
24090# This is the shared library path variable.
24091shlibpath_var=$shlibpath_var
24092
24093# Is shlibpath searched before the hard-coded library search path?
24094shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24095
24096# How to hardcode a shared library path into an executable.
24097hardcode_action=$hardcode_action_F77
24098
24099# Whether we should hardcode library paths into libraries.
24100hardcode_into_libs=$hardcode_into_libs
24101
24102# Flag to hardcode \$libdir into a binary during linking.
24103# This must work even if \$libdir does not exist.
24104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24105
24106# If ld is used when linking, flag to hardcode \$libdir into
24107# a binary during linking. This must work even if \$libdir does
24108# not exist.
24109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24110
24111# Whether we need a single -rpath flag with a separated argument.
24112hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24113
24114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24115# resulting binary.
24116hardcode_direct=$hardcode_direct_F77
24117
24118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24119# resulting binary.
24120hardcode_minus_L=$hardcode_minus_L_F77
24121
24122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24123# the resulting binary.
24124hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24125
24126# Set to yes if building a shared library automatically hardcodes DIR into the library
24127# and all subsequent libraries and executables linked against it.
24128hardcode_automatic=$hardcode_automatic_F77
24129
24130# Variables whose values should be saved in libtool wrapper scripts and
24131# restored at relink time.
24132variables_saved_for_relink="$variables_saved_for_relink"
24133
24134# Whether libtool must link a program against all its dependency libraries.
24135link_all_deplibs=$link_all_deplibs_F77
24136
24137# Compile-time system search path for libraries
24138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24139
24140# Run-time system search path for libraries
24141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24142
24143# Fix the shell variable \$srcfile for the compiler.
24144fix_srcfile_path="$fix_srcfile_path_F77"
24145
24146# Set to yes if exported symbols are required.
24147always_export_symbols=$always_export_symbols_F77
24148
24149# The commands to list exported symbols.
24150export_symbols_cmds=$lt_export_symbols_cmds_F77
24151
24152# The commands to extract the exported symbol list from a shared archive.
24153extract_expsyms_cmds=$lt_extract_expsyms_cmds
24154
24155# Symbols that should not be listed in the preloaded symbols.
24156exclude_expsyms=$lt_exclude_expsyms_F77
24157
24158# Symbols that must always be exported.
24159include_expsyms=$lt_include_expsyms_F77
24160
24161# ### END LIBTOOL TAG CONFIG: $tagname
24162
24163__EOF__
24164
24165
24166else
24167 # If there is no Makefile yet, we rely on a make rule to execute
24168 # `config.status --recheck' to rerun these tests and create the
24169 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024170 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24171 if test -f "$ltmain_in"; then
24172 test -f Makefile && make "$ltmain"
24173 fi
John Criswell47fdd832003-07-14 16:52:07 +000024174fi
24175
24176
24177ac_ext=c
24178ac_cpp='$CPP $CPPFLAGS'
24179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24181ac_compiler_gnu=$ac_cv_c_compiler_gnu
24182
24183CC="$lt_save_CC"
24184
24185 else
24186 tagname=""
24187 fi
24188 ;;
24189
24190 GCJ)
24191 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024192 ac_ext=c
24193ac_cpp='$CPP $CPPFLAGS'
24194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24196ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024197
24198
24199# Source file extension for Java test sources.
24200ac_ext=java
24201
24202# Object file extension for compiled Java test sources.
24203objext=o
24204objext_GCJ=$objext
24205
24206# Code to be used in simple compile tests
24207lt_simple_compile_test_code="class foo {}\n"
24208
24209# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024210lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024211
24212# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24213
24214# If no C compiler was specified, use CC.
24215LTCC=${LTCC-"$CC"}
24216
Reid Spencera773bd52006-08-04 18:18:08 +000024217# If no C compiler flags were specified, use CFLAGS.
24218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24219
John Criswell47fdd832003-07-14 16:52:07 +000024220# Allow CC to be a program name with arguments.
24221compiler=$CC
24222
24223
Reid Spencera773bd52006-08-04 18:18:08 +000024224# save warnings/boilerplate of simple test code
24225ac_outfile=conftest.$ac_objext
24226printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24228_lt_compiler_boilerplate=`cat conftest.err`
24229$rm conftest*
24230
24231ac_outfile=conftest.$ac_objext
24232printf "$lt_simple_link_test_code" >conftest.$ac_ext
24233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234_lt_linker_boilerplate=`cat conftest.err`
24235$rm conftest*
24236
24237
John Criswell47fdd832003-07-14 16:52:07 +000024238# Allow CC to be a program name with arguments.
24239lt_save_CC="$CC"
24240CC=${GCJ-"gcj"}
24241compiler=$CC
24242compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024243for cc_temp in $compiler""; do
24244 case $cc_temp in
24245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24247 \-*) ;;
24248 *) break;;
24249 esac
24250done
24251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24252
John Criswell47fdd832003-07-14 16:52:07 +000024253
24254# GCJ did not exist at the time GCC didn't implicitly link libc in.
24255archive_cmds_need_lc_GCJ=no
24256
Reid Spencera773bd52006-08-04 18:18:08 +000024257old_archive_cmds_GCJ=$old_archive_cmds
24258
John Criswell47fdd832003-07-14 16:52:07 +000024259
24260lt_prog_compiler_no_builtin_flag_GCJ=
24261
24262if test "$GCC" = yes; then
24263 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24264
Reid Spencer2706f8c2004-09-19 23:53:36 +000024265
Reid Spencera773bd52006-08-04 18:18:08 +000024266{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24267echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024268if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24270else
24271 lt_cv_prog_compiler_rtti_exceptions=no
24272 ac_outfile=conftest.$ac_objext
24273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24274 lt_compiler_flag="-fno-rtti -fno-exceptions"
24275 # Insert the option either (1) after the last *FLAGS variable, or
24276 # (2) before a word containing "conftest.", or (3) at the end.
24277 # Note that $ac_compile itself does not contain backslashes and begins
24278 # with a dollar sign (not a hyphen), so the echo should work correctly.
24279 # The option is referenced via a variable to avoid confusing sed.
24280 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24283 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000024284 (eval echo "\"\$as_me:24284: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024285 (eval "$lt_compile" 2>conftest.err)
24286 ac_status=$?
24287 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000024288 echo "$as_me:24288: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024289 if (exit $ac_status) && test -s "$ac_outfile"; then
24290 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024291 # So say no if there are warnings other than the usual output.
24292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024295 lt_cv_prog_compiler_rtti_exceptions=yes
24296 fi
24297 fi
24298 $rm conftest*
24299
24300fi
Reid Spencera773bd52006-08-04 18:18:08 +000024301{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24302echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024303
24304if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24305 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24306else
24307 :
24308fi
24309
24310fi
24311
24312lt_prog_compiler_wl_GCJ=
24313lt_prog_compiler_pic_GCJ=
24314lt_prog_compiler_static_GCJ=
24315
Reid Spencera773bd52006-08-04 18:18:08 +000024316{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24317echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024318
24319 if test "$GCC" = yes; then
24320 lt_prog_compiler_wl_GCJ='-Wl,'
24321 lt_prog_compiler_static_GCJ='-static'
24322
24323 case $host_os in
24324 aix*)
24325 # All AIX code is PIC.
24326 if test "$host_cpu" = ia64; then
24327 # AIX 5 now supports IA64 processor
24328 lt_prog_compiler_static_GCJ='-Bstatic'
24329 fi
24330 ;;
24331
24332 amigaos*)
24333 # FIXME: we need at least 68020 code to build shared libraries, but
24334 # adding the `-m68020' flag to GCC prevents building anything better,
24335 # like `-m68040'.
24336 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24337 ;;
24338
24339 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24340 # PIC is the default for these OSes.
24341 ;;
24342
24343 mingw* | pw32* | os2*)
24344 # This hack is so that the source file can tell whether it is being
24345 # built for inclusion in a dll (and should export symbols for example).
24346 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24347 ;;
24348
24349 darwin* | rhapsody*)
24350 # PIC is the default on this platform
24351 # Common symbols not allowed in MH_DYLIB files
24352 lt_prog_compiler_pic_GCJ='-fno-common'
24353 ;;
24354
Reid Spencera773bd52006-08-04 18:18:08 +000024355 interix3*)
24356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24357 # Instead, we relocate shared libraries at runtime.
24358 ;;
24359
John Criswell47fdd832003-07-14 16:52:07 +000024360 msdosdjgpp*)
24361 # Just because we use GCC doesn't mean we suddenly get shared libraries
24362 # on systems that don't support them.
24363 lt_prog_compiler_can_build_shared_GCJ=no
24364 enable_shared=no
24365 ;;
24366
24367 sysv4*MP*)
24368 if test -d /usr/nec; then
24369 lt_prog_compiler_pic_GCJ=-Kconform_pic
24370 fi
24371 ;;
24372
24373 hpux*)
24374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24375 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024376 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024377 hppa*64*|ia64*)
24378 # +Z the default
24379 ;;
24380 *)
24381 lt_prog_compiler_pic_GCJ='-fPIC'
24382 ;;
24383 esac
24384 ;;
24385
24386 *)
24387 lt_prog_compiler_pic_GCJ='-fPIC'
24388 ;;
24389 esac
24390 else
24391 # PORTME Check for flag to pass linker flags through the system compiler.
24392 case $host_os in
24393 aix*)
24394 lt_prog_compiler_wl_GCJ='-Wl,'
24395 if test "$host_cpu" = ia64; then
24396 # AIX 5 now supports IA64 processor
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24398 else
24399 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24400 fi
24401 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024402 darwin*)
24403 # PIC is the default on this platform
24404 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024405 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024406 xlc*)
24407 lt_prog_compiler_pic_GCJ='-qnocommon'
24408 lt_prog_compiler_wl_GCJ='-Wl,'
24409 ;;
24410 esac
24411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024412
24413 mingw* | pw32* | os2*)
24414 # This hack is so that the source file can tell whether it is being
24415 # built for inclusion in a dll (and should export symbols for example).
24416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24417 ;;
24418
24419 hpux9* | hpux10* | hpux11*)
24420 lt_prog_compiler_wl_GCJ='-Wl,'
24421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24422 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024423 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024424 hppa*64*|ia64*)
24425 # +Z the default
24426 ;;
24427 *)
24428 lt_prog_compiler_pic_GCJ='+Z'
24429 ;;
24430 esac
24431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24432 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24433 ;;
24434
24435 irix5* | irix6* | nonstopux*)
24436 lt_prog_compiler_wl_GCJ='-Wl,'
24437 # PIC (with -KPIC) is the default.
24438 lt_prog_compiler_static_GCJ='-non_shared'
24439 ;;
24440
24441 newsos6)
24442 lt_prog_compiler_pic_GCJ='-KPIC'
24443 lt_prog_compiler_static_GCJ='-Bstatic'
24444 ;;
24445
24446 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024447 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024448 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024449 lt_prog_compiler_wl_GCJ='-Wl,'
24450 lt_prog_compiler_pic_GCJ='-KPIC'
24451 lt_prog_compiler_static_GCJ='-static'
24452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024453 pgcc* | pgf77* | pgf90* | pgf95*)
24454 # Portland Group compilers (*not* the Pentium gcc compiler,
24455 # which looks to be a dead project)
24456 lt_prog_compiler_wl_GCJ='-Wl,'
24457 lt_prog_compiler_pic_GCJ='-fpic'
24458 lt_prog_compiler_static_GCJ='-Bstatic'
24459 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024460 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024461 lt_prog_compiler_wl_GCJ='-Wl,'
24462 # All Alpha code is PIC.
24463 lt_prog_compiler_static_GCJ='-non_shared'
24464 ;;
24465 esac
24466 ;;
24467
24468 osf3* | osf4* | osf5*)
24469 lt_prog_compiler_wl_GCJ='-Wl,'
24470 # All OSF/1 code is PIC.
24471 lt_prog_compiler_static_GCJ='-non_shared'
24472 ;;
24473
John Criswell47fdd832003-07-14 16:52:07 +000024474 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024475 lt_prog_compiler_pic_GCJ='-KPIC'
24476 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024477 case $cc_basename in
24478 f77* | f90* | f95*)
24479 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24480 *)
24481 lt_prog_compiler_wl_GCJ='-Wl,';;
24482 esac
John Criswell47fdd832003-07-14 16:52:07 +000024483 ;;
24484
24485 sunos4*)
24486 lt_prog_compiler_wl_GCJ='-Qoption ld '
24487 lt_prog_compiler_pic_GCJ='-PIC'
24488 lt_prog_compiler_static_GCJ='-Bstatic'
24489 ;;
24490
Reid Spencera773bd52006-08-04 18:18:08 +000024491 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024492 lt_prog_compiler_wl_GCJ='-Wl,'
24493 lt_prog_compiler_pic_GCJ='-KPIC'
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24495 ;;
24496
24497 sysv4*MP*)
24498 if test -d /usr/nec ;then
24499 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24500 lt_prog_compiler_static_GCJ='-Bstatic'
24501 fi
24502 ;;
24503
Reid Spencera773bd52006-08-04 18:18:08 +000024504 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24505 lt_prog_compiler_wl_GCJ='-Wl,'
24506 lt_prog_compiler_pic_GCJ='-KPIC'
24507 lt_prog_compiler_static_GCJ='-Bstatic'
24508 ;;
24509
24510 unicos*)
24511 lt_prog_compiler_wl_GCJ='-Wl,'
24512 lt_prog_compiler_can_build_shared_GCJ=no
24513 ;;
24514
John Criswell47fdd832003-07-14 16:52:07 +000024515 uts4*)
24516 lt_prog_compiler_pic_GCJ='-pic'
24517 lt_prog_compiler_static_GCJ='-Bstatic'
24518 ;;
24519
24520 *)
24521 lt_prog_compiler_can_build_shared_GCJ=no
24522 ;;
24523 esac
24524 fi
24525
Reid Spencera773bd52006-08-04 18:18:08 +000024526{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24527echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024528
24529#
24530# Check to make sure the PIC flag actually works.
24531#
24532if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024533
Reid Spencera773bd52006-08-04 18:18:08 +000024534{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24535echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024536if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538else
24539 lt_prog_compiler_pic_works_GCJ=no
24540 ac_outfile=conftest.$ac_objext
24541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24542 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24543 # Insert the option either (1) after the last *FLAGS variable, or
24544 # (2) before a word containing "conftest.", or (3) at the end.
24545 # Note that $ac_compile itself does not contain backslashes and begins
24546 # with a dollar sign (not a hyphen), so the echo should work correctly.
24547 # The option is referenced via a variable to avoid confusing sed.
24548 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000024552 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024553 (eval "$lt_compile" 2>conftest.err)
24554 ac_status=$?
24555 cat conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000024556 echo "$as_me:24556: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024557 if (exit $ac_status) && test -s "$ac_outfile"; then
24558 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024559 # So say no if there are warnings other than the usual output.
24560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024563 lt_prog_compiler_pic_works_GCJ=yes
24564 fi
24565 fi
24566 $rm conftest*
24567
24568fi
Reid Spencera773bd52006-08-04 18:18:08 +000024569{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24570echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024571
24572if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24573 case $lt_prog_compiler_pic_GCJ in
24574 "" | " "*) ;;
24575 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24576 esac
24577else
24578 lt_prog_compiler_pic_GCJ=
24579 lt_prog_compiler_can_build_shared_GCJ=no
24580fi
24581
24582fi
Reid Spencera773bd52006-08-04 18:18:08 +000024583case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024584 # For platforms which do not support PIC, -DPIC is meaningless:
24585 *djgpp*)
24586 lt_prog_compiler_pic_GCJ=
24587 ;;
24588 *)
24589 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24590 ;;
24591esac
24592
Reid Spencera773bd52006-08-04 18:18:08 +000024593#
24594# Check to make sure the static flag actually works.
24595#
24596wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24597{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24598echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24599if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24601else
24602 lt_prog_compiler_static_works_GCJ=no
24603 save_LDFLAGS="$LDFLAGS"
24604 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24605 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24607 # The linker can only warn and ignore the option if not recognized
24608 # So say no if there are warnings
24609 if test -s conftest.err; then
24610 # Append any errors to the config.log.
24611 cat conftest.err 1>&5
24612 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24614 if diff conftest.exp conftest.er2 >/dev/null; then
24615 lt_prog_compiler_static_works_GCJ=yes
24616 fi
24617 else
24618 lt_prog_compiler_static_works_GCJ=yes
24619 fi
24620 fi
24621 $rm conftest*
24622 LDFLAGS="$save_LDFLAGS"
24623
24624fi
24625{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24626echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24627
24628if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24629 :
24630else
24631 lt_prog_compiler_static_GCJ=
24632fi
24633
24634
24635{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24636echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024637if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639else
24640 lt_cv_prog_compiler_c_o_GCJ=no
24641 $rm -r conftest 2>/dev/null
24642 mkdir conftest
24643 cd conftest
24644 mkdir out
24645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24646
John Criswell47fdd832003-07-14 16:52:07 +000024647 lt_compiler_flag="-o out/conftest2.$ac_objext"
24648 # Insert the option either (1) after the last *FLAGS variable, or
24649 # (2) before a word containing "conftest.", or (3) at the end.
24650 # Note that $ac_compile itself does not contain backslashes and begins
24651 # with a dollar sign (not a hyphen), so the echo should work correctly.
24652 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24655 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola420d23c2009-11-16 19:46:55 +000024656 (eval echo "\"\$as_me:24656: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024657 (eval "$lt_compile" 2>out/conftest.err)
24658 ac_status=$?
24659 cat out/conftest.err >&5
Rafael Espindola420d23c2009-11-16 19:46:55 +000024660 echo "$as_me:24660: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24662 then
24663 # The compiler can only warn and ignore the option if not recognized
24664 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024668 lt_cv_prog_compiler_c_o_GCJ=yes
24669 fi
24670 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024671 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024672 $rm conftest*
24673 # SGI C++ compiler will create directory out/ii_files/ for
24674 # template instantiation
24675 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24676 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024677 cd ..
24678 rmdir conftest
24679 $rm conftest*
24680
24681fi
Reid Spencera773bd52006-08-04 18:18:08 +000024682{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24683echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024684
24685
24686hard_links="nottested"
24687if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24688 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024689 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24690echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024691 hard_links=yes
24692 $rm conftest*
24693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24694 touch conftest.a
24695 ln conftest.a conftest.b 2>&5 || hard_links=no
24696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024697 { echo "$as_me:$LINENO: result: $hard_links" >&5
24698echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024699 if test "$hard_links" = no; then
24700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24701echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24702 need_locks=warn
24703 fi
24704else
24705 need_locks=no
24706fi
24707
Reid Spencera773bd52006-08-04 18:18:08 +000024708{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24709echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024710
24711 runpath_var=
24712 allow_undefined_flag_GCJ=
24713 enable_shared_with_static_runtimes_GCJ=no
24714 archive_cmds_GCJ=
24715 archive_expsym_cmds_GCJ=
24716 old_archive_From_new_cmds_GCJ=
24717 old_archive_from_expsyms_cmds_GCJ=
24718 export_dynamic_flag_spec_GCJ=
24719 whole_archive_flag_spec_GCJ=
24720 thread_safe_flag_spec_GCJ=
24721 hardcode_libdir_flag_spec_GCJ=
24722 hardcode_libdir_flag_spec_ld_GCJ=
24723 hardcode_libdir_separator_GCJ=
24724 hardcode_direct_GCJ=no
24725 hardcode_minus_L_GCJ=no
24726 hardcode_shlibpath_var_GCJ=unsupported
24727 link_all_deplibs_GCJ=unknown
24728 hardcode_automatic_GCJ=no
24729 module_cmds_GCJ=
24730 module_expsym_cmds_GCJ=
24731 always_export_symbols_GCJ=no
24732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24733 # include_expsyms should be a list of space-separated symbols to be *always*
24734 # included in the symbol list
24735 include_expsyms_GCJ=
24736 # exclude_expsyms can be an extended regexp of symbols to exclude
24737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24739 # as well as any symbol that contains `d'.
24740 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24742 # platforms (ab)use it in PIC code, but their linkers get confused if
24743 # the symbol is explicitly referenced. Since portable code cannot
24744 # rely on this symbol name, it's probably fine to never include it in
24745 # preloaded symbol tables.
24746 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024747 # Just being paranoid about ensuring that cc_basename is set.
24748 for cc_temp in $compiler""; do
24749 case $cc_temp in
24750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24752 \-*) ;;
24753 *) break;;
24754 esac
24755done
24756cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024757
24758 case $host_os in
24759 cygwin* | mingw* | pw32*)
24760 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24761 # When not using gcc, we currently assume that we are using
24762 # Microsoft Visual C++.
24763 if test "$GCC" != yes; then
24764 with_gnu_ld=no
24765 fi
24766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024767 interix*)
24768 # we just hope/assume this is gcc and not c89 (= MSVC++)
24769 with_gnu_ld=yes
24770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024771 openbsd*)
24772 with_gnu_ld=no
24773 ;;
24774 esac
24775
24776 ld_shlibs_GCJ=yes
24777 if test "$with_gnu_ld" = yes; then
24778 # If archive_cmds runs LD, not CC, wlarc should be empty
24779 wlarc='${wl}'
24780
Reid Spencera773bd52006-08-04 18:18:08 +000024781 # Set some defaults for GNU ld with shared library support. These
24782 # are reset later if shared libraries are not supported. Putting them
24783 # here allows them to be overridden if necessary.
24784 runpath_var=LD_RUN_PATH
24785 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24786 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24787 # ancient GNU ld didn't support --whole-archive et. al.
24788 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24789 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24790 else
24791 whole_archive_flag_spec_GCJ=
24792 fi
24793 supports_anon_versioning=no
24794 case `$LD -v 2>/dev/null` in
24795 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24796 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24797 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24798 *\ 2.11.*) ;; # other 2.11 versions
24799 *) supports_anon_versioning=yes ;;
24800 esac
24801
John Criswell47fdd832003-07-14 16:52:07 +000024802 # See if GNU ld supports shared libraries.
24803 case $host_os in
24804 aix3* | aix4* | aix5*)
24805 # On AIX/PPC, the GNU linker is very broken
24806 if test "$host_cpu" != ia64; then
24807 ld_shlibs_GCJ=no
24808 cat <<EOF 1>&2
24809
24810*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24811*** to be unable to reliably create shared libraries on AIX.
24812*** Therefore, libtool is disabling shared libraries support. If you
24813*** really care for shared libraries, you may want to modify your PATH
24814*** so that a non-GNU linker is found, and then restart.
24815
24816EOF
24817 fi
24818 ;;
24819
24820 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024821 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 +000024822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823 hardcode_minus_L_GCJ=yes
24824
24825 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24826 # that the semantics of dynamic libraries on AmigaOS, at least up
24827 # to version 4, is to share data among multiple programs linked
24828 # with the same dynamic library. Since this doesn't match the
24829 # behavior of shared libraries on other platforms, we can't use
24830 # them.
24831 ld_shlibs_GCJ=no
24832 ;;
24833
24834 beos*)
24835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24836 allow_undefined_flag_GCJ=unsupported
24837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24838 # support --undefined. This deserves some investigation. FIXME
24839 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24840 else
24841 ld_shlibs_GCJ=no
24842 fi
24843 ;;
24844
24845 cygwin* | mingw* | pw32*)
24846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24847 # as there is no search path for DLLs.
24848 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24849 allow_undefined_flag_GCJ=unsupported
24850 always_export_symbols_GCJ=no
24851 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024852 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 +000024853
24854 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024855 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 +000024856 # If the export-symbols file already is a .def file (1st line
24857 # is EXPORTS), use it as is; otherwise, prepend...
24858 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24859 cp $export_symbols $output_objdir/$soname.def;
24860 else
24861 echo EXPORTS > $output_objdir/$soname.def;
24862 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024863 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024864 $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 +000024865 else
Reid Spencera773bd52006-08-04 18:18:08 +000024866 ld_shlibs_GCJ=no
24867 fi
24868 ;;
24869
24870 interix3*)
24871 hardcode_direct_GCJ=no
24872 hardcode_shlibpath_var_GCJ=no
24873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24874 export_dynamic_flag_spec_GCJ='${wl}-E'
24875 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24876 # Instead, shared libraries are loaded at an image base (0x10000000 by
24877 # default) and relocated if they conflict, which is a slow very memory
24878 # consuming and fragmenting process. To avoid this, we pick a random,
24879 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24880 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24881 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'
24882 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'
24883 ;;
24884
24885 linux*)
24886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24887 tmp_addflag=
24888 case $cc_basename,$host_cpu in
24889 pgcc*) # Portland Group C compiler
24890 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'
24891 tmp_addflag=' $pic_flag'
24892 ;;
24893 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24894 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'
24895 tmp_addflag=' $pic_flag -Mnomain' ;;
24896 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24897 tmp_addflag=' -i_dynamic' ;;
24898 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24899 tmp_addflag=' -i_dynamic -nofor_main' ;;
24900 ifc* | ifort*) # Intel Fortran compiler
24901 tmp_addflag=' -nofor_main' ;;
24902 esac
24903 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24904
24905 if test $supports_anon_versioning = yes; then
24906 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24908 $echo "local: *; };" >> $output_objdir/$libname.ver~
24909 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24910 fi
24911 else
24912 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024913 fi
24914 ;;
24915
24916 netbsd*)
24917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24918 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24919 wlarc=
24920 else
24921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24923 fi
24924 ;;
24925
Reid Spencera773bd52006-08-04 18:18:08 +000024926 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024927 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24928 ld_shlibs_GCJ=no
24929 cat <<EOF 1>&2
24930
24931*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24932*** create shared libraries on Solaris systems. Therefore, libtool
24933*** is disabling shared libraries support. We urge you to upgrade GNU
24934*** binutils to release 2.9.1 or newer. Another option is to modify
24935*** your PATH or compiler configuration so that the native linker is
24936*** used, and then restart.
24937
24938EOF
24939 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24941 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24942 else
24943 ld_shlibs_GCJ=no
24944 fi
24945 ;;
24946
Reid Spencera773bd52006-08-04 18:18:08 +000024947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24948 case `$LD -v 2>&1` in
24949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24950 ld_shlibs_GCJ=no
24951 cat <<_LT_EOF 1>&2
24952
24953*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24954*** reliably create shared libraries on SCO systems. Therefore, libtool
24955*** is disabling shared libraries support. We urge you to upgrade GNU
24956*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24957*** your PATH or compiler configuration so that the native linker is
24958*** used, and then restart.
24959
24960_LT_EOF
24961 ;;
24962 *)
24963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24964 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24966 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24967 else
24968 ld_shlibs_GCJ=no
24969 fi
24970 ;;
24971 esac
24972 ;;
24973
John Criswell47fdd832003-07-14 16:52:07 +000024974 sunos4*)
24975 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24976 wlarc=
24977 hardcode_direct_GCJ=yes
24978 hardcode_shlibpath_var_GCJ=no
24979 ;;
24980
24981 *)
24982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24985 else
24986 ld_shlibs_GCJ=no
24987 fi
24988 ;;
24989 esac
24990
Reid Spencera773bd52006-08-04 18:18:08 +000024991 if test "$ld_shlibs_GCJ" = no; then
24992 runpath_var=
24993 hardcode_libdir_flag_spec_GCJ=
24994 export_dynamic_flag_spec_GCJ=
24995 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024996 fi
24997 else
24998 # PORTME fill in a description of your system's linker (not GNU ld)
24999 case $host_os in
25000 aix3*)
25001 allow_undefined_flag_GCJ=unsupported
25002 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000025003 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 +000025004 # Note: this linker hardcodes the directories in LIBPATH if there
25005 # are no directories specified by -L.
25006 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000025008 # Neither direct hardcoding nor static linking is supported with a
25009 # broken collect2.
25010 hardcode_direct_GCJ=unsupported
25011 fi
25012 ;;
25013
25014 aix4* | aix5*)
25015 if test "$host_cpu" = ia64; then
25016 # On IA64, the linker does run time linking by default, so we don't
25017 # have to do anything special.
25018 aix_use_runtimelinking=no
25019 exp_sym_flag='-Bexport'
25020 no_entry_flag=""
25021 else
25022 # If we're using GNU nm, then we don't want the "-C" option.
25023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25024 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25025 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'
25026 else
25027 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'
25028 fi
25029 aix_use_runtimelinking=no
25030
25031 # Test if we are trying to use run time linking or normal
25032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25033 # need to do runtime linking.
25034 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25035 for ld_flag in $LDFLAGS; do
25036 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25037 aix_use_runtimelinking=yes
25038 break
25039 fi
25040 done
Reid Spencera773bd52006-08-04 18:18:08 +000025041 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025042 esac
25043
25044 exp_sym_flag='-bexport'
25045 no_entry_flag='-bnoentry'
25046 fi
25047
25048 # When large executables or shared objects are built, AIX ld can
25049 # have problems creating the table of contents. If linking a library
25050 # or program results in "error TOC overflow" add -mminimal-toc to
25051 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25052 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25053
25054 archive_cmds_GCJ=''
25055 hardcode_direct_GCJ=yes
25056 hardcode_libdir_separator_GCJ=':'
25057 link_all_deplibs_GCJ=yes
25058
25059 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025060 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000025061 # We only want to do this on AIX 4.2 and lower, the check
25062 # below for broken collect2 doesn't work under 4.3+
25063 collect2name=`${CC} -print-prog-name=collect2`
25064 if test -f "$collect2name" && \
25065 strings "$collect2name" | grep resolve_lib_name >/dev/null
25066 then
25067 # We have reworked collect2
25068 hardcode_direct_GCJ=yes
25069 else
25070 # We have old collect2
25071 hardcode_direct_GCJ=unsupported
25072 # It fails to find uninstalled libraries when the uninstalled
25073 # path is not listed in the libpath. Setting hardcode_minus_L
25074 # to unsupported forces relinking
25075 hardcode_minus_L_GCJ=yes
25076 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25077 hardcode_libdir_separator_GCJ=
25078 fi
Reid Spencera773bd52006-08-04 18:18:08 +000025079 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025080 esac
25081 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000025082 if test "$aix_use_runtimelinking" = yes; then
25083 shared_flag="$shared_flag "'${wl}-G'
25084 fi
John Criswell47fdd832003-07-14 16:52:07 +000025085 else
25086 # not using gcc
25087 if test "$host_cpu" = ia64; then
25088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25089 # chokes on -Wl,-G. The following line is correct:
25090 shared_flag='-G'
25091 else
Reid Spencera773bd52006-08-04 18:18:08 +000025092 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000025093 shared_flag='${wl}-G'
25094 else
25095 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000025096 fi
John Criswell47fdd832003-07-14 16:52:07 +000025097 fi
25098 fi
25099
25100 # It seems that -bexpall does not export symbols beginning with
25101 # underscore (_), so it is better to generate a list of symbols to export.
25102 always_export_symbols_GCJ=yes
25103 if test "$aix_use_runtimelinking" = yes; then
25104 # Warning - without using the other runtime loading flags (-brtl),
25105 # -berok will link without error, but may produce a broken library.
25106 allow_undefined_flag_GCJ='-berok'
25107 # Determine the default libpath from the value encoded in an empty executable.
25108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025109/* confdefs.h. */
25110_ACEOF
25111cat confdefs.h >>conftest.$ac_ext
25112cat >>conftest.$ac_ext <<_ACEOF
25113/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025114
John Criswell47fdd832003-07-14 16:52:07 +000025115int
25116main ()
25117{
25118
25119 ;
25120 return 0;
25121}
25122_ACEOF
25123rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025124if { (ac_try="$ac_link"
25125case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128esac
25129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025136 (exit $ac_status); } &&
25137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25138 { (case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25141esac
25142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_try") 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
25148 { (case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25151esac
25152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_try") 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025157
25158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25159}'`
25160# Check for a 64-bit object if we didn't find anything.
25161if 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; }
25162}'`; fi
25163else
25164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025165sed 's/^/| /' conftest.$ac_ext >&5
25166
Reid Spencera773bd52006-08-04 18:18:08 +000025167
John Criswell47fdd832003-07-14 16:52:07 +000025168fi
Reid Spencera773bd52006-08-04 18:18:08 +000025169
Bill Wendlingebcceee2009-04-18 11:20:33 +000025170rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025171 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25173
25174 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025175 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 +000025176 else
25177 if test "$host_cpu" = ia64; then
25178 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25179 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025180 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 +000025181 else
25182 # Determine the default libpath from the value encoded in an empty executable.
25183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025184/* confdefs.h. */
25185_ACEOF
25186cat confdefs.h >>conftest.$ac_ext
25187cat >>conftest.$ac_ext <<_ACEOF
25188/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025189
John Criswell47fdd832003-07-14 16:52:07 +000025190int
25191main ()
25192{
25193
25194 ;
25195 return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025199if { (ac_try="$ac_link"
25200case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25203esac
25204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025211 (exit $ac_status); } &&
25212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25213 { (case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25216esac
25217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_try") 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; } &&
25222 { ac_try='test -s conftest$ac_exeext'
25223 { (case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25226esac
25227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228 (eval "$ac_try") 2>&5
25229 ac_status=$?
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025232
25233aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25234}'`
25235# Check for a 64-bit object if we didn't find anything.
25236if 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; }
25237}'`; fi
25238else
25239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025240sed 's/^/| /' conftest.$ac_ext >&5
25241
Reid Spencera773bd52006-08-04 18:18:08 +000025242
John Criswell47fdd832003-07-14 16:52:07 +000025243fi
Reid Spencera773bd52006-08-04 18:18:08 +000025244
Bill Wendlingebcceee2009-04-18 11:20:33 +000025245rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025246 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025247if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25248
25249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25250 # Warning - without using the other run time loading flags,
25251 # -berok will link without error, but may produce a broken library.
25252 no_undefined_flag_GCJ=' ${wl}-bernotok'
25253 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025254 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025255 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025256 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025257 # This is similar to how AIX traditionally builds its shared libraries.
25258 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 +000025259 fi
25260 fi
25261 ;;
25262
25263 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025264 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 +000025265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25266 hardcode_minus_L_GCJ=yes
25267 # see comment about different semantics on the GNU ld section
25268 ld_shlibs_GCJ=no
25269 ;;
25270
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025272 export_dynamic_flag_spec_GCJ=-rdynamic
25273 ;;
25274
25275 cygwin* | mingw* | pw32*)
25276 # When not using gcc, we currently assume that we are using
25277 # Microsoft Visual C++.
25278 # hardcode_libdir_flag_spec is actually meaningless, as there is
25279 # no search path for DLLs.
25280 hardcode_libdir_flag_spec_GCJ=' '
25281 allow_undefined_flag_GCJ=unsupported
25282 # Tell ltmain to make .lib files, not .a files.
25283 libext=lib
25284 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025285 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025286 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025287 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 +000025288 # The linker will automatically build a .lib file if we build a DLL.
25289 old_archive_From_new_cmds_GCJ='true'
25290 # FIXME: Should let the user specify the lib program.
25291 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025292 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025293 enable_shared_with_static_runtimes_GCJ=yes
25294 ;;
25295
25296 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025297 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025298 rhapsody* | darwin1.[012])
25299 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25300 ;;
25301 *) # Darwin 1.3 on
25302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25303 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25304 else
25305 case ${MACOSX_DEPLOYMENT_TARGET} in
25306 10.[012])
25307 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25308 ;;
25309 10.*)
25310 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25311 ;;
25312 esac
25313 fi
25314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025315 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025316 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025317 hardcode_direct_GCJ=no
25318 hardcode_automatic_GCJ=yes
25319 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025320 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025321 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025322 if test "$GCC" = yes ; then
25323 output_verbose_link_cmd='echo'
25324 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25325 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025326 # 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 +000025327 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}'
25328 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 +000025329 else
Reid Spencera773bd52006-08-04 18:18:08 +000025330 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331 xlc*)
25332 output_verbose_link_cmd='echo'
25333 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25334 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025335 # 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 +000025336 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}'
25337 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 +000025338 ;;
25339 *)
25340 ld_shlibs_GCJ=no
25341 ;;
25342 esac
John Criswell47fdd832003-07-14 16:52:07 +000025343 fi
25344 ;;
25345
25346 dgux*)
25347 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25349 hardcode_shlibpath_var_GCJ=no
25350 ;;
25351
25352 freebsd1*)
25353 ld_shlibs_GCJ=no
25354 ;;
25355
25356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25357 # support. Future versions do this automatically, but an explicit c++rt0.o
25358 # does not break anything, and helps significantly (at the cost of a little
25359 # extra space).
25360 freebsd2.2*)
25361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25363 hardcode_direct_GCJ=yes
25364 hardcode_shlibpath_var_GCJ=no
25365 ;;
25366
25367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25368 freebsd2*)
25369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25370 hardcode_direct_GCJ=yes
25371 hardcode_minus_L_GCJ=yes
25372 hardcode_shlibpath_var_GCJ=no
25373 ;;
25374
25375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025376 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025377 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25379 hardcode_direct_GCJ=yes
25380 hardcode_shlibpath_var_GCJ=no
25381 ;;
25382
25383 hpux9*)
25384 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025385 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 +000025386 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025387 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 +000025388 fi
25389 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25390 hardcode_libdir_separator_GCJ=:
25391 hardcode_direct_GCJ=yes
25392
25393 # hardcode_minus_L: Not really in the search PATH,
25394 # but as the default location of the library.
25395 hardcode_minus_L_GCJ=yes
25396 export_dynamic_flag_spec_GCJ='${wl}-E'
25397 ;;
25398
Reid Spencera773bd52006-08-04 18:18:08 +000025399 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025401 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25402 else
25403 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25404 fi
25405 if test "$with_gnu_ld" = no; then
25406 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25407 hardcode_libdir_separator_GCJ=:
25408
25409 hardcode_direct_GCJ=yes
25410 export_dynamic_flag_spec_GCJ='${wl}-E'
25411
25412 # hardcode_minus_L: Not really in the search PATH,
25413 # but as the default location of the library.
25414 hardcode_minus_L_GCJ=yes
25415 fi
25416 ;;
25417
25418 hpux11*)
25419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25420 case $host_cpu in
25421 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025424 ia64*)
25425 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25426 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025427 *)
25428 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25429 ;;
25430 esac
25431 else
Reid Spencera773bd52006-08-04 18:18:08 +000025432 case $host_cpu in
25433 hppa*64*)
25434 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25435 ;;
25436 ia64*)
25437 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025438 ;;
25439 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025440 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 +000025441 ;;
25442 esac
25443 fi
25444 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025445 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25446 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025447
Reid Spencera773bd52006-08-04 18:18:08 +000025448 case $host_cpu in
25449 hppa*64*|ia64*)
25450 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25451 hardcode_direct_GCJ=no
25452 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025453 ;;
25454 *)
John Criswell47fdd832003-07-14 16:52:07 +000025455 hardcode_direct_GCJ=yes
25456 export_dynamic_flag_spec_GCJ='${wl}-E'
25457
25458 # hardcode_minus_L: Not really in the search PATH,
25459 # but as the default location of the library.
25460 hardcode_minus_L_GCJ=yes
25461 ;;
25462 esac
25463 fi
25464 ;;
25465
25466 irix5* | irix6* | nonstopux*)
25467 if test "$GCC" = yes; then
25468 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'
25469 else
25470 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'
25471 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25472 fi
25473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25474 hardcode_libdir_separator_GCJ=:
25475 link_all_deplibs_GCJ=yes
25476 ;;
25477
25478 netbsd*)
25479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25481 else
25482 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25483 fi
25484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25485 hardcode_direct_GCJ=yes
25486 hardcode_shlibpath_var_GCJ=no
25487 ;;
25488
25489 newsos6)
25490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25491 hardcode_direct_GCJ=yes
25492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25493 hardcode_libdir_separator_GCJ=:
25494 hardcode_shlibpath_var_GCJ=no
25495 ;;
25496
25497 openbsd*)
25498 hardcode_direct_GCJ=yes
25499 hardcode_shlibpath_var_GCJ=no
25500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25501 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 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 +000025503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25504 export_dynamic_flag_spec_GCJ='${wl}-E'
25505 else
25506 case $host_os in
25507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25508 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25510 ;;
25511 *)
25512 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25514 ;;
25515 esac
25516 fi
25517 ;;
25518
25519 os2*)
25520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25521 hardcode_minus_L_GCJ=yes
25522 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025523 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 +000025524 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25525 ;;
25526
25527 osf3*)
25528 if test "$GCC" = yes; then
25529 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25530 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'
25531 else
25532 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25533 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'
25534 fi
25535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25536 hardcode_libdir_separator_GCJ=:
25537 ;;
25538
25539 osf4* | osf5*) # as osf3* with the addition of -msym flag
25540 if test "$GCC" = yes; then
25541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25542 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'
25543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25544 else
25545 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25546 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 +000025547 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 +000025548 $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 +000025549
John Criswell47fdd832003-07-14 16:52:07 +000025550 # Both c and cxx compiler support -rpath directly
25551 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25552 fi
25553 hardcode_libdir_separator_GCJ=:
25554 ;;
25555
John Criswell47fdd832003-07-14 16:52:07 +000025556 solaris*)
25557 no_undefined_flag_GCJ=' -z text'
25558 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025559 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025560 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025561 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25562 $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 +000025563 else
Reid Spencera773bd52006-08-04 18:18:08 +000025564 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025565 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025566 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25567 $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 +000025568 fi
25569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25570 hardcode_shlibpath_var_GCJ=no
25571 case $host_os in
25572 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025573 *)
25574 # The compiler driver will combine linker options so we
25575 # cannot just pass the convience library names through
25576 # without $wl, iff we do not link with $LD.
25577 # Luckily, gcc supports the same syntax we need for Sun Studio.
25578 # Supported since Solaris 2.6 (maybe 2.5.1?)
25579 case $wlarc in
25580 '')
25581 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25582 *)
25583 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' ;;
25584 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025585 esac
25586 link_all_deplibs_GCJ=yes
25587 ;;
25588
25589 sunos4*)
25590 if test "x$host_vendor" = xsequent; then
25591 # Use $CC to link under sequent, because it throws in some extra .o
25592 # files that make .init and .fini sections work.
25593 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25594 else
25595 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25596 fi
25597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25598 hardcode_direct_GCJ=yes
25599 hardcode_minus_L_GCJ=yes
25600 hardcode_shlibpath_var_GCJ=no
25601 ;;
25602
25603 sysv4)
25604 case $host_vendor in
25605 sni)
25606 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25607 hardcode_direct_GCJ=yes # is this really true???
25608 ;;
25609 siemens)
25610 ## LD is ld it makes a PLAMLIB
25611 ## CC just makes a GrossModule.
25612 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25613 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25614 hardcode_direct_GCJ=no
25615 ;;
25616 motorola)
25617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25618 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25619 ;;
25620 esac
25621 runpath_var='LD_RUN_PATH'
25622 hardcode_shlibpath_var_GCJ=no
25623 ;;
25624
25625 sysv4.3*)
25626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25627 hardcode_shlibpath_var_GCJ=no
25628 export_dynamic_flag_spec_GCJ='-Bexport'
25629 ;;
25630
25631 sysv4*MP*)
25632 if test -d /usr/nec; then
25633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25634 hardcode_shlibpath_var_GCJ=no
25635 runpath_var=LD_RUN_PATH
25636 hardcode_runpath_var=yes
25637 ld_shlibs_GCJ=yes
25638 fi
25639 ;;
25640
Reid Spencera773bd52006-08-04 18:18:08 +000025641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25642 no_undefined_flag_GCJ='${wl}-z,text'
25643 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025644 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025645 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025646
John Criswell47fdd832003-07-14 16:52:07 +000025647 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025648 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25649 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 +000025650 else
Reid Spencera773bd52006-08-04 18:18:08 +000025651 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25652 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 +000025653 fi
John Criswell47fdd832003-07-14 16:52:07 +000025654 ;;
25655
Reid Spencera773bd52006-08-04 18:18:08 +000025656 sysv5* | sco3.2v5* | sco5v6*)
25657 # Note: We can NOT use -z defs as we might desire, because we do not
25658 # link with -lc, and that would cause any symbols used from libc to
25659 # always be unresolved, which means just about no library would
25660 # ever link correctly. If we're not using GNU ld we use -z text
25661 # though, which does catch some bad symbols but isn't as heavy-handed
25662 # as -z defs.
25663 no_undefined_flag_GCJ='${wl}-z,text'
25664 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25665 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025666 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025667 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25668 hardcode_libdir_separator_GCJ=':'
25669 link_all_deplibs_GCJ=yes
25670 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025671 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025672
25673 if test "$GCC" = yes; then
25674 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25675 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25676 else
25677 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25678 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25679 fi
John Criswell47fdd832003-07-14 16:52:07 +000025680 ;;
25681
25682 uts4*)
25683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25685 hardcode_shlibpath_var_GCJ=no
25686 ;;
25687
25688 *)
25689 ld_shlibs_GCJ=no
25690 ;;
25691 esac
25692 fi
25693
Reid Spencera773bd52006-08-04 18:18:08 +000025694{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25695echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025696test "$ld_shlibs_GCJ" = no && can_build_shared=no
25697
John Criswell47fdd832003-07-14 16:52:07 +000025698#
25699# Do we need to explicitly link libc?
25700#
25701case "x$archive_cmds_need_lc_GCJ" in
25702x|xyes)
25703 # Assume -lc should be added
25704 archive_cmds_need_lc_GCJ=yes
25705
25706 if test "$enable_shared" = yes && test "$GCC" = yes; then
25707 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025708 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025709 # FIXME: we may have to deal with multi-command sequences.
25710 ;;
25711 '$CC '*)
25712 # Test whether the compiler implicitly links with -lc since on some
25713 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25714 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025715 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25716echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025717 $rm conftest*
25718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25719
25720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25721 (eval $ac_compile) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); } 2>conftest.err; then
25725 soname=conftest
25726 lib=conftest
25727 libobjs=conftest.$ac_objext
25728 deplibs=
25729 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025730 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025731 compiler_flags=-v
25732 linker_flags=-v
25733 verstring=
25734 output_objdir=.
25735 libname=conftest
25736 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25737 allow_undefined_flag_GCJ=
25738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25739 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }
25743 then
25744 archive_cmds_need_lc_GCJ=no
25745 else
25746 archive_cmds_need_lc_GCJ=yes
25747 fi
25748 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25749 else
25750 cat conftest.err 1>&5
25751 fi
25752 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025753 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25754echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025755 ;;
25756 esac
25757 fi
25758 ;;
25759esac
25760
Reid Spencera773bd52006-08-04 18:18:08 +000025761{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25762echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025763library_names_spec=
25764libname_spec='lib$name'
25765soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025766shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025767postinstall_cmds=
25768postuninstall_cmds=
25769finish_cmds=
25770finish_eval=
25771shlibpath_var=
25772shlibpath_overrides_runpath=unknown
25773version_type=none
25774dynamic_linker="$host_os ld.so"
25775sys_lib_dlsearch_path_spec="/lib /usr/lib"
25776if test "$GCC" = yes; then
25777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25778 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25779 # if the path contains ";" then we assume it to be the separator
25780 # otherwise default to the standard path separator (i.e. ":") - it is
25781 # assumed that no part of a normal pathname contains ";" but that should
25782 # okay in the real world where ";" in dirpaths is itself problematic.
25783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25784 else
25785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25786 fi
25787else
25788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25789fi
25790need_lib_prefix=unknown
25791hardcode_into_libs=no
25792
25793# when you set need_version to no, make sure it does not cause -set_version
25794# flags to be left without arguments
25795need_version=unknown
25796
25797case $host_os in
25798aix3*)
25799 version_type=linux
25800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25801 shlibpath_var=LIBPATH
25802
25803 # AIX 3 has no versioning support, so we append a major version to the name.
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 ;;
25806
25807aix4* | aix5*)
25808 version_type=linux
25809 need_lib_prefix=no
25810 need_version=no
25811 hardcode_into_libs=yes
25812 if test "$host_cpu" = ia64; then
25813 # AIX 5 supports IA64
25814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25815 shlibpath_var=LD_LIBRARY_PATH
25816 else
25817 # With GCC up to 2.95.x, collect2 would create an import file
25818 # for dependence libraries. The import file would start with
25819 # the line `#! .'. This would cause the generated library to
25820 # depend on `.', always an invalid library. This was fixed in
25821 # development snapshots of GCC prior to 3.0.
25822 case $host_os in
25823 aix4 | aix4.[01] | aix4.[01].*)
25824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25825 echo ' yes '
25826 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25827 :
25828 else
25829 can_build_shared=no
25830 fi
25831 ;;
25832 esac
25833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25834 # soname into executable. Probably we can add versioning support to
25835 # collect2, so additional links can be useful in future.
25836 if test "$aix_use_runtimelinking" = yes; then
25837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25838 # instead of lib<name>.a to let people know that these are not
25839 # typical AIX shared libraries.
25840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25841 else
25842 # We preserve .a as extension for shared libraries through AIX4.2
25843 # and later when we are not doing run time linking.
25844 library_names_spec='${libname}${release}.a $libname.a'
25845 soname_spec='${libname}${release}${shared_ext}$major'
25846 fi
25847 shlibpath_var=LIBPATH
25848 fi
25849 ;;
25850
25851amigaos*)
25852 library_names_spec='$libname.ixlibrary $libname.a'
25853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025854 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 +000025855 ;;
25856
25857beos*)
25858 library_names_spec='${libname}${shared_ext}'
25859 dynamic_linker="$host_os ld.so"
25860 shlibpath_var=LIBRARY_PATH
25861 ;;
25862
Reid Spencer2706f8c2004-09-19 23:53:36 +000025863bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025864 version_type=linux
25865 need_version=no
25866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25867 soname_spec='${libname}${release}${shared_ext}$major'
25868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25869 shlibpath_var=LD_LIBRARY_PATH
25870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25872 # the default ld.so.conf also contains /usr/contrib/lib and
25873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25874 # libtool to hard-code these into programs
25875 ;;
25876
25877cygwin* | mingw* | pw32*)
25878 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025879 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025880 need_version=no
25881 need_lib_prefix=no
25882
25883 case $GCC,$host_os in
25884 yes,cygwin* | yes,mingw* | yes,pw32*)
25885 library_names_spec='$libname.dll.a'
25886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025887 postinstall_cmds='base_file=`basename \${file}`~
25888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25889 dldir=$destdir/`dirname \$dlpath`~
25890 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025891 $install_prog $dir/$dlname \$dldir/$dlname~
25892 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25894 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025895 $rm \$dlpath'
25896 shlibpath_overrides_runpath=yes
25897
25898 case $host_os in
25899 cygwin*)
25900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25901 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 +000025902 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025903 ;;
25904 mingw*)
25905 # MinGW DLLs use traditional 'lib' prefix
25906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25908 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25909 # It is most probably a Windows format PATH printed by
25910 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25911 # path with ; separators, and with drive letters. We can handle the
25912 # drive letters (cygwin fileutils understands them), so leave them,
25913 # especially as we might pass files found there to a mingw objdump,
25914 # which wouldn't understand a cygwinified path. Ahh.
25915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25916 else
25917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25918 fi
25919 ;;
25920 pw32*)
25921 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025922 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 +000025923 ;;
25924 esac
25925 ;;
25926
25927 *)
25928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25929 ;;
25930 esac
25931 dynamic_linker='Win32 ld.exe'
25932 # FIXME: first we should search . and the directory the executable is in
25933 shlibpath_var=PATH
25934 ;;
25935
25936darwin* | rhapsody*)
25937 dynamic_linker="$host_os dyld"
25938 version_type=darwin
25939 need_lib_prefix=no
25940 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025941 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025942 soname_spec='${libname}${release}${major}$shared_ext'
25943 shlibpath_overrides_runpath=yes
25944 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025945 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025946 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025947 if test "$GCC" = yes; then
25948 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"`
25949 else
25950 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025951 fi
25952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25953 ;;
25954
25955dgux*)
25956 version_type=linux
25957 need_lib_prefix=no
25958 need_version=no
25959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25960 soname_spec='${libname}${release}${shared_ext}$major'
25961 shlibpath_var=LD_LIBRARY_PATH
25962 ;;
25963
25964freebsd1*)
25965 dynamic_linker=no
25966 ;;
25967
Reid Spencer2706f8c2004-09-19 23:53:36 +000025968kfreebsd*-gnu)
25969 version_type=linux
25970 need_lib_prefix=no
25971 need_version=no
25972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25973 soname_spec='${libname}${release}${shared_ext}$major'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=no
25976 hardcode_into_libs=yes
25977 dynamic_linker='GNU ld.so'
25978 ;;
25979
Reid Spencera773bd52006-08-04 18:18:08 +000025980freebsd* | dragonfly*)
25981 # DragonFly does not have aout. When/if they implement a new
25982 # versioning mechanism, adjust this.
25983 if test -x /usr/bin/objformat; then
25984 objformat=`/usr/bin/objformat`
25985 else
25986 case $host_os in
25987 freebsd[123]*) objformat=aout ;;
25988 *) objformat=elf ;;
25989 esac
25990 fi
John Criswell47fdd832003-07-14 16:52:07 +000025991 version_type=freebsd-$objformat
25992 case $version_type in
25993 freebsd-elf*)
25994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25995 need_version=no
25996 need_lib_prefix=no
25997 ;;
25998 freebsd-*)
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26000 need_version=yes
26001 ;;
26002 esac
26003 shlibpath_var=LD_LIBRARY_PATH
26004 case $host_os in
26005 freebsd2*)
26006 shlibpath_overrides_runpath=yes
26007 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026008 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000026009 shlibpath_overrides_runpath=yes
26010 hardcode_into_libs=yes
26011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000026014 shlibpath_overrides_runpath=no
26015 hardcode_into_libs=yes
26016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026017 freebsd*) # from 4.6 on
26018 shlibpath_overrides_runpath=yes
26019 hardcode_into_libs=yes
26020 ;;
John Criswell47fdd832003-07-14 16:52:07 +000026021 esac
26022 ;;
26023
26024gnu*)
26025 version_type=linux
26026 need_lib_prefix=no
26027 need_version=no
26028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26029 soname_spec='${libname}${release}${shared_ext}$major'
26030 shlibpath_var=LD_LIBRARY_PATH
26031 hardcode_into_libs=yes
26032 ;;
26033
26034hpux9* | hpux10* | hpux11*)
26035 # Give a soname corresponding to the major version so that dld.sl refuses to
26036 # link against other versions.
26037 version_type=sunos
26038 need_lib_prefix=no
26039 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000026040 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000026041 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026042 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000026043 hardcode_into_libs=yes
26044 dynamic_linker="$host_os dld.so"
26045 shlibpath_var=LD_LIBRARY_PATH
26046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26048 soname_spec='${libname}${release}${shared_ext}$major'
26049 if test "X$HPUX_IA64_MODE" = X32; then
26050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26051 else
26052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26053 fi
26054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26055 ;;
26056 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026057 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000026058 hardcode_into_libs=yes
26059 dynamic_linker="$host_os dld.sl"
26060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26063 soname_spec='${libname}${release}${shared_ext}$major'
26064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26066 ;;
26067 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026068 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000026069 dynamic_linker="$host_os dld.sl"
26070 shlibpath_var=SHLIB_PATH
26071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 ;;
26075 esac
26076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26077 postinstall_cmds='chmod 555 $lib'
26078 ;;
26079
Reid Spencera773bd52006-08-04 18:18:08 +000026080interix3*)
26081 version_type=linux
26082 need_lib_prefix=no
26083 need_version=no
26084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26085 soname_spec='${libname}${release}${shared_ext}$major'
26086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=no
26089 hardcode_into_libs=yes
26090 ;;
26091
John Criswell47fdd832003-07-14 16:52:07 +000026092irix5* | irix6* | nonstopux*)
26093 case $host_os in
26094 nonstopux*) version_type=nonstopux ;;
26095 *)
26096 if test "$lt_cv_prog_gnu_ld" = yes; then
26097 version_type=linux
26098 else
26099 version_type=irix
26100 fi ;;
26101 esac
26102 need_lib_prefix=no
26103 need_version=no
26104 soname_spec='${libname}${release}${shared_ext}$major'
26105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26106 case $host_os in
26107 irix5* | nonstopux*)
26108 libsuff= shlibsuff=
26109 ;;
26110 *)
26111 case $LD in # libtool.m4 will add one of these switches to LD
26112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26113 libsuff= shlibsuff= libmagic=32-bit;;
26114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26115 libsuff=32 shlibsuff=N32 libmagic=N32;;
26116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26118 *) libsuff= shlibsuff= libmagic=never-match;;
26119 esac
26120 ;;
26121 esac
26122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26123 shlibpath_overrides_runpath=no
26124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26126 hardcode_into_libs=yes
26127 ;;
26128
26129# No shared lib support for Linux oldld, aout, or coff.
26130linux*oldld* | linux*aout* | linux*coff*)
26131 dynamic_linker=no
26132 ;;
26133
26134# This must be Linux ELF.
26135linux*)
26136 version_type=linux
26137 need_lib_prefix=no
26138 need_version=no
26139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26140 soname_spec='${libname}${release}${shared_ext}$major'
26141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26142 shlibpath_var=LD_LIBRARY_PATH
26143 shlibpath_overrides_runpath=no
26144 # This implies no fast_install, which is unacceptable.
26145 # Some rework will be needed to allow for fast_install
26146 # before this can be enabled.
26147 hardcode_into_libs=yes
26148
Reid Spencer2706f8c2004-09-19 23:53:36 +000026149 # Append ld.so.conf contents to the search path
26150 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026151 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 +000026152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26153 fi
26154
John Criswell47fdd832003-07-14 16:52:07 +000026155 # We used to test for /lib/ld.so.1 and disable shared libraries on
26156 # powerpc, because MkLinux only supported shared libraries with the
26157 # GNU dynamic linker. Since this was broken with cross compilers,
26158 # most powerpc-linux boxes support dynamic linking these days and
26159 # people can always --disable-shared, the test was removed, and we
26160 # assume the GNU/Linux dynamic linker is in use.
26161 dynamic_linker='GNU/Linux ld.so'
26162 ;;
26163
Reid Spencer2706f8c2004-09-19 23:53:36 +000026164knetbsd*-gnu)
26165 version_type=linux
26166 need_lib_prefix=no
26167 need_version=no
26168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26169 soname_spec='${libname}${release}${shared_ext}$major'
26170 shlibpath_var=LD_LIBRARY_PATH
26171 shlibpath_overrides_runpath=no
26172 hardcode_into_libs=yes
26173 dynamic_linker='GNU ld.so'
26174 ;;
26175
John Criswell47fdd832003-07-14 16:52:07 +000026176netbsd*)
26177 version_type=sunos
26178 need_lib_prefix=no
26179 need_version=no
26180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26183 dynamic_linker='NetBSD (a.out) ld.so'
26184 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026186 soname_spec='${libname}${release}${shared_ext}$major'
26187 dynamic_linker='NetBSD ld.elf_so'
26188 fi
26189 shlibpath_var=LD_LIBRARY_PATH
26190 shlibpath_overrides_runpath=yes
26191 hardcode_into_libs=yes
26192 ;;
26193
26194newsos6)
26195 version_type=linux
26196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26197 shlibpath_var=LD_LIBRARY_PATH
26198 shlibpath_overrides_runpath=yes
26199 ;;
26200
Reid Spencer2706f8c2004-09-19 23:53:36 +000026201nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026202 version_type=linux
26203 need_lib_prefix=no
26204 need_version=no
26205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26206 soname_spec='${libname}${release}${shared_ext}$major'
26207 shlibpath_var=LD_LIBRARY_PATH
26208 shlibpath_overrides_runpath=yes
26209 ;;
26210
26211openbsd*)
26212 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026213 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026214 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26216 case $host_os in
26217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26218 *) need_version=no ;;
26219 esac
John Criswell47fdd832003-07-14 16:52:07 +000026220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26222 shlibpath_var=LD_LIBRARY_PATH
26223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26224 case $host_os in
26225 openbsd2.[89] | openbsd2.[89].*)
26226 shlibpath_overrides_runpath=no
26227 ;;
26228 *)
26229 shlibpath_overrides_runpath=yes
26230 ;;
26231 esac
26232 else
26233 shlibpath_overrides_runpath=yes
26234 fi
26235 ;;
26236
26237os2*)
26238 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026239 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026240 need_lib_prefix=no
26241 library_names_spec='$libname${shared_ext} $libname.a'
26242 dynamic_linker='OS/2 ld.exe'
26243 shlibpath_var=LIBPATH
26244 ;;
26245
26246osf3* | osf4* | osf5*)
26247 version_type=osf
26248 need_lib_prefix=no
26249 need_version=no
26250 soname_spec='${libname}${release}${shared_ext}$major'
26251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26252 shlibpath_var=LD_LIBRARY_PATH
26253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26255 ;;
26256
John Criswell47fdd832003-07-14 16:52:07 +000026257solaris*)
26258 version_type=linux
26259 need_lib_prefix=no
26260 need_version=no
26261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26262 soname_spec='${libname}${release}${shared_ext}$major'
26263 shlibpath_var=LD_LIBRARY_PATH
26264 shlibpath_overrides_runpath=yes
26265 hardcode_into_libs=yes
26266 # ldd complains unless libraries are executable
26267 postinstall_cmds='chmod +x $lib'
26268 ;;
26269
26270sunos4*)
26271 version_type=sunos
26272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26274 shlibpath_var=LD_LIBRARY_PATH
26275 shlibpath_overrides_runpath=yes
26276 if test "$with_gnu_ld" = yes; then
26277 need_lib_prefix=no
26278 fi
26279 need_version=yes
26280 ;;
26281
Reid Spencera773bd52006-08-04 18:18:08 +000026282sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026283 version_type=linux
26284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26285 soname_spec='${libname}${release}${shared_ext}$major'
26286 shlibpath_var=LD_LIBRARY_PATH
26287 case $host_vendor in
26288 sni)
26289 shlibpath_overrides_runpath=no
26290 need_lib_prefix=no
26291 export_dynamic_flag_spec='${wl}-Blargedynsym'
26292 runpath_var=LD_RUN_PATH
26293 ;;
26294 siemens)
26295 need_lib_prefix=no
26296 ;;
26297 motorola)
26298 need_lib_prefix=no
26299 need_version=no
26300 shlibpath_overrides_runpath=no
26301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26302 ;;
26303 esac
26304 ;;
26305
26306sysv4*MP*)
26307 if test -d /usr/nec ;then
26308 version_type=linux
26309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26310 soname_spec='$libname${shared_ext}.$major'
26311 shlibpath_var=LD_LIBRARY_PATH
26312 fi
26313 ;;
26314
Reid Spencera773bd52006-08-04 18:18:08 +000026315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26316 version_type=freebsd-elf
26317 need_lib_prefix=no
26318 need_version=no
26319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26320 soname_spec='${libname}${release}${shared_ext}$major'
26321 shlibpath_var=LD_LIBRARY_PATH
26322 hardcode_into_libs=yes
26323 if test "$with_gnu_ld" = yes; then
26324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26325 shlibpath_overrides_runpath=no
26326 else
26327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26328 shlibpath_overrides_runpath=yes
26329 case $host_os in
26330 sco3.2v5*)
26331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26332 ;;
26333 esac
26334 fi
26335 sys_lib_dlsearch_path_spec='/usr/lib'
26336 ;;
26337
John Criswell47fdd832003-07-14 16:52:07 +000026338uts4*)
26339 version_type=linux
26340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26341 soname_spec='${libname}${release}${shared_ext}$major'
26342 shlibpath_var=LD_LIBRARY_PATH
26343 ;;
26344
26345*)
26346 dynamic_linker=no
26347 ;;
26348esac
Reid Spencera773bd52006-08-04 18:18:08 +000026349{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26350echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026351test "$dynamic_linker" = no && can_build_shared=no
26352
Reid Spencera773bd52006-08-04 18:18:08 +000026353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26354if test "$GCC" = yes; then
26355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26356fi
26357
26358{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26359echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026360hardcode_action_GCJ=
26361if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26362 test -n "$runpath_var_GCJ" || \
26363 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26364
26365 # We can hardcode non-existant directories.
26366 if test "$hardcode_direct_GCJ" != no &&
26367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26368 # have to relink, otherwise we might link with an installed library
26369 # when we should be linking with a yet-to-be-installed one
26370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26371 test "$hardcode_minus_L_GCJ" != no; then
26372 # Linking always hardcodes the temporary library directory.
26373 hardcode_action_GCJ=relink
26374 else
26375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26376 hardcode_action_GCJ=immediate
26377 fi
26378else
26379 # We cannot hardcode anything, or else we can only hardcode existing
26380 # directories.
26381 hardcode_action_GCJ=unsupported
26382fi
Reid Spencera773bd52006-08-04 18:18:08 +000026383{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26384echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026385
26386if test "$hardcode_action_GCJ" = relink; then
26387 # Fast installation is not supported
26388 enable_fast_install=no
26389elif test "$shlibpath_overrides_runpath" = yes ||
26390 test "$enable_shared" = no; then
26391 # Fast installation is not necessary
26392 enable_fast_install=needless
26393fi
26394
John Criswell47fdd832003-07-14 16:52:07 +000026395
26396# The else clause should only fire when bootstrapping the
26397# libtool distribution, otherwise you forgot to ship ltmain.sh
26398# with your package, and you will get complaints that there are
26399# no rules to generate ltmain.sh.
26400if test -f "$ltmain"; then
26401 # See if we are running on zsh, and set the options which allow our commands through
26402 # without removal of \ escapes.
26403 if test -n "${ZSH_VERSION+set}" ; then
26404 setopt NO_GLOB_SUBST
26405 fi
26406 # Now quote all the things that may contain metacharacters while being
26407 # careful not to overquote the AC_SUBSTed values. We take copies of the
26408 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026410 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26413 deplibs_check_method reload_flag reload_cmds need_locks \
26414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26415 lt_cv_sys_global_symbol_to_c_name_address \
26416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26417 old_postinstall_cmds old_postuninstall_cmds \
26418 compiler_GCJ \
26419 CC_GCJ \
26420 LD_GCJ \
26421 lt_prog_compiler_wl_GCJ \
26422 lt_prog_compiler_pic_GCJ \
26423 lt_prog_compiler_static_GCJ \
26424 lt_prog_compiler_no_builtin_flag_GCJ \
26425 export_dynamic_flag_spec_GCJ \
26426 thread_safe_flag_spec_GCJ \
26427 whole_archive_flag_spec_GCJ \
26428 enable_shared_with_static_runtimes_GCJ \
26429 old_archive_cmds_GCJ \
26430 old_archive_from_new_cmds_GCJ \
26431 predep_objects_GCJ \
26432 postdep_objects_GCJ \
26433 predeps_GCJ \
26434 postdeps_GCJ \
26435 compiler_lib_search_path_GCJ \
26436 archive_cmds_GCJ \
26437 archive_expsym_cmds_GCJ \
26438 postinstall_cmds_GCJ \
26439 postuninstall_cmds_GCJ \
26440 old_archive_from_expsyms_cmds_GCJ \
26441 allow_undefined_flag_GCJ \
26442 no_undefined_flag_GCJ \
26443 export_symbols_cmds_GCJ \
26444 hardcode_libdir_flag_spec_GCJ \
26445 hardcode_libdir_flag_spec_ld_GCJ \
26446 hardcode_libdir_separator_GCJ \
26447 hardcode_automatic_GCJ \
26448 module_cmds_GCJ \
26449 module_expsym_cmds_GCJ \
26450 lt_cv_prog_compiler_c_o_GCJ \
26451 exclude_expsyms_GCJ \
26452 include_expsyms_GCJ; do
26453
26454 case $var in
26455 old_archive_cmds_GCJ | \
26456 old_archive_from_new_cmds_GCJ | \
26457 archive_cmds_GCJ | \
26458 archive_expsym_cmds_GCJ | \
26459 module_cmds_GCJ | \
26460 module_expsym_cmds_GCJ | \
26461 old_archive_from_expsyms_cmds_GCJ | \
26462 export_symbols_cmds_GCJ | \
26463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26464 postinstall_cmds | postuninstall_cmds | \
26465 old_postinstall_cmds | old_postuninstall_cmds | \
26466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26467 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000026469 ;;
26470 *)
26471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26472 ;;
26473 esac
26474 done
26475
26476 case $lt_echo in
26477 *'\$0 --fallback-echo"')
26478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26479 ;;
26480 esac
26481
26482cfgfile="$ofile"
26483
26484 cat <<__EOF__ >> "$cfgfile"
26485# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26486
26487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26488
26489# Shell to use when invoking shell scripts.
26490SHELL=$lt_SHELL
26491
26492# Whether or not to build shared libraries.
26493build_libtool_libs=$enable_shared
26494
26495# Whether or not to build static libraries.
26496build_old_libs=$enable_static
26497
26498# Whether or not to add -lc for building shared libraries.
26499build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26500
26501# Whether or not to disallow shared libs when runtime libs are static
26502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26503
26504# Whether or not to optimize for fast installation.
26505fast_install=$enable_fast_install
26506
26507# The host system.
26508host_alias=$host_alias
26509host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026510host_os=$host_os
26511
26512# The build system.
26513build_alias=$build_alias
26514build=$build
26515build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026516
26517# An echo program that does not interpret backslashes.
26518echo=$lt_echo
26519
26520# The archiver.
26521AR=$lt_AR
26522AR_FLAGS=$lt_AR_FLAGS
26523
26524# A C compiler.
26525LTCC=$lt_LTCC
26526
Reid Spencera773bd52006-08-04 18:18:08 +000026527# LTCC compiler flags.
26528LTCFLAGS=$lt_LTCFLAGS
26529
John Criswell47fdd832003-07-14 16:52:07 +000026530# A language-specific compiler.
26531CC=$lt_compiler_GCJ
26532
26533# Is the compiler the GNU C compiler?
26534with_gcc=$GCC_GCJ
26535
26536# An ERE matcher.
26537EGREP=$lt_EGREP
26538
26539# The linker used to build libraries.
26540LD=$lt_LD_GCJ
26541
26542# Whether we need hard or soft links.
26543LN_S=$lt_LN_S
26544
26545# A BSD-compatible nm program.
26546NM=$lt_NM
26547
26548# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026549STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026550
26551# Used to examine libraries when file_magic_cmd begins "file"
26552MAGIC_CMD=$MAGIC_CMD
26553
26554# Used on cygwin: DLL creation program.
26555DLLTOOL="$DLLTOOL"
26556
26557# Used on cygwin: object dumper.
26558OBJDUMP="$OBJDUMP"
26559
26560# Used on cygwin: assembler.
26561AS="$AS"
26562
26563# The name of the directory that contains temporary libtool files.
26564objdir=$objdir
26565
26566# How to create reloadable object files.
26567reload_flag=$lt_reload_flag
26568reload_cmds=$lt_reload_cmds
26569
26570# How to pass a linker flag through the compiler.
26571wl=$lt_lt_prog_compiler_wl_GCJ
26572
26573# Object file suffix (normally "o").
26574objext="$ac_objext"
26575
26576# Old archive suffix (normally "a").
26577libext="$libext"
26578
26579# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026580shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026581
26582# Executable file suffix (normally "").
26583exeext="$exeext"
26584
26585# Additional compiler flags for building library objects.
26586pic_flag=$lt_lt_prog_compiler_pic_GCJ
26587pic_mode=$pic_mode
26588
26589# What is the maximum length of a command?
26590max_cmd_len=$lt_cv_sys_max_cmd_len
26591
26592# Does compiler simultaneously support -c and -o options?
26593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26594
Reid Spencera773bd52006-08-04 18:18:08 +000026595# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026596need_locks=$lt_need_locks
26597
26598# Do we need the lib prefix for modules?
26599need_lib_prefix=$need_lib_prefix
26600
26601# Do we need a version for libraries?
26602need_version=$need_version
26603
26604# Whether dlopen is supported.
26605dlopen_support=$enable_dlopen
26606
26607# Whether dlopen of programs is supported.
26608dlopen_self=$enable_dlopen_self
26609
26610# Whether dlopen of statically linked programs is supported.
26611dlopen_self_static=$enable_dlopen_self_static
26612
26613# Compiler flag to prevent dynamic linking.
26614link_static_flag=$lt_lt_prog_compiler_static_GCJ
26615
26616# Compiler flag to turn off builtin functions.
26617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26618
26619# Compiler flag to allow reflexive dlopens.
26620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26621
26622# Compiler flag to generate shared objects directly from archives.
26623whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26624
26625# Compiler flag to generate thread-safe objects.
26626thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26627
26628# Library versioning type.
26629version_type=$version_type
26630
26631# Format of library name prefix.
26632libname_spec=$lt_libname_spec
26633
26634# List of archive names. First name is the real one, the rest are links.
26635# The last name is the one that the linker finds with -lNAME.
26636library_names_spec=$lt_library_names_spec
26637
26638# The coded name of the library, if different from the real name.
26639soname_spec=$lt_soname_spec
26640
26641# Commands used to build and install an old-style archive.
26642RANLIB=$lt_RANLIB
26643old_archive_cmds=$lt_old_archive_cmds_GCJ
26644old_postinstall_cmds=$lt_old_postinstall_cmds
26645old_postuninstall_cmds=$lt_old_postuninstall_cmds
26646
26647# Create an old-style archive from a shared archive.
26648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26649
26650# Create a temporary old-style archive to link instead of a shared archive.
26651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26652
26653# Commands used to build and install a shared archive.
26654archive_cmds=$lt_archive_cmds_GCJ
26655archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26656postinstall_cmds=$lt_postinstall_cmds
26657postuninstall_cmds=$lt_postuninstall_cmds
26658
26659# Commands used to build a loadable module (assumed same as above if empty)
26660module_cmds=$lt_module_cmds_GCJ
26661module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26662
26663# Commands to strip libraries.
26664old_striplib=$lt_old_striplib
26665striplib=$lt_striplib
26666
26667# Dependencies to place before the objects being linked to create a
26668# shared library.
26669predep_objects=$lt_predep_objects_GCJ
26670
26671# Dependencies to place after the objects being linked to create a
26672# shared library.
26673postdep_objects=$lt_postdep_objects_GCJ
26674
26675# Dependencies to place before the objects being linked to create a
26676# shared library.
26677predeps=$lt_predeps_GCJ
26678
26679# Dependencies to place after the objects being linked to create a
26680# shared library.
26681postdeps=$lt_postdeps_GCJ
26682
26683# The library search path used internally by the compiler when linking
26684# a shared library.
26685compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26686
26687# Method to check whether dependent libraries are shared objects.
26688deplibs_check_method=$lt_deplibs_check_method
26689
26690# Command to use when deplibs_check_method == file_magic.
26691file_magic_cmd=$lt_file_magic_cmd
26692
26693# Flag that allows shared libraries with undefined symbols to be built.
26694allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26695
26696# Flag that forces no undefined symbols.
26697no_undefined_flag=$lt_no_undefined_flag_GCJ
26698
26699# Commands used to finish a libtool library installation in a directory.
26700finish_cmds=$lt_finish_cmds
26701
26702# Same as above, but a single script fragment to be evaled but not shown.
26703finish_eval=$lt_finish_eval
26704
26705# Take the output of nm and produce a listing of raw symbols and C names.
26706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26707
26708# Transform the output of nm in a proper C declaration
26709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26710
26711# Transform the output of nm in a C name address pair
26712global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26713
26714# This is the shared library runtime path variable.
26715runpath_var=$runpath_var
26716
26717# This is the shared library path variable.
26718shlibpath_var=$shlibpath_var
26719
26720# Is shlibpath searched before the hard-coded library search path?
26721shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26722
26723# How to hardcode a shared library path into an executable.
26724hardcode_action=$hardcode_action_GCJ
26725
26726# Whether we should hardcode library paths into libraries.
26727hardcode_into_libs=$hardcode_into_libs
26728
26729# Flag to hardcode \$libdir into a binary during linking.
26730# This must work even if \$libdir does not exist.
26731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26732
26733# If ld is used when linking, flag to hardcode \$libdir into
26734# a binary during linking. This must work even if \$libdir does
26735# not exist.
26736hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26737
26738# Whether we need a single -rpath flag with a separated argument.
26739hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26740
26741# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26742# resulting binary.
26743hardcode_direct=$hardcode_direct_GCJ
26744
26745# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26746# resulting binary.
26747hardcode_minus_L=$hardcode_minus_L_GCJ
26748
26749# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26750# the resulting binary.
26751hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26752
26753# Set to yes if building a shared library automatically hardcodes DIR into the library
26754# and all subsequent libraries and executables linked against it.
26755hardcode_automatic=$hardcode_automatic_GCJ
26756
26757# Variables whose values should be saved in libtool wrapper scripts and
26758# restored at relink time.
26759variables_saved_for_relink="$variables_saved_for_relink"
26760
26761# Whether libtool must link a program against all its dependency libraries.
26762link_all_deplibs=$link_all_deplibs_GCJ
26763
26764# Compile-time system search path for libraries
26765sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26766
26767# Run-time system search path for libraries
26768sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26769
26770# Fix the shell variable \$srcfile for the compiler.
26771fix_srcfile_path="$fix_srcfile_path_GCJ"
26772
26773# Set to yes if exported symbols are required.
26774always_export_symbols=$always_export_symbols_GCJ
26775
26776# The commands to list exported symbols.
26777export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26778
26779# The commands to extract the exported symbol list from a shared archive.
26780extract_expsyms_cmds=$lt_extract_expsyms_cmds
26781
26782# Symbols that should not be listed in the preloaded symbols.
26783exclude_expsyms=$lt_exclude_expsyms_GCJ
26784
26785# Symbols that must always be exported.
26786include_expsyms=$lt_include_expsyms_GCJ
26787
26788# ### END LIBTOOL TAG CONFIG: $tagname
26789
26790__EOF__
26791
26792
26793else
26794 # If there is no Makefile yet, we rely on a make rule to execute
26795 # `config.status --recheck' to rerun these tests and create the
26796 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26798 if test -f "$ltmain_in"; then
26799 test -f Makefile && make "$ltmain"
26800 fi
John Criswell47fdd832003-07-14 16:52:07 +000026801fi
26802
26803
26804ac_ext=c
26805ac_cpp='$CPP $CPPFLAGS'
26806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808ac_compiler_gnu=$ac_cv_c_compiler_gnu
26809
26810CC="$lt_save_CC"
26811
26812 else
26813 tagname=""
26814 fi
26815 ;;
26816
26817 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026818 ac_ext=c
26819ac_cpp='$CPP $CPPFLAGS'
26820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26822ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026823
26824
26825# Source file extension for RC test sources.
26826ac_ext=rc
26827
26828# Object file extension for compiled RC test sources.
26829objext=o
26830objext_RC=$objext
26831
26832# Code to be used in simple compile tests
26833lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26834
26835# Code to be used in simple link tests
26836lt_simple_link_test_code="$lt_simple_compile_test_code"
26837
26838# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26839
26840# If no C compiler was specified, use CC.
26841LTCC=${LTCC-"$CC"}
26842
Reid Spencera773bd52006-08-04 18:18:08 +000026843# If no C compiler flags were specified, use CFLAGS.
26844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26845
John Criswell47fdd832003-07-14 16:52:07 +000026846# Allow CC to be a program name with arguments.
26847compiler=$CC
26848
26849
Reid Spencera773bd52006-08-04 18:18:08 +000026850# save warnings/boilerplate of simple test code
26851ac_outfile=conftest.$ac_objext
26852printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26854_lt_compiler_boilerplate=`cat conftest.err`
26855$rm conftest*
26856
26857ac_outfile=conftest.$ac_objext
26858printf "$lt_simple_link_test_code" >conftest.$ac_ext
26859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860_lt_linker_boilerplate=`cat conftest.err`
26861$rm conftest*
26862
26863
John Criswell47fdd832003-07-14 16:52:07 +000026864# Allow CC to be a program name with arguments.
26865lt_save_CC="$CC"
26866CC=${RC-"windres"}
26867compiler=$CC
26868compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026869for cc_temp in $compiler""; do
26870 case $cc_temp in
26871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26873 \-*) ;;
26874 *) break;;
26875 esac
26876done
26877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26878
John Criswell47fdd832003-07-14 16:52:07 +000026879lt_cv_prog_compiler_c_o_RC=yes
26880
26881# The else clause should only fire when bootstrapping the
26882# libtool distribution, otherwise you forgot to ship ltmain.sh
26883# with your package, and you will get complaints that there are
26884# no rules to generate ltmain.sh.
26885if test -f "$ltmain"; then
26886 # See if we are running on zsh, and set the options which allow our commands through
26887 # without removal of \ escapes.
26888 if test -n "${ZSH_VERSION+set}" ; then
26889 setopt NO_GLOB_SUBST
26890 fi
26891 # Now quote all the things that may contain metacharacters while being
26892 # careful not to overquote the AC_SUBSTed values. We take copies of the
26893 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026894 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 +000026895 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26898 deplibs_check_method reload_flag reload_cmds need_locks \
26899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26900 lt_cv_sys_global_symbol_to_c_name_address \
26901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26902 old_postinstall_cmds old_postuninstall_cmds \
26903 compiler_RC \
26904 CC_RC \
26905 LD_RC \
26906 lt_prog_compiler_wl_RC \
26907 lt_prog_compiler_pic_RC \
26908 lt_prog_compiler_static_RC \
26909 lt_prog_compiler_no_builtin_flag_RC \
26910 export_dynamic_flag_spec_RC \
26911 thread_safe_flag_spec_RC \
26912 whole_archive_flag_spec_RC \
26913 enable_shared_with_static_runtimes_RC \
26914 old_archive_cmds_RC \
26915 old_archive_from_new_cmds_RC \
26916 predep_objects_RC \
26917 postdep_objects_RC \
26918 predeps_RC \
26919 postdeps_RC \
26920 compiler_lib_search_path_RC \
26921 archive_cmds_RC \
26922 archive_expsym_cmds_RC \
26923 postinstall_cmds_RC \
26924 postuninstall_cmds_RC \
26925 old_archive_from_expsyms_cmds_RC \
26926 allow_undefined_flag_RC \
26927 no_undefined_flag_RC \
26928 export_symbols_cmds_RC \
26929 hardcode_libdir_flag_spec_RC \
26930 hardcode_libdir_flag_spec_ld_RC \
26931 hardcode_libdir_separator_RC \
26932 hardcode_automatic_RC \
26933 module_cmds_RC \
26934 module_expsym_cmds_RC \
26935 lt_cv_prog_compiler_c_o_RC \
26936 exclude_expsyms_RC \
26937 include_expsyms_RC; do
26938
26939 case $var in
26940 old_archive_cmds_RC | \
26941 old_archive_from_new_cmds_RC | \
26942 archive_cmds_RC | \
26943 archive_expsym_cmds_RC | \
26944 module_cmds_RC | \
26945 module_expsym_cmds_RC | \
26946 old_archive_from_expsyms_cmds_RC | \
26947 export_symbols_cmds_RC | \
26948 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26949 postinstall_cmds | postuninstall_cmds | \
26950 old_postinstall_cmds | old_postuninstall_cmds | \
26951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26952 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026953 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 +000026954 ;;
26955 *)
26956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26957 ;;
26958 esac
26959 done
26960
26961 case $lt_echo in
26962 *'\$0 --fallback-echo"')
26963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26964 ;;
26965 esac
26966
26967cfgfile="$ofile"
26968
26969 cat <<__EOF__ >> "$cfgfile"
26970# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26971
26972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26973
26974# Shell to use when invoking shell scripts.
26975SHELL=$lt_SHELL
26976
26977# Whether or not to build shared libraries.
26978build_libtool_libs=$enable_shared
26979
26980# Whether or not to build static libraries.
26981build_old_libs=$enable_static
26982
26983# Whether or not to add -lc for building shared libraries.
26984build_libtool_need_lc=$archive_cmds_need_lc_RC
26985
26986# Whether or not to disallow shared libs when runtime libs are static
26987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26988
26989# Whether or not to optimize for fast installation.
26990fast_install=$enable_fast_install
26991
26992# The host system.
26993host_alias=$host_alias
26994host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026995host_os=$host_os
26996
26997# The build system.
26998build_alias=$build_alias
26999build=$build
27000build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000027001
27002# An echo program that does not interpret backslashes.
27003echo=$lt_echo
27004
27005# The archiver.
27006AR=$lt_AR
27007AR_FLAGS=$lt_AR_FLAGS
27008
27009# A C compiler.
27010LTCC=$lt_LTCC
27011
Reid Spencera773bd52006-08-04 18:18:08 +000027012# LTCC compiler flags.
27013LTCFLAGS=$lt_LTCFLAGS
27014
John Criswell47fdd832003-07-14 16:52:07 +000027015# A language-specific compiler.
27016CC=$lt_compiler_RC
27017
27018# Is the compiler the GNU C compiler?
27019with_gcc=$GCC_RC
27020
27021# An ERE matcher.
27022EGREP=$lt_EGREP
27023
27024# The linker used to build libraries.
27025LD=$lt_LD_RC
27026
27027# Whether we need hard or soft links.
27028LN_S=$lt_LN_S
27029
27030# A BSD-compatible nm program.
27031NM=$lt_NM
27032
27033# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000027034STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000027035
27036# Used to examine libraries when file_magic_cmd begins "file"
27037MAGIC_CMD=$MAGIC_CMD
27038
27039# Used on cygwin: DLL creation program.
27040DLLTOOL="$DLLTOOL"
27041
27042# Used on cygwin: object dumper.
27043OBJDUMP="$OBJDUMP"
27044
27045# Used on cygwin: assembler.
27046AS="$AS"
27047
27048# The name of the directory that contains temporary libtool files.
27049objdir=$objdir
27050
27051# How to create reloadable object files.
27052reload_flag=$lt_reload_flag
27053reload_cmds=$lt_reload_cmds
27054
27055# How to pass a linker flag through the compiler.
27056wl=$lt_lt_prog_compiler_wl_RC
27057
27058# Object file suffix (normally "o").
27059objext="$ac_objext"
27060
27061# Old archive suffix (normally "a").
27062libext="$libext"
27063
27064# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000027065shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000027066
27067# Executable file suffix (normally "").
27068exeext="$exeext"
27069
27070# Additional compiler flags for building library objects.
27071pic_flag=$lt_lt_prog_compiler_pic_RC
27072pic_mode=$pic_mode
27073
27074# What is the maximum length of a command?
27075max_cmd_len=$lt_cv_sys_max_cmd_len
27076
27077# Does compiler simultaneously support -c and -o options?
27078compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27079
Reid Spencera773bd52006-08-04 18:18:08 +000027080# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000027081need_locks=$lt_need_locks
27082
27083# Do we need the lib prefix for modules?
27084need_lib_prefix=$need_lib_prefix
27085
27086# Do we need a version for libraries?
27087need_version=$need_version
27088
27089# Whether dlopen is supported.
27090dlopen_support=$enable_dlopen
27091
27092# Whether dlopen of programs is supported.
27093dlopen_self=$enable_dlopen_self
27094
27095# Whether dlopen of statically linked programs is supported.
27096dlopen_self_static=$enable_dlopen_self_static
27097
27098# Compiler flag to prevent dynamic linking.
27099link_static_flag=$lt_lt_prog_compiler_static_RC
27100
27101# Compiler flag to turn off builtin functions.
27102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27103
27104# Compiler flag to allow reflexive dlopens.
27105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27106
27107# Compiler flag to generate shared objects directly from archives.
27108whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27109
27110# Compiler flag to generate thread-safe objects.
27111thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27112
27113# Library versioning type.
27114version_type=$version_type
27115
27116# Format of library name prefix.
27117libname_spec=$lt_libname_spec
27118
27119# List of archive names. First name is the real one, the rest are links.
27120# The last name is the one that the linker finds with -lNAME.
27121library_names_spec=$lt_library_names_spec
27122
27123# The coded name of the library, if different from the real name.
27124soname_spec=$lt_soname_spec
27125
27126# Commands used to build and install an old-style archive.
27127RANLIB=$lt_RANLIB
27128old_archive_cmds=$lt_old_archive_cmds_RC
27129old_postinstall_cmds=$lt_old_postinstall_cmds
27130old_postuninstall_cmds=$lt_old_postuninstall_cmds
27131
27132# Create an old-style archive from a shared archive.
27133old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27134
27135# Create a temporary old-style archive to link instead of a shared archive.
27136old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27137
27138# Commands used to build and install a shared archive.
27139archive_cmds=$lt_archive_cmds_RC
27140archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27141postinstall_cmds=$lt_postinstall_cmds
27142postuninstall_cmds=$lt_postuninstall_cmds
27143
27144# Commands used to build a loadable module (assumed same as above if empty)
27145module_cmds=$lt_module_cmds_RC
27146module_expsym_cmds=$lt_module_expsym_cmds_RC
27147
27148# Commands to strip libraries.
27149old_striplib=$lt_old_striplib
27150striplib=$lt_striplib
27151
27152# Dependencies to place before the objects being linked to create a
27153# shared library.
27154predep_objects=$lt_predep_objects_RC
27155
27156# Dependencies to place after the objects being linked to create a
27157# shared library.
27158postdep_objects=$lt_postdep_objects_RC
27159
27160# Dependencies to place before the objects being linked to create a
27161# shared library.
27162predeps=$lt_predeps_RC
27163
27164# Dependencies to place after the objects being linked to create a
27165# shared library.
27166postdeps=$lt_postdeps_RC
27167
27168# The library search path used internally by the compiler when linking
27169# a shared library.
27170compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27171
27172# Method to check whether dependent libraries are shared objects.
27173deplibs_check_method=$lt_deplibs_check_method
27174
27175# Command to use when deplibs_check_method == file_magic.
27176file_magic_cmd=$lt_file_magic_cmd
27177
27178# Flag that allows shared libraries with undefined symbols to be built.
27179allow_undefined_flag=$lt_allow_undefined_flag_RC
27180
27181# Flag that forces no undefined symbols.
27182no_undefined_flag=$lt_no_undefined_flag_RC
27183
27184# Commands used to finish a libtool library installation in a directory.
27185finish_cmds=$lt_finish_cmds
27186
27187# Same as above, but a single script fragment to be evaled but not shown.
27188finish_eval=$lt_finish_eval
27189
27190# Take the output of nm and produce a listing of raw symbols and C names.
27191global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27192
27193# Transform the output of nm in a proper C declaration
27194global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27195
27196# Transform the output of nm in a C name address pair
27197global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27198
27199# This is the shared library runtime path variable.
27200runpath_var=$runpath_var
27201
27202# This is the shared library path variable.
27203shlibpath_var=$shlibpath_var
27204
27205# Is shlibpath searched before the hard-coded library search path?
27206shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27207
27208# How to hardcode a shared library path into an executable.
27209hardcode_action=$hardcode_action_RC
27210
27211# Whether we should hardcode library paths into libraries.
27212hardcode_into_libs=$hardcode_into_libs
27213
27214# Flag to hardcode \$libdir into a binary during linking.
27215# This must work even if \$libdir does not exist.
27216hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27217
27218# If ld is used when linking, flag to hardcode \$libdir into
27219# a binary during linking. This must work even if \$libdir does
27220# not exist.
27221hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27222
27223# Whether we need a single -rpath flag with a separated argument.
27224hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27225
27226# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27227# resulting binary.
27228hardcode_direct=$hardcode_direct_RC
27229
27230# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27231# resulting binary.
27232hardcode_minus_L=$hardcode_minus_L_RC
27233
27234# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27235# the resulting binary.
27236hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27237
27238# Set to yes if building a shared library automatically hardcodes DIR into the library
27239# and all subsequent libraries and executables linked against it.
27240hardcode_automatic=$hardcode_automatic_RC
27241
27242# Variables whose values should be saved in libtool wrapper scripts and
27243# restored at relink time.
27244variables_saved_for_relink="$variables_saved_for_relink"
27245
27246# Whether libtool must link a program against all its dependency libraries.
27247link_all_deplibs=$link_all_deplibs_RC
27248
27249# Compile-time system search path for libraries
27250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27251
27252# Run-time system search path for libraries
27253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27254
27255# Fix the shell variable \$srcfile for the compiler.
27256fix_srcfile_path="$fix_srcfile_path_RC"
27257
27258# Set to yes if exported symbols are required.
27259always_export_symbols=$always_export_symbols_RC
27260
27261# The commands to list exported symbols.
27262export_symbols_cmds=$lt_export_symbols_cmds_RC
27263
27264# The commands to extract the exported symbol list from a shared archive.
27265extract_expsyms_cmds=$lt_extract_expsyms_cmds
27266
27267# Symbols that should not be listed in the preloaded symbols.
27268exclude_expsyms=$lt_exclude_expsyms_RC
27269
27270# Symbols that must always be exported.
27271include_expsyms=$lt_include_expsyms_RC
27272
27273# ### END LIBTOOL TAG CONFIG: $tagname
27274
27275__EOF__
27276
27277
27278else
27279 # If there is no Makefile yet, we rely on a make rule to execute
27280 # `config.status --recheck' to rerun these tests and create the
27281 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027282 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27283 if test -f "$ltmain_in"; then
27284 test -f Makefile && make "$ltmain"
27285 fi
John Criswell47fdd832003-07-14 16:52:07 +000027286fi
27287
27288
27289ac_ext=c
27290ac_cpp='$CPP $CPPFLAGS'
27291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27293ac_compiler_gnu=$ac_cv_c_compiler_gnu
27294
27295CC="$lt_save_CC"
27296
27297 ;;
27298
27299 *)
27300 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27301echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27302 { (exit 1); exit 1; }; }
27303 ;;
27304 esac
27305
27306 # Append the new tag name to the list of available tags.
27307 if test -n "$tagname" ; then
27308 available_tags="$available_tags $tagname"
27309 fi
27310 fi
27311 done
27312 IFS="$lt_save_ifs"
27313
27314 # Now substitute the updated list of available tags.
27315 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27316 mv "${ofile}T" "$ofile"
27317 chmod +x "$ofile"
27318 else
27319 rm -f "${ofile}T"
27320 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27321echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27322 { (exit 1); exit 1; }; }
27323 fi
27324fi
John Criswell7a73b802003-06-30 21:59:07 +000027325
27326
27327
27328# This can be used to rebuild libtool when needed
27329LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27330
27331# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027332LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027333
27334# Prevent multiple expansion
27335
27336
27337
John Criswell47fdd832003-07-14 16:52:07 +000027338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027355
Reid Spencer582a23c2004-12-29 07:07:57 +000027356if test "$lt_cv_dlopen_self" = "yes" ; then
27357
27358cat >>confdefs.h <<\_ACEOF
27359#define CAN_DLOPEN_SELF 1
27360_ACEOF
27361
27362fi
27363
Douglas Gregor01746742009-05-11 18:05:52 +000027364
Reid Spencer7931a782004-12-27 06:15:02 +000027365if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027366 LLVMGCC="llvm-gcc${EXEEXT}"
27367 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027368 LLVMGCCCOMMAND="$LLVMGCC"
27369 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027370 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27371
27372 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27373
Reid Spencerc84492c2005-06-02 22:34:49 +000027374 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27375set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027378if test "${ac_cv_path_LLVMGCC+set}" = set; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27380else
27381 case $LLVMGCC in
27382 [\\/]* | ?:[\\/]*)
27383 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27384 ;;
27385 *)
27386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27387for as_dir in $PATH
27388do
27389 IFS=$as_save_IFS
27390 test -z "$as_dir" && as_dir=.
27391 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027392 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 +000027393 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27395 break 2
27396 fi
27397done
27398done
Reid Spencera773bd52006-08-04 18:18:08 +000027399IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027400
Reid Spencer59473af2004-12-25 07:31:29 +000027401 ;;
27402esac
27403fi
27404LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027405if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027406 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27407echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027408else
Reid Spencera773bd52006-08-04 18:18:08 +000027409 { echo "$as_me:$LINENO: result: no" >&5
27410echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027411fi
27412
Reid Spencera773bd52006-08-04 18:18:08 +000027413
Reid Spencerc84492c2005-06-02 22:34:49 +000027414 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27415set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027418if test "${ac_cv_path_LLVMGXX+set}" = set; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27420else
27421 case $LLVMGXX in
27422 [\\/]* | ?:[\\/]*)
27423 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27424 ;;
27425 *)
27426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27427for as_dir in $PATH
27428do
27429 IFS=$as_save_IFS
27430 test -z "$as_dir" && as_dir=.
27431 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027432 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 +000027433 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27435 break 2
27436 fi
27437done
27438done
Reid Spencera773bd52006-08-04 18:18:08 +000027439IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027440
Reid Spencer59473af2004-12-25 07:31:29 +000027441 ;;
27442esac
27443fi
27444LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027445if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027446 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27447echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027448else
Reid Spencera773bd52006-08-04 18:18:08 +000027449 { echo "$as_me:$LINENO: result: no" >&5
27450echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027451fi
27452
Reid Spencera773bd52006-08-04 18:18:08 +000027453
Reid Spencer59473af2004-12-25 07:31:29 +000027454else
Devang Patel5d28b882007-12-04 22:54:47 +000027455 if test -z "$LLVMGCC"; then
27456 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027457 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027458 fi
27459 if test -z "$LLVMGXX"; then
27460 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027461 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027462 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027463
Reid Spencer59473af2004-12-25 07:31:29 +000027464 LLVMGCC=$LLVMGCC
27465
27466 LLVMGXX=$LLVMGXX
27467
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027468 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27469
27470 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27471
Reid Spencer59473af2004-12-25 07:31:29 +000027472fi
27473
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027474
Reid Spencera773bd52006-08-04 18:18:08 +000027475{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27476echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027477
Reid Spencer86901802004-12-08 23:07:27 +000027478ICC=no
27479IXX=no
27480case $CC in
27481 icc*|icpc*)
27482 ICC=yes
27483 IXX=yes
27484 ;;
27485 *)
27486 ;;
27487esac
27488
Duraid Madina937c60a2006-02-15 07:57:42 +000027489if test "$GCC" != "yes" && test "$ICC" != "yes"
27490then
27491 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27492echo "$as_me: error: gcc|icc required but not found" >&2;}
27493 { (exit 1); exit 1; }; }
27494fi
27495
27496if test "$GXX" != "yes" && test "$IXX" != "yes"
27497then
27498 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27499echo "$as_me: error: g++|icc required but not found" >&2;}
27500 { (exit 1); exit 1; }; }
27501fi
27502
Reid Spencer86901802004-12-08 23:07:27 +000027503if test "$GCC" = "yes"
27504then
Chris Lattner399c7c72008-02-05 19:43:53 +000027505 cat >conftest.$ac_ext <<_ACEOF
27506#if !defined(__GNUC__) || __GNUC__ < 3
27507#error Unsupported GCC version
27508#endif
27509
27510_ACEOF
27511rm -f conftest.$ac_objext
27512if { (ac_try="$ac_compile"
27513case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516esac
27517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_compile") 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539esac
27540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027545 :
27546else
27547 echo "$as_me: failed program was:" >&5
27548sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027551echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27552 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027553fi
27554
27555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027556fi
27557
27558if test -z "$llvm_cv_gnu_make_command"
27559then
27560 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27561echo "$as_me: error: GNU Make required but not found" >&2;}
27562 { (exit 1); exit 1; }; }
27563fi
27564
Reid Spencera773bd52006-08-04 18:18:08 +000027565{ echo "$as_me:$LINENO: result: ok" >&5
27566echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027567
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000027568{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27569echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27570NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27571
27572NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27573
27574{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27575echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27576
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027577
27578
Reid Spencera773bd52006-08-04 18:18:08 +000027579{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27580echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027581if test "${ac_cv_lib_m_sin+set}" = set; then
27582 echo $ECHO_N "(cached) $ECHO_C" >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lm $LIBS"
27586cat >conftest.$ac_ext <<_ACEOF
27587/* confdefs.h. */
27588_ACEOF
27589cat confdefs.h >>conftest.$ac_ext
27590cat >>conftest.$ac_ext <<_ACEOF
27591/* end confdefs.h. */
27592
Reid Spencera773bd52006-08-04 18:18:08 +000027593/* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027596#ifdef __cplusplus
27597extern "C"
27598#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027599char sin ();
27600int
27601main ()
27602{
Reid Spencera773bd52006-08-04 18:18:08 +000027603return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027609if { (ac_try="$ac_link"
27610case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27613esac
27614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027616 ac_status=$?
27617 grep -v '^ *+' conftest.er1 >conftest.err
27618 rm -f conftest.er1
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027621 (exit $ac_status); } &&
27622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623 { (case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27626esac
27627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628 (eval "$ac_try") 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27636esac
27637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027642 ac_cv_lib_m_sin=yes
27643else
27644 echo "$as_me: failed program was:" >&5
27645sed 's/^/| /' conftest.$ac_ext >&5
27646
Reid Spencera773bd52006-08-04 18:18:08 +000027647 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027648fi
Reid Spencera773bd52006-08-04 18:18:08 +000027649
Bill Wendlingebcceee2009-04-18 11:20:33 +000027650rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027651 conftest$ac_exeext conftest.$ac_ext
27652LIBS=$ac_check_lib_save_LIBS
27653fi
Reid Spencera773bd52006-08-04 18:18:08 +000027654{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27655echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027656if test $ac_cv_lib_m_sin = yes; then
27657 cat >>confdefs.h <<_ACEOF
27658#define HAVE_LIBM 1
27659_ACEOF
27660
27661 LIBS="-lm $LIBS"
27662
27663fi
27664
Jeff Cohen28783c32007-01-12 18:22:38 +000027665if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027666
Reid Spencera773bd52006-08-04 18:18:08 +000027667{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27668echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027669if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671else
27672 ac_check_lib_save_LIBS=$LIBS
27673LIBS="-limagehlp $LIBS"
27674cat >conftest.$ac_ext <<_ACEOF
27675/* confdefs.h. */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h. */
27680
Reid Spencer48fdf912006-06-01 19:03:21 +000027681
Reid Spencer484fc8e2006-06-01 16:55:59 +000027682int
27683main ()
27684{
Reid Spencera773bd52006-08-04 18:18:08 +000027685return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027686 ;
27687 return 0;
27688}
27689_ACEOF
27690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027691if { (ac_try="$ac_link"
27692case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027698 ac_status=$?
27699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027703 (exit $ac_status); } &&
27704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27705 { (case "(($ac_try" in
27706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707 *) ac_try_echo=$ac_try;;
27708esac
27709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27710 (eval "$ac_try") 2>&5
27711 ac_status=$?
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); }; } &&
27714 { ac_try='test -s conftest$ac_exeext'
27715 { (case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27718esac
27719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_try") 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027724 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027725else
27726 echo "$as_me: failed program was:" >&5
27727sed 's/^/| /' conftest.$ac_ext >&5
27728
Reid Spencera773bd52006-08-04 18:18:08 +000027729 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027730fi
Reid Spencera773bd52006-08-04 18:18:08 +000027731
Bill Wendlingebcceee2009-04-18 11:20:33 +000027732rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027733 conftest$ac_exeext conftest.$ac_ext
27734LIBS=$ac_check_lib_save_LIBS
27735fi
Reid Spencera773bd52006-08-04 18:18:08 +000027736{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27737echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027738if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027739 cat >>confdefs.h <<_ACEOF
27740#define HAVE_LIBIMAGEHLP 1
27741_ACEOF
27742
27743 LIBS="-limagehlp $LIBS"
27744
27745fi
27746
27747
Reid Spencera773bd52006-08-04 18:18:08 +000027748{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27749echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027750if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027751 echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753 ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lpsapi $LIBS"
27755cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
27761
Reid Spencer48fdf912006-06-01 19:03:21 +000027762
Reid Spencer484fc8e2006-06-01 16:55:59 +000027763int
27764main ()
27765{
Reid Spencera773bd52006-08-04 18:18:08 +000027766return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027767 ;
27768 return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027772if { (ac_try="$ac_link"
27773case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027779 ac_status=$?
27780 grep -v '^ *+' conftest.er1 >conftest.err
27781 rm -f conftest.er1
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027784 (exit $ac_status); } &&
27785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27786 { (case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27789esac
27790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_try") 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest$ac_exeext'
27796 { (case "(($ac_try" in
27797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798 *) ac_try_echo=$ac_try;;
27799esac
27800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27801 (eval "$ac_try") 2>&5
27802 ac_status=$?
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027805 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027806else
27807 echo "$as_me: failed program was:" >&5
27808sed 's/^/| /' conftest.$ac_ext >&5
27809
Reid Spencera773bd52006-08-04 18:18:08 +000027810 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027811fi
Reid Spencera773bd52006-08-04 18:18:08 +000027812
Bill Wendlingebcceee2009-04-18 11:20:33 +000027813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027814 conftest$ac_exeext conftest.$ac_ext
27815LIBS=$ac_check_lib_save_LIBS
27816fi
Reid Spencera773bd52006-08-04 18:18:08 +000027817{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27818echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027819if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027820 cat >>confdefs.h <<_ACEOF
27821#define HAVE_LIBPSAPI 1
27822_ACEOF
27823
27824 LIBS="-lpsapi $LIBS"
27825
27826fi
27827
27828fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027829
Reid Spencera773bd52006-08-04 18:18:08 +000027830{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27831echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027832if test "${ac_cv_search_dlopen+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027836cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027842
Reid Spencera773bd52006-08-04 18:18:08 +000027843/* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027846#ifdef __cplusplus
27847extern "C"
27848#endif
John Criswell7a73b802003-06-30 21:59:07 +000027849char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027850int
27851main ()
27852{
Reid Spencera773bd52006-08-04 18:18:08 +000027853return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027854 ;
27855 return 0;
27856}
27857_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027858for ac_lib in '' dl; do
27859 if test -z "$ac_lib"; then
27860 ac_res="none required"
27861 else
27862 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027864 fi
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866if { (ac_try="$ac_link"
27867case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27893esac
27894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027899 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027900else
27901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027902sed 's/^/| /' conftest.$ac_ext >&5
27903
Reid Spencera773bd52006-08-04 18:18:08 +000027904
John Criswell7a73b802003-06-30 21:59:07 +000027905fi
Reid Spencera773bd52006-08-04 18:18:08 +000027906
Bill Wendlingebcceee2009-04-18 11:20:33 +000027907rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027908 conftest$ac_exeext
27909 if test "${ac_cv_search_dlopen+set}" = set; then
27910 break
John Criswell7a73b802003-06-30 21:59:07 +000027911fi
Reid Spencera773bd52006-08-04 18:18:08 +000027912done
27913if test "${ac_cv_search_dlopen+set}" = set; then
27914 :
27915else
27916 ac_cv_search_dlopen=no
27917fi
27918rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027919LIBS=$ac_func_search_save_LIBS
27920fi
Reid Spencera773bd52006-08-04 18:18:08 +000027921{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27922echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27923ac_res=$ac_cv_search_dlopen
27924if test "$ac_res" != no; then
27925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027926
27927cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027928#define HAVE_DLOPEN 1
27929_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027930
27931else
Brian Gaekec45be042003-10-07 06:01:34 +000027932 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27933echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027934fi
27935
27936
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027937if test "$llvm_cv_enable_libffi" = "yes" ; then
27938 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027939echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27940if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027943 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027944cat >conftest.$ac_ext <<_ACEOF
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
27950
27951/* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27954#ifdef __cplusplus
27955extern "C"
27956#endif
27957char ffi_call ();
27958int
27959main ()
27960{
27961return ffi_call ();
27962 ;
27963 return 0;
27964}
27965_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027966for ac_lib in '' ffi; do
27967 if test -z "$ac_lib"; then
27968 ac_res="none required"
27969 else
27970 ac_res=-l$ac_lib
27971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27972 fi
27973 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027974if { (ac_try="$ac_link"
27975case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27978esac
27979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27981 ac_status=$?
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27991esac
27992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; } &&
27997 { ac_try='test -s conftest$ac_exeext'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001esac
28002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
28004 ac_status=$?
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000028007 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028008else
28009 echo "$as_me: failed program was:" >&5
28010sed 's/^/| /' conftest.$ac_ext >&5
28011
Nick Lewycky267fddb2009-04-13 04:26:27 +000028012
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028013fi
28014
Bill Wendlingebcceee2009-04-18 11:20:33 +000028015rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000028016 conftest$ac_exeext
28017 if test "${ac_cv_search_ffi_call+set}" = set; then
28018 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028019fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000028020done
28021if test "${ac_cv_search_ffi_call+set}" = set; then
28022 :
28023else
28024 ac_cv_search_ffi_call=no
28025fi
28026rm conftest.$ac_ext
28027LIBS=$ac_func_search_save_LIBS
28028fi
28029{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28030echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28031ac_res=$ac_cv_search_ffi_call
28032if test "$ac_res" != no; then
28033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28034
28035cat >>confdefs.h <<\_ACEOF
28036#define HAVE_FFI_CALL 1
28037_ACEOF
28038
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028039else
28040 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28041echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28042fi
28043
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000028044fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028045
Reid Spencera773bd52006-08-04 18:18:08 +000028046{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28047echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028048if test "${ac_cv_search_mallinfo+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000028052cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028053/* confdefs.h. */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028058
Reid Spencera773bd52006-08-04 18:18:08 +000028059/* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000028062#ifdef __cplusplus
28063extern "C"
28064#endif
John Criswell7a73b802003-06-30 21:59:07 +000028065char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028066int
28067main ()
28068{
Reid Spencera773bd52006-08-04 18:18:08 +000028069return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028070 ;
28071 return 0;
28072}
28073_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028074for ac_lib in '' malloc; do
28075 if test -z "$ac_lib"; then
28076 ac_res="none required"
28077 else
28078 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000028079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028080 fi
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082if { (ac_try="$ac_link"
28083case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
28092 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28099esac
28100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; } &&
28105 { ac_try='test -s conftest$ac_exeext'
28106 { (case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28109esac
28110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_try") 2>&5
28112 ac_status=$?
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028115 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028116else
28117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028118sed 's/^/| /' conftest.$ac_ext >&5
28119
Reid Spencera773bd52006-08-04 18:18:08 +000028120
John Criswell7a73b802003-06-30 21:59:07 +000028121fi
Reid Spencera773bd52006-08-04 18:18:08 +000028122
Bill Wendlingebcceee2009-04-18 11:20:33 +000028123rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028124 conftest$ac_exeext
28125 if test "${ac_cv_search_mallinfo+set}" = set; then
28126 break
John Criswell7a73b802003-06-30 21:59:07 +000028127fi
Reid Spencera773bd52006-08-04 18:18:08 +000028128done
28129if test "${ac_cv_search_mallinfo+set}" = set; then
28130 :
28131else
28132 ac_cv_search_mallinfo=no
28133fi
28134rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028135LIBS=$ac_func_search_save_LIBS
28136fi
Reid Spencera773bd52006-08-04 18:18:08 +000028137{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28138echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28139ac_res=$ac_cv_search_mallinfo
28140if test "$ac_res" != no; then
28141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028142
28143cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028144#define HAVE_MALLINFO 1
28145_ACEOF
28146
28147fi
28148
28149
Reid Spencer0a262ba2005-08-24 10:07:20 +000028150if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028151
28152{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28153echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28154if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028155 echo $ECHO_N "(cached) $ECHO_C" >&6
28156else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028157 ac_check_lib_save_LIBS=$LIBS
28158LIBS="-lpthread $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028159cat >conftest.$ac_ext <<_ACEOF
28160/* confdefs.h. */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h. */
28165
Reid Spencera773bd52006-08-04 18:18:08 +000028166/* Override any GCC internal prototype to avoid an error.
28167 Use char because int might match the return type of a GCC
28168 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028169#ifdef __cplusplus
28170extern "C"
28171#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028172char pthread_mutex_init ();
28173int
28174main ()
28175{
Reid Spencera773bd52006-08-04 18:18:08 +000028176return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028177 ;
28178 return 0;
28179}
28180_ACEOF
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028181rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028182if { (ac_try="$ac_link"
28183case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028189 ac_status=$?
28190 grep -v '^ *+' conftest.er1 >conftest.err
28191 rm -f conftest.er1
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28196 { (case "(($ac_try" in
28197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28198 *) ac_try_echo=$ac_try;;
28199esac
28200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28201 (eval "$ac_try") 2>&5
28202 ac_status=$?
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest$ac_exeext'
28206 { (case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28209esac
28210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_try") 2>&5
28212 ac_status=$?
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028215 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000028216else
28217 echo "$as_me: failed program was:" >&5
28218sed 's/^/| /' conftest.$ac_ext >&5
28219
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028220 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028221fi
Reid Spencera773bd52006-08-04 18:18:08 +000028222
Bill Wendlingebcceee2009-04-18 11:20:33 +000028223rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028224 conftest$ac_exeext conftest.$ac_ext
28225LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028226fi
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028227{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28228echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28229if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28230 cat >>confdefs.h <<_ACEOF
28231#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028232_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028233
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028234 LIBS="-lpthread $LIBS"
28235
Reid Spencer22177fe2005-07-12 15:24:20 +000028236fi
28237
Reid Spencera773bd52006-08-04 18:18:08 +000028238 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28239echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028240if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028244cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
28250
Reid Spencera773bd52006-08-04 18:18:08 +000028251/* Override any GCC internal prototype to avoid an error.
28252 Use char because int might match the return type of a GCC
28253 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028254#ifdef __cplusplus
28255extern "C"
28256#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028257char pthread_mutex_lock ();
28258int
28259main ()
28260{
Reid Spencera773bd52006-08-04 18:18:08 +000028261return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028262 ;
28263 return 0;
28264}
28265_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028266for ac_lib in '' pthread; do
28267 if test -z "$ac_lib"; then
28268 ac_res="none required"
28269 else
28270 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028272 fi
28273 rm -f conftest.$ac_objext conftest$ac_exeext
28274if { (ac_try="$ac_link"
28275case "(($ac_try" in
28276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277 *) ac_try_echo=$ac_try;;
28278esac
28279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028282 grep -v '^ *+' conftest.er1 >conftest.err
28283 rm -f conftest.er1
28284 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028286 (exit $ac_status); } &&
28287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28291esac
28292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; } &&
28297 { ac_try='test -s conftest$ac_exeext'
28298 { (case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28301esac
28302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028307 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028308else
28309 echo "$as_me: failed program was:" >&5
28310sed 's/^/| /' conftest.$ac_ext >&5
28311
Reid Spencera773bd52006-08-04 18:18:08 +000028312
Brian Gaeke5f268f72003-12-05 19:29:01 +000028313fi
Reid Spencera773bd52006-08-04 18:18:08 +000028314
Bill Wendlingebcceee2009-04-18 11:20:33 +000028315rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028316 conftest$ac_exeext
28317 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28318 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320done
28321if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28322 :
28323else
28324 ac_cv_search_pthread_mutex_lock=no
28325fi
28326rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028327LIBS=$ac_func_search_save_LIBS
28328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28330echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28331ac_res=$ac_cv_search_pthread_mutex_lock
28332if test "$ac_res" != no; then
28333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028334
John Criswell40468462004-09-24 21:19:06 +000028335cat >>confdefs.h <<\_ACEOF
28336#define HAVE_PTHREAD_MUTEX_LOCK 1
28337_ACEOF
28338
28339fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028340
Owen Andersonde8aed22009-06-16 18:20:20 +000028341 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28342echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28343if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345else
28346 ac_func_search_save_LIBS=$LIBS
28347cat >conftest.$ac_ext <<_ACEOF
28348/* confdefs.h. */
28349_ACEOF
28350cat confdefs.h >>conftest.$ac_ext
28351cat >>conftest.$ac_ext <<_ACEOF
28352/* end confdefs.h. */
28353
28354/* Override any GCC internal prototype to avoid an error.
28355 Use char because int might match the return type of a GCC
28356 builtin and then its argument prototype would still apply. */
28357#ifdef __cplusplus
28358extern "C"
28359#endif
28360char pthread_rwlock_init ();
28361int
28362main ()
28363{
28364return pthread_rwlock_init ();
28365 ;
28366 return 0;
28367}
28368_ACEOF
28369for ac_lib in '' pthread; do
28370 if test -z "$ac_lib"; then
28371 ac_res="none required"
28372 else
28373 ac_res=-l$ac_lib
28374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28375 fi
28376 rm -f conftest.$ac_objext conftest$ac_exeext
28377if { (ac_try="$ac_link"
28378case "(($ac_try" in
28379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380 *) ac_try_echo=$ac_try;;
28381esac
28382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28383 (eval "$ac_link") 2>conftest.er1
28384 ac_status=$?
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
28390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394esac
28395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; } &&
28400 { ac_try='test -s conftest$ac_exeext'
28401 { (case "(($ac_try" in
28402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403 *) ac_try_echo=$ac_try;;
28404esac
28405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406 (eval "$ac_try") 2>&5
28407 ac_status=$?
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; }; then
28410 ac_cv_search_pthread_rwlock_init=$ac_res
28411else
28412 echo "$as_me: failed program was:" >&5
28413sed 's/^/| /' conftest.$ac_ext >&5
28414
28415
28416fi
28417
28418rm -f core conftest.err conftest.$ac_objext \
28419 conftest$ac_exeext
28420 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28421 break
28422fi
28423done
28424if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28425 :
28426else
28427 ac_cv_search_pthread_rwlock_init=no
28428fi
28429rm conftest.$ac_ext
28430LIBS=$ac_func_search_save_LIBS
28431fi
28432{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28433echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28434ac_res=$ac_cv_search_pthread_rwlock_init
28435if test "$ac_res" != no; then
28436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28437
28438cat >>confdefs.h <<\_ACEOF
28439#define HAVE_PTHREAD_RWLOCK_INIT 1
28440_ACEOF
28441
28442fi
28443
Owen Anderson27fcfe12009-06-25 23:10:26 +000028444 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28445echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28446if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28448else
28449 ac_func_search_save_LIBS=$LIBS
28450cat >conftest.$ac_ext <<_ACEOF
28451/* confdefs.h. */
28452_ACEOF
28453cat confdefs.h >>conftest.$ac_ext
28454cat >>conftest.$ac_ext <<_ACEOF
28455/* end confdefs.h. */
28456
28457/* Override any GCC internal prototype to avoid an error.
28458 Use char because int might match the return type of a GCC
28459 builtin and then its argument prototype would still apply. */
28460#ifdef __cplusplus
28461extern "C"
28462#endif
28463char pthread_getspecific ();
28464int
28465main ()
28466{
28467return pthread_getspecific ();
28468 ;
28469 return 0;
28470}
28471_ACEOF
28472for ac_lib in '' pthread; do
28473 if test -z "$ac_lib"; then
28474 ac_res="none required"
28475 else
28476 ac_res=-l$ac_lib
28477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28478 fi
28479 rm -f conftest.$ac_objext conftest$ac_exeext
28480if { (ac_try="$ac_link"
28481case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28484esac
28485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_link") 2>conftest.er1
28487 ac_status=$?
28488 grep -v '^ *+' conftest.er1 >conftest.err
28489 rm -f conftest.er1
28490 cat conftest.err >&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); } &&
28493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28494 { (case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28497esac
28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_try") 2>&5
28500 ac_status=$?
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
28503 { ac_try='test -s conftest$ac_exeext'
28504 { (case "(($ac_try" in
28505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506 *) ac_try_echo=$ac_try;;
28507esac
28508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509 (eval "$ac_try") 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; }; then
28513 ac_cv_search_pthread_getspecific=$ac_res
28514else
28515 echo "$as_me: failed program was:" >&5
28516sed 's/^/| /' conftest.$ac_ext >&5
28517
28518
28519fi
28520
28521rm -f core conftest.err conftest.$ac_objext \
28522 conftest$ac_exeext
28523 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28524 break
28525fi
28526done
28527if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28528 :
28529else
28530 ac_cv_search_pthread_getspecific=no
28531fi
28532rm conftest.$ac_ext
28533LIBS=$ac_func_search_save_LIBS
28534fi
28535{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28536echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28537ac_res=$ac_cv_search_pthread_getspecific
28538if test "$ac_res" != no; then
28539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28540
28541cat >>confdefs.h <<\_ACEOF
28542#define HAVE_PTHREAD_GETSPECIFIC 1
28543_ACEOF
28544
28545fi
28546
Reid Spencer0a262ba2005-08-24 10:07:20 +000028547fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028548
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028549
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028550# Check whether --with-udis86 was given.
28551if test "${with_udis86+set}" = set; then
28552 withval=$with_udis86;
28553 USE_UDIS86=1
28554
28555 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028556 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028557 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28558 esac
28559
28560{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28561echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28562if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28564else
28565 ac_check_lib_save_LIBS=$LIBS
28566LIBS="-ludis86 $LIBS"
28567cat >conftest.$ac_ext <<_ACEOF
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
28573
28574/* Override any GCC internal prototype to avoid an error.
28575 Use char because int might match the return type of a GCC
28576 builtin and then its argument prototype would still apply. */
28577#ifdef __cplusplus
28578extern "C"
28579#endif
28580char ud_init ();
28581int
28582main ()
28583{
28584return ud_init ();
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext conftest$ac_exeext
28590if { (ac_try="$ac_link"
28591case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594esac
28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_link") 2>conftest.er1
28597 ac_status=$?
28598 grep -v '^ *+' conftest.er1 >conftest.err
28599 rm -f conftest.er1
28600 cat conftest.err >&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028602 (exit $ac_status); } &&
28603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28604 { (case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28607esac
28608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_try") 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } &&
28613 { ac_try='test -s conftest$ac_exeext'
28614 { (case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28617esac
28618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_try") 2>&5
28620 ac_status=$?
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028623 ac_cv_lib_udis86_ud_init=yes
28624else
28625 echo "$as_me: failed program was:" >&5
28626sed 's/^/| /' conftest.$ac_ext >&5
28627
28628 ac_cv_lib_udis86_ud_init=no
28629fi
28630
Bill Wendlingebcceee2009-04-18 11:20:33 +000028631rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028632 conftest$ac_exeext conftest.$ac_ext
28633LIBS=$ac_check_lib_save_LIBS
28634fi
28635{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28636echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28637if test $ac_cv_lib_udis86_ud_init = yes; then
28638 cat >>confdefs.h <<_ACEOF
28639#define HAVE_LIBUDIS86 1
28640_ACEOF
28641
28642 LIBS="-ludis86 $LIBS"
28643
28644else
28645
28646 echo "Error! You need to have libudis86 around."
28647 exit -1
28648
28649fi
28650
28651
28652else
28653 USE_UDIS86=0
28654
28655fi
28656
28657
28658cat >>confdefs.h <<_ACEOF
28659#define USE_UDIS86 $USE_UDIS86
28660_ACEOF
28661
28662
28663
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028664# Check whether --with-oprofile was given.
28665if test "${with_oprofile+set}" = set; then
28666 withval=$with_oprofile;
28667 USE_OPROFILE=1
28668
28669 case "$withval" in
28670 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028671 no) llvm_cv_oppath=
28672 USE_OPROFILE=0
28673 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028674 *) llvm_cv_oppath="${withval}/lib/oprofile"
28675 CPPFLAGS="-I${withval}/include";;
28676 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028677 if test -n "$llvm_cv_oppath" ; then
28678 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28679 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28680echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28681if test "${ac_cv_search_bfd_init+set}" = set; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
28683else
28684 ac_func_search_save_LIBS=$LIBS
28685cat >conftest.$ac_ext <<_ACEOF
28686/* confdefs.h. */
28687_ACEOF
28688cat confdefs.h >>conftest.$ac_ext
28689cat >>conftest.$ac_ext <<_ACEOF
28690/* end confdefs.h. */
28691
28692/* Override any GCC internal prototype to avoid an error.
28693 Use char because int might match the return type of a GCC
28694 builtin and then its argument prototype would still apply. */
28695#ifdef __cplusplus
28696extern "C"
28697#endif
28698char bfd_init ();
28699int
28700main ()
28701{
28702return bfd_init ();
28703 ;
28704 return 0;
28705}
28706_ACEOF
28707for ac_lib in '' bfd; do
28708 if test -z "$ac_lib"; then
28709 ac_res="none required"
28710 else
28711 ac_res=-l$ac_lib
28712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28713 fi
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715if { (ac_try="$ac_link"
28716case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28719esac
28720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_link") 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest$ac_exeext'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28742esac
28743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_search_bfd_init=$ac_res
28749else
28750 echo "$as_me: failed program was:" >&5
28751sed 's/^/| /' conftest.$ac_ext >&5
28752
28753
28754fi
28755
28756rm -f core conftest.err conftest.$ac_objext \
28757 conftest$ac_exeext
28758 if test "${ac_cv_search_bfd_init+set}" = set; then
28759 break
28760fi
28761done
28762if test "${ac_cv_search_bfd_init+set}" = set; then
28763 :
28764else
28765 ac_cv_search_bfd_init=no
28766fi
28767rm conftest.$ac_ext
28768LIBS=$ac_func_search_save_LIBS
28769fi
28770{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28771echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28772ac_res=$ac_cv_search_bfd_init
28773if test "$ac_res" != no; then
28774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28775
28776fi
28777
28778 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028779echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28780if test "${ac_cv_search_op_open_agent+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28782else
28783 ac_func_search_save_LIBS=$LIBS
28784cat >conftest.$ac_ext <<_ACEOF
28785/* confdefs.h. */
28786_ACEOF
28787cat confdefs.h >>conftest.$ac_ext
28788cat >>conftest.$ac_ext <<_ACEOF
28789/* end confdefs.h. */
28790
28791/* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28794#ifdef __cplusplus
28795extern "C"
28796#endif
28797char op_open_agent ();
28798int
28799main ()
28800{
28801return op_open_agent ();
28802 ;
28803 return 0;
28804}
28805_ACEOF
28806for ac_lib in '' opagent; do
28807 if test -z "$ac_lib"; then
28808 ac_res="none required"
28809 else
28810 ac_res=-l$ac_lib
28811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28812 fi
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814if { (ac_try="$ac_link"
28815case "(($ac_try" in
28816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817 *) ac_try_echo=$ac_try;;
28818esac
28819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820 (eval "$ac_link") 2>conftest.er1
28821 ac_status=$?
28822 grep -v '^ *+' conftest.er1 >conftest.err
28823 rm -f conftest.er1
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
28827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28828 { (case "(($ac_try" in
28829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28831esac
28832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_try") 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (case "(($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_try") 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_cv_search_op_open_agent=$ac_res
28848else
28849 echo "$as_me: failed program was:" >&5
28850sed 's/^/| /' conftest.$ac_ext >&5
28851
28852
28853fi
28854
28855rm -f core conftest.err conftest.$ac_objext \
28856 conftest$ac_exeext
28857 if test "${ac_cv_search_op_open_agent+set}" = set; then
28858 break
28859fi
28860done
28861if test "${ac_cv_search_op_open_agent+set}" = set; then
28862 :
28863else
28864 ac_cv_search_op_open_agent=no
28865fi
28866rm conftest.$ac_ext
28867LIBS=$ac_func_search_save_LIBS
28868fi
28869{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28870echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28871ac_res=$ac_cv_search_op_open_agent
28872if test "$ac_res" != no; then
28873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28874
28875else
28876
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028877 echo "Error! You need to have libopagent around."
28878 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028879
28880fi
28881
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028882 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028883 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28884echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28885if test "${ac_cv_header_opagent_h+set}" = set; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28887fi
28888{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28889echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28890else
28891 # Is the header compilable?
28892{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28893echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28894cat >conftest.$ac_ext <<_ACEOF
28895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
28900$ac_includes_default
28901#include <opagent.h>
28902_ACEOF
28903rm -f conftest.$ac_objext
28904if { (ac_try="$ac_compile"
28905case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28908esac
28909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
28911 ac_status=$?
28912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921esac
28922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
28928 { (case "(($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_try") 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_header_compiler=yes
28938else
28939 echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942 ac_header_compiler=no
28943fi
28944
28945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947echo "${ECHO_T}$ac_header_compiler" >&6; }
28948
28949# Is the header present?
28950{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28951echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28952cat >conftest.$ac_ext <<_ACEOF
28953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
28958#include <opagent.h>
28959_ACEOF
28960if { (ac_try="$ac_cpp conftest.$ac_ext"
28961case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28964esac
28965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28967 ac_status=$?
28968 grep -v '^ *+' conftest.er1 >conftest.err
28969 rm -f conftest.er1
28970 cat conftest.err >&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } >/dev/null; then
28973 if test -s conftest.err; then
28974 ac_cpp_err=$ac_c_preproc_warn_flag
28975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28976 else
28977 ac_cpp_err=
28978 fi
28979else
28980 ac_cpp_err=yes
28981fi
28982if test -z "$ac_cpp_err"; then
28983 ac_header_preproc=yes
28984else
28985 echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ac_header_preproc=no
28989fi
28990
28991rm -f conftest.err conftest.$ac_ext
28992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993echo "${ECHO_T}$ac_header_preproc" >&6; }
28994
28995# So? What about this header?
28996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997 yes:no: )
28998 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28999echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29001echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29002 ac_header_preproc=yes
29003 ;;
29004 no:yes:* )
29005 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29006echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29008echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29010echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29012echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29014echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29016echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29017 ( cat <<\_ASBOX
29018## ----------------------------------- ##
29019## Report this to llvmbugs@cs.uiuc.edu ##
29020## ----------------------------------- ##
29021_ASBOX
29022 ) | sed "s/^/$as_me: WARNING: /" >&2
29023 ;;
29024esac
29025{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29026echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29027if test "${ac_cv_header_opagent_h+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030 ac_cv_header_opagent_h=$ac_header_preproc
29031fi
29032{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29033echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29034
29035fi
29036if test $ac_cv_header_opagent_h = yes; then
29037 :
29038else
29039
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029040 echo "Error! You need to have opagent.h around."
29041 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029042
29043fi
29044
29045
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029046 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029047
29048else
29049
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029050 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029051
29052
29053fi
29054
29055
29056cat >>confdefs.h <<_ACEOF
29057#define USE_OPROFILE $USE_OPROFILE
29058_ACEOF
29059
29060
29061
Reid Spencer59473af2004-12-25 07:31:29 +000029062
29063
29064
29065
29066
29067ac_header_dirent=no
29068for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29069 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029070{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29071echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029073 echo $ECHO_N "(cached) $ECHO_C" >&6
29074else
29075 cat >conftest.$ac_ext <<_ACEOF
29076/* confdefs.h. */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h. */
29081#include <sys/types.h>
29082#include <$ac_hdr>
29083
29084int
29085main ()
29086{
29087if ((DIR *) 0)
29088return 0;
29089 ;
29090 return 0;
29091}
29092_ACEOF
29093rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029094if { (ac_try="$ac_compile"
29095case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029101 ac_status=$?
29102 grep -v '^ *+' conftest.er1 >conftest.err
29103 rm -f conftest.er1
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029106 (exit $ac_status); } &&
29107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29108 { (case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29111esac
29112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113 (eval "$ac_try") 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest.$ac_objext'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29121esac
29122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029127 eval "$as_ac_Header=yes"
29128else
29129 echo "$as_me: failed program was:" >&5
29130sed 's/^/| /' conftest.$ac_ext >&5
29131
Reid Spencera773bd52006-08-04 18:18:08 +000029132 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029133fi
Reid Spencera773bd52006-08-04 18:18:08 +000029134
29135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029136fi
Reid Spencera773bd52006-08-04 18:18:08 +000029137ac_res=`eval echo '${'$as_ac_Header'}'`
29138 { echo "$as_me:$LINENO: result: $ac_res" >&5
29139echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029140if test `eval echo '${'$as_ac_Header'}'` = yes; then
29141 cat >>confdefs.h <<_ACEOF
29142#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29143_ACEOF
29144
29145ac_header_dirent=$ac_hdr; break
29146fi
29147
29148done
29149# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29150if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29152echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029153if test "${ac_cv_search_opendir+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29155else
29156 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029157cat >conftest.$ac_ext <<_ACEOF
29158/* confdefs.h. */
29159_ACEOF
29160cat confdefs.h >>conftest.$ac_ext
29161cat >>conftest.$ac_ext <<_ACEOF
29162/* end confdefs.h. */
29163
Reid Spencera773bd52006-08-04 18:18:08 +000029164/* Override any GCC internal prototype to avoid an error.
29165 Use char because int might match the return type of a GCC
29166 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029167#ifdef __cplusplus
29168extern "C"
29169#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029170char opendir ();
29171int
29172main ()
29173{
Reid Spencera773bd52006-08-04 18:18:08 +000029174return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029175 ;
29176 return 0;
29177}
29178_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029179for ac_lib in '' dir; do
29180 if test -z "$ac_lib"; then
29181 ac_res="none required"
29182 else
29183 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029185 fi
29186 rm -f conftest.$ac_objext conftest$ac_exeext
29187if { (ac_try="$ac_link"
29188case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191esac
29192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029194 ac_status=$?
29195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029199 (exit $ac_status); } &&
29200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29201 { (case "(($ac_try" in
29202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29203 *) ac_try_echo=$ac_try;;
29204esac
29205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29206 (eval "$ac_try") 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest$ac_exeext'
29211 { (case "(($ac_try" in
29212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213 *) ac_try_echo=$ac_try;;
29214esac
29215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216 (eval "$ac_try") 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029220 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029221else
29222 echo "$as_me: failed program was:" >&5
29223sed 's/^/| /' conftest.$ac_ext >&5
29224
Reid Spencera773bd52006-08-04 18:18:08 +000029225
Reid Spencer59473af2004-12-25 07:31:29 +000029226fi
Reid Spencera773bd52006-08-04 18:18:08 +000029227
Bill Wendlingebcceee2009-04-18 11:20:33 +000029228rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029229 conftest$ac_exeext
29230 if test "${ac_cv_search_opendir+set}" = set; then
29231 break
Reid Spencer59473af2004-12-25 07:31:29 +000029232fi
Reid Spencera773bd52006-08-04 18:18:08 +000029233done
29234if test "${ac_cv_search_opendir+set}" = set; then
29235 :
29236else
29237 ac_cv_search_opendir=no
29238fi
29239rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029240LIBS=$ac_func_search_save_LIBS
29241fi
Reid Spencera773bd52006-08-04 18:18:08 +000029242{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29243echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29244ac_res=$ac_cv_search_opendir
29245if test "$ac_res" != no; then
29246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029247
29248fi
29249
29250else
Reid Spencera773bd52006-08-04 18:18:08 +000029251 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29252echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029253if test "${ac_cv_search_opendir+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255else
29256 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029257cat >conftest.$ac_ext <<_ACEOF
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
29263
Reid Spencera773bd52006-08-04 18:18:08 +000029264/* Override any GCC internal prototype to avoid an error.
29265 Use char because int might match the return type of a GCC
29266 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029267#ifdef __cplusplus
29268extern "C"
29269#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029270char opendir ();
29271int
29272main ()
29273{
Reid Spencera773bd52006-08-04 18:18:08 +000029274return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029275 ;
29276 return 0;
29277}
29278_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029279for ac_lib in '' x; do
29280 if test -z "$ac_lib"; then
29281 ac_res="none required"
29282 else
29283 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029285 fi
29286 rm -f conftest.$ac_objext conftest$ac_exeext
29287if { (ac_try="$ac_link"
29288case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29291esac
29292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029294 ac_status=$?
29295 grep -v '^ *+' conftest.er1 >conftest.err
29296 rm -f conftest.er1
29297 cat conftest.err >&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029299 (exit $ac_status); } &&
29300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29304esac
29305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest$ac_exeext'
29311 { (case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29314esac
29315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316 (eval "$ac_try") 2>&5
29317 ac_status=$?
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029320 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029321else
29322 echo "$as_me: failed program was:" >&5
29323sed 's/^/| /' conftest.$ac_ext >&5
29324
Reid Spencera773bd52006-08-04 18:18:08 +000029325
Reid Spencer59473af2004-12-25 07:31:29 +000029326fi
Reid Spencera773bd52006-08-04 18:18:08 +000029327
Bill Wendlingebcceee2009-04-18 11:20:33 +000029328rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029329 conftest$ac_exeext
29330 if test "${ac_cv_search_opendir+set}" = set; then
29331 break
Reid Spencer59473af2004-12-25 07:31:29 +000029332fi
Reid Spencera773bd52006-08-04 18:18:08 +000029333done
29334if test "${ac_cv_search_opendir+set}" = set; then
29335 :
29336else
29337 ac_cv_search_opendir=no
29338fi
29339rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029340LIBS=$ac_func_search_save_LIBS
29341fi
Reid Spencera773bd52006-08-04 18:18:08 +000029342{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29343echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29344ac_res=$ac_cv_search_opendir
29345if test "$ac_res" != no; then
29346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029347
29348fi
29349
29350fi
29351
Reid Spencera773bd52006-08-04 18:18:08 +000029352{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29353echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029354if test "${ac_cv_header_mmap_anon+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357 ac_ext=c
29358ac_cpp='$CPP $CPPFLAGS'
29359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361ac_compiler_gnu=$ac_cv_c_compiler_gnu
29362
29363 cat >conftest.$ac_ext <<_ACEOF
29364/* confdefs.h. */
29365_ACEOF
29366cat confdefs.h >>conftest.$ac_ext
29367cat >>conftest.$ac_ext <<_ACEOF
29368/* end confdefs.h. */
29369#include <sys/mman.h>
29370#include <unistd.h>
29371#include <fcntl.h>
29372int
29373main ()
29374{
29375mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29376 ;
29377 return 0;
29378}
29379_ACEOF
29380rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029381if { (ac_try="$ac_compile"
29382case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29385esac
29386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029388 ac_status=$?
29389 grep -v '^ *+' conftest.er1 >conftest.err
29390 rm -f conftest.er1
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29395 { (case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29398esac
29399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_try") 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest.$ac_objext'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29408esac
29409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029414 ac_cv_header_mmap_anon=yes
29415else
29416 echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
Reid Spencera773bd52006-08-04 18:18:08 +000029419 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029420fi
Reid Spencera773bd52006-08-04 18:18:08 +000029421
29422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029423 ac_ext=c
29424ac_cpp='$CPP $CPPFLAGS'
29425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428
29429
29430fi
Reid Spencera773bd52006-08-04 18:18:08 +000029431{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29432echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029433if test "$ac_cv_header_mmap_anon" = yes; then
29434
29435cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029436#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029437_ACEOF
29438
29439fi
29440
Reid Spencera773bd52006-08-04 18:18:08 +000029441{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29442echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029443if test "${ac_cv_header_stat_broken+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445else
29446 cat >conftest.$ac_ext <<_ACEOF
29447/* confdefs.h. */
29448_ACEOF
29449cat confdefs.h >>conftest.$ac_ext
29450cat >>conftest.$ac_ext <<_ACEOF
29451/* end confdefs.h. */
29452#include <sys/types.h>
29453#include <sys/stat.h>
29454
Reid Spencera773bd52006-08-04 18:18:08 +000029455#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029456# if S_ISBLK (S_IFDIR)
29457You lose.
29458# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029459#endif
29460
Reid Spencera773bd52006-08-04 18:18:08 +000029461#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029462# if S_ISBLK (S_IFCHR)
29463You lose.
29464# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029465#endif
29466
Reid Spencera773bd52006-08-04 18:18:08 +000029467#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029468# if S_ISLNK (S_IFREG)
29469You lose.
29470# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029471#endif
29472
Reid Spencera773bd52006-08-04 18:18:08 +000029473#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029474# if S_ISSOCK (S_IFREG)
29475You lose.
29476# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029477#endif
29478
29479_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29481 $EGREP "You lose" >/dev/null 2>&1; then
29482 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029483else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029484 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029485fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029486rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029487
Reid Spencer59473af2004-12-25 07:31:29 +000029488fi
Reid Spencera773bd52006-08-04 18:18:08 +000029489{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29490echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029491if test $ac_cv_header_stat_broken = yes; then
29492
29493cat >>confdefs.h <<\_ACEOF
29494#define STAT_MACROS_BROKEN 1
29495_ACEOF
29496
29497fi
29498
Reid Spencera773bd52006-08-04 18:18:08 +000029499{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29500echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029501if test "${ac_cv_header_stdc+set}" = set; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29503else
29504 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029505/* confdefs.h. */
29506_ACEOF
29507cat confdefs.h >>conftest.$ac_ext
29508cat >>conftest.$ac_ext <<_ACEOF
29509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029510#include <stdlib.h>
29511#include <stdarg.h>
29512#include <string.h>
29513#include <float.h>
29514
John Criswell0c38eaf2003-09-10 15:17:25 +000029515int
29516main ()
29517{
29518
29519 ;
29520 return 0;
29521}
John Criswell7a73b802003-06-30 21:59:07 +000029522_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029523rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029524if { (ac_try="$ac_compile"
29525case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029536 (exit $ac_status); } &&
29537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541esac
29542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
29544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
29548 { (case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_try") 2>&5
29554 ac_status=$?
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029557 ac_cv_header_stdc=yes
29558else
29559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029560sed 's/^/| /' conftest.$ac_ext >&5
29561
Reid Spencera773bd52006-08-04 18:18:08 +000029562 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029563fi
Reid Spencera773bd52006-08-04 18:18:08 +000029564
29565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029566
29567if test $ac_cv_header_stdc = yes; then
29568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029575#include <string.h>
29576
29577_ACEOF
29578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029579 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029580 :
29581else
29582 ac_cv_header_stdc=no
29583fi
29584rm -f conftest*
29585
29586fi
29587
29588if test $ac_cv_header_stdc = yes; then
29589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029591/* confdefs.h. */
29592_ACEOF
29593cat confdefs.h >>conftest.$ac_ext
29594cat >>conftest.$ac_ext <<_ACEOF
29595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029596#include <stdlib.h>
29597
29598_ACEOF
29599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029600 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029601 :
29602else
29603 ac_cv_header_stdc=no
29604fi
29605rm -f conftest*
29606
29607fi
29608
29609if test $ac_cv_header_stdc = yes; then
29610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29611 if test "$cross_compiling" = yes; then
29612 :
29613else
29614 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029615/* confdefs.h. */
29616_ACEOF
29617cat confdefs.h >>conftest.$ac_ext
29618cat >>conftest.$ac_ext <<_ACEOF
29619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029620#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029621#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029622#if ((' ' & 0x0FF) == 0x020)
29623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29625#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029626# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029627 (('a' <= (c) && (c) <= 'i') \
29628 || ('j' <= (c) && (c) <= 'r') \
29629 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29631#endif
29632
29633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29634int
29635main ()
29636{
29637 int i;
29638 for (i = 0; i < 256; i++)
29639 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029640 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029641 return 2;
29642 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029643}
29644_ACEOF
29645rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029646if { (ac_try="$ac_link"
29647case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29650esac
29651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029653 ac_status=$?
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029656 { (case "(($ac_try" in
29657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658 *) ac_try_echo=$ac_try;;
29659esac
29660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29661 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 :
29666else
29667 echo "$as_me: program exited with status $ac_status" >&5
29668echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029669sed 's/^/| /' conftest.$ac_ext >&5
29670
John Criswell7a73b802003-06-30 21:59:07 +000029671( exit $ac_status )
29672ac_cv_header_stdc=no
29673fi
Reid Spencera773bd52006-08-04 18:18:08 +000029674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29675fi
29676
29677
John Criswell7a73b802003-06-30 21:59:07 +000029678fi
29679fi
Reid Spencera773bd52006-08-04 18:18:08 +000029680{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29681echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029682if test $ac_cv_header_stdc = yes; then
29683
29684cat >>confdefs.h <<\_ACEOF
29685#define STDC_HEADERS 1
29686_ACEOF
29687
29688fi
29689
Reid Spencera773bd52006-08-04 18:18:08 +000029690{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29691echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029692if test "${ac_cv_header_sys_wait_h+set}" = set; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29694else
29695 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029696/* confdefs.h. */
29697_ACEOF
29698cat confdefs.h >>conftest.$ac_ext
29699cat >>conftest.$ac_ext <<_ACEOF
29700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029701#include <sys/types.h>
29702#include <sys/wait.h>
29703#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029704# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029705#endif
29706#ifndef WIFEXITED
29707# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29708#endif
29709
John Criswell7a73b802003-06-30 21:59:07 +000029710int
29711main ()
29712{
29713 int s;
29714 wait (&s);
29715 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29716 ;
29717 return 0;
29718}
29719_ACEOF
29720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029721if { (ac_try="$ac_compile"
29722case "(($ac_try" in
29723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29724 *) ac_try_echo=$ac_try;;
29725esac
29726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29735 { (case "(($ac_try" in
29736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737 *) ac_try_echo=$ac_try;;
29738esac
29739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740 (eval "$ac_try") 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try='test -s conftest.$ac_objext'
29745 { (case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29748esac
29749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_try") 2>&5
29751 ac_status=$?
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029754 ac_cv_header_sys_wait_h=yes
29755else
29756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029757sed 's/^/| /' conftest.$ac_ext >&5
29758
Reid Spencera773bd52006-08-04 18:18:08 +000029759 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029760fi
Reid Spencera773bd52006-08-04 18:18:08 +000029761
29762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029763fi
Reid Spencera773bd52006-08-04 18:18:08 +000029764{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29765echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029766if test $ac_cv_header_sys_wait_h = yes; then
29767
29768cat >>confdefs.h <<\_ACEOF
29769#define HAVE_SYS_WAIT_H 1
29770_ACEOF
29771
29772fi
29773
Reid Spencera773bd52006-08-04 18:18:08 +000029774{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29775echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029776if test "${ac_cv_header_time+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29778else
29779 cat >conftest.$ac_ext <<_ACEOF
29780/* confdefs.h. */
29781_ACEOF
29782cat confdefs.h >>conftest.$ac_ext
29783cat >>conftest.$ac_ext <<_ACEOF
29784/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029785#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029786#include <sys/time.h>
29787#include <time.h>
29788
29789int
29790main ()
29791{
29792if ((struct tm *) 0)
29793return 0;
29794 ;
29795 return 0;
29796}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029797_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029798rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029799if { (ac_try="$ac_compile"
29800case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29803esac
29804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029806 ac_status=$?
29807 grep -v '^ *+' conftest.er1 >conftest.err
29808 rm -f conftest.er1
29809 cat conftest.err >&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029811 (exit $ac_status); } &&
29812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29813 { (case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816esac
29817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_try") 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest.$ac_objext'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29826esac
29827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029832 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029833else
29834 echo "$as_me: failed program was:" >&5
29835sed 's/^/| /' conftest.$ac_ext >&5
29836
Reid Spencera773bd52006-08-04 18:18:08 +000029837 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029838fi
Reid Spencera773bd52006-08-04 18:18:08 +000029839
29840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029841fi
Reid Spencera773bd52006-08-04 18:18:08 +000029842{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29843echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029844if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029845
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029846cat >>confdefs.h <<\_ACEOF
29847#define TIME_WITH_SYS_TIME 1
29848_ACEOF
29849
29850fi
29851
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029852
Reid Spencer59473af2004-12-25 07:31:29 +000029853
29854
29855
29856
29857
29858
29859for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29860do
29861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029866 echo $ECHO_N "(cached) $ECHO_C" >&6
29867fi
Reid Spencera773bd52006-08-04 18:18:08 +000029868ac_res=`eval echo '${'$as_ac_Header'}'`
29869 { echo "$as_me:$LINENO: result: $ac_res" >&5
29870echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029871else
29872 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029873{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029875cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029876/* confdefs.h. */
29877_ACEOF
29878cat confdefs.h >>conftest.$ac_ext
29879cat >>conftest.$ac_ext <<_ACEOF
29880/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029881$ac_includes_default
29882#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029883_ACEOF
29884rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029885if { (ac_try="$ac_compile"
29886case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29889esac
29890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029892 ac_status=$?
29893 grep -v '^ *+' conftest.er1 >conftest.err
29894 rm -f conftest.er1
29895 cat conftest.err >&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029897 (exit $ac_status); } &&
29898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29899 { (case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29902esac
29903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_try") 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; } &&
29908 { ac_try='test -s conftest.$ac_objext'
29909 { (case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29912esac
29913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_try") 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029918 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029919else
29920 echo "$as_me: failed program was:" >&5
29921sed 's/^/| /' conftest.$ac_ext >&5
29922
Reid Spencera773bd52006-08-04 18:18:08 +000029923 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029924fi
Reid Spencera773bd52006-08-04 18:18:08 +000029925
29926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29928echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029929
Reid Spencer59473af2004-12-25 07:31:29 +000029930# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029933cat >conftest.$ac_ext <<_ACEOF
29934/* confdefs.h. */
29935_ACEOF
29936cat confdefs.h >>conftest.$ac_ext
29937cat >>conftest.$ac_ext <<_ACEOF
29938/* end confdefs.h. */
29939#include <$ac_header>
29940_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029941if { (ac_try="$ac_cpp conftest.$ac_ext"
29942case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945esac
29946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029948 ac_status=$?
29949 grep -v '^ *+' conftest.er1 >conftest.err
29950 rm -f conftest.er1
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029953 (exit $ac_status); } >/dev/null; then
29954 if test -s conftest.err; then
29955 ac_cpp_err=$ac_c_preproc_warn_flag
29956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29957 else
29958 ac_cpp_err=
29959 fi
29960else
29961 ac_cpp_err=yes
29962fi
29963if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029964 ac_header_preproc=yes
29965else
29966 echo "$as_me: failed program was:" >&5
29967sed 's/^/| /' conftest.$ac_ext >&5
29968
29969 ac_header_preproc=no
29970fi
Reid Spencera773bd52006-08-04 18:18:08 +000029971
Reid Spencer59473af2004-12-25 07:31:29 +000029972rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029973{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29974echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029975
29976# So? What about this header?
29977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29978 yes:no: )
29979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29983 ac_header_preproc=yes
29984 ;;
29985 no:yes:* )
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029998 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029999## ----------------------------------- ##
30000## Report this to llvmbugs@cs.uiuc.edu ##
30001## ----------------------------------- ##
30002_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030003 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030004 ;;
30005esac
Reid Spencera773bd52006-08-04 18:18:08 +000030006{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030009 echo $ECHO_N "(cached) $ECHO_C" >&6
30010else
30011 eval "$as_ac_Header=\$ac_header_preproc"
30012fi
Reid Spencera773bd52006-08-04 18:18:08 +000030013ac_res=`eval echo '${'$as_ac_Header'}'`
30014 { echo "$as_me:$LINENO: result: $ac_res" >&5
30015echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016
30017fi
Reid Spencer59473af2004-12-25 07:31:29 +000030018if test `eval echo '${'$as_ac_Header'}'` = yes; then
30019 cat >>confdefs.h <<_ACEOF
30020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030021_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030022
30023fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030024
Reid Spencer59473af2004-12-25 07:31:29 +000030025done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030026
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027
30028
Reid Spencer59473af2004-12-25 07:31:29 +000030029
30030
30031
30032
Douglas Gregor071d73d2009-05-18 17:21:34 +000030033for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030034do
30035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030040 echo $ECHO_N "(cached) $ECHO_C" >&6
30041fi
Reid Spencera773bd52006-08-04 18:18:08 +000030042ac_res=`eval echo '${'$as_ac_Header'}'`
30043 { echo "$as_me:$LINENO: result: $ac_res" >&5
30044echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030045else
30046 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030047{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030049cat >conftest.$ac_ext <<_ACEOF
30050/* confdefs.h. */
30051_ACEOF
30052cat confdefs.h >>conftest.$ac_ext
30053cat >>conftest.$ac_ext <<_ACEOF
30054/* end confdefs.h. */
30055$ac_includes_default
30056#include <$ac_header>
30057_ACEOF
30058rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030059if { (ac_try="$ac_compile"
30060case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30063esac
30064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030066 ac_status=$?
30067 grep -v '^ *+' conftest.er1 >conftest.err
30068 rm -f conftest.er1
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030071 (exit $ac_status); } &&
30072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073 { (case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30076esac
30077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_try") 2>&5
30079 ac_status=$?
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest.$ac_objext'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30086esac
30087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030092 ac_header_compiler=yes
30093else
30094 echo "$as_me: failed program was:" >&5
30095sed 's/^/| /' conftest.$ac_ext >&5
30096
Reid Spencera773bd52006-08-04 18:18:08 +000030097 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030098fi
Reid Spencera773bd52006-08-04 18:18:08 +000030099
30100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030103
30104# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030105{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030107cat >conftest.$ac_ext <<_ACEOF
30108/* confdefs.h. */
30109_ACEOF
30110cat confdefs.h >>conftest.$ac_ext
30111cat >>conftest.$ac_ext <<_ACEOF
30112/* end confdefs.h. */
30113#include <$ac_header>
30114_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030115if { (ac_try="$ac_cpp conftest.$ac_ext"
30116case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030122 ac_status=$?
30123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030127 (exit $ac_status); } >/dev/null; then
30128 if test -s conftest.err; then
30129 ac_cpp_err=$ac_c_preproc_warn_flag
30130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30131 else
30132 ac_cpp_err=
30133 fi
30134else
30135 ac_cpp_err=yes
30136fi
30137if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030138 ac_header_preproc=yes
30139else
30140 echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143 ac_header_preproc=no
30144fi
Reid Spencera773bd52006-08-04 18:18:08 +000030145
Reid Spencer59473af2004-12-25 07:31:29 +000030146rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30148echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030149
30150# So? What about this header?
30151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30152 yes:no: )
30153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30157 ac_header_preproc=yes
30158 ;;
30159 no:yes:* )
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30167echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030172 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030173## ----------------------------------- ##
30174## Report this to llvmbugs@cs.uiuc.edu ##
30175## ----------------------------------- ##
30176_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030177 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030178 ;;
30179esac
Reid Spencera773bd52006-08-04 18:18:08 +000030180{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030183 echo $ECHO_N "(cached) $ECHO_C" >&6
30184else
30185 eval "$as_ac_Header=\$ac_header_preproc"
30186fi
Reid Spencera773bd52006-08-04 18:18:08 +000030187ac_res=`eval echo '${'$as_ac_Header'}'`
30188 { echo "$as_me:$LINENO: result: $ac_res" >&5
30189echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030190
30191fi
30192if test `eval echo '${'$as_ac_Header'}'` = yes; then
30193 cat >>confdefs.h <<_ACEOF
30194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30195_ACEOF
30196
30197fi
30198
30199done
30200
30201
Douglas Gregor071d73d2009-05-18 17:21:34 +000030202
30203for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030204do
30205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30211fi
30212ac_res=`eval echo '${'$as_ac_Header'}'`
30213 { echo "$as_me:$LINENO: result: $ac_res" >&5
30214echo "${ECHO_T}$ac_res" >&6; }
30215else
30216 # Is the header compilable?
30217{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30219cat >conftest.$ac_ext <<_ACEOF
30220/* confdefs.h. */
30221_ACEOF
30222cat confdefs.h >>conftest.$ac_ext
30223cat >>conftest.$ac_ext <<_ACEOF
30224/* end confdefs.h. */
30225$ac_includes_default
30226#include <$ac_header>
30227_ACEOF
30228rm -f conftest.$ac_objext
30229if { (ac_try="$ac_compile"
30230case "(($ac_try" in
30231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232 *) ac_try_echo=$ac_try;;
30233esac
30234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30235 (eval "$ac_compile") 2>conftest.er1
30236 ac_status=$?
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030241 (exit $ac_status); } &&
30242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30243 { (case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30246esac
30247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_try") 2>&5
30249 ac_status=$?
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; } &&
30252 { ac_try='test -s conftest.$ac_objext'
30253 { (case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30256esac
30257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_try") 2>&5
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030262 ac_header_compiler=yes
30263else
30264 echo "$as_me: failed program was:" >&5
30265sed 's/^/| /' conftest.$ac_ext >&5
30266
30267 ac_header_compiler=no
30268fi
30269
30270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30271{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30272echo "${ECHO_T}$ac_header_compiler" >&6; }
30273
30274# Is the header present?
30275{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30277cat >conftest.$ac_ext <<_ACEOF
30278/* confdefs.h. */
30279_ACEOF
30280cat confdefs.h >>conftest.$ac_ext
30281cat >>conftest.$ac_ext <<_ACEOF
30282/* end confdefs.h. */
30283#include <$ac_header>
30284_ACEOF
30285if { (ac_try="$ac_cpp conftest.$ac_ext"
30286case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30292 ac_status=$?
30293 grep -v '^ *+' conftest.er1 >conftest.err
30294 rm -f conftest.er1
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030297 (exit $ac_status); } >/dev/null; then
30298 if test -s conftest.err; then
30299 ac_cpp_err=$ac_c_preproc_warn_flag
30300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30301 else
30302 ac_cpp_err=
30303 fi
30304else
30305 ac_cpp_err=yes
30306fi
30307if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030308 ac_header_preproc=yes
30309else
30310 echo "$as_me: failed program was:" >&5
30311sed 's/^/| /' conftest.$ac_ext >&5
30312
30313 ac_header_preproc=no
30314fi
30315
30316rm -f conftest.err conftest.$ac_ext
30317{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30318echo "${ECHO_T}$ac_header_preproc" >&6; }
30319
30320# So? What about this header?
30321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30322 yes:no: )
30323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30327 ac_header_preproc=yes
30328 ;;
30329 no:yes:* )
30330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30333echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30337echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30342 ( cat <<\_ASBOX
30343## ----------------------------------- ##
30344## Report this to llvmbugs@cs.uiuc.edu ##
30345## ----------------------------------- ##
30346_ASBOX
30347 ) | sed "s/^/$as_me: WARNING: /" >&2
30348 ;;
30349esac
30350{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30354else
30355 eval "$as_ac_Header=\$ac_header_preproc"
30356fi
30357ac_res=`eval echo '${'$as_ac_Header'}'`
30358 { echo "$as_me:$LINENO: result: $ac_res" >&5
30359echo "${ECHO_T}$ac_res" >&6; }
30360
30361fi
30362if test `eval echo '${'$as_ac_Header'}'` = yes; then
30363 cat >>confdefs.h <<_ACEOF
30364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30365_ACEOF
30366
30367fi
30368
30369done
Reid Spencer59473af2004-12-25 07:31:29 +000030370
30371
30372
30373
Reid Spencerbe3e4192007-08-17 05:45:26 +000030374
30375for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030376do
30377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030382 echo $ECHO_N "(cached) $ECHO_C" >&6
30383fi
Reid Spencera773bd52006-08-04 18:18:08 +000030384ac_res=`eval echo '${'$as_ac_Header'}'`
30385 { echo "$as_me:$LINENO: result: $ac_res" >&5
30386echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030387else
30388 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030391cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030392/* confdefs.h. */
30393_ACEOF
30394cat confdefs.h >>conftest.$ac_ext
30395cat >>conftest.$ac_ext <<_ACEOF
30396/* end confdefs.h. */
30397$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030398#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030399_ACEOF
30400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030401if { (ac_try="$ac_compile"
30402case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30405esac
30406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030409 grep -v '^ *+' conftest.er1 >conftest.err
30410 rm -f conftest.er1
30411 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030413 (exit $ac_status); } &&
30414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30418esac
30419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest.$ac_objext'
30425 { (case "(($ac_try" in
30426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427 *) ac_try_echo=$ac_try;;
30428esac
30429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430 (eval "$ac_try") 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030434 ac_header_compiler=yes
30435else
30436 echo "$as_me: failed program was:" >&5
30437sed 's/^/| /' conftest.$ac_ext >&5
30438
Reid Spencera773bd52006-08-04 18:18:08 +000030439 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030440fi
Reid Spencera773bd52006-08-04 18:18:08 +000030441
30442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30444echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030445
30446# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030447{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030449cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030450/* confdefs.h. */
30451_ACEOF
30452cat confdefs.h >>conftest.$ac_ext
30453cat >>conftest.$ac_ext <<_ACEOF
30454/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030457if { (ac_try="$ac_cpp conftest.$ac_ext"
30458case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030464 ac_status=$?
30465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030469 (exit $ac_status); } >/dev/null; then
30470 if test -s conftest.err; then
30471 ac_cpp_err=$ac_c_preproc_warn_flag
30472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30473 else
30474 ac_cpp_err=
30475 fi
30476else
30477 ac_cpp_err=yes
30478fi
30479if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030480 ac_header_preproc=yes
30481else
30482 echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
30485 ac_header_preproc=no
30486fi
Reid Spencera773bd52006-08-04 18:18:08 +000030487
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030488rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030489{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30490echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030491
30492# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30494 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030499 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030500 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030501 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030514 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030515## ----------------------------------- ##
30516## Report this to llvmbugs@cs.uiuc.edu ##
30517## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030518_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030519 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030520 ;;
30521esac
Reid Spencera773bd52006-08-04 18:18:08 +000030522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030527 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030528fi
Reid Spencera773bd52006-08-04 18:18:08 +000030529ac_res=`eval echo '${'$as_ac_Header'}'`
30530 { echo "$as_me:$LINENO: result: $ac_res" >&5
30531echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030532
30533fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030534if test `eval echo '${'$as_ac_Header'}'` = yes; then
30535 cat >>confdefs.h <<_ACEOF
30536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030537_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030538
30539fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030540
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030541done
30542
John Criswell7ed43ad2004-07-19 16:12:29 +000030543
Reid Spencercdb08a32006-06-05 16:11:07 +000030544
Reid Spencera6d990a2006-09-14 06:17:21 +000030545
Douglas Gregor01746742009-05-11 18:05:52 +000030546
30547for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030548do
30549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030554 echo $ECHO_N "(cached) $ECHO_C" >&6
30555fi
Reid Spencera773bd52006-08-04 18:18:08 +000030556ac_res=`eval echo '${'$as_ac_Header'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030559else
30560 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030563cat >conftest.$ac_ext <<_ACEOF
30564/* confdefs.h. */
30565_ACEOF
30566cat confdefs.h >>conftest.$ac_ext
30567cat >>conftest.$ac_ext <<_ACEOF
30568/* end confdefs.h. */
30569$ac_includes_default
30570#include <$ac_header>
30571_ACEOF
30572rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030573if { (ac_try="$ac_compile"
30574case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30577esac
30578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030580 ac_status=$?
30581 grep -v '^ *+' conftest.er1 >conftest.err
30582 rm -f conftest.er1
30583 cat conftest.err >&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030585 (exit $ac_status); } &&
30586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30587 { (case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30590esac
30591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_try") 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; } &&
30596 { ac_try='test -s conftest.$ac_objext'
30597 { (case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600esac
30601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_try") 2>&5
30603 ac_status=$?
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030606 ac_header_compiler=yes
30607else
30608 echo "$as_me: failed program was:" >&5
30609sed 's/^/| /' conftest.$ac_ext >&5
30610
Reid Spencera773bd52006-08-04 18:18:08 +000030611 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030612fi
Reid Spencera773bd52006-08-04 18:18:08 +000030613
30614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30616echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030617
30618# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030621cat >conftest.$ac_ext <<_ACEOF
30622/* confdefs.h. */
30623_ACEOF
30624cat confdefs.h >>conftest.$ac_ext
30625cat >>conftest.$ac_ext <<_ACEOF
30626/* end confdefs.h. */
30627#include <$ac_header>
30628_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030629if { (ac_try="$ac_cpp conftest.$ac_ext"
30630case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030636 ac_status=$?
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030641 (exit $ac_status); } >/dev/null; then
30642 if test -s conftest.err; then
30643 ac_cpp_err=$ac_c_preproc_warn_flag
30644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30645 else
30646 ac_cpp_err=
30647 fi
30648else
30649 ac_cpp_err=yes
30650fi
30651if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030652 ac_header_preproc=yes
30653else
30654 echo "$as_me: failed program was:" >&5
30655sed 's/^/| /' conftest.$ac_ext >&5
30656
30657 ac_header_preproc=no
30658fi
Reid Spencera773bd52006-08-04 18:18:08 +000030659
Chris Lattner0b142592005-11-14 06:57:34 +000030660rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30662echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030663
30664# So? What about this header?
30665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30666 yes:no: )
30667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30671 ac_header_preproc=yes
30672 ;;
30673 no:yes:* )
30674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030686 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030687## ----------------------------------- ##
30688## Report this to llvmbugs@cs.uiuc.edu ##
30689## ----------------------------------- ##
30690_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030691 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030692 ;;
30693esac
Reid Spencera773bd52006-08-04 18:18:08 +000030694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030697 echo $ECHO_N "(cached) $ECHO_C" >&6
30698else
30699 eval "$as_ac_Header=\$ac_header_preproc"
30700fi
Reid Spencera773bd52006-08-04 18:18:08 +000030701ac_res=`eval echo '${'$as_ac_Header'}'`
30702 { echo "$as_me:$LINENO: result: $ac_res" >&5
30703echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030704
30705fi
30706if test `eval echo '${'$as_ac_Header'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30709_ACEOF
30710
30711fi
30712
30713done
30714
Reid Spencer0a262ba2005-08-24 10:07:20 +000030715if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030716
30717for ac_header in pthread.h
30718do
30719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030726ac_res=`eval echo '${'$as_ac_Header'}'`
30727 { echo "$as_me:$LINENO: result: $ac_res" >&5
30728echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030729else
30730 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030731{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030733cat >conftest.$ac_ext <<_ACEOF
30734/* confdefs.h. */
30735_ACEOF
30736cat confdefs.h >>conftest.$ac_ext
30737cat >>conftest.$ac_ext <<_ACEOF
30738/* end confdefs.h. */
30739$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030740#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030741_ACEOF
30742rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030743if { (ac_try="$ac_compile"
30744case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30747esac
30748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030750 ac_status=$?
30751 grep -v '^ *+' conftest.er1 >conftest.err
30752 rm -f conftest.er1
30753 cat conftest.err >&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030755 (exit $ac_status); } &&
30756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30757 { (case "(($ac_try" in
30758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759 *) ac_try_echo=$ac_try;;
30760esac
30761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762 (eval "$ac_try") 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest.$ac_objext'
30767 { (case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30770esac
30771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_try") 2>&5
30773 ac_status=$?
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030776 ac_header_compiler=yes
30777else
30778 echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
Reid Spencera773bd52006-08-04 18:18:08 +000030781 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030782fi
Reid Spencera773bd52006-08-04 18:18:08 +000030783
30784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30786echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030787
30788# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030789{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030791cat >conftest.$ac_ext <<_ACEOF
30792/* confdefs.h. */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030797#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030798_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030799if { (ac_try="$ac_cpp conftest.$ac_ext"
30800case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803esac
30804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030811 (exit $ac_status); } >/dev/null; then
30812 if test -s conftest.err; then
30813 ac_cpp_err=$ac_c_preproc_warn_flag
30814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30815 else
30816 ac_cpp_err=
30817 fi
30818else
30819 ac_cpp_err=yes
30820fi
30821if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030822 ac_header_preproc=yes
30823else
30824 echo "$as_me: failed program was:" >&5
30825sed 's/^/| /' conftest.$ac_ext >&5
30826
30827 ac_header_preproc=no
30828fi
Reid Spencera773bd52006-08-04 18:18:08 +000030829
Reid Spencer0a262ba2005-08-24 10:07:20 +000030830rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30832echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030833
30834# So? What about this header?
30835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30836 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030841 ac_header_preproc=yes
30842 ;;
30843 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030856 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030857## ----------------------------------- ##
30858## Report this to llvmbugs@cs.uiuc.edu ##
30859## ----------------------------------- ##
30860_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030861 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030862 ;;
30863esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030867 echo $ECHO_N "(cached) $ECHO_C" >&6
30868else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030869 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030870fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030871ac_res=`eval echo '${'$as_ac_Header'}'`
30872 { echo "$as_me:$LINENO: result: $ac_res" >&5
30873echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030874
30875fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030876if test `eval echo '${'$as_ac_Header'}'` = yes; then
30877 cat >>confdefs.h <<_ACEOF
30878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30879_ACEOF
30880 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030881
30882else
30883 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030884
30885fi
30886
Reid Spencerbe3e4192007-08-17 05:45:26 +000030887done
Reid Spencer1000b732006-12-01 00:37:14 +000030888
30889else
30890 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030891
30892fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030893
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030894if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030895
30896
30897for ac_header in ffi.h ffi/ffi.h
30898do
30899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905fi
30906ac_res=`eval echo '${'$as_ac_Header'}'`
30907 { echo "$as_me:$LINENO: result: $ac_res" >&5
30908echo "${ECHO_T}$ac_res" >&6; }
30909else
30910 # Is the header compilable?
30911{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30913cat >conftest.$ac_ext <<_ACEOF
30914/* confdefs.h. */
30915_ACEOF
30916cat confdefs.h >>conftest.$ac_ext
30917cat >>conftest.$ac_ext <<_ACEOF
30918/* end confdefs.h. */
30919$ac_includes_default
30920#include <$ac_header>
30921_ACEOF
30922rm -f conftest.$ac_objext
30923if { (ac_try="$ac_compile"
30924case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30927esac
30928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_compile") 2>conftest.er1
30930 ac_status=$?
30931 grep -v '^ *+' conftest.er1 >conftest.err
30932 rm -f conftest.er1
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937 { (case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30940esac
30941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_try") 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest.$ac_objext'
30947 { (case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950esac
30951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_try") 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030956 ac_header_compiler=yes
30957else
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961 ac_header_compiler=no
30962fi
30963
30964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30965{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30966echo "${ECHO_T}$ac_header_compiler" >&6; }
30967
30968# Is the header present?
30969{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30971cat >conftest.$ac_ext <<_ACEOF
30972/* confdefs.h. */
30973_ACEOF
30974cat confdefs.h >>conftest.$ac_ext
30975cat >>conftest.$ac_ext <<_ACEOF
30976/* end confdefs.h. */
30977#include <$ac_header>
30978_ACEOF
30979if { (ac_try="$ac_cpp conftest.$ac_ext"
30980case "(($ac_try" in
30981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982 *) ac_try_echo=$ac_try;;
30983esac
30984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30986 ac_status=$?
30987 grep -v '^ *+' conftest.er1 >conftest.err
30988 rm -f conftest.er1
30989 cat conftest.err >&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030991 (exit $ac_status); } >/dev/null; then
30992 if test -s conftest.err; then
30993 ac_cpp_err=$ac_c_preproc_warn_flag
30994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30995 else
30996 ac_cpp_err=
30997 fi
30998else
30999 ac_cpp_err=yes
31000fi
31001if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031002 ac_header_preproc=yes
31003else
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007 ac_header_preproc=no
31008fi
31009
31010rm -f conftest.err conftest.$ac_ext
31011{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31012echo "${ECHO_T}$ac_header_preproc" >&6; }
31013
31014# So? What about this header?
31015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31016 yes:no: )
31017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31020echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31021 ac_header_preproc=yes
31022 ;;
31023 no:yes:* )
31024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31027echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31029echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31031echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31035echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31036 ( cat <<\_ASBOX
31037## ----------------------------------- ##
31038## Report this to llvmbugs@cs.uiuc.edu ##
31039## ----------------------------------- ##
31040_ASBOX
31041 ) | sed "s/^/$as_me: WARNING: /" >&2
31042 ;;
31043esac
31044{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31047 echo $ECHO_N "(cached) $ECHO_C" >&6
31048else
31049 eval "$as_ac_Header=\$ac_header_preproc"
31050fi
31051ac_res=`eval echo '${'$as_ac_Header'}'`
31052 { echo "$as_me:$LINENO: result: $ac_res" >&5
31053echo "${ECHO_T}$ac_res" >&6; }
31054
31055fi
31056if test `eval echo '${'$as_ac_Header'}'` = yes; then
31057 cat >>confdefs.h <<_ACEOF
31058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31059_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031060
31061fi
31062
31063done
31064
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031065fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031066
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031067
Reid Spencer8085cff2005-01-16 02:58:39 +000031068
Reid Spencerb2ed05262006-11-03 18:04:08 +000031069 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31070echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31071if test "${ac_cv_huge_val_sanity+set}" = set; then
31072 echo $ECHO_N "(cached) $ECHO_C" >&6
31073else
31074
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031075 ac_ext=cpp
31076ac_cpp='$CXXCPP $CPPFLAGS'
31077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031080
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031081 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031082 if test "$cross_compiling" = yes; then
31083 ac_cv_huge_val_sanity=yes
31084else
31085 cat >conftest.$ac_ext <<_ACEOF
31086/* confdefs.h. */
31087_ACEOF
31088cat confdefs.h >>conftest.$ac_ext
31089cat >>conftest.$ac_ext <<_ACEOF
31090/* end confdefs.h. */
31091#include <math.h>
31092int
31093main ()
31094{
31095double x = HUGE_VAL; return x != x;
31096 ;
31097 return 0;
31098}
31099_ACEOF
31100rm -f conftest$ac_exeext
31101if { (ac_try="$ac_link"
31102case "(($ac_try" in
31103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31104 *) ac_try_echo=$ac_try;;
31105esac
31106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31107 (eval "$ac_link") 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31111 { (case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31114esac
31115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_try") 2>&5
31117 ac_status=$?
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 ac_cv_huge_val_sanity=yes
31121else
31122 echo "$as_me: program exited with status $ac_status" >&5
31123echo "$as_me: failed program was:" >&5
31124sed 's/^/| /' conftest.$ac_ext >&5
31125
31126( exit $ac_status )
31127ac_cv_huge_val_sanity=no
31128fi
31129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31130fi
31131
31132
31133 ac_ext=c
31134ac_cpp='$CPP $CPPFLAGS'
31135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31137ac_compiler_gnu=$ac_cv_c_compiler_gnu
31138
31139
31140fi
31141{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31142echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31143 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31144
31145
Reid Spencera773bd52006-08-04 18:18:08 +000031146{ echo "$as_me:$LINENO: checking for pid_t" >&5
31147echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031148if test "${ac_cv_type_pid_t+set}" = set; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150else
31151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031152/* confdefs.h. */
31153_ACEOF
31154cat confdefs.h >>conftest.$ac_ext
31155cat >>conftest.$ac_ext <<_ACEOF
31156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031157$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031158typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031159int
31160main ()
31161{
Reid Spencera773bd52006-08-04 18:18:08 +000031162if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031163 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031164if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031165 return 0;
31166 ;
31167 return 0;
31168}
31169_ACEOF
31170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031171if { (ac_try="$ac_compile"
31172case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31175esac
31176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031179 grep -v '^ *+' conftest.er1 >conftest.err
31180 rm -f conftest.er1
31181 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031183 (exit $ac_status); } &&
31184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31188esac
31189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } &&
31194 { ac_try='test -s conftest.$ac_objext'
31195 { (case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31198esac
31199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_try") 2>&5
31201 ac_status=$?
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031204 ac_cv_type_pid_t=yes
31205else
31206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031207sed 's/^/| /' conftest.$ac_ext >&5
31208
Reid Spencera773bd52006-08-04 18:18:08 +000031209 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031210fi
Reid Spencera773bd52006-08-04 18:18:08 +000031211
31212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031213fi
Reid Spencera773bd52006-08-04 18:18:08 +000031214{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31215echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031216if test $ac_cv_type_pid_t = yes; then
31217 :
31218else
31219
31220cat >>confdefs.h <<_ACEOF
31221#define pid_t int
31222_ACEOF
31223
31224fi
31225
Reid Spencera773bd52006-08-04 18:18:08 +000031226{ echo "$as_me:$LINENO: checking for size_t" >&5
31227echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031228if test "${ac_cv_type_size_t+set}" = set; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31230else
31231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031232/* confdefs.h. */
31233_ACEOF
31234cat confdefs.h >>conftest.$ac_ext
31235cat >>conftest.$ac_ext <<_ACEOF
31236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031237$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031238typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031239int
31240main ()
31241{
Reid Spencera773bd52006-08-04 18:18:08 +000031242if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031243 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031244if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031245 return 0;
31246 ;
31247 return 0;
31248}
31249_ACEOF
31250rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031251if { (ac_try="$ac_compile"
31252case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31255esac
31256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031259 grep -v '^ *+' conftest.er1 >conftest.err
31260 rm -f conftest.er1
31261 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265 { (case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31268esac
31269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_try") 2>&5
31271 ac_status=$?
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest.$ac_objext'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31278esac
31279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031284 ac_cv_type_size_t=yes
31285else
31286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031287sed 's/^/| /' conftest.$ac_ext >&5
31288
Reid Spencera773bd52006-08-04 18:18:08 +000031289 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031290fi
Reid Spencera773bd52006-08-04 18:18:08 +000031291
31292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031293fi
Reid Spencera773bd52006-08-04 18:18:08 +000031294{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31295echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031296if test $ac_cv_type_size_t = yes; then
31297 :
31298else
31299
31300cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031301#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031302_ACEOF
31303
31304fi
31305
Reid Spencera773bd52006-08-04 18:18:08 +000031306{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31307echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031308if test "${ac_cv_type_signal+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31310else
31311 cat >conftest.$ac_ext <<_ACEOF
31312/* confdefs.h. */
31313_ACEOF
31314cat confdefs.h >>conftest.$ac_ext
31315cat >>conftest.$ac_ext <<_ACEOF
31316/* end confdefs.h. */
31317#include <sys/types.h>
31318#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031319
31320int
31321main ()
31322{
Reid Spencera773bd52006-08-04 18:18:08 +000031323return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031324 ;
31325 return 0;
31326}
31327_ACEOF
31328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031329if { (ac_try="$ac_compile"
31330case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31333esac
31334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031336 ac_status=$?
31337 grep -v '^ *+' conftest.er1 >conftest.err
31338 rm -f conftest.er1
31339 cat conftest.err >&5
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031341 (exit $ac_status); } &&
31342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31343 { (case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31346esac
31347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_try") 2>&5
31349 ac_status=$?
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; } &&
31352 { ac_try='test -s conftest.$ac_objext'
31353 { (case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_try") 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031362 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
Reid Spencera773bd52006-08-04 18:18:08 +000031367 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031368fi
Reid Spencera773bd52006-08-04 18:18:08 +000031369
31370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031371fi
Reid Spencera773bd52006-08-04 18:18:08 +000031372{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31373echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031374
31375cat >>confdefs.h <<_ACEOF
31376#define RETSIGTYPE $ac_cv_type_signal
31377_ACEOF
31378
31379
Reid Spencera773bd52006-08-04 18:18:08 +000031380{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31381echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382if test "${ac_cv_struct_tm+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385 cat >conftest.$ac_ext <<_ACEOF
31386/* confdefs.h. */
31387_ACEOF
31388cat confdefs.h >>conftest.$ac_ext
31389cat >>conftest.$ac_ext <<_ACEOF
31390/* end confdefs.h. */
31391#include <sys/types.h>
31392#include <time.h>
31393
31394int
31395main ()
31396{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031397struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031398 ;
31399 return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031403if { (ac_try="$ac_compile"
31404case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407esac
31408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031410 ac_status=$?
31411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031415 (exit $ac_status); } &&
31416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
31423 ac_status=$?
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31430esac
31431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031436 ac_cv_struct_tm=time.h
31437else
31438 echo "$as_me: failed program was:" >&5
31439sed 's/^/| /' conftest.$ac_ext >&5
31440
Reid Spencera773bd52006-08-04 18:18:08 +000031441 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031442fi
Reid Spencera773bd52006-08-04 18:18:08 +000031443
31444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031445fi
Reid Spencera773bd52006-08-04 18:18:08 +000031446{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31447echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448if test $ac_cv_struct_tm = sys/time.h; then
31449
31450cat >>confdefs.h <<\_ACEOF
31451#define TM_IN_SYS_TIME 1
31452_ACEOF
31453
31454fi
31455
Reid Spencera773bd52006-08-04 18:18:08 +000031456{ echo "$as_me:$LINENO: checking for int64_t" >&5
31457echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031458if test "${ac_cv_type_int64_t+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31460else
31461 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031462/* confdefs.h. */
31463_ACEOF
31464cat confdefs.h >>conftest.$ac_ext
31465cat >>conftest.$ac_ext <<_ACEOF
31466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031467$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031468typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031469int
31470main ()
31471{
Reid Spencera773bd52006-08-04 18:18:08 +000031472if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031473 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031474if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031475 return 0;
31476 ;
31477 return 0;
31478}
31479_ACEOF
31480rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031481if { (ac_try="$ac_compile"
31482case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031488 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031489 grep -v '^ *+' conftest.er1 >conftest.err
31490 rm -f conftest.er1
31491 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031493 (exit $ac_status); } &&
31494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31495 { (case "(($ac_try" in
31496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31497 *) ac_try_echo=$ac_try;;
31498esac
31499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31500 (eval "$ac_try") 2>&5
31501 ac_status=$?
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); }; } &&
31504 { ac_try='test -s conftest.$ac_objext'
31505 { (case "(($ac_try" in
31506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31507 *) ac_try_echo=$ac_try;;
31508esac
31509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31510 (eval "$ac_try") 2>&5
31511 ac_status=$?
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031514 ac_cv_type_int64_t=yes
31515else
31516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031517sed 's/^/| /' conftest.$ac_ext >&5
31518
Reid Spencera773bd52006-08-04 18:18:08 +000031519 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031520fi
Reid Spencera773bd52006-08-04 18:18:08 +000031521
31522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031523fi
Reid Spencera773bd52006-08-04 18:18:08 +000031524{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31525echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031526if test $ac_cv_type_int64_t = yes; then
31527
31528cat >>confdefs.h <<_ACEOF
31529#define HAVE_INT64_T 1
31530_ACEOF
31531
31532
31533else
31534 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31535echo "$as_me: error: Type int64_t required but not found" >&2;}
31536 { (exit 1); exit 1; }; }
31537fi
31538
Reid Spencera773bd52006-08-04 18:18:08 +000031539{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31540echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031541if test "${ac_cv_type_uint64_t+set}" = set; then
31542 echo $ECHO_N "(cached) $ECHO_C" >&6
31543else
31544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031545/* confdefs.h. */
31546_ACEOF
31547cat confdefs.h >>conftest.$ac_ext
31548cat >>conftest.$ac_ext <<_ACEOF
31549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031550$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031551typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031552int
31553main ()
31554{
Reid Spencera773bd52006-08-04 18:18:08 +000031555if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031556 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031557if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031558 return 0;
31559 ;
31560 return 0;
31561}
31562_ACEOF
31563rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031564if { (ac_try="$ac_compile"
31565case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31568esac
31569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031572 grep -v '^ *+' conftest.er1 >conftest.err
31573 rm -f conftest.er1
31574 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031576 (exit $ac_status); } &&
31577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31581esac
31582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest.$ac_objext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31591esac
31592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31594 ac_status=$?
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031597 ac_cv_type_uint64_t=yes
31598else
31599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031600sed 's/^/| /' conftest.$ac_ext >&5
31601
Reid Spencera773bd52006-08-04 18:18:08 +000031602 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031603fi
Reid Spencera773bd52006-08-04 18:18:08 +000031604
31605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031606fi
Reid Spencera773bd52006-08-04 18:18:08 +000031607{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31608echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031609if test $ac_cv_type_uint64_t = yes; then
31610
31611cat >>confdefs.h <<_ACEOF
31612#define HAVE_UINT64_T 1
31613_ACEOF
31614
31615
31616else
Reid Spencera773bd52006-08-04 18:18:08 +000031617 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31618echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031619if test "${ac_cv_type_u_int64_t+set}" = set; then
31620 echo $ECHO_N "(cached) $ECHO_C" >&6
31621else
31622 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031623/* confdefs.h. */
31624_ACEOF
31625cat confdefs.h >>conftest.$ac_ext
31626cat >>conftest.$ac_ext <<_ACEOF
31627/* end confdefs.h. */
31628$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031629typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031630int
31631main ()
31632{
Reid Spencera773bd52006-08-04 18:18:08 +000031633if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031634 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031635if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031636 return 0;
31637 ;
31638 return 0;
31639}
31640_ACEOF
31641rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031642if { (ac_try="$ac_compile"
31643case "(($ac_try" in
31644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645 *) ac_try_echo=$ac_try;;
31646esac
31647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650 grep -v '^ *+' conftest.er1 >conftest.err
31651 rm -f conftest.er1
31652 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031654 (exit $ac_status); } &&
31655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31656 { (case "(($ac_try" in
31657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31658 *) ac_try_echo=$ac_try;;
31659esac
31660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31661 (eval "$ac_try") 2>&5
31662 ac_status=$?
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; } &&
31665 { ac_try='test -s conftest.$ac_objext'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31669esac
31670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031675 ac_cv_type_u_int64_t=yes
31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
Reid Spencera773bd52006-08-04 18:18:08 +000031680 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031681fi
Reid Spencera773bd52006-08-04 18:18:08 +000031682
31683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031684fi
Reid Spencera773bd52006-08-04 18:18:08 +000031685{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31686echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031687if test $ac_cv_type_u_int64_t = yes; then
31688
31689cat >>confdefs.h <<_ACEOF
31690#define HAVE_U_INT64_T 1
31691_ACEOF
31692
31693
Misha Brukmanceca9042004-09-02 23:02:30 +000031694else
31695 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31696echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31697 { (exit 1); exit 1; }; }
31698fi
31699
John Criswell679ff312004-09-02 18:44:44 +000031700fi
31701
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702
31703
31704
31705
31706
31707
31708
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031709
31710
Reid Spencerdf3be822006-01-23 08:15:53 +000031711for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031712do
31713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031714{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31716if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031717 echo $ECHO_N "(cached) $ECHO_C" >&6
31718else
31719 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031720/* confdefs.h. */
31721_ACEOF
31722cat confdefs.h >>conftest.$ac_ext
31723cat >>conftest.$ac_ext <<_ACEOF
31724/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31727#define $ac_func innocuous_$ac_func
31728
31729/* System header to define __stub macros and hopefully few prototypes,
31730 which can conflict with char $ac_func (); below.
31731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31732 <limits.h> exists even on freestanding compilers. */
31733
31734#ifdef __STDC__
31735# include <limits.h>
31736#else
31737# include <assert.h>
31738#endif
31739
31740#undef $ac_func
31741
Reid Spencera773bd52006-08-04 18:18:08 +000031742/* Override any GCC internal prototype to avoid an error.
31743 Use char because int might match the return type of a GCC
31744 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745#ifdef __cplusplus
31746extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031747#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748char $ac_func ();
31749/* The GNU C library defines this for functions which it implements
31750 to always fail with ENOSYS. Some functions are actually named
31751 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031752#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031754#endif
John Criswell7a73b802003-06-30 21:59:07 +000031755
John Criswell7a73b802003-06-30 21:59:07 +000031756int
31757main ()
31758{
Reid Spencera773bd52006-08-04 18:18:08 +000031759return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031760 ;
31761 return 0;
31762}
31763_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031764rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031765if { (ac_try="$ac_link"
31766case "(($ac_try" in
31767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768 *) ac_try_echo=$ac_try;;
31769esac
31770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031772 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031773 grep -v '^ *+' conftest.er1 >conftest.err
31774 rm -f conftest.er1
31775 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031777 (exit $ac_status); } &&
31778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31779 { (case "(($ac_try" in
31780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31781 *) ac_try_echo=$ac_try;;
31782esac
31783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31784 (eval "$ac_try") 2>&5
31785 ac_status=$?
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); }; } &&
31788 { ac_try='test -s conftest$ac_exeext'
31789 { (case "(($ac_try" in
31790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791 *) ac_try_echo=$ac_try;;
31792esac
31793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794 (eval "$ac_try") 2>&5
31795 ac_status=$?
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031798 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031799else
31800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031801sed 's/^/| /' conftest.$ac_ext >&5
31802
Reid Spencera773bd52006-08-04 18:18:08 +000031803 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031804fi
Reid Spencera773bd52006-08-04 18:18:08 +000031805
Bill Wendlingebcceee2009-04-18 11:20:33 +000031806rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031807 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031808fi
Reid Spencera773bd52006-08-04 18:18:08 +000031809ac_res=`eval echo '${'$as_ac_var'}'`
31810 { echo "$as_me:$LINENO: result: $ac_res" >&5
31811echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031812if test `eval echo '${'$as_ac_var'}'` = yes; then
31813 cat >>confdefs.h <<_ACEOF
31814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031815_ACEOF
31816
31817fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031818done
John Criswell7a73b802003-06-30 21:59:07 +000031819
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031820
31821
31822
Reid Spencer6af3d262004-12-15 04:01:48 +000031823
Reid Spencer96cf5872007-07-13 10:05:30 +000031824for ac_func in powf fmodf strtof round
31825do
31826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31830 echo $ECHO_N "(cached) $ECHO_C" >&6
31831else
31832 cat >conftest.$ac_ext <<_ACEOF
31833/* confdefs.h. */
31834_ACEOF
31835cat confdefs.h >>conftest.$ac_ext
31836cat >>conftest.$ac_ext <<_ACEOF
31837/* end confdefs.h. */
31838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31840#define $ac_func innocuous_$ac_func
31841
31842/* System header to define __stub macros and hopefully few prototypes,
31843 which can conflict with char $ac_func (); below.
31844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31845 <limits.h> exists even on freestanding compilers. */
31846
31847#ifdef __STDC__
31848# include <limits.h>
31849#else
31850# include <assert.h>
31851#endif
31852
31853#undef $ac_func
31854
31855/* Override any GCC internal prototype to avoid an error.
31856 Use char because int might match the return type of a GCC
31857 builtin and then its argument prototype would still apply. */
31858#ifdef __cplusplus
31859extern "C"
31860#endif
31861char $ac_func ();
31862/* The GNU C library defines this for functions which it implements
31863 to always fail with ENOSYS. Some functions are actually named
31864 something starting with __ and the normal name is an alias. */
31865#if defined __stub_$ac_func || defined __stub___$ac_func
31866choke me
31867#endif
31868
31869int
31870main ()
31871{
31872return $ac_func ();
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext conftest$ac_exeext
31878if { (ac_try="$ac_link"
31879case "(($ac_try" in
31880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31882esac
31883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_link") 2>conftest.er1
31885 ac_status=$?
31886 grep -v '^ *+' conftest.er1 >conftest.err
31887 rm -f conftest.er1
31888 cat conftest.err >&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031890 (exit $ac_status); } &&
31891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31895esac
31896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; } &&
31901 { ac_try='test -s conftest$ac_exeext'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31905esac
31906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031911 eval "$as_ac_var=yes"
31912else
31913 echo "$as_me: failed program was:" >&5
31914sed 's/^/| /' conftest.$ac_ext >&5
31915
31916 eval "$as_ac_var=no"
31917fi
31918
Bill Wendlingebcceee2009-04-18 11:20:33 +000031919rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031920 conftest$ac_exeext conftest.$ac_ext
31921fi
31922ac_res=`eval echo '${'$as_ac_var'}'`
31923 { echo "$as_me:$LINENO: result: $ac_res" >&5
31924echo "${ECHO_T}$ac_res" >&6; }
31925if test `eval echo '${'$as_ac_var'}'` = yes; then
31926 cat >>confdefs.h <<_ACEOF
31927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31928_ACEOF
31929
31930fi
31931done
31932
31933
31934
31935
31936
Reid Spencer6af3d262004-12-15 04:01:48 +000031937
Reid Spencerb90645c2007-02-16 19:17:20 +000031938for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31939do
31940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31945else
31946 cat >conftest.$ac_ext <<_ACEOF
31947/* confdefs.h. */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h. */
31952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31954#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031955
Reid Spencerb90645c2007-02-16 19:17:20 +000031956/* System header to define __stub macros and hopefully few prototypes,
31957 which can conflict with char $ac_func (); below.
31958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31959 <limits.h> exists even on freestanding compilers. */
31960
31961#ifdef __STDC__
31962# include <limits.h>
31963#else
31964# include <assert.h>
31965#endif
31966
31967#undef $ac_func
31968
31969/* Override any GCC internal prototype to avoid an error.
31970 Use char because int might match the return type of a GCC
31971 builtin and then its argument prototype would still apply. */
31972#ifdef __cplusplus
31973extern "C"
31974#endif
31975char $ac_func ();
31976/* The GNU C library defines this for functions which it implements
31977 to always fail with ENOSYS. Some functions are actually named
31978 something starting with __ and the normal name is an alias. */
31979#if defined __stub_$ac_func || defined __stub___$ac_func
31980choke me
31981#endif
31982
31983int
31984main ()
31985{
31986return $ac_func ();
31987 ;
31988 return 0;
31989}
31990_ACEOF
31991rm -f conftest.$ac_objext conftest$ac_exeext
31992if { (ac_try="$ac_link"
31993case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31996esac
31997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_link") 2>conftest.er1
31999 ac_status=$?
32000 grep -v '^ *+' conftest.er1 >conftest.err
32001 rm -f conftest.er1
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32009esac
32010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32012 ac_status=$?
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; } &&
32015 { ac_try='test -s conftest$ac_exeext'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32019esac
32020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
32022 ac_status=$?
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032025 eval "$as_ac_var=yes"
32026else
32027 echo "$as_me: failed program was:" >&5
32028sed 's/^/| /' conftest.$ac_ext >&5
32029
32030 eval "$as_ac_var=no"
32031fi
32032
Bill Wendlingebcceee2009-04-18 11:20:33 +000032033rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032034 conftest$ac_exeext conftest.$ac_ext
32035fi
32036ac_res=`eval echo '${'$as_ac_var'}'`
32037 { echo "$as_me:$LINENO: result: $ac_res" >&5
32038echo "${ECHO_T}$ac_res" >&6; }
32039if test `eval echo '${'$as_ac_var'}'` = yes; then
32040 cat >>confdefs.h <<_ACEOF
32041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32042_ACEOF
32043
32044fi
32045done
32046
32047
32048
32049
32050for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032051do
32052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032053{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032056 echo $ECHO_N "(cached) $ECHO_C" >&6
32057else
32058 cat >conftest.$ac_ext <<_ACEOF
32059/* confdefs.h. */
32060_ACEOF
32061cat confdefs.h >>conftest.$ac_ext
32062cat >>conftest.$ac_ext <<_ACEOF
32063/* end confdefs.h. */
32064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32066#define $ac_func innocuous_$ac_func
32067
32068/* System header to define __stub macros and hopefully few prototypes,
32069 which can conflict with char $ac_func (); below.
32070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32071 <limits.h> exists even on freestanding compilers. */
32072
32073#ifdef __STDC__
32074# include <limits.h>
32075#else
32076# include <assert.h>
32077#endif
32078
32079#undef $ac_func
32080
Reid Spencera773bd52006-08-04 18:18:08 +000032081/* Override any GCC internal prototype to avoid an error.
32082 Use char because int might match the return type of a GCC
32083 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032084#ifdef __cplusplus
32085extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032086#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032087char $ac_func ();
32088/* The GNU C library defines this for functions which it implements
32089 to always fail with ENOSYS. Some functions are actually named
32090 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032091#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032092choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032093#endif
32094
32095int
32096main ()
32097{
Reid Spencera773bd52006-08-04 18:18:08 +000032098return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032099 ;
32100 return 0;
32101}
32102_ACEOF
32103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032104if { (ac_try="$ac_link"
32105case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32108esac
32109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032111 ac_status=$?
32112 grep -v '^ *+' conftest.er1 >conftest.err
32113 rm -f conftest.er1
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032116 (exit $ac_status); } &&
32117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32118 { (case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32121esac
32122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_try") 2>&5
32124 ac_status=$?
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; } &&
32127 { ac_try='test -s conftest$ac_exeext'
32128 { (case "(($ac_try" in
32129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130 *) ac_try_echo=$ac_try;;
32131esac
32132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133 (eval "$ac_try") 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032137 eval "$as_ac_var=yes"
32138else
32139 echo "$as_me: failed program was:" >&5
32140sed 's/^/| /' conftest.$ac_ext >&5
32141
Reid Spencera773bd52006-08-04 18:18:08 +000032142 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032143fi
Reid Spencera773bd52006-08-04 18:18:08 +000032144
Bill Wendlingebcceee2009-04-18 11:20:33 +000032145rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032146 conftest$ac_exeext conftest.$ac_ext
32147fi
Reid Spencera773bd52006-08-04 18:18:08 +000032148ac_res=`eval echo '${'$as_ac_var'}'`
32149 { echo "$as_me:$LINENO: result: $ac_res" >&5
32150echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032151if test `eval echo '${'$as_ac_var'}'` = yes; then
32152 cat >>confdefs.h <<_ACEOF
32153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32154_ACEOF
32155
32156fi
32157done
32158
32159
32160
32161
32162
32163
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032164for ac_func in mktemp realpath sbrk setrlimit strdup
32165do
32166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32171else
32172 cat >conftest.$ac_ext <<_ACEOF
32173/* confdefs.h. */
32174_ACEOF
32175cat confdefs.h >>conftest.$ac_ext
32176cat >>conftest.$ac_ext <<_ACEOF
32177/* end confdefs.h. */
32178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32180#define $ac_func innocuous_$ac_func
32181
32182/* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
32186
32187#ifdef __STDC__
32188# include <limits.h>
32189#else
32190# include <assert.h>
32191#endif
32192
32193#undef $ac_func
32194
32195/* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32198#ifdef __cplusplus
32199extern "C"
32200#endif
32201char $ac_func ();
32202/* The GNU C library defines this for functions which it implements
32203 to always fail with ENOSYS. Some functions are actually named
32204 something starting with __ and the normal name is an alias. */
32205#if defined __stub_$ac_func || defined __stub___$ac_func
32206choke me
32207#endif
32208
32209int
32210main ()
32211{
32212return $ac_func ();
32213 ;
32214 return 0;
32215}
32216_ACEOF
32217rm -f conftest.$ac_objext conftest$ac_exeext
32218if { (ac_try="$ac_link"
32219case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32222esac
32223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_link") 2>conftest.er1
32225 ac_status=$?
32226 grep -v '^ *+' conftest.er1 >conftest.err
32227 rm -f conftest.er1
32228 cat conftest.err >&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32232 { (case "(($ac_try" in
32233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234 *) ac_try_echo=$ac_try;;
32235esac
32236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32237 (eval "$ac_try") 2>&5
32238 ac_status=$?
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; } &&
32241 { ac_try='test -s conftest$ac_exeext'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32245esac
32246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32248 ac_status=$?
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; }; then
32251 eval "$as_ac_var=yes"
32252else
32253 echo "$as_me: failed program was:" >&5
32254sed 's/^/| /' conftest.$ac_ext >&5
32255
32256 eval "$as_ac_var=no"
32257fi
32258
32259rm -f core conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
32261fi
32262ac_res=`eval echo '${'$as_ac_var'}'`
32263 { echo "$as_me:$LINENO: result: $ac_res" >&5
32264echo "${ECHO_T}$ac_res" >&6; }
32265if test `eval echo '${'$as_ac_var'}'` = yes; then
32266 cat >>confdefs.h <<_ACEOF
32267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32268_ACEOF
32269
32270fi
32271done
Reid Spencerdf3be822006-01-23 08:15:53 +000032272
32273
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032274
32275
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032276
32277for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032278do
32279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032283 echo $ECHO_N "(cached) $ECHO_C" >&6
32284else
32285 cat >conftest.$ac_ext <<_ACEOF
32286/* confdefs.h. */
32287_ACEOF
32288cat confdefs.h >>conftest.$ac_ext
32289cat >>conftest.$ac_ext <<_ACEOF
32290/* end confdefs.h. */
32291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32293#define $ac_func innocuous_$ac_func
32294
32295/* System header to define __stub macros and hopefully few prototypes,
32296 which can conflict with char $ac_func (); below.
32297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32298 <limits.h> exists even on freestanding compilers. */
32299
32300#ifdef __STDC__
32301# include <limits.h>
32302#else
32303# include <assert.h>
32304#endif
32305
32306#undef $ac_func
32307
Reid Spencera773bd52006-08-04 18:18:08 +000032308/* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032311#ifdef __cplusplus
32312extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032313#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032314char $ac_func ();
32315/* The GNU C library defines this for functions which it implements
32316 to always fail with ENOSYS. Some functions are actually named
32317 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032318#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032319choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032320#endif
32321
32322int
32323main ()
32324{
Reid Spencera773bd52006-08-04 18:18:08 +000032325return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032326 ;
32327 return 0;
32328}
32329_ACEOF
32330rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032331if { (ac_try="$ac_link"
32332case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32335esac
32336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032338 ac_status=$?
32339 grep -v '^ *+' conftest.er1 >conftest.err
32340 rm -f conftest.er1
32341 cat conftest.err >&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32345 { (case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_try") 2>&5
32351 ac_status=$?
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest$ac_exeext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32358esac
32359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032364 eval "$as_ac_var=yes"
32365else
32366 echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
Reid Spencera773bd52006-08-04 18:18:08 +000032369 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032370fi
Reid Spencera773bd52006-08-04 18:18:08 +000032371
Bill Wendlingebcceee2009-04-18 11:20:33 +000032372rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032373 conftest$ac_exeext conftest.$ac_ext
32374fi
Reid Spencera773bd52006-08-04 18:18:08 +000032375ac_res=`eval echo '${'$as_ac_var'}'`
32376 { echo "$as_me:$LINENO: result: $ac_res" >&5
32377echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032378if test `eval echo '${'$as_ac_var'}'` = yes; then
32379 cat >>confdefs.h <<_ACEOF
32380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32381_ACEOF
32382
32383fi
32384done
32385
32386
Reid Spencerba46ca32004-12-31 05:49:15 +000032387
32388
Chris Lattner0b142592005-11-14 06:57:34 +000032389
Chris Lattner511f11d2005-11-14 07:25:50 +000032390for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032391do
32392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032393{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032396 echo $ECHO_N "(cached) $ECHO_C" >&6
32397else
32398 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032399/* confdefs.h. */
32400_ACEOF
32401cat confdefs.h >>conftest.$ac_ext
32402cat >>conftest.$ac_ext <<_ACEOF
32403/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32406#define $ac_func innocuous_$ac_func
32407
32408/* System header to define __stub macros and hopefully few prototypes,
32409 which can conflict with char $ac_func (); below.
32410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32411 <limits.h> exists even on freestanding compilers. */
32412
32413#ifdef __STDC__
32414# include <limits.h>
32415#else
32416# include <assert.h>
32417#endif
32418
32419#undef $ac_func
32420
Reid Spencera773bd52006-08-04 18:18:08 +000032421/* Override any GCC internal prototype to avoid an error.
32422 Use char because int might match the return type of a GCC
32423 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032424#ifdef __cplusplus
32425extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032426#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032427char $ac_func ();
32428/* The GNU C library defines this for functions which it implements
32429 to always fail with ENOSYS. Some functions are actually named
32430 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032431#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032432choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032433#endif
John Criswell7a73b802003-06-30 21:59:07 +000032434
John Criswell7a73b802003-06-30 21:59:07 +000032435int
32436main ()
32437{
Reid Spencera773bd52006-08-04 18:18:08 +000032438return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032439 ;
32440 return 0;
32441}
32442_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032443rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032444if { (ac_try="$ac_link"
32445case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032451 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032452 grep -v '^ *+' conftest.er1 >conftest.err
32453 rm -f conftest.er1
32454 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032456 (exit $ac_status); } &&
32457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32458 { (case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461esac
32462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_try") 2>&5
32464 ac_status=$?
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; } &&
32467 { ac_try='test -s conftest$ac_exeext'
32468 { (case "(($ac_try" in
32469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470 *) ac_try_echo=$ac_try;;
32471esac
32472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473 (eval "$ac_try") 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032477 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032478else
32479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032480sed 's/^/| /' conftest.$ac_ext >&5
32481
Reid Spencera773bd52006-08-04 18:18:08 +000032482 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032483fi
Reid Spencera773bd52006-08-04 18:18:08 +000032484
Bill Wendlingebcceee2009-04-18 11:20:33 +000032485rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032486 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032487fi
Reid Spencera773bd52006-08-04 18:18:08 +000032488ac_res=`eval echo '${'$as_ac_var'}'`
32489 { echo "$as_me:$LINENO: result: $ac_res" >&5
32490echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032491if test `eval echo '${'$as_ac_var'}'` = yes; then
32492 cat >>confdefs.h <<_ACEOF
32493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032494_ACEOF
32495
32496fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032497done
John Criswell7a73b802003-06-30 21:59:07 +000032498
Reid Spencercdb08a32006-06-05 16:11:07 +000032499
32500
32501
32502
Reid Spencerafa22e22006-12-10 23:29:19 +000032503for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032504do
32505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032506{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32508if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032509 echo $ECHO_N "(cached) $ECHO_C" >&6
32510else
32511 cat >conftest.$ac_ext <<_ACEOF
32512/* confdefs.h. */
32513_ACEOF
32514cat confdefs.h >>conftest.$ac_ext
32515cat >>conftest.$ac_ext <<_ACEOF
32516/* end confdefs.h. */
32517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32519#define $ac_func innocuous_$ac_func
32520
32521/* System header to define __stub macros and hopefully few prototypes,
32522 which can conflict with char $ac_func (); below.
32523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32524 <limits.h> exists even on freestanding compilers. */
32525
32526#ifdef __STDC__
32527# include <limits.h>
32528#else
32529# include <assert.h>
32530#endif
32531
32532#undef $ac_func
32533
Reid Spencera773bd52006-08-04 18:18:08 +000032534/* Override any GCC internal prototype to avoid an error.
32535 Use char because int might match the return type of a GCC
32536 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032537#ifdef __cplusplus
32538extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032539#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032540char $ac_func ();
32541/* The GNU C library defines this for functions which it implements
32542 to always fail with ENOSYS. Some functions are actually named
32543 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032544#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032545choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032546#endif
32547
32548int
32549main ()
32550{
Reid Spencera773bd52006-08-04 18:18:08 +000032551return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032552 ;
32553 return 0;
32554}
32555_ACEOF
32556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032557if { (ac_try="$ac_link"
32558case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32561esac
32562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032564 ac_status=$?
32565 grep -v '^ *+' conftest.er1 >conftest.err
32566 rm -f conftest.er1
32567 cat conftest.err >&5
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest$ac_exeext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032590 eval "$as_ac_var=yes"
32591else
32592 echo "$as_me: failed program was:" >&5
32593sed 's/^/| /' conftest.$ac_ext >&5
32594
Reid Spencera773bd52006-08-04 18:18:08 +000032595 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032596fi
Reid Spencera773bd52006-08-04 18:18:08 +000032597
Bill Wendlingebcceee2009-04-18 11:20:33 +000032598rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032599 conftest$ac_exeext conftest.$ac_ext
32600fi
Reid Spencera773bd52006-08-04 18:18:08 +000032601ac_res=`eval echo '${'$as_ac_var'}'`
32602 { echo "$as_me:$LINENO: result: $ac_res" >&5
32603echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032604if test `eval echo '${'$as_ac_var'}'` = yes; then
32605 cat >>confdefs.h <<_ACEOF
32606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32607_ACEOF
32608
32609fi
32610done
32611
Reid Spencera773bd52006-08-04 18:18:08 +000032612{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32613echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032614if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032615 echo $ECHO_N "(cached) $ECHO_C" >&6
32616else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032617 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032618ac_cpp='$CPP $CPPFLAGS'
32619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621ac_compiler_gnu=$ac_cv_c_compiler_gnu
32622
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032623 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032624 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032625else
32626 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032627
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032628 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032629_ACEOF
32630cat confdefs.h >>conftest.$ac_ext
32631cat >>conftest.$ac_ext <<_ACEOF
32632/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032633
John Criswella0137d32003-10-13 16:22:01 +000032634#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032635#include <stdlib.h>
32636
John Criswella0137d32003-10-13 16:22:01 +000032637int
32638main ()
32639{
32640
Reid Spencer2706f8c2004-09-19 23:53:36 +000032641volatile double A, B;
32642char Buffer[100];
32643A = 1;
32644A /= 10.0;
32645sprintf(Buffer, "%a", A);
32646B = atof(Buffer);
32647if (A != B)
32648 return (1);
32649if (A != 0x1.999999999999ap-4)
32650 return (1);
32651return (0);
John Criswella0137d32003-10-13 16:22:01 +000032652 ;
32653 return 0;
32654}
32655_ACEOF
32656rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032657if { (ac_try="$ac_link"
32658case "(($ac_try" in
32659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660 *) ac_try_echo=$ac_try;;
32661esac
32662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032664 ac_status=$?
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032667 { (case "(($ac_try" in
32668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669 *) ac_try_echo=$ac_try;;
32670esac
32671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032673 ac_status=$?
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032676 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032677else
32678 echo "$as_me: program exited with status $ac_status" >&5
32679echo "$as_me: failed program was:" >&5
32680sed 's/^/| /' conftest.$ac_ext >&5
32681
32682( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032683llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032684fi
Reid Spencera773bd52006-08-04 18:18:08 +000032685rm -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 +000032686fi
Reid Spencera773bd52006-08-04 18:18:08 +000032687
32688
Reid Spencer2706f8c2004-09-19 23:53:36 +000032689 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032690ac_cpp='$CPP $CPPFLAGS'
32691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32693ac_compiler_gnu=$ac_cv_c_compiler_gnu
32694
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032695fi
Reid Spencera773bd52006-08-04 18:18:08 +000032696{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32697echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032698 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032699
32700cat >>confdefs.h <<\_ACEOF
32701#define HAVE_PRINTF_A 1
32702_ACEOF
32703
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 fi
John Criswella0137d32003-10-13 16:22:01 +000032705
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032706# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32707# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032708{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32709echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032710if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032711 echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
John Criswell0021c312004-02-13 21:57:29 +000032713 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032714/* confdefs.h. */
32715_ACEOF
32716cat confdefs.h >>conftest.$ac_ext
32717cat >>conftest.$ac_ext <<_ACEOF
32718/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032719#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032720int
32721main ()
32722{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032723char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032724 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032725 ;
32726 return 0;
32727}
32728_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032730if { (ac_try="$ac_link"
32731case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32734esac
32735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032738 grep -v '^ *+' conftest.er1 >conftest.err
32739 rm -f conftest.er1
32740 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032742 (exit $ac_status); } &&
32743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32744 { (case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_try") 2>&5
32750 ac_status=$?
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; } &&
32753 { ac_try='test -s conftest$ac_exeext'
32754 { (case "(($ac_try" in
32755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756 *) ac_try_echo=$ac_try;;
32757esac
32758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759 (eval "$ac_try") 2>&5
32760 ac_status=$?
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032763 ac_cv_working_alloca_h=yes
32764else
32765 echo "$as_me: failed program was:" >&5
32766sed 's/^/| /' conftest.$ac_ext >&5
32767
Reid Spencera773bd52006-08-04 18:18:08 +000032768 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032769fi
Reid Spencera773bd52006-08-04 18:18:08 +000032770
Bill Wendlingebcceee2009-04-18 11:20:33 +000032771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032772 conftest$ac_exeext conftest.$ac_ext
32773fi
Reid Spencera773bd52006-08-04 18:18:08 +000032774{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32775echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032776if test $ac_cv_working_alloca_h = yes; then
32777
32778cat >>confdefs.h <<\_ACEOF
32779#define HAVE_ALLOCA_H 1
32780_ACEOF
32781
32782fi
32783
Reid Spencera773bd52006-08-04 18:18:08 +000032784{ echo "$as_me:$LINENO: checking for alloca" >&5
32785echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032786if test "${ac_cv_func_alloca_works+set}" = set; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32788else
32789 cat >conftest.$ac_ext <<_ACEOF
32790/* confdefs.h. */
32791_ACEOF
32792cat confdefs.h >>conftest.$ac_ext
32793cat >>conftest.$ac_ext <<_ACEOF
32794/* end confdefs.h. */
32795#ifdef __GNUC__
32796# define alloca __builtin_alloca
32797#else
32798# ifdef _MSC_VER
32799# include <malloc.h>
32800# define alloca _alloca
32801# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032802# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032803# include <alloca.h>
32804# else
32805# ifdef _AIX
32806 #pragma alloca
32807# else
32808# ifndef alloca /* predefined by HP cc +Olibcalls */
32809char *alloca ();
32810# endif
32811# endif
32812# endif
32813# endif
32814#endif
32815
32816int
32817main ()
32818{
32819char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032820 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032821 ;
32822 return 0;
32823}
32824_ACEOF
32825rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032826if { (ac_try="$ac_link"
32827case "(($ac_try" in
32828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829 *) ac_try_echo=$ac_try;;
32830esac
32831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032833 ac_status=$?
32834 grep -v '^ *+' conftest.er1 >conftest.err
32835 rm -f conftest.er1
32836 cat conftest.err >&5
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032838 (exit $ac_status); } &&
32839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32840 { (case "(($ac_try" in
32841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 *) ac_try_echo=$ac_try;;
32843esac
32844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 (eval "$ac_try") 2>&5
32846 ac_status=$?
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; } &&
32849 { ac_try='test -s conftest$ac_exeext'
32850 { (case "(($ac_try" in
32851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852 *) ac_try_echo=$ac_try;;
32853esac
32854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855 (eval "$ac_try") 2>&5
32856 ac_status=$?
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032859 ac_cv_func_alloca_works=yes
32860else
32861 echo "$as_me: failed program was:" >&5
32862sed 's/^/| /' conftest.$ac_ext >&5
32863
Reid Spencera773bd52006-08-04 18:18:08 +000032864 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032865fi
Reid Spencera773bd52006-08-04 18:18:08 +000032866
Bill Wendlingebcceee2009-04-18 11:20:33 +000032867rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032868 conftest$ac_exeext conftest.$ac_ext
32869fi
Reid Spencera773bd52006-08-04 18:18:08 +000032870{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32871echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032872
32873if test $ac_cv_func_alloca_works = yes; then
32874
32875cat >>confdefs.h <<\_ACEOF
32876#define HAVE_ALLOCA 1
32877_ACEOF
32878
32879else
32880 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32881# that cause trouble. Some versions do not even contain alloca or
32882# contain a buggy version. If you still want to use their alloca,
32883# use ar to extract alloca.o from them instead of compiling alloca.c.
32884
Reid Spencera773bd52006-08-04 18:18:08 +000032885ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032886
32887cat >>confdefs.h <<\_ACEOF
32888#define C_ALLOCA 1
32889_ACEOF
32890
32891
Reid Spencera773bd52006-08-04 18:18:08 +000032892{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32893echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032894if test "${ac_cv_os_cray+set}" = set; then
32895 echo $ECHO_N "(cached) $ECHO_C" >&6
32896else
32897 cat >conftest.$ac_ext <<_ACEOF
32898/* confdefs.h. */
32899_ACEOF
32900cat confdefs.h >>conftest.$ac_ext
32901cat >>conftest.$ac_ext <<_ACEOF
32902/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032903#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904webecray
32905#else
32906wenotbecray
32907#endif
32908
32909_ACEOF
32910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32911 $EGREP "webecray" >/dev/null 2>&1; then
32912 ac_cv_os_cray=yes
32913else
32914 ac_cv_os_cray=no
32915fi
32916rm -f conftest*
32917
32918fi
Reid Spencera773bd52006-08-04 18:18:08 +000032919{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32920echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032921if test $ac_cv_os_cray = yes; then
32922 for ac_func in _getb67 GETB67 getb67; do
32923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928else
32929 cat >conftest.$ac_ext <<_ACEOF
32930/* confdefs.h. */
32931_ACEOF
32932cat confdefs.h >>conftest.$ac_ext
32933cat >>conftest.$ac_ext <<_ACEOF
32934/* end confdefs.h. */
32935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32937#define $ac_func innocuous_$ac_func
32938
32939/* System header to define __stub macros and hopefully few prototypes,
32940 which can conflict with char $ac_func (); below.
32941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32942 <limits.h> exists even on freestanding compilers. */
32943
32944#ifdef __STDC__
32945# include <limits.h>
32946#else
32947# include <assert.h>
32948#endif
32949
32950#undef $ac_func
32951
Reid Spencera773bd52006-08-04 18:18:08 +000032952/* Override any GCC internal prototype to avoid an error.
32953 Use char because int might match the return type of a GCC
32954 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032955#ifdef __cplusplus
32956extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032957#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032958char $ac_func ();
32959/* The GNU C library defines this for functions which it implements
32960 to always fail with ENOSYS. Some functions are actually named
32961 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032962#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032963choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032964#endif
32965
32966int
32967main ()
32968{
Reid Spencera773bd52006-08-04 18:18:08 +000032969return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032970 ;
32971 return 0;
32972}
32973_ACEOF
32974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032975if { (ac_try="$ac_link"
32976case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32979esac
32980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032982 ac_status=$?
32983 grep -v '^ *+' conftest.er1 >conftest.err
32984 rm -f conftest.er1
32985 cat conftest.err >&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032987 (exit $ac_status); } &&
32988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32989 { (case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32992esac
32993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_try") 2>&5
32995 ac_status=$?
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); }; } &&
32998 { ac_try='test -s conftest$ac_exeext'
32999 { (case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33002esac
33003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_try") 2>&5
33005 ac_status=$?
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033008 eval "$as_ac_var=yes"
33009else
33010 echo "$as_me: failed program was:" >&5
33011sed 's/^/| /' conftest.$ac_ext >&5
33012
Reid Spencera773bd52006-08-04 18:18:08 +000033013 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033014fi
Reid Spencera773bd52006-08-04 18:18:08 +000033015
Bill Wendlingebcceee2009-04-18 11:20:33 +000033016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033017 conftest$ac_exeext conftest.$ac_ext
33018fi
Reid Spencera773bd52006-08-04 18:18:08 +000033019ac_res=`eval echo '${'$as_ac_var'}'`
33020 { echo "$as_me:$LINENO: result: $ac_res" >&5
33021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033022if test `eval echo '${'$as_ac_var'}'` = yes; then
33023
33024cat >>confdefs.h <<_ACEOF
33025#define CRAY_STACKSEG_END $ac_func
33026_ACEOF
33027
33028 break
33029fi
33030
33031 done
33032fi
33033
Reid Spencera773bd52006-08-04 18:18:08 +000033034{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33035echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033036if test "${ac_cv_c_stack_direction+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33038else
33039 if test "$cross_compiling" = yes; then
33040 ac_cv_c_stack_direction=0
33041else
33042 cat >conftest.$ac_ext <<_ACEOF
33043/* confdefs.h. */
33044_ACEOF
33045cat confdefs.h >>conftest.$ac_ext
33046cat >>conftest.$ac_ext <<_ACEOF
33047/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033048$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033049int
33050find_stack_direction ()
33051{
33052 static char *addr = 0;
33053 auto char dummy;
33054 if (addr == 0)
33055 {
33056 addr = &dummy;
33057 return find_stack_direction ();
33058 }
John Criswell0021c312004-02-13 21:57:29 +000033059 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033060 return (&dummy > addr) ? 1 : -1;
33061}
John Criswell0021c312004-02-13 21:57:29 +000033062
John Criswell0021c312004-02-13 21:57:29 +000033063int
33064main ()
33065{
Reid Spencera773bd52006-08-04 18:18:08 +000033066 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033067}
33068_ACEOF
33069rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033070if { (ac_try="$ac_link"
33071case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033080 { (case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33083esac
33084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033089 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033090else
33091 echo "$as_me: program exited with status $ac_status" >&5
33092echo "$as_me: failed program was:" >&5
33093sed 's/^/| /' conftest.$ac_ext >&5
33094
33095( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033096ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033097fi
Reid Spencera773bd52006-08-04 18:18:08 +000033098rm -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 +000033099fi
Reid Spencera773bd52006-08-04 18:18:08 +000033100
33101
John Criswell0021c312004-02-13 21:57:29 +000033102fi
Reid Spencera773bd52006-08-04 18:18:08 +000033103{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33104echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033105
33106cat >>confdefs.h <<_ACEOF
33107#define STACK_DIRECTION $ac_cv_c_stack_direction
33108_ACEOF
33109
33110
John Criswell0021c312004-02-13 21:57:29 +000033111fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033112
33113
Reid Spencera773bd52006-08-04 18:18:08 +000033114{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33115echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033116if test "${ac_cv_func_rand48+set}" = set; then
33117 echo $ECHO_N "(cached) $ECHO_C" >&6
33118else
Reid Spencera773bd52006-08-04 18:18:08 +000033119 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033120ac_cpp='$CXXCPP $CPPFLAGS'
33121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33124
33125 cat >conftest.$ac_ext <<_ACEOF
33126/* confdefs.h. */
33127_ACEOF
33128cat confdefs.h >>conftest.$ac_ext
33129cat >>conftest.$ac_ext <<_ACEOF
33130/* end confdefs.h. */
33131#include <stdlib.h>
33132int
33133main ()
33134{
33135srand48(0);lrand48();drand48();
33136 ;
33137 return 0;
33138}
33139_ACEOF
33140rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033141if { (ac_try="$ac_compile"
33142case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33145esac
33146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033148 ac_status=$?
33149 grep -v '^ *+' conftest.er1 >conftest.err
33150 rm -f conftest.er1
33151 cat conftest.err >&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033153 (exit $ac_status); } &&
33154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33155 { (case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33158esac
33159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_try") 2>&5
33161 ac_status=$?
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; } &&
33164 { ac_try='test -s conftest.$ac_objext'
33165 { (case "(($ac_try" in
33166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167 *) ac_try_echo=$ac_try;;
33168esac
33169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170 (eval "$ac_try") 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033174 ac_cv_func_rand48=yes
33175else
33176 echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
Reid Spencera773bd52006-08-04 18:18:08 +000033179 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033180fi
Reid Spencera773bd52006-08-04 18:18:08 +000033181
33182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033183 ac_ext=c
33184ac_cpp='$CPP $CPPFLAGS'
33185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33187ac_compiler_gnu=$ac_cv_c_compiler_gnu
33188
33189fi
Reid Spencera773bd52006-08-04 18:18:08 +000033190{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33191echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033192
33193if test "$ac_cv_func_rand48" = "yes" ; then
33194
33195cat >>confdefs.h <<\_ACEOF
33196#define HAVE_RAND48 1
33197_ACEOF
33198
33199fi
John Criswell0021c312004-02-13 21:57:29 +000033200
33201
Reid Spencera773bd52006-08-04 18:18:08 +000033202{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33203echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033204if test "${ac_cv_cxx_namespaces+set}" = set; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33206else
Reid Spencera773bd52006-08-04 18:18:08 +000033207 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033208ac_cpp='$CXXCPP $CPPFLAGS'
33209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33212
33213 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033214/* confdefs.h. */
33215_ACEOF
33216cat confdefs.h >>conftest.$ac_ext
33217cat >>conftest.$ac_ext <<_ACEOF
33218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033219namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033220int
33221main ()
33222{
33223using namespace Outer::Inner; return i;
33224 ;
33225 return 0;
33226}
33227_ACEOF
33228rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033229if { (ac_try="$ac_compile"
33230case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233esac
33234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033236 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033237 grep -v '^ *+' conftest.er1 >conftest.err
33238 rm -f conftest.er1
33239 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033241 (exit $ac_status); } &&
33242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33243 { (case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_try") 2>&5
33249 ac_status=$?
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest.$ac_objext'
33253 { (case "(($ac_try" in
33254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255 *) ac_try_echo=$ac_try;;
33256esac
33257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258 (eval "$ac_try") 2>&5
33259 ac_status=$?
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033262 ac_cv_cxx_namespaces=yes
33263else
33264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033265sed 's/^/| /' conftest.$ac_ext >&5
33266
Reid Spencera773bd52006-08-04 18:18:08 +000033267 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033268fi
Reid Spencera773bd52006-08-04 18:18:08 +000033269
33270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033271 ac_ext=c
33272ac_cpp='$CPP $CPPFLAGS'
33273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33275ac_compiler_gnu=$ac_cv_c_compiler_gnu
33276
33277
33278fi
Reid Spencera773bd52006-08-04 18:18:08 +000033279{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33280echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033281if test "$ac_cv_cxx_namespaces" = yes; then
33282
33283cat >>confdefs.h <<\_ACEOF
33284#define HAVE_NAMESPACES
33285_ACEOF
33286
33287fi
33288
Reid Spencera773bd52006-08-04 18:18:08 +000033289{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33290echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033291if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33293else
33294
Reid Spencera773bd52006-08-04 18:18:08 +000033295 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033296ac_cpp='$CXXCPP $CPPFLAGS'
33297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33300
33301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033302/* confdefs.h. */
33303_ACEOF
33304cat confdefs.h >>conftest.$ac_ext
33305cat >>conftest.$ac_ext <<_ACEOF
33306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033307#include <iterator>
33308#ifdef HAVE_NAMESPACES
33309using namespace std;
33310#endif
John Criswell7a73b802003-06-30 21:59:07 +000033311int
33312main ()
33313{
33314iterator<int,int,int> t; return 0;
33315 ;
33316 return 0;
33317}
33318_ACEOF
33319rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033320if { (ac_try="$ac_compile"
33321case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33324esac
33325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033327 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033328 grep -v '^ *+' conftest.er1 >conftest.err
33329 rm -f conftest.er1
33330 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033332 (exit $ac_status); } &&
33333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33334 { (case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33337esac
33338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_try") 2>&5
33340 ac_status=$?
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); }; } &&
33343 { ac_try='test -s conftest.$ac_objext'
33344 { (case "(($ac_try" in
33345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346 *) ac_try_echo=$ac_try;;
33347esac
33348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33349 (eval "$ac_try") 2>&5
33350 ac_status=$?
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033353 ac_cv_cxx_have_std_iterator=yes
33354else
33355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033356sed 's/^/| /' conftest.$ac_ext >&5
33357
Reid Spencera773bd52006-08-04 18:18:08 +000033358 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033359fi
Reid Spencera773bd52006-08-04 18:18:08 +000033360
33361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033362 ac_ext=c
33363ac_cpp='$CPP $CPPFLAGS'
33364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33366ac_compiler_gnu=$ac_cv_c_compiler_gnu
33367
33368
33369fi
Reid Spencera773bd52006-08-04 18:18:08 +000033370{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33371echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033372if test "$ac_cv_cxx_have_std_iterator" = yes
33373then
John Criswell40468462004-09-24 21:19:06 +000033374
33375cat >>confdefs.h <<\_ACEOF
33376#define HAVE_STD_ITERATOR 1
33377_ACEOF
33378
33379else
33380
33381cat >>confdefs.h <<\_ACEOF
33382#define HAVE_STD_ITERATOR 0
33383_ACEOF
33384
John Criswell7a73b802003-06-30 21:59:07 +000033385fi
33386
Reid Spencera773bd52006-08-04 18:18:08 +000033387{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33388echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033389if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
33391else
33392
Reid Spencera773bd52006-08-04 18:18:08 +000033393 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033394ac_cpp='$CXXCPP $CPPFLAGS'
33395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33398
33399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033400/* confdefs.h. */
33401_ACEOF
33402cat confdefs.h >>conftest.$ac_ext
33403cat >>conftest.$ac_ext <<_ACEOF
33404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033405#include <iterator>
33406#ifdef HAVE_NAMESPACES
33407using namespace std;
33408#endif
John Criswell7a73b802003-06-30 21:59:07 +000033409int
33410main ()
33411{
John Criswellc78022e2003-07-29 19:11:58 +000033412bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033413 ;
33414 return 0;
33415}
33416_ACEOF
33417rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033418if { (ac_try="$ac_compile"
33419case "(($ac_try" in
33420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33421 *) ac_try_echo=$ac_try;;
33422esac
33423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33424 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033426 grep -v '^ *+' conftest.er1 >conftest.err
33427 rm -f conftest.er1
33428 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033430 (exit $ac_status); } &&
33431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33432 { (case "(($ac_try" in
33433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434 *) ac_try_echo=$ac_try;;
33435esac
33436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437 (eval "$ac_try") 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest.$ac_objext'
33442 { (case "(($ac_try" in
33443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33444 *) ac_try_echo=$ac_try;;
33445esac
33446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33447 (eval "$ac_try") 2>&5
33448 ac_status=$?
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033451 ac_cv_cxx_have_bi_iterator=yes
33452else
33453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033454sed 's/^/| /' conftest.$ac_ext >&5
33455
Reid Spencera773bd52006-08-04 18:18:08 +000033456 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033457fi
Reid Spencera773bd52006-08-04 18:18:08 +000033458
33459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033460 ac_ext=c
33461ac_cpp='$CPP $CPPFLAGS'
33462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33464ac_compiler_gnu=$ac_cv_c_compiler_gnu
33465
33466
33467fi
Reid Spencera773bd52006-08-04 18:18:08 +000033468{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33469echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033470if test "$ac_cv_cxx_have_bi_iterator" = yes
33471then
John Criswell40468462004-09-24 21:19:06 +000033472
33473cat >>confdefs.h <<\_ACEOF
33474#define HAVE_BI_ITERATOR 1
33475_ACEOF
33476
33477else
33478
33479cat >>confdefs.h <<\_ACEOF
33480#define HAVE_BI_ITERATOR 0
33481_ACEOF
33482
John Criswell7a73b802003-06-30 21:59:07 +000033483fi
33484
Reid Spencera773bd52006-08-04 18:18:08 +000033485{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33486echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033487if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
33490
Reid Spencera773bd52006-08-04 18:18:08 +000033491 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033492ac_cpp='$CXXCPP $CPPFLAGS'
33493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33496
33497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033498/* confdefs.h. */
33499_ACEOF
33500cat confdefs.h >>conftest.$ac_ext
33501cat >>conftest.$ac_ext <<_ACEOF
33502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033503#include <iterator>
33504#ifdef HAVE_NAMESPACES
33505using namespace std;
33506#endif
John Criswell7a73b802003-06-30 21:59:07 +000033507int
33508main ()
33509{
John Criswellc78022e2003-07-29 19:11:58 +000033510forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033511 ;
33512 return 0;
33513}
33514_ACEOF
33515rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033516if { (ac_try="$ac_compile"
33517case "(($ac_try" in
33518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33519 *) ac_try_echo=$ac_try;;
33520esac
33521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33522 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033524 grep -v '^ *+' conftest.er1 >conftest.err
33525 rm -f conftest.er1
33526 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033528 (exit $ac_status); } &&
33529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33530 { (case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33533esac
33534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_try") 2>&5
33536 ac_status=$?
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; } &&
33539 { ac_try='test -s conftest.$ac_objext'
33540 { (case "(($ac_try" in
33541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33542 *) ac_try_echo=$ac_try;;
33543esac
33544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33545 (eval "$ac_try") 2>&5
33546 ac_status=$?
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033549 ac_cv_cxx_have_fwd_iterator=yes
33550else
33551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033552sed 's/^/| /' conftest.$ac_ext >&5
33553
Reid Spencera773bd52006-08-04 18:18:08 +000033554 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033555fi
Reid Spencera773bd52006-08-04 18:18:08 +000033556
33557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033558 ac_ext=c
33559ac_cpp='$CPP $CPPFLAGS'
33560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33562ac_compiler_gnu=$ac_cv_c_compiler_gnu
33563
33564
33565fi
Reid Spencera773bd52006-08-04 18:18:08 +000033566{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33567echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033568if test "$ac_cv_cxx_have_fwd_iterator" = yes
33569then
John Criswell40468462004-09-24 21:19:06 +000033570
33571cat >>confdefs.h <<\_ACEOF
33572#define HAVE_FWD_ITERATOR 1
33573_ACEOF
33574
33575else
33576
33577cat >>confdefs.h <<\_ACEOF
33578#define HAVE_FWD_ITERATOR 0
33579_ACEOF
33580
John Criswell7a73b802003-06-30 21:59:07 +000033581fi
33582
33583
Reid Spencera773bd52006-08-04 18:18:08 +000033584{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33585echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033586if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33587 echo $ECHO_N "(cached) $ECHO_C" >&6
33588else
Reid Spencera773bd52006-08-04 18:18:08 +000033589 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033590ac_cpp='$CXXCPP $CPPFLAGS'
33591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33594
Reid Spencerabec8f92004-10-27 23:03:44 +000033595 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033596/* confdefs.h. */
33597_ACEOF
33598cat confdefs.h >>conftest.$ac_ext
33599cat >>conftest.$ac_ext <<_ACEOF
33600/* end confdefs.h. */
33601#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033602int
33603main ()
33604{
33605float f; isnan(f);
33606 ;
33607 return 0;
33608}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033609_ACEOF
33610rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033611if { (ac_try="$ac_compile"
33612case "(($ac_try" in
33613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614 *) ac_try_echo=$ac_try;;
33615esac
33616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033619 grep -v '^ *+' conftest.er1 >conftest.err
33620 rm -f conftest.er1
33621 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033623 (exit $ac_status); } &&
33624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33625 { (case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33628esac
33629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_try") 2>&5
33631 ac_status=$?
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); }; } &&
33634 { ac_try='test -s conftest.$ac_objext'
33635 { (case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33638esac
33639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_try") 2>&5
33641 ac_status=$?
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033644 ac_cv_func_isnan_in_math_h=yes
33645else
33646 echo "$as_me: failed program was:" >&5
33647sed 's/^/| /' conftest.$ac_ext >&5
33648
Reid Spencera773bd52006-08-04 18:18:08 +000033649 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033650fi
Reid Spencera773bd52006-08-04 18:18:08 +000033651
33652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033653 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033654ac_cpp='$CPP $CPPFLAGS'
33655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33657ac_compiler_gnu=$ac_cv_c_compiler_gnu
33658
33659fi
Reid Spencera773bd52006-08-04 18:18:08 +000033660{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33661echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033662
33663
33664if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033665
33666cat >>confdefs.h <<\_ACEOF
33667#define HAVE_ISNAN_IN_MATH_H 1
33668_ACEOF
33669
Reid Spencerabec8f92004-10-27 23:03:44 +000033670fi
33671
Reid Spencera773bd52006-08-04 18:18:08 +000033672{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33673echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033674if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33676else
Reid Spencera773bd52006-08-04 18:18:08 +000033677 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033678ac_cpp='$CXXCPP $CPPFLAGS'
33679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33682
Reid Spencerabec8f92004-10-27 23:03:44 +000033683 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033684/* confdefs.h. */
33685_ACEOF
33686cat confdefs.h >>conftest.$ac_ext
33687cat >>conftest.$ac_ext <<_ACEOF
33688/* end confdefs.h. */
33689#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033690int
33691main ()
33692{
33693float f; isnan(f);
33694 ;
33695 return 0;
33696}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033697_ACEOF
33698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033699if { (ac_try="$ac_compile"
33700case "(($ac_try" in
33701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33702 *) ac_try_echo=$ac_try;;
33703esac
33704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33705 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033707 grep -v '^ *+' conftest.er1 >conftest.err
33708 rm -f conftest.er1
33709 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033711 (exit $ac_status); } &&
33712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33713 { (case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33716esac
33717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_try") 2>&5
33719 ac_status=$?
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; } &&
33722 { ac_try='test -s conftest.$ac_objext'
33723 { (case "(($ac_try" in
33724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725 *) ac_try_echo=$ac_try;;
33726esac
33727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728 (eval "$ac_try") 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033732 ac_cv_func_isnan_in_cmath=yes
33733else
33734 echo "$as_me: failed program was:" >&5
33735sed 's/^/| /' conftest.$ac_ext >&5
33736
Reid Spencera773bd52006-08-04 18:18:08 +000033737 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033738fi
Reid Spencera773bd52006-08-04 18:18:08 +000033739
33740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033741 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033742ac_cpp='$CPP $CPPFLAGS'
33743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33745ac_compiler_gnu=$ac_cv_c_compiler_gnu
33746
33747fi
Reid Spencera773bd52006-08-04 18:18:08 +000033748{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33749echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033750
33751if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033752
33753cat >>confdefs.h <<\_ACEOF
33754#define HAVE_ISNAN_IN_CMATH 1
33755_ACEOF
33756
Reid Spencerabec8f92004-10-27 23:03:44 +000033757fi
33758
Reid Spencera773bd52006-08-04 18:18:08 +000033759{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33760echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033761if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
Reid Spencera773bd52006-08-04 18:18:08 +000033764 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033765ac_cpp='$CXXCPP $CPPFLAGS'
33766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33769
Reid Spencerabec8f92004-10-27 23:03:44 +000033770 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
33776#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033777int
33778main ()
33779{
33780float f; std::isnan(f);
33781 ;
33782 return 0;
33783}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033784_ACEOF
33785rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033786if { (ac_try="$ac_compile"
33787case "(($ac_try" in
33788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789 *) ac_try_echo=$ac_try;;
33790esac
33791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033793 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033794 grep -v '^ *+' conftest.er1 >conftest.err
33795 rm -f conftest.er1
33796 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033798 (exit $ac_status); } &&
33799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest.$ac_objext'
33810 { (case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33813esac
33814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033819 ac_cv_func_std_isnan_in_cmath=yes
33820else
33821 echo "$as_me: failed program was:" >&5
33822sed 's/^/| /' conftest.$ac_ext >&5
33823
Reid Spencera773bd52006-08-04 18:18:08 +000033824 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033825fi
Reid Spencera773bd52006-08-04 18:18:08 +000033826
33827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033828 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033829ac_cpp='$CPP $CPPFLAGS'
33830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33832ac_compiler_gnu=$ac_cv_c_compiler_gnu
33833
33834fi
Reid Spencera773bd52006-08-04 18:18:08 +000033835{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33836echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033837
33838if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033839
33840cat >>confdefs.h <<\_ACEOF
33841#define HAVE_STD_ISNAN_IN_CMATH 1
33842_ACEOF
33843
Reid Spencerabec8f92004-10-27 23:03:44 +000033844fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033845
33846
Reid Spencera773bd52006-08-04 18:18:08 +000033847{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33848echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033849if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33851else
Reid Spencera773bd52006-08-04 18:18:08 +000033852 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033853ac_cpp='$CXXCPP $CPPFLAGS'
33854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33857
Reid Spencerabec8f92004-10-27 23:03:44 +000033858 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033859/* confdefs.h. */
33860_ACEOF
33861cat confdefs.h >>conftest.$ac_ext
33862cat >>conftest.$ac_ext <<_ACEOF
33863/* end confdefs.h. */
33864#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033865int
33866main ()
33867{
33868float f; isinf(f);
33869 ;
33870 return 0;
33871}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033872_ACEOF
33873rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033874if { (ac_try="$ac_compile"
33875case "(($ac_try" in
33876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33877 *) ac_try_echo=$ac_try;;
33878esac
33879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33880 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033882 grep -v '^ *+' conftest.er1 >conftest.err
33883 rm -f conftest.er1
33884 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033886 (exit $ac_status); } &&
33887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33888 { (case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33891esac
33892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_try") 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; } &&
33897 { ac_try='test -s conftest.$ac_objext'
33898 { (case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33901esac
33902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_try") 2>&5
33904 ac_status=$?
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033907 ac_cv_func_isinf_in_math_h=yes
33908else
33909 echo "$as_me: failed program was:" >&5
33910sed 's/^/| /' conftest.$ac_ext >&5
33911
Reid Spencera773bd52006-08-04 18:18:08 +000033912 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033913fi
Reid Spencera773bd52006-08-04 18:18:08 +000033914
33915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033916 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033917ac_cpp='$CPP $CPPFLAGS'
33918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33920ac_compiler_gnu=$ac_cv_c_compiler_gnu
33921
33922fi
Reid Spencera773bd52006-08-04 18:18:08 +000033923{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33924echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033925
33926if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033927
33928cat >>confdefs.h <<\_ACEOF
33929#define HAVE_ISINF_IN_MATH_H 1
33930_ACEOF
33931
Reid Spencerabec8f92004-10-27 23:03:44 +000033932fi
33933
Reid Spencera773bd52006-08-04 18:18:08 +000033934{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33935echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033936if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33938else
Reid Spencera773bd52006-08-04 18:18:08 +000033939 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033940ac_cpp='$CXXCPP $CPPFLAGS'
33941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33944
Reid Spencerabec8f92004-10-27 23:03:44 +000033945 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033946/* confdefs.h. */
33947_ACEOF
33948cat confdefs.h >>conftest.$ac_ext
33949cat >>conftest.$ac_ext <<_ACEOF
33950/* end confdefs.h. */
33951#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033952int
33953main ()
33954{
33955float f; isinf(f);
33956 ;
33957 return 0;
33958}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033959_ACEOF
33960rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033961if { (ac_try="$ac_compile"
33962case "(($ac_try" in
33963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33964 *) ac_try_echo=$ac_try;;
33965esac
33966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33967 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33975 { (case "(($ac_try" in
33976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977 *) ac_try_echo=$ac_try;;
33978esac
33979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980 (eval "$ac_try") 2>&5
33981 ac_status=$?
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; } &&
33984 { ac_try='test -s conftest.$ac_objext'
33985 { (case "(($ac_try" in
33986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33987 *) ac_try_echo=$ac_try;;
33988esac
33989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33990 (eval "$ac_try") 2>&5
33991 ac_status=$?
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033994 ac_cv_func_isinf_in_cmath=yes
33995else
33996 echo "$as_me: failed program was:" >&5
33997sed 's/^/| /' conftest.$ac_ext >&5
33998
Reid Spencera773bd52006-08-04 18:18:08 +000033999 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034000fi
Reid Spencera773bd52006-08-04 18:18:08 +000034001
34002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034003 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034004ac_cpp='$CPP $CPPFLAGS'
34005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34007ac_compiler_gnu=$ac_cv_c_compiler_gnu
34008
34009fi
Reid Spencera773bd52006-08-04 18:18:08 +000034010{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34011echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034012
34013if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034014
34015cat >>confdefs.h <<\_ACEOF
34016#define HAVE_ISINF_IN_CMATH 1
34017_ACEOF
34018
Reid Spencerabec8f92004-10-27 23:03:44 +000034019fi
34020
Reid Spencera773bd52006-08-04 18:18:08 +000034021{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34022echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034023if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34024 echo $ECHO_N "(cached) $ECHO_C" >&6
34025else
Reid Spencera773bd52006-08-04 18:18:08 +000034026 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034027ac_cpp='$CXXCPP $CPPFLAGS'
34028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34031
Reid Spencerabec8f92004-10-27 23:03:44 +000034032 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034033/* confdefs.h. */
34034_ACEOF
34035cat confdefs.h >>conftest.$ac_ext
34036cat >>conftest.$ac_ext <<_ACEOF
34037/* end confdefs.h. */
34038#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034039int
34040main ()
34041{
34042float f; std::isinf(f)}
34043 ;
34044 return 0;
34045}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034046_ACEOF
34047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034048if { (ac_try="$ac_compile"
34049case "(($ac_try" in
34050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34051 *) ac_try_echo=$ac_try;;
34052esac
34053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34054 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034056 grep -v '^ *+' conftest.er1 >conftest.err
34057 rm -f conftest.er1
34058 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034060 (exit $ac_status); } &&
34061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34062 { (case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34065esac
34066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067 (eval "$ac_try") 2>&5
34068 ac_status=$?
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; } &&
34071 { ac_try='test -s conftest.$ac_objext'
34072 { (case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34075esac
34076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_try") 2>&5
34078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034081 ac_cv_func_std_isinf_in_cmath=yes
34082else
34083 echo "$as_me: failed program was:" >&5
34084sed 's/^/| /' conftest.$ac_ext >&5
34085
Reid Spencera773bd52006-08-04 18:18:08 +000034086 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034087fi
Reid Spencera773bd52006-08-04 18:18:08 +000034088
34089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034090 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034091ac_cpp='$CPP $CPPFLAGS'
34092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34094ac_compiler_gnu=$ac_cv_c_compiler_gnu
34095
34096fi
Reid Spencera773bd52006-08-04 18:18:08 +000034097{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34098echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034099
34100if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034101
34102cat >>confdefs.h <<\_ACEOF
34103#define HAVE_STD_ISINF_IN_CMATH 1
34104_ACEOF
34105
Reid Spencerabec8f92004-10-27 23:03:44 +000034106fi
34107
Reid Spencera773bd52006-08-04 18:18:08 +000034108{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34109echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034110if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34112else
Reid Spencera773bd52006-08-04 18:18:08 +000034113 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034114ac_cpp='$CXXCPP $CPPFLAGS'
34115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34118
Reid Spencerabec8f92004-10-27 23:03:44 +000034119 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034120/* confdefs.h. */
34121_ACEOF
34122cat confdefs.h >>conftest.$ac_ext
34123cat >>conftest.$ac_ext <<_ACEOF
34124/* end confdefs.h. */
34125#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034126int
34127main ()
34128{
34129float f; finite(f);
34130 ;
34131 return 0;
34132}
Brian Gaeked59a6472004-07-21 03:33:58 +000034133_ACEOF
34134rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034135if { (ac_try="$ac_compile"
34136case "(($ac_try" in
34137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138 *) ac_try_echo=$ac_try;;
34139esac
34140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034147 (exit $ac_status); } &&
34148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34149 { (case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34152esac
34153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_try") 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; } &&
34158 { ac_try='test -s conftest.$ac_objext'
34159 { (case "(($ac_try" in
34160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34161 *) ac_try_echo=$ac_try;;
34162esac
34163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34164 (eval "$ac_try") 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034168 ac_cv_func_finite_in_ieeefp_h=yes
34169else
34170 echo "$as_me: failed program was:" >&5
34171sed 's/^/| /' conftest.$ac_ext >&5
34172
Reid Spencera773bd52006-08-04 18:18:08 +000034173 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034174fi
Reid Spencera773bd52006-08-04 18:18:08 +000034175
34176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034177 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034178ac_cpp='$CPP $CPPFLAGS'
34179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34181ac_compiler_gnu=$ac_cv_c_compiler_gnu
34182
34183fi
Reid Spencera773bd52006-08-04 18:18:08 +000034184{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34185echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034186
Brian Gaeke6802b552004-10-28 05:06:45 +000034187if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034188
34189cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034190#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034191_ACEOF
34192
Reid Spencerabec8f92004-10-27 23:03:44 +000034193fi
34194
34195
34196
Reid Spencer30fe5262007-01-20 07:48:49 +000034197if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034198
34199
34200for ac_header in stdlib.h unistd.h
34201do
34202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034207 echo $ECHO_N "(cached) $ECHO_C" >&6
34208fi
Reid Spencera773bd52006-08-04 18:18:08 +000034209ac_res=`eval echo '${'$as_ac_Header'}'`
34210 { echo "$as_me:$LINENO: result: $ac_res" >&5
34211echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034212else
34213 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034214{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034216cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034217/* confdefs.h. */
34218_ACEOF
34219cat confdefs.h >>conftest.$ac_ext
34220cat >>conftest.$ac_ext <<_ACEOF
34221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034222$ac_includes_default
34223#include <$ac_header>
34224_ACEOF
34225rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034226if { (ac_try="$ac_compile"
34227case "(($ac_try" in
34228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229 *) ac_try_echo=$ac_try;;
34230esac
34231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34232 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034234 grep -v '^ *+' conftest.er1 >conftest.err
34235 rm -f conftest.er1
34236 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034238 (exit $ac_status); } &&
34239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34240 { (case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34243esac
34244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_try") 2>&5
34246 ac_status=$?
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); }; } &&
34249 { ac_try='test -s conftest.$ac_objext'
34250 { (case "(($ac_try" in
34251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252 *) ac_try_echo=$ac_try;;
34253esac
34254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34255 (eval "$ac_try") 2>&5
34256 ac_status=$?
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034259 ac_header_compiler=yes
34260else
34261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034262sed 's/^/| /' conftest.$ac_ext >&5
34263
Reid Spencera773bd52006-08-04 18:18:08 +000034264 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034265fi
Reid Spencera773bd52006-08-04 18:18:08 +000034266
34267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34268{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34269echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034270
34271# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034272{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034274cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034275/* confdefs.h. */
34276_ACEOF
34277cat confdefs.h >>conftest.$ac_ext
34278cat >>conftest.$ac_ext <<_ACEOF
34279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034280#include <$ac_header>
34281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034282if { (ac_try="$ac_cpp conftest.$ac_ext"
34283case "(($ac_try" in
34284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34285 *) ac_try_echo=$ac_try;;
34286esac
34287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034289 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034290 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034291 rm -f conftest.er1
34292 cat conftest.err >&5
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034294 (exit $ac_status); } >/dev/null; then
34295 if test -s conftest.err; then
34296 ac_cpp_err=$ac_c_preproc_warn_flag
34297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34298 else
34299 ac_cpp_err=
34300 fi
34301else
34302 ac_cpp_err=yes
34303fi
34304if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034305 ac_header_preproc=yes
34306else
34307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034308sed 's/^/| /' conftest.$ac_ext >&5
34309
John Criswell7a73b802003-06-30 21:59:07 +000034310 ac_header_preproc=no
34311fi
Reid Spencera773bd52006-08-04 18:18:08 +000034312
John Criswell7a73b802003-06-30 21:59:07 +000034313rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034314{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34315echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034316
34317# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34319 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34323echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34324 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034325 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034326 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34330echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34332echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34334echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34338echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034339 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034340## ----------------------------------- ##
34341## Report this to llvmbugs@cs.uiuc.edu ##
34342## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034343_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034344 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034345 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034346esac
Reid Spencera773bd52006-08-04 18:18:08 +000034347{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034350 echo $ECHO_N "(cached) $ECHO_C" >&6
34351else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034352 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034353fi
Reid Spencera773bd52006-08-04 18:18:08 +000034354ac_res=`eval echo '${'$as_ac_Header'}'`
34355 { echo "$as_me:$LINENO: result: $ac_res" >&5
34356echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034357
34358fi
34359if test `eval echo '${'$as_ac_Header'}'` = yes; then
34360 cat >>confdefs.h <<_ACEOF
34361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34362_ACEOF
34363
34364fi
34365
34366done
34367
34368
34369for ac_func in getpagesize
34370do
34371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034375 echo $ECHO_N "(cached) $ECHO_C" >&6
34376else
34377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034378/* confdefs.h. */
34379_ACEOF
34380cat confdefs.h >>conftest.$ac_ext
34381cat >>conftest.$ac_ext <<_ACEOF
34382/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34385#define $ac_func innocuous_$ac_func
34386
John Criswell7a73b802003-06-30 21:59:07 +000034387/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034388 which can conflict with char $ac_func (); below.
34389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34390 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034391
John Criswell0c38eaf2003-09-10 15:17:25 +000034392#ifdef __STDC__
34393# include <limits.h>
34394#else
34395# include <assert.h>
34396#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034397
34398#undef $ac_func
34399
Reid Spencera773bd52006-08-04 18:18:08 +000034400/* Override any GCC internal prototype to avoid an error.
34401 Use char because int might match the return type of a GCC
34402 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034403#ifdef __cplusplus
34404extern "C"
34405#endif
John Criswell7a73b802003-06-30 21:59:07 +000034406char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034407/* The GNU C library defines this for functions which it implements
34408 to always fail with ENOSYS. Some functions are actually named
34409 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034410#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034411choke me
John Criswell7a73b802003-06-30 21:59:07 +000034412#endif
34413
John Criswell0c38eaf2003-09-10 15:17:25 +000034414int
34415main ()
34416{
Reid Spencera773bd52006-08-04 18:18:08 +000034417return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034418 ;
34419 return 0;
34420}
34421_ACEOF
34422rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034423if { (ac_try="$ac_link"
34424case "(($ac_try" in
34425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34426 *) ac_try_echo=$ac_try;;
34427esac
34428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34429 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034431 grep -v '^ *+' conftest.er1 >conftest.err
34432 rm -f conftest.er1
34433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034435 (exit $ac_status); } &&
34436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34437 { (case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34440esac
34441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_try") 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; } &&
34446 { ac_try='test -s conftest$ac_exeext'
34447 { (case "(($ac_try" in
34448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449 *) ac_try_echo=$ac_try;;
34450esac
34451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452 (eval "$ac_try") 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034456 eval "$as_ac_var=yes"
34457else
34458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034459sed 's/^/| /' conftest.$ac_ext >&5
34460
Reid Spencera773bd52006-08-04 18:18:08 +000034461 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034462fi
Reid Spencera773bd52006-08-04 18:18:08 +000034463
Bill Wendlingebcceee2009-04-18 11:20:33 +000034464rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034465 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034466fi
Reid Spencera773bd52006-08-04 18:18:08 +000034467ac_res=`eval echo '${'$as_ac_var'}'`
34468 { echo "$as_me:$LINENO: result: $ac_res" >&5
34469echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034470if test `eval echo '${'$as_ac_var'}'` = yes; then
34471 cat >>confdefs.h <<_ACEOF
34472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34473_ACEOF
34474
34475fi
34476done
34477
Reid Spencera773bd52006-08-04 18:18:08 +000034478{ echo "$as_me:$LINENO: checking for working mmap" >&5
34479echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034480if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34481 echo $ECHO_N "(cached) $ECHO_C" >&6
34482else
34483 if test "$cross_compiling" = yes; then
34484 ac_cv_func_mmap_fixed_mapped=no
34485else
34486 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034487/* confdefs.h. */
34488_ACEOF
34489cat confdefs.h >>conftest.$ac_ext
34490cat >>conftest.$ac_ext <<_ACEOF
34491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034492$ac_includes_default
34493/* malloc might have been renamed as rpl_malloc. */
34494#undef malloc
34495
34496/* Thanks to Mike Haertel and Jim Avera for this test.
34497 Here is a matrix of mmap possibilities:
34498 mmap private not fixed
34499 mmap private fixed at somewhere currently unmapped
34500 mmap private fixed at somewhere already mapped
34501 mmap shared not fixed
34502 mmap shared fixed at somewhere currently unmapped
34503 mmap shared fixed at somewhere already mapped
34504 For private mappings, we should verify that changes cannot be read()
34505 back from the file, nor mmap's back from the file at a different
34506 address. (There have been systems where private was not correctly
34507 implemented like the infamous i386 svr4.0, and systems where the
34508 VM page cache was not coherent with the file system buffer cache
34509 like early versions of FreeBSD and possibly contemporary NetBSD.)
34510 For shared mappings, we should conversely verify that changes get
34511 propagated back to all the places they're supposed to be.
34512
34513 Grep wants private fixed already mapped.
34514 The main things grep needs to know about mmap are:
34515 * does it exist and is it safe to write into the mmap'd area
34516 * how to use it (BSD variants) */
34517
34518#include <fcntl.h>
34519#include <sys/mman.h>
34520
Bill Wendlingebcceee2009-04-18 11:20:33 +000034521#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034522char *malloc ();
34523#endif
34524
34525/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034526#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034527/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034528# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034529# define HAVE_SYS_PARAM_H 1
34530# endif
34531
34532# ifdef _SC_PAGESIZE
34533# define getpagesize() sysconf(_SC_PAGESIZE)
34534# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034535# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034536# include <sys/param.h>
34537# ifdef EXEC_PAGESIZE
34538# define getpagesize() EXEC_PAGESIZE
34539# else /* no EXEC_PAGESIZE */
34540# ifdef NBPG
34541# define getpagesize() NBPG * CLSIZE
34542# ifndef CLSIZE
34543# define CLSIZE 1
34544# endif /* no CLSIZE */
34545# else /* no NBPG */
34546# ifdef NBPC
34547# define getpagesize() NBPC
34548# else /* no NBPC */
34549# ifdef PAGESIZE
34550# define getpagesize() PAGESIZE
34551# endif /* PAGESIZE */
34552# endif /* no NBPC */
34553# endif /* no NBPG */
34554# endif /* no EXEC_PAGESIZE */
34555# else /* no HAVE_SYS_PARAM_H */
34556# define getpagesize() 8192 /* punt totally */
34557# endif /* no HAVE_SYS_PARAM_H */
34558# endif /* no _SC_PAGESIZE */
34559
34560#endif /* no HAVE_GETPAGESIZE */
34561
34562int
34563main ()
34564{
34565 char *data, *data2, *data3;
34566 int i, pagesize;
34567 int fd;
34568
34569 pagesize = getpagesize ();
34570
34571 /* First, make a file with some known garbage in it. */
34572 data = (char *) malloc (pagesize);
34573 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034574 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034575 for (i = 0; i < pagesize; ++i)
34576 *(data + i) = rand ();
34577 umask (0);
34578 fd = creat ("conftest.mmap", 0600);
34579 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034580 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034581 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034582 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034583 close (fd);
34584
34585 /* Next, try to mmap the file at a fixed address which already has
34586 something else allocated at it. If we can, also make sure that
34587 we see the same garbage. */
34588 fd = open ("conftest.mmap", O_RDWR);
34589 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034590 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034591 data2 = (char *) malloc (2 * pagesize);
34592 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034593 return 1;
34594 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034595 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034596 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034597 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034598 for (i = 0; i < pagesize; ++i)
34599 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034600 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034601
34602 /* Finally, make sure that changes to the mapped area do not
34603 percolate back to the file as seen by read(). (This is a bug on
34604 some variants of i386 svr4.0.) */
34605 for (i = 0; i < pagesize; ++i)
34606 *(data2 + i) = *(data2 + i) + 1;
34607 data3 = (char *) malloc (pagesize);
34608 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034609 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034610 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034611 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034612 for (i = 0; i < pagesize; ++i)
34613 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034614 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034615 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034616 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034617}
34618_ACEOF
34619rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034620if { (ac_try="$ac_link"
34621case "(($ac_try" in
34622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623 *) ac_try_echo=$ac_try;;
34624esac
34625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34626 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034627 ac_status=$?
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034630 { (case "(($ac_try" in
34631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632 *) ac_try_echo=$ac_try;;
34633esac
34634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034636 ac_status=$?
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); }; }; then
34639 ac_cv_func_mmap_fixed_mapped=yes
34640else
34641 echo "$as_me: program exited with status $ac_status" >&5
34642echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034643sed 's/^/| /' conftest.$ac_ext >&5
34644
John Criswell7a73b802003-06-30 21:59:07 +000034645( exit $ac_status )
34646ac_cv_func_mmap_fixed_mapped=no
34647fi
Reid Spencera773bd52006-08-04 18:18:08 +000034648rm -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 +000034649fi
Reid Spencera773bd52006-08-04 18:18:08 +000034650
34651
John Criswell7a73b802003-06-30 21:59:07 +000034652fi
Reid Spencera773bd52006-08-04 18:18:08 +000034653{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34654echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034655if test $ac_cv_func_mmap_fixed_mapped = yes; then
34656
34657cat >>confdefs.h <<\_ACEOF
34658#define HAVE_MMAP 1
34659_ACEOF
34660
34661fi
34662rm -f conftest.mmap
34663
Reid Spencer30fe5262007-01-20 07:48:49 +000034664 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034665echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034666if test "${ac_cv_func_mmap_file+set}" = set; then
34667 echo $ECHO_N "(cached) $ECHO_C" >&6
34668else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034669 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034670ac_cpp='$CPP $CPPFLAGS'
34671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34673ac_compiler_gnu=$ac_cv_c_compiler_gnu
34674
34675 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034676 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034677else
34678 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034679
Reid Spencer777ce172004-09-20 04:09:56 +000034680 /* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
34685
John Criswell7a73b802003-06-30 21:59:07 +000034686#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034687#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034688#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034689
34690int
34691main ()
34692{
John Criswell7a73b802003-06-30 21:59:07 +000034693
34694 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034695 fd = creat ("foo",0777);
34696 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34697 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034698 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034699 ;
34700 return 0;
34701}
John Criswell7a73b802003-06-30 21:59:07 +000034702_ACEOF
34703rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034704if { (ac_try="$ac_link"
34705case "(($ac_try" in
34706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34707 *) ac_try_echo=$ac_try;;
34708esac
34709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34710 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034711 ac_status=$?
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034714 { (case "(($ac_try" in
34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716 *) ac_try_echo=$ac_try;;
34717esac
34718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034720 ac_status=$?
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; }; then
34723 ac_cv_func_mmap_file=yes
34724else
34725 echo "$as_me: program exited with status $ac_status" >&5
34726echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034727sed 's/^/| /' conftest.$ac_ext >&5
34728
John Criswell7a73b802003-06-30 21:59:07 +000034729( exit $ac_status )
34730ac_cv_func_mmap_file=no
34731fi
Reid Spencera773bd52006-08-04 18:18:08 +000034732rm -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 +000034733fi
Reid Spencera773bd52006-08-04 18:18:08 +000034734
34735
John Criswell7a73b802003-06-30 21:59:07 +000034736 ac_ext=c
34737ac_cpp='$CPP $CPPFLAGS'
34738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34740ac_compiler_gnu=$ac_cv_c_compiler_gnu
34741
34742
34743fi
Reid Spencera773bd52006-08-04 18:18:08 +000034744{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34745echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034746if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034747
34748cat >>confdefs.h <<\_ACEOF
34749#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034750_ACEOF
34751
34752 MMAP_FILE=yes
34753
34754fi
34755
Reid Spencer30fe5262007-01-20 07:48:49 +000034756 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034757echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034758if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34760else
Reid Spencer582a23c2004-12-29 07:07:57 +000034761 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034762 ac_cv_need_dev_zero_for_mmap=yes
34763 else
34764 ac_cv_need_dev_zero_for_mmap=no
34765 fi
34766
34767fi
Reid Spencera773bd52006-08-04 18:18:08 +000034768{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34769echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034770if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34771
34772cat >>confdefs.h <<\_ACEOF
34773#define NEED_DEV_ZERO_FOR_MMAP 1
34774_ACEOF
34775
34776fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034777
Reid Spencer30fe5262007-01-20 07:48:49 +000034778 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34779 then
34780 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034781echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034782 fi
34783 if test "$ac_cv_func_mmap_file" = "no"
34784 then
34785 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034786echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034787 fi
John Criswellb13092b2003-07-22 21:00:24 +000034788fi
John Criswell7a73b802003-06-30 21:59:07 +000034789
Owen Andersona8603702009-05-19 22:18:56 +000034790{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034791echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034792cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034793/* confdefs.h. */
34794_ACEOF
34795cat confdefs.h >>conftest.$ac_ext
34796cat >>conftest.$ac_ext <<_ACEOF
34797/* end confdefs.h. */
34798int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034799 volatile unsigned long val = 1;
34800 __sync_synchronize();
34801 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034802 __sync_add_and_fetch(&val, 1);
34803 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034804 return 0;
34805 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034806
34807_ACEOF
34808rm -f conftest.$ac_objext conftest$ac_exeext
34809if { (ac_try="$ac_link"
34810case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34813esac
34814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_link") 2>conftest.er1
34816 ac_status=$?
34817 grep -v '^ *+' conftest.er1 >conftest.err
34818 rm -f conftest.er1
34819 cat conftest.err >&5
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); } &&
34822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34823 { (case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34826esac
34827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_try") 2>&5
34829 ac_status=$?
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest$ac_exeext'
34833 { (case "(($ac_try" in
34834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34835 *) ac_try_echo=$ac_try;;
34836esac
34837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34838 (eval "$ac_try") 2>&5
34839 ac_status=$?
34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841 (exit $ac_status); }; }; then
34842 { echo "$as_me:$LINENO: result: yes" >&5
34843echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034844
34845cat >>confdefs.h <<\_ACEOF
34846#define LLVM_MULTITHREADED 1
34847_ACEOF
34848
Owen Andersond4b272b2009-05-18 23:58:51 +000034849else
34850 echo "$as_me: failed program was:" >&5
34851sed 's/^/| /' conftest.$ac_ext >&5
34852
34853 { echo "$as_me:$LINENO: result: no" >&5
34854echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034855
Owen Andersona8603702009-05-19 22:18:56 +000034856cat >>confdefs.h <<\_ACEOF
34857#define LLVM_MULTITHREADED 0
34858_ACEOF
34859
34860 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34861echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034862fi
34863
34864rm -f core conftest.err conftest.$ac_objext \
34865 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034866
34867
John Criswell7a73b802003-06-30 21:59:07 +000034868
Nick Lewycky4372e692009-09-29 06:18:23 +000034869if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34870 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34871echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34872if test "${llvm_cv_linux_mixed+set}" = set; then
34873 echo $ECHO_N "(cached) $ECHO_C" >&6
34874else
34875 ac_ext=c
34876ac_cpp='$CPP $CPPFLAGS'
34877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34879ac_compiler_gnu=$ac_cv_c_compiler_gnu
34880
34881 cat >conftest.$ac_ext <<_ACEOF
34882/* confdefs.h. */
34883_ACEOF
34884cat confdefs.h >>conftest.$ac_ext
34885cat >>conftest.$ac_ext <<_ACEOF
34886/* end confdefs.h. */
34887#ifndef __x86_64__
34888 error: Not x86-64 even if uname says so!
34889 #endif
34890
34891int
34892main ()
34893{
34894
34895 ;
34896 return 0;
34897}
34898_ACEOF
34899rm -f conftest.$ac_objext
34900if { (ac_try="$ac_compile"
34901case "(($ac_try" in
34902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903 *) ac_try_echo=$ac_try;;
34904esac
34905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906 (eval "$ac_compile") 2>conftest.er1
34907 ac_status=$?
34908 grep -v '^ *+' conftest.er1 >conftest.err
34909 rm -f conftest.er1
34910 cat conftest.err >&5
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); } &&
34913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34914 { (case "(($ac_try" in
34915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916 *) ac_try_echo=$ac_try;;
34917esac
34918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919 (eval "$ac_try") 2>&5
34920 ac_status=$?
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; } &&
34923 { ac_try='test -s conftest.$ac_objext'
34924 { (case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34927esac
34928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34929 (eval "$ac_try") 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 llvm_cv_linux_mixed=no
34934else
34935 echo "$as_me: failed program was:" >&5
34936sed 's/^/| /' conftest.$ac_ext >&5
34937
34938 llvm_cv_linux_mixed=yes
34939fi
34940
34941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34942 ac_ext=c
34943ac_cpp='$CPP $CPPFLAGS'
34944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34946ac_compiler_gnu=$ac_cv_c_compiler_gnu
34947
34948
34949fi
34950{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34951echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34952
34953 if test "$llvm_cv_linux_mixed" = "yes"; then
34954 llvm_cv_target_arch="x86"
34955 ARCH="x86"
34956 fi
34957fi
34958
Reid Spencer9372f152007-07-30 20:13:24 +000034959
34960for ac_func in __dso_handle
34961do
34962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34966 echo $ECHO_N "(cached) $ECHO_C" >&6
34967else
34968 cat >conftest.$ac_ext <<_ACEOF
34969/* confdefs.h. */
34970_ACEOF
34971cat confdefs.h >>conftest.$ac_ext
34972cat >>conftest.$ac_ext <<_ACEOF
34973/* end confdefs.h. */
34974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34976#define $ac_func innocuous_$ac_func
34977
34978/* System header to define __stub macros and hopefully few prototypes,
34979 which can conflict with char $ac_func (); below.
34980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34981 <limits.h> exists even on freestanding compilers. */
34982
34983#ifdef __STDC__
34984# include <limits.h>
34985#else
34986# include <assert.h>
34987#endif
34988
34989#undef $ac_func
34990
34991/* Override any GCC internal prototype to avoid an error.
34992 Use char because int might match the return type of a GCC
34993 builtin and then its argument prototype would still apply. */
34994#ifdef __cplusplus
34995extern "C"
34996#endif
34997char $ac_func ();
34998/* The GNU C library defines this for functions which it implements
34999 to always fail with ENOSYS. Some functions are actually named
35000 something starting with __ and the normal name is an alias. */
35001#if defined __stub_$ac_func || defined __stub___$ac_func
35002choke me
35003#endif
35004
35005int
35006main ()
35007{
35008return $ac_func ();
35009 ;
35010 return 0;
35011}
35012_ACEOF
35013rm -f conftest.$ac_objext conftest$ac_exeext
35014if { (ac_try="$ac_link"
35015case "(($ac_try" in
35016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35017 *) ac_try_echo=$ac_try;;
35018esac
35019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35020 (eval "$ac_link") 2>conftest.er1
35021 ac_status=$?
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035026 (exit $ac_status); } &&
35027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35028 { (case "(($ac_try" in
35029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030 *) ac_try_echo=$ac_try;;
35031esac
35032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35033 (eval "$ac_try") 2>&5
35034 ac_status=$?
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest$ac_exeext'
35038 { (case "(($ac_try" in
35039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040 *) ac_try_echo=$ac_try;;
35041esac
35042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35043 (eval "$ac_try") 2>&5
35044 ac_status=$?
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000035047 eval "$as_ac_var=yes"
35048else
35049 echo "$as_me: failed program was:" >&5
35050sed 's/^/| /' conftest.$ac_ext >&5
35051
35052 eval "$as_ac_var=no"
35053fi
35054
Bill Wendlingebcceee2009-04-18 11:20:33 +000035055rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000035056 conftest$ac_exeext conftest.$ac_ext
35057fi
35058ac_res=`eval echo '${'$as_ac_var'}'`
35059 { echo "$as_me:$LINENO: result: $ac_res" >&5
35060echo "${ECHO_T}$ac_res" >&6; }
35061if test `eval echo '${'$as_ac_var'}'` = yes; then
35062 cat >>confdefs.h <<_ACEOF
35063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35064_ACEOF
35065
35066fi
35067done
35068
35069
Reid Spencera773bd52006-08-04 18:18:08 +000035070{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35071echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035072if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35073 echo $ECHO_N "(cached) $ECHO_C" >&6
35074else
35075 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035076if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035077 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035078 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35079 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035080 if test $? -eq 0 ; then
35081 llvm_cv_llvmgcc_sanity="yes"
35082 fi
35083 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035084fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035085fi
Reid Spencera773bd52006-08-04 18:18:08 +000035086{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35087echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035088
35089if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035090 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35091echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035092 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035093 LLVMCC1=$llvmcc1path
35094
Reid Spencer502935f2004-12-22 05:56:56 +000035095 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035096 LLVMCC1PLUS=$llvmcc1pluspath
35097
Reid Spencer502935f2004-12-22 05:56:56 +000035098 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35099 LLVMGCCDIR=$llvmgccdir
35100
Reid Spencer282d8c12006-12-21 22:55:41 +000035101 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35102 LLVMGCCLIBEXEC=$llvmgcclibexec
35103
Reid Spencerb5d75b82006-05-09 00:31:01 +000035104 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035105 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35106 LLVMGCC_VERSION=$llvmgccversion
35107
35108 LLVMGCC_MAJVERS=$llvmgccmajvers
35109
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035110 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035111 LLVMGCC_LANGS=$llvmgcclangs
35112
35113 { echo "$as_me:$LINENO: result: ok" >&5
35114echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035115fi
35116
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035117SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035118
35119
Reid Spencere9de0912004-08-20 09:03:57 +000035120# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035121# information into substitutions that will end up in Makefile.config.in
35122# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035123if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035124 prefix="/usr/local"
35125fi
Reid Spencere9de0912004-08-20 09:03:57 +000035126eval LLVM_PREFIX="${prefix}";
35127eval LLVM_BINDIR="${prefix}/bin";
35128eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035129eval LLVM_DATADIR="${prefix}/share/llvm";
35130eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35131eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035132eval LLVM_INCLUDEDIR="${prefix}/include";
35133eval LLVM_INFODIR="${prefix}/info";
35134eval LLVM_MANDIR="${prefix}/man";
35135LLVM_CONFIGTIME=`date`
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035147# Place the various directores into the config.h file as #defines so that we
35148# can know about the installation paths within LLVM.
35149
Reid Spencere9de0912004-08-20 09:03:57 +000035150cat >>confdefs.h <<_ACEOF
35151#define LLVM_PREFIX "$LLVM_PREFIX"
35152_ACEOF
35153
35154
35155cat >>confdefs.h <<_ACEOF
35156#define LLVM_BINDIR "$LLVM_BINDIR"
35157_ACEOF
35158
35159
35160cat >>confdefs.h <<_ACEOF
35161#define LLVM_LIBDIR "$LLVM_LIBDIR"
35162_ACEOF
35163
35164
35165cat >>confdefs.h <<_ACEOF
35166#define LLVM_DATADIR "$LLVM_DATADIR"
35167_ACEOF
35168
35169
35170cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035171#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035172_ACEOF
35173
35174
35175cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035176#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035177_ACEOF
35178
35179
35180cat >>confdefs.h <<_ACEOF
35181#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35182_ACEOF
35183
35184
35185cat >>confdefs.h <<_ACEOF
35186#define LLVM_INFODIR "$LLVM_INFODIR"
35187_ACEOF
35188
35189
35190cat >>confdefs.h <<_ACEOF
35191#define LLVM_MANDIR "$LLVM_MANDIR"
35192_ACEOF
35193
35194
35195cat >>confdefs.h <<_ACEOF
35196#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35197_ACEOF
35198
35199
Eric Christopher790e11c2007-12-01 00:34:39 +000035200cat >>confdefs.h <<_ACEOF
35201#define LLVM_HOSTTRIPLE "$host"
35202_ACEOF
35203
35204
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035205# Determine which bindings to build.
35206if test "$BINDINGS_TO_BUILD" = auto ; then
35207 BINDINGS_TO_BUILD=""
35208 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35209 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35210 fi
35211fi
35212BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35213
35214
35215# This isn't really configurey, but it avoids having to repeat the list in
35216# other files.
35217ALL_BINDINGS=ocaml
35218
35219
Gordon Henriksenf0915682007-10-02 16:42:22 +000035220# Do any work necessary to ensure that bindings have what they need.
35221binding_prereqs_failed=0
35222for a_binding in $BINDINGS_TO_BUILD ; do
35223 case "$a_binding" in
35224 ocaml)
35225 if test "x$OCAMLC" = x ; then
35226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35227echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35228 binding_prereqs_failed=1
35229 fi
35230 if test "x$OCAMLDEP" = x ; then
35231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35232echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35233 binding_prereqs_failed=1
35234 fi
35235 if test "x$OCAMLOPT" = x ; then
35236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35237echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35238 fi
35239 if test "x$with_ocaml_libdir" != xauto ; then
35240 OCAML_LIBDIR=$with_ocaml_libdir
35241
35242 else
35243 ocaml_stdlib="`"$OCAMLC" -where`"
35244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35245 then
35246 # ocaml stdlib is beneath our prefix; use stdlib
35247 OCAML_LIBDIR=$ocaml_stdlib
35248
35249 else
35250 # ocaml stdlib is outside our prefix; use libdir/ocaml
35251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35252
35253 fi
35254 fi
35255 ;;
35256 esac
35257done
35258if test "$binding_prereqs_failed" = 1 ; then
35259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35260echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35261 { (exit 1); exit 1; }; }
35262fi
35263
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035264{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35265echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35266if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35267 echo $ECHO_N "(cached) $ECHO_C" >&6
35268else
35269 ac_ext=cpp
35270ac_cpp='$CXXCPP $CPPFLAGS'
35271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35274
35275 oldcxxflags="$CXXFLAGS"
35276 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35277 cat >conftest.$ac_ext <<_ACEOF
35278/* confdefs.h. */
35279_ACEOF
35280cat confdefs.h >>conftest.$ac_ext
35281cat >>conftest.$ac_ext <<_ACEOF
35282/* end confdefs.h. */
35283
35284int
35285main ()
35286{
35287
35288 ;
35289 return 0;
35290}
35291_ACEOF
35292rm -f conftest.$ac_objext
35293if { (ac_try="$ac_compile"
35294case "(($ac_try" in
35295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35296 *) ac_try_echo=$ac_try;;
35297esac
35298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35299 (eval "$ac_compile") 2>conftest.er1
35300 ac_status=$?
35301 grep -v '^ *+' conftest.er1 >conftest.err
35302 rm -f conftest.er1
35303 cat conftest.err >&5
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035305 (exit $ac_status); } &&
35306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35307 { (case "(($ac_try" in
35308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35309 *) ac_try_echo=$ac_try;;
35310esac
35311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35312 (eval "$ac_try") 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; } &&
35316 { ac_try='test -s conftest.$ac_objext'
35317 { (case "(($ac_try" in
35318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319 *) ac_try_echo=$ac_try;;
35320esac
35321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35322 (eval "$ac_try") 2>&5
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035326 llvm_cv_cxx_visibility_inlines_hidden=yes
35327else
35328 echo "$as_me: failed program was:" >&5
35329sed 's/^/| /' conftest.$ac_ext >&5
35330
35331 llvm_cv_cxx_visibility_inlines_hidden=no
35332fi
35333
35334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35335 CXXFLAGS="$oldcxxflags"
35336 ac_ext=c
35337ac_cpp='$CPP $CPPFLAGS'
35338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35340ac_compiler_gnu=$ac_cv_c_compiler_gnu
35341
35342
35343fi
35344{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35345echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35346if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35347 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35348
35349else
35350 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35351
35352fi
35353
Gordon Henriksenf0915682007-10-02 16:42:22 +000035354
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035355if test "$llvm_cv_link_use_r" = "yes" ; then
35356 RPATH="-Wl,-R"
35357else
35358 RPATH="-Wl,-rpath"
35359fi
35360
35361
35362if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35363 RDYNAMIC="-Wl,-export-dynamic"
35364else
35365 RDYNAMIC=""
35366fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035367
35368
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035369
Reid Spencera773bd52006-08-04 18:18:08 +000035370ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035371
Douglas Gregor1555a232009-06-16 20:12:29 +000035372ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35373
35374ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35375
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035376ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35377
Chandler Carruth8b67f772009-10-26 01:35:46 +000035378ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035379
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035380
Reid Spencera773bd52006-08-04 18:18:08 +000035381ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035382
35383
Reid Spencerea949cf2006-08-16 00:45:38 +000035384ac_config_files="$ac_config_files llvm.spec"
35385
35386
Reid Spencera773bd52006-08-04 18:18:08 +000035387ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035388
35389
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035390ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35391
35392
Reid Spencera773bd52006-08-04 18:18:08 +000035393ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035394
35395
Reid Spencera773bd52006-08-04 18:18:08 +000035396ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035397
Reid Spencera773bd52006-08-04 18:18:08 +000035398ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035399
35400
Reid Spencera773bd52006-08-04 18:18:08 +000035401ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035402
35403
Reid Spencera773bd52006-08-04 18:18:08 +000035404ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035405
35406
Reid Spencera773bd52006-08-04 18:18:08 +000035407ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035408
35409
Reid Spencer8b2e1412006-11-17 03:32:33 +000035410ac_config_commands="$ac_config_commands runtime/Makefile"
35411
35412
Reid Spencera773bd52006-08-04 18:18:08 +000035413ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035414
35415
Reid Spencera773bd52006-08-04 18:18:08 +000035416ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035417
35418
Bill Wendlingf24eb392009-01-04 23:12:30 +000035419ac_config_commands="$ac_config_commands unittests/Makefile"
35420
35421
Reid Spencera773bd52006-08-04 18:18:08 +000035422ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035423
35424
Reid Spencera773bd52006-08-04 18:18:08 +000035425ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035426
35427
Reid Spencera773bd52006-08-04 18:18:08 +000035428ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035429
35430
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035431ac_config_commands="$ac_config_commands bindings/Makefile"
35432
35433
35434ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35435
35436
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035437
John Criswell7a73b802003-06-30 21:59:07 +000035438cat >confcache <<\_ACEOF
35439# This file is a shell script that caches the results of configure
35440# tests run on this system so they can be shared between configure
35441# scripts and configure runs, see configure's option --config-cache.
35442# It is not useful on other systems. If it contains results you don't
35443# want to keep, you may remove or edit it.
35444#
35445# config.status only pays attention to the cache file if you give it
35446# the --recheck option to rerun configure.
35447#
John Criswell0c38eaf2003-09-10 15:17:25 +000035448# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035449# loading this file, other *unset* `ac_cv_foo' will be assigned the
35450# following values.
35451
35452_ACEOF
35453
35454# The following way of writing the cache mishandles newlines in values,
35455# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035456# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035457# Ultrix sh set writes to stderr and can't be redirected directly,
35458# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035459(
35460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35461 eval ac_val=\$$ac_var
35462 case $ac_val in #(
35463 *${as_nl}*)
35464 case $ac_var in #(
35465 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35466echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35467 esac
35468 case $ac_var in #(
35469 _ | IFS | as_nl) ;; #(
35470 *) $as_unset $ac_var ;;
35471 esac ;;
35472 esac
35473 done
35474
John Criswell7a73b802003-06-30 21:59:07 +000035475 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035476 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35477 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035478 # `set' does not quote correctly, so add quotes (double-quote
35479 # substitution turns \\\\ into \\, and sed turns \\ into \).
35480 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035481 "s/'/'\\\\''/g;
35482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035483 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035484 *)
35485 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035488 esac |
35489 sort
35490) |
John Criswell7a73b802003-06-30 21:59:07 +000035491 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035492 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035493 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035494 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35496 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035497 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35498 :end' >>confcache
35499if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35500 if test -w "$cache_file"; then
35501 test "x$cache_file" != "x/dev/null" &&
35502 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35503echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035504 cat confcache >$cache_file
35505 else
Reid Spencera773bd52006-08-04 18:18:08 +000035506 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35507echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035508 fi
35509fi
35510rm -f confcache
35511
35512test "x$prefix" = xNONE && prefix=$ac_default_prefix
35513# Let make expand exec_prefix.
35514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35515
John Criswell7a73b802003-06-30 21:59:07 +000035516DEFS=-DHAVE_CONFIG_H
35517
John Criswell0c38eaf2003-09-10 15:17:25 +000035518ac_libobjs=
35519ac_ltlibobjs=
35520for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35521 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35523 ac_i=`echo "$ac_i" | sed "$ac_script"`
35524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35525 # will be set to the directory where LIBOBJS objects are built.
35526 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35527 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035528done
35529LIBOBJS=$ac_libobjs
35530
35531LTLIBOBJS=$ac_ltlibobjs
35532
35533
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035534if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35535 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35536Usually this means the macro was only invoked conditionally." >&5
35537echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35538Usually this means the macro was only invoked conditionally." >&2;}
35539 { (exit 1); exit 1; }; }
35540fi
35541if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35542 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35543Usually this means the macro was only invoked conditionally." >&5
35544echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35545Usually this means the macro was only invoked conditionally." >&2;}
35546 { (exit 1); exit 1; }; }
35547fi
John Criswell7a73b802003-06-30 21:59:07 +000035548
35549: ${CONFIG_STATUS=./config.status}
35550ac_clean_files_save=$ac_clean_files
35551ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35552{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35553echo "$as_me: creating $CONFIG_STATUS" >&6;}
35554cat >$CONFIG_STATUS <<_ACEOF
35555#! $SHELL
35556# Generated by $as_me.
35557# Run this file to recreate the current configuration.
35558# Compiler output produced by configure, useful for debugging
35559# configure, is in config.log if it exists.
35560
35561debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035562ac_cs_recheck=false
35563ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035564SHELL=\${CONFIG_SHELL-$SHELL}
35565_ACEOF
35566
35567cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035568## --------------------- ##
35569## M4sh Initialization. ##
35570## --------------------- ##
35571
Bill Wendlingebcceee2009-04-18 11:20:33 +000035572# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035573if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35574 emulate sh
35575 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035576 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35577 # is contrary to our usage. Disable this feature.
35578 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035579 setopt NO_GLOB_SUBST
35580else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035581 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035582fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035583BIN_SH=xpg4; export BIN_SH # for Tru64
35584DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035585
John Criswell7a73b802003-06-30 21:59:07 +000035586
Reid Spencera773bd52006-08-04 18:18:08 +000035587# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035588# Avoid depending upon Character Ranges.
35589as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35590as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35591as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35592as_cr_digits='0123456789'
35593as_cr_alnum=$as_cr_Letters$as_cr_digits
35594
35595# The user is always right.
35596if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035597 echo "#! /bin/sh" >conf$$.sh
35598 echo "exit 0" >>conf$$.sh
35599 chmod +x conf$$.sh
35600 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035601 PATH_SEPARATOR=';'
35602 else
35603 PATH_SEPARATOR=:
35604 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035605 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035606fi
35607
Reid Spencera773bd52006-08-04 18:18:08 +000035608# Support unset when possible.
35609if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35610 as_unset=unset
35611else
35612 as_unset=false
35613fi
John Criswell7a73b802003-06-30 21:59:07 +000035614
Reid Spencera773bd52006-08-04 18:18:08 +000035615
35616# IFS
35617# We need space, tab and new line, in precisely that order. Quoting is
35618# there to prevent editors from complaining about space-tab.
35619# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35620# splitting by setting IFS to empty value.)
35621as_nl='
35622'
35623IFS=" "" $as_nl"
35624
35625# Find who we are. Look in the path if we contain no directory separator.
35626case $0 in
35627 *[\\/]* ) as_myself=$0 ;;
35628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035629for as_dir in $PATH
35630do
35631 IFS=$as_save_IFS
35632 test -z "$as_dir" && as_dir=.
35633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35634done
Reid Spencera773bd52006-08-04 18:18:08 +000035635IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035636
Reid Spencera773bd52006-08-04 18:18:08 +000035637 ;;
35638esac
35639# We did not find ourselves, most probably we were run as `sh COMMAND'
35640# in which case we are not to be found in the path.
35641if test "x$as_myself" = x; then
35642 as_myself=$0
35643fi
35644if test ! -f "$as_myself"; then
35645 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35646 { (exit 1); exit 1; }
35647fi
35648
35649# Work around bugs in pre-3.0 UWIN ksh.
35650for as_var in ENV MAIL MAILPATH
35651do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35652done
35653PS1='$ '
35654PS2='> '
35655PS4='+ '
35656
35657# NLS nuisances.
35658for as_var in \
35659 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35660 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35661 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035662do
Reid Spencera773bd52006-08-04 18:18:08 +000035663 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35664 eval $as_var=C; export $as_var
35665 else
35666 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35667 fi
35668done
35669
35670# Required to use basename.
35671if expr a : '\(a\)' >/dev/null 2>&1 &&
35672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35673 as_expr=expr
35674else
35675 as_expr=false
35676fi
35677
35678if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35679 as_basename=basename
35680else
35681 as_basename=false
35682fi
35683
35684
35685# Name of the executable.
35686as_me=`$as_basename -- "$0" ||
35687$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35688 X"$0" : 'X\(//\)$' \| \
35689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35690echo X/"$0" |
35691 sed '/^.*\/\([^/][^/]*\)\/*$/{
35692 s//\1/
35693 q
35694 }
35695 /^X\/\(\/\/\)$/{
35696 s//\1/
35697 q
35698 }
35699 /^X\/\(\/\).*/{
35700 s//\1/
35701 q
35702 }
35703 s/.*/./; q'`
35704
35705# CDPATH.
35706$as_unset CDPATH
35707
35708
35709
John Criswell7a73b802003-06-30 21:59:07 +000035710 as_lineno_1=$LINENO
35711 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035712 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035713 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035714
35715 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35716 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035717 # line-number line after each line using $LINENO; the second 'sed'
35718 # does the real work. The second script uses 'N' to pair each
35719 # line-number line with the line containing $LINENO, and appends
35720 # trailing '-' during substitution so that $LINENO is not a special
35721 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035723 # scripts with optimization help from Paolo Bonzini. Blame Lee
35724 # E. McMahon (1931-1989) for sed's syntax. :-)
35725 sed -n '
35726 p
35727 /[$]LINENO/=
35728 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035729 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035730 s/[$]LINENO.*/&-/
35731 t lineno
35732 b
35733 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035734 N
Reid Spencera773bd52006-08-04 18:18:08 +000035735 :loop
35736 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035737 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035738 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035739 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035740 chmod +x "$as_me.lineno" ||
35741 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035742 { (exit 1); exit 1; }; }
35743
35744 # Don't try to exec as it changes $[0], causing all sort of problems
35745 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035746 # original and so on. Autoconf is especially sensitive to this).
35747 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035748 # Exit status is that of the last command.
35749 exit
35750}
35751
35752
Reid Spencera773bd52006-08-04 18:18:08 +000035753if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35754 as_dirname=dirname
35755else
35756 as_dirname=false
35757fi
35758
35759ECHO_C= ECHO_N= ECHO_T=
35760case `echo -n x` in
35761-n*)
35762 case `echo 'x\c'` in
35763 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35764 *) ECHO_C='\c';;
35765 esac;;
35766*)
35767 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035768esac
35769
Reid Spencera773bd52006-08-04 18:18:08 +000035770if expr a : '\(a\)' >/dev/null 2>&1 &&
35771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035772 as_expr=expr
35773else
35774 as_expr=false
35775fi
35776
35777rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035778if test -d conf$$.dir; then
35779 rm -f conf$$.dir/conf$$.file
35780else
35781 rm -f conf$$.dir
35782 mkdir conf$$.dir
35783fi
John Criswell7a73b802003-06-30 21:59:07 +000035784echo >conf$$.file
35785if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035786 as_ln_s='ln -s'
35787 # ... but there are two gotchas:
35788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35790 # In both cases, we have to default to `cp -p'.
35791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035792 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035793elif ln conf$$.file conf$$ 2>/dev/null; then
35794 as_ln_s=ln
35795else
35796 as_ln_s='cp -p'
35797fi
Reid Spencera773bd52006-08-04 18:18:08 +000035798rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35799rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035800
John Criswell0c38eaf2003-09-10 15:17:25 +000035801if mkdir -p . 2>/dev/null; then
35802 as_mkdir_p=:
35803else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035804 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035805 as_mkdir_p=false
35806fi
35807
Bill Wendlingebcceee2009-04-18 11:20:33 +000035808# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35809# systems may use methods other than mode bits to determine executability.
35810cat >conf$$.file <<_ASEOF
35811#! /bin/sh
35812exit 0
35813_ASEOF
35814chmod +x conf$$.file
35815if test -x conf$$.file >/dev/null 2>&1; then
35816 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035817else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035818 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035819fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035820rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035821
35822# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035823as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035824
35825# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035826as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035827
35828
John Criswell7a73b802003-06-30 21:59:07 +000035829exec 6>&1
35830
Reid Spencera773bd52006-08-04 18:18:08 +000035831# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035832# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035833# values after options handling.
35834ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035835This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035836generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035837
35838 CONFIG_FILES = $CONFIG_FILES
35839 CONFIG_HEADERS = $CONFIG_HEADERS
35840 CONFIG_LINKS = $CONFIG_LINKS
35841 CONFIG_COMMANDS = $CONFIG_COMMANDS
35842 $ $0 $@
35843
Reid Spencera773bd52006-08-04 18:18:08 +000035844on `(hostname || uname -n) 2>/dev/null | sed 1q`
35845"
35846
John Criswell7a73b802003-06-30 21:59:07 +000035847_ACEOF
35848
Reid Spencera773bd52006-08-04 18:18:08 +000035849cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035850# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035851config_files="$ac_config_files"
35852config_headers="$ac_config_headers"
35853config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035854
Reid Spencera773bd52006-08-04 18:18:08 +000035855_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035856
35857cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035858ac_cs_usage="\
35859\`$as_me' instantiates files from templates according to the
35860current configuration.
35861
35862Usage: $0 [OPTIONS] [FILE]...
35863
35864 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035865 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035866 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035867 -d, --debug don't remove temporary files
35868 --recheck update $as_me by reconfiguring in the same conditions
35869 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035870 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035871 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035872 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035873
35874Configuration files:
35875$config_files
35876
35877Configuration headers:
35878$config_headers
35879
John Criswellc764fbc2003-09-06 15:17:13 +000035880Configuration commands:
35881$config_commands
35882
John Criswell7a73b802003-06-30 21:59:07 +000035883Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035884
Reid Spencera773bd52006-08-04 18:18:08 +000035885_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035886cat >>$CONFIG_STATUS <<_ACEOF
35887ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035888llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035889configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035890 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035891
Reid Spencera773bd52006-08-04 18:18:08 +000035892Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035893This config.status script is free software; the Free Software Foundation
35894gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035895
35896ac_pwd='$ac_pwd'
35897srcdir='$srcdir'
35898INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035899_ACEOF
35900
35901cat >>$CONFIG_STATUS <<\_ACEOF
35902# If no file are specified by the user, then we need to provide default
35903# value. By we need to know if files were specified by the user.
35904ac_need_defaults=:
35905while test $# != 0
35906do
35907 case $1 in
35908 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035911 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035913 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035914 ac_option=$1
35915 ac_optarg=$2
35916 ac_shift=shift
35917 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035918 esac
35919
John Criswell0c38eaf2003-09-10 15:17:25 +000035920 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035921 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35923 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35925 echo "$ac_cs_version"; exit ;;
35926 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035927 debug=: ;;
35928 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035929 $ac_shift
35930 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035931 ac_need_defaults=false;;
35932 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035933 $ac_shift
35934 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035935 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035936 --he | --h)
35937 # Conflict between --help and --header
35938 { echo "$as_me: error: ambiguous option: $1
35939Try \`$0 --help' for more information." >&2
35940 { (exit 1); exit 1; }; };;
35941 --help | --hel | -h )
35942 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35945 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035946
35947 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035948 -*) { echo "$as_me: error: unrecognized option: $1
35949Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035950 { (exit 1); exit 1; }; } ;;
35951
Reid Spencera773bd52006-08-04 18:18:08 +000035952 *) ac_config_targets="$ac_config_targets $1"
35953 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035954
35955 esac
35956 shift
35957done
35958
John Criswell0c38eaf2003-09-10 15:17:25 +000035959ac_configure_extra_args=
35960
35961if $ac_cs_silent; then
35962 exec 6>/dev/null
35963 ac_configure_extra_args="$ac_configure_extra_args --silent"
35964fi
35965
35966_ACEOF
35967cat >>$CONFIG_STATUS <<_ACEOF
35968if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035969 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35970 CONFIG_SHELL=$SHELL
35971 export CONFIG_SHELL
35972 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035973fi
35974
John Criswell7a73b802003-06-30 21:59:07 +000035975_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035976cat >>$CONFIG_STATUS <<\_ACEOF
35977exec 5>>config.log
35978{
35979 echo
35980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35981## Running $as_me. ##
35982_ASBOX
35983 echo "$ac_log"
35984} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035985
Reid Spencera773bd52006-08-04 18:18:08 +000035986_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035987cat >>$CONFIG_STATUS <<_ACEOF
35988#
Reid Spencera773bd52006-08-04 18:18:08 +000035989# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035990#
Reid Spencerc0682832005-02-24 19:05:19 +000035991llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035992
35993_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035994
John Criswell7a73b802003-06-30 21:59:07 +000035995cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035996
35997# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035998for ac_config_target in $ac_config_targets
35999do
Reid Spencera773bd52006-08-04 18:18:08 +000036000 case $ac_config_target in
36001 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000036002 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36003 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036004 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000036005 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036006 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000036007 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036008 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036009 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036010 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36011 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36012 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36013 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36014 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36015 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036016 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036017 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36018 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036019 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036020 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36021 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36022 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036023 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36024 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036025
John Criswell7a73b802003-06-30 21:59:07 +000036026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36027echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36028 { (exit 1); exit 1; }; };;
36029 esac
36030done
36031
Reid Spencera773bd52006-08-04 18:18:08 +000036032
John Criswell7a73b802003-06-30 21:59:07 +000036033# If the user did not use the arguments to specify the items to instantiate,
36034# then the envvar interface is used. Set only those that are not.
36035# We use the long form for the default assignment because of an extremely
36036# bizarre bug on SunOS 4.1.3.
36037if $ac_need_defaults; then
36038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000036040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000036041fi
36042
John Criswell0c38eaf2003-09-10 15:17:25 +000036043# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000036044# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000036045# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000036046# Hook for its removal unless debugging.
36047# Note that there is a small window in which the directory will not be cleaned:
36048# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000036049$debug ||
36050{
Reid Spencera773bd52006-08-04 18:18:08 +000036051 tmp=
36052 trap 'exit_status=$?
36053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36054' 0
John Criswell7a73b802003-06-30 21:59:07 +000036055 trap '{ (exit 1); exit 1; }' 1 2 13 15
36056}
John Criswell7a73b802003-06-30 21:59:07 +000036057# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000036058
John Criswell7a73b802003-06-30 21:59:07 +000036059{
Reid Spencera773bd52006-08-04 18:18:08 +000036060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000036061 test -n "$tmp" && test -d "$tmp"
36062} ||
36063{
Reid Spencera773bd52006-08-04 18:18:08 +000036064 tmp=./conf$$-$RANDOM
36065 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000036066} ||
36067{
John Criswell0c38eaf2003-09-10 15:17:25 +000036068 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000036069 { (exit 1); exit 1; }
36070}
36071
John Criswell7a73b802003-06-30 21:59:07 +000036072#
Reid Spencera773bd52006-08-04 18:18:08 +000036073# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036074#
36075
36076# No need to generate the scripts if there are no CONFIG_FILES.
36077# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036078if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036079
36080_ACEOF
36081
Reid Spencera773bd52006-08-04 18:18:08 +000036082
36083
36084ac_delim='%!_!# '
36085for ac_last_try in false false false false false :; do
36086 cat >conf$$subs.sed <<_ACEOF
36087SHELL!$SHELL$ac_delim
36088PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36089PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36090PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36091PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36092PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36093PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36094exec_prefix!$exec_prefix$ac_delim
36095prefix!$prefix$ac_delim
36096program_transform_name!$program_transform_name$ac_delim
36097bindir!$bindir$ac_delim
36098sbindir!$sbindir$ac_delim
36099libexecdir!$libexecdir$ac_delim
36100datarootdir!$datarootdir$ac_delim
36101datadir!$datadir$ac_delim
36102sysconfdir!$sysconfdir$ac_delim
36103sharedstatedir!$sharedstatedir$ac_delim
36104localstatedir!$localstatedir$ac_delim
36105includedir!$includedir$ac_delim
36106oldincludedir!$oldincludedir$ac_delim
36107docdir!$docdir$ac_delim
36108infodir!$infodir$ac_delim
36109htmldir!$htmldir$ac_delim
36110dvidir!$dvidir$ac_delim
36111pdfdir!$pdfdir$ac_delim
36112psdir!$psdir$ac_delim
36113libdir!$libdir$ac_delim
36114localedir!$localedir$ac_delim
36115mandir!$mandir$ac_delim
36116DEFS!$DEFS$ac_delim
36117ECHO_C!$ECHO_C$ac_delim
36118ECHO_N!$ECHO_N$ac_delim
36119ECHO_T!$ECHO_T$ac_delim
36120LIBS!$LIBS$ac_delim
36121build_alias!$build_alias$ac_delim
36122host_alias!$host_alias$ac_delim
36123target_alias!$target_alias$ac_delim
36124LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36125subdirs!$subdirs$ac_delim
36126build!$build$ac_delim
36127build_cpu!$build_cpu$ac_delim
36128build_vendor!$build_vendor$ac_delim
36129build_os!$build_os$ac_delim
36130host!$host$ac_delim
36131host_cpu!$host_cpu$ac_delim
36132host_vendor!$host_vendor$ac_delim
36133host_os!$host_os$ac_delim
36134target!$target$ac_delim
36135target_cpu!$target_cpu$ac_delim
36136target_vendor!$target_vendor$ac_delim
36137target_os!$target_os$ac_delim
36138OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036139HOST_OS!$HOST_OS$ac_delim
36140TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036141LINKALL!$LINKALL$ac_delim
36142NOLINKALL!$NOLINKALL$ac_delim
36143LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36144LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036145ARCH!$ARCH$ac_delim
36146ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036147CC!$CC$ac_delim
36148CFLAGS!$CFLAGS$ac_delim
36149LDFLAGS!$LDFLAGS$ac_delim
36150CPPFLAGS!$CPPFLAGS$ac_delim
36151ac_ct_CC!$ac_ct_CC$ac_delim
36152EXEEXT!$EXEEXT$ac_delim
36153OBJEXT!$OBJEXT$ac_delim
36154CPP!$CPP$ac_delim
36155GREP!$GREP$ac_delim
36156EGREP!$EGREP$ac_delim
36157LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36158BUILD_CC!$BUILD_CC$ac_delim
36159BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036160BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036161CVSBUILD!$CVSBUILD$ac_delim
36162ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036163ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036164DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036165ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36166EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036167DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036168DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036169JIT!$JIT$ac_delim
36170TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36171ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36172ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036173ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036174TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036175LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36176LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036177LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036178ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036179OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036180EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036181BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036182ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36183ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036184_ACEOF
36185
36186 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36187 break
36188 elif $ac_last_try; then
36189 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36190echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36191 { (exit 1); exit 1; }; }
36192 else
36193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036194 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036195done
36196
36197ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36198if test -n "$ac_eof"; then
36199 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36200 ac_eof=`expr $ac_eof + 1`
36201fi
36202
36203cat >>$CONFIG_STATUS <<_ACEOF
36204cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36206_ACEOF
36207sed '
36208s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36209s/^/s,@/; s/!/@,|#_!!_#|/
36210:n
36211t n
36212s/'"$ac_delim"'$/,g/; t
36213s/$/\\/; p
36214N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36215' >>$CONFIG_STATUS <conf$$subs.sed
36216rm -f conf$$subs.sed
36217cat >>$CONFIG_STATUS <<_ACEOF
36218CEOF$ac_eof
36219_ACEOF
36220
36221
36222ac_delim='%!_!# '
36223for ac_last_try in false false false false false :; do
36224 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036225CXX!$CXX$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036226CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036227ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036228NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036229ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036230LN_S!$LN_S$ac_delim
36231CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036232CP!$CP$ac_delim
36233DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036234FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036235MKDIR!$MKDIR$ac_delim
36236MV!$MV$ac_delim
36237RANLIB!$RANLIB$ac_delim
36238RM!$RM$ac_delim
36239SED!$SED$ac_delim
36240TAR!$TAR$ac_delim
36241BINPWD!$BINPWD$ac_delim
36242GRAPHVIZ!$GRAPHVIZ$ac_delim
36243DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036244FDP!$FDP$ac_delim
36245NEATO!$NEATO$ac_delim
36246TWOPI!$TWOPI$ac_delim
36247CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036248GV!$GV$ac_delim
36249DOTTY!$DOTTY$ac_delim
36250PERL!$PERL$ac_delim
36251HAVE_PERL!$HAVE_PERL$ac_delim
36252INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36253INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36254INSTALL_DATA!$INSTALL_DATA$ac_delim
36255BZIP2!$BZIP2$ac_delim
36256DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036257GROFF!$GROFF$ac_delim
36258GZIP!$GZIP$ac_delim
36259POD2HTML!$POD2HTML$ac_delim
36260POD2MAN!$POD2MAN$ac_delim
36261RUNTEST!$RUNTEST$ac_delim
36262TCLSH!$TCLSH$ac_delim
36263ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036264OCAMLC!$OCAMLC$ac_delim
36265OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036266OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036267OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036268GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036269INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36270INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36271CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36272CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36273LIBADD_DL!$LIBADD_DL$ac_delim
36274ECHO!$ECHO$ac_delim
36275AR!$AR$ac_delim
36276STRIP!$STRIP$ac_delim
36277CXXCPP!$CXXCPP$ac_delim
36278F77!$F77$ac_delim
36279FFLAGS!$FFLAGS$ac_delim
36280ac_ct_F77!$ac_ct_F77$ac_delim
36281LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036282LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36283LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036284LLVMGCC!$LLVMGCC$ac_delim
36285LLVMGXX!$LLVMGXX$ac_delim
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036286NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36287NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036288USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036289USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036290HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036291HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036292ALLOCA!$ALLOCA$ac_delim
36293MMAP_FILE!$MMAP_FILE$ac_delim
36294LLVMCC1!$LLVMCC1$ac_delim
36295LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36296LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036297LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036298LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36299LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036300LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036301SHLIBEXT!$SHLIBEXT$ac_delim
36302LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36303LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36304LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36305LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36306LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36307LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36308LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36309LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36310LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36311LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036312BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36313ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036314OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036315ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036316RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036317RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036318LIBOBJS!$LIBOBJS$ac_delim
36319LTLIBOBJS!$LTLIBOBJS$ac_delim
36320_ACEOF
36321
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036322 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Reid Spencera773bd52006-08-04 18:18:08 +000036323 break
36324 elif $ac_last_try; then
36325 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36326echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36327 { (exit 1); exit 1; }; }
36328 else
36329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36330 fi
36331done
36332
36333ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36334if test -n "$ac_eof"; then
36335 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36336 ac_eof=`expr $ac_eof + 1`
36337fi
36338
36339cat >>$CONFIG_STATUS <<_ACEOF
36340cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36342_ACEOF
36343sed '
36344s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36345s/^/s,@/; s/!/@,|#_!!_#|/
36346:n
36347t n
36348s/'"$ac_delim"'$/,g/; t
36349s/$/\\/; p
36350N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36351' >>$CONFIG_STATUS <conf$$subs.sed
36352rm -f conf$$subs.sed
36353cat >>$CONFIG_STATUS <<_ACEOF
36354:end
36355s/|#_!!_#|//g
36356CEOF$ac_eof
36357_ACEOF
36358
36359
36360# VPATH may cause trouble with some makes, so we remove $(srcdir),
36361# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36362# trailing colons and then remove the whole line if VPATH becomes empty
36363# (actually we leave an empty line to preserve line numbers).
36364if test "x$srcdir" = x.; then
36365 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36366s/:*\$(srcdir):*/:/
36367s/:*\${srcdir}:*/:/
36368s/:*@srcdir@:*/:/
36369s/^\([^=]*=[ ]*\):*/\1/
36370s/:*$//
36371s/^[^=]*=[ ]*$//
36372}'
36373fi
36374
36375cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036376fi # test -n "$CONFIG_FILES"
36377
Reid Spencera773bd52006-08-04 18:18:08 +000036378
36379for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36380do
36381 case $ac_tag in
36382 :[FHLC]) ac_mode=$ac_tag; continue;;
36383 esac
36384 case $ac_mode$ac_tag in
36385 :[FHL]*:*);;
36386 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36387echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36388 { (exit 1); exit 1; }; };;
36389 :[FH]-) ac_tag=-:-;;
36390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36391 esac
36392 ac_save_IFS=$IFS
36393 IFS=:
36394 set x $ac_tag
36395 IFS=$ac_save_IFS
36396 shift
36397 ac_file=$1
36398 shift
36399
36400 case $ac_mode in
36401 :L) ac_source=$1;;
36402 :[FH])
36403 ac_file_inputs=
36404 for ac_f
36405 do
36406 case $ac_f in
36407 -) ac_f="$tmp/stdin";;
36408 *) # Look for the file first in the build tree, then in the source tree
36409 # (if the path is not absolute). The absolute path cannot be DOS-style,
36410 # because $ac_f cannot contain `:'.
36411 test -f "$ac_f" ||
36412 case $ac_f in
36413 [\\/$]*) false;;
36414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36415 esac ||
36416 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36417echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36418 { (exit 1); exit 1; }; };;
36419 esac
36420 ac_file_inputs="$ac_file_inputs $ac_f"
36421 done
36422
36423 # Let's still pretend it is `configure' which instantiates (i.e., don't
36424 # use $as_me), people would be surprised to read:
36425 # /* config.h. Generated by config.status. */
36426 configure_input="Generated from "`IFS=:
36427 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36428 if test x"$ac_file" != x-; then
36429 configure_input="$ac_file. $configure_input"
36430 { echo "$as_me:$LINENO: creating $ac_file" >&5
36431echo "$as_me: creating $ac_file" >&6;}
36432 fi
36433
36434 case $ac_tag in
36435 *:-:* | *:-) cat >"$tmp/stdin";;
36436 esac
36437 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036438 esac
36439
Reid Spencera773bd52006-08-04 18:18:08 +000036440 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036442 X"$ac_file" : 'X\(//\)[^/]' \| \
36443 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036445echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36447 s//\1/
36448 q
36449 }
36450 /^X\(\/\/\)[^/].*/{
36451 s//\1/
36452 q
36453 }
36454 /^X\(\/\/\)$/{
36455 s//\1/
36456 q
36457 }
36458 /^X\(\/\).*/{
36459 s//\1/
36460 q
36461 }
36462 s/.*/./; q'`
36463 { as_dir="$ac_dir"
36464 case $as_dir in #(
36465 -*) as_dir=./$as_dir;;
36466 esac
36467 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036468 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036469 while :; do
36470 case $as_dir in #(
36471 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36472 *) as_qdir=$as_dir;;
36473 esac
36474 as_dirs="'$as_qdir' $as_dirs"
36475 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036476$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036477 X"$as_dir" : 'X\(//\)[^/]' \| \
36478 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036480echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36482 s//\1/
36483 q
36484 }
36485 /^X\(\/\/\)[^/].*/{
36486 s//\1/
36487 q
36488 }
36489 /^X\(\/\/\)$/{
36490 s//\1/
36491 q
36492 }
36493 /^X\(\/\).*/{
36494 s//\1/
36495 q
36496 }
36497 s/.*/./; q'`
36498 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036499 done
Reid Spencera773bd52006-08-04 18:18:08 +000036500 test -z "$as_dirs" || eval "mkdir $as_dirs"
36501 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36502echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036503 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036504 ac_builddir=.
36505
Reid Spencera773bd52006-08-04 18:18:08 +000036506case "$ac_dir" in
36507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36508*)
John Criswell7a73b802003-06-30 21:59:07 +000036509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036510 # A ".." for each directory in $ac_dir_suffix.
36511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36512 case $ac_top_builddir_sub in
36513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36515 esac ;;
36516esac
36517ac_abs_top_builddir=$ac_pwd
36518ac_abs_builddir=$ac_pwd$ac_dir_suffix
36519# for backward compatibility:
36520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036521
36522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036525 ac_top_srcdir=$ac_top_builddir_sub
36526 ac_abs_top_srcdir=$ac_pwd ;;
36527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036529 ac_top_srcdir=$srcdir
36530 ac_abs_top_srcdir=$srcdir ;;
36531 *) # Relative name.
36532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36533 ac_top_srcdir=$ac_top_build_prefix$srcdir
36534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036535esac
Reid Spencera773bd52006-08-04 18:18:08 +000036536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036537
John Criswell7a73b802003-06-30 21:59:07 +000036538
Reid Spencera773bd52006-08-04 18:18:08 +000036539 case $ac_mode in
36540 :F)
36541 #
36542 # CONFIG_FILE
36543 #
John Criswell7a73b802003-06-30 21:59:07 +000036544
36545 case $INSTALL in
36546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036548 esac
John Criswell7a73b802003-06-30 21:59:07 +000036549_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036550
36551cat >>$CONFIG_STATUS <<\_ACEOF
36552# If the template does not know about datarootdir, expand it.
36553# FIXME: This hack should be removed a few years after 2.60.
36554ac_datarootdir_hack=; ac_datarootdir_seen=
36555
36556case `sed -n '/datarootdir/ {
36557 p
36558 q
36559}
36560/@datadir@/p
36561/@docdir@/p
36562/@infodir@/p
36563/@localedir@/p
36564/@mandir@/p
36565' $ac_file_inputs` in
36566*datarootdir*) ac_datarootdir_seen=yes;;
36567*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36568 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36569echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36570_ACEOF
36571cat >>$CONFIG_STATUS <<_ACEOF
36572 ac_datarootdir_hack='
36573 s&@datadir@&$datadir&g
36574 s&@docdir@&$docdir&g
36575 s&@infodir@&$infodir&g
36576 s&@localedir@&$localedir&g
36577 s&@mandir@&$mandir&g
36578 s&\\\${datarootdir}&$datarootdir&g' ;;
36579esac
36580_ACEOF
36581
36582# Neutralize VPATH when `$srcdir' = `.'.
36583# Shell code in configure.ac might set extrasub.
36584# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036585cat >>$CONFIG_STATUS <<_ACEOF
36586 sed "$ac_vpsub
36587$extrasub
36588_ACEOF
36589cat >>$CONFIG_STATUS <<\_ACEOF
36590:t
36591/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036592s&@configure_input@&$configure_input&;t t
36593s&@top_builddir@&$ac_top_builddir_sub&;t t
36594s&@srcdir@&$ac_srcdir&;t t
36595s&@abs_srcdir@&$ac_abs_srcdir&;t t
36596s&@top_srcdir@&$ac_top_srcdir&;t t
36597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36598s&@builddir@&$ac_builddir&;t t
36599s&@abs_builddir@&$ac_abs_builddir&;t t
36600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36601s&@INSTALL@&$ac_INSTALL&;t t
36602$ac_datarootdir_hack
36603" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036604
Reid Spencera773bd52006-08-04 18:18:08 +000036605test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36608 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36609which seems to be undefined. Please make sure it is defined." >&5
36610echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36611which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036612
Reid Spencera773bd52006-08-04 18:18:08 +000036613 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036614 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036615 -) cat "$tmp/out"; rm -f "$tmp/out";;
36616 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036617 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036618 ;;
36619 :H)
36620 #
36621 # CONFIG_HEADER
36622 #
John Criswell7a73b802003-06-30 21:59:07 +000036623_ACEOF
36624
Reid Spencera773bd52006-08-04 18:18:08 +000036625# Transform confdefs.h into a sed script `conftest.defines', that
36626# substitutes the proper values into config.h.in to produce config.h.
36627rm -f conftest.defines conftest.tail
36628# First, append a space to every undef/define line, to ease matching.
36629echo 's/$/ /' >conftest.defines
36630# Then, protect against being on the right side of a sed subst, or in
36631# an unquoted here document, in config.status. If some macros were
36632# called several times there might be several #defines for the same
36633# symbol, which is useless. But do not sort them, since the last
36634# AC_DEFINE must be honored.
36635ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36636# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36637# NAME is the cpp macro being defined, VALUE is the value it is being given.
36638# PARAMS is the parameter list in the macro definition--in most cases, it's
36639# just an empty string.
36640ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36641ac_dB='\\)[ (].*,\\1define\\2'
36642ac_dC=' '
36643ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036644
Reid Spencera773bd52006-08-04 18:18:08 +000036645uniq confdefs.h |
36646 sed -n '
36647 t rset
36648 :rset
36649 s/^[ ]*#[ ]*define[ ][ ]*//
36650 t ok
36651 d
36652 :ok
36653 s/[\\&,]/\\&/g
36654 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36655 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36656 ' >>conftest.defines
36657
36658# Remove the space that was appended to ease matching.
36659# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036660# example, in the case of _POSIX_SOURCE, which is predefined and required
36661# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036662# (The regexp can be short, since the line contains either #define or #undef.)
36663echo 's/ $//
36664s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036665
Reid Spencera773bd52006-08-04 18:18:08 +000036666# Break up conftest.defines:
36667ac_max_sed_lines=50
36668
36669# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36670# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36671# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36672# et cetera.
36673ac_in='$ac_file_inputs'
36674ac_out='"$tmp/out1"'
36675ac_nxt='"$tmp/out2"'
36676
36677while :
John Criswell7a73b802003-06-30 21:59:07 +000036678do
Reid Spencera773bd52006-08-04 18:18:08 +000036679 # Write a here document:
36680 cat >>$CONFIG_STATUS <<_ACEOF
36681 # First, check the format of the line:
36682 cat >"\$tmp/defines.sed" <<\\CEOF
36683/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36684/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36685b
36686:def
36687_ACEOF
36688 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036689 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036690 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36691 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36692 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36693 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036694 rm -f conftest.defines
36695 mv conftest.tail conftest.defines
36696done
Reid Spencera773bd52006-08-04 18:18:08 +000036697rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036698
Reid Spencera773bd52006-08-04 18:18:08 +000036699echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036700cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036701 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036702 echo "/* $configure_input */" >"$tmp/config.h"
36703 cat "$ac_result" >>"$tmp/config.h"
36704 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36706echo "$as_me: $ac_file is unchanged" >&6;}
36707 else
John Criswell7a73b802003-06-30 21:59:07 +000036708 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036709 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036710 fi
36711 else
Reid Spencera773bd52006-08-04 18:18:08 +000036712 echo "/* $configure_input */"
36713 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036714 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036715 rm -f "$tmp/out12"
36716 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036717
Reid Spencera773bd52006-08-04 18:18:08 +000036718 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36719echo "$as_me: executing $ac_file commands" >&6;}
36720 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036721 esac
John Criswell7a73b802003-06-30 21:59:07 +000036722
Reid Spencera773bd52006-08-04 18:18:08 +000036723
36724 case $ac_file$ac_mode in
36725 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036727 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036729 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036731 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036733 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036735 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036737 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036739 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036741 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036743 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036745 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036746 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036747 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036749 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036750 ${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 +000036751
36752 esac
36753done # for ac_tag
36754
John Criswell7a73b802003-06-30 21:59:07 +000036755
36756{ (exit 0); exit 0; }
36757_ACEOF
36758chmod +x $CONFIG_STATUS
36759ac_clean_files=$ac_clean_files_save
36760
36761
36762# configure is writing to config.log, and then calls config.status.
36763# config.status does its own redirection, appending to config.log.
36764# Unfortunately, on DOS this fails, as config.log is still kept open
36765# by configure, so config.status won't be able to write to it; its
36766# output is simply discarded. So we exec the FD to /dev/null,
36767# effectively closing config.log, so it can be properly (re)opened and
36768# appended to by config.status. When coming back to configure, we
36769# need to make the FD available again.
36770if test "$no_create" != yes; then
36771 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036772 ac_config_status_args=
36773 test "$silent" = yes &&
36774 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036775 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036777 exec 5>>config.log
36778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36779 # would make configure fail if this is the last instruction.
36780 $ac_cs_success || { (exit 1); exit 1; }
36781fi
36782
John Criswell12399a12003-09-30 15:55:44 +000036783#
36784# CONFIG_SUBDIRS section.
36785#
36786if test "$no_recursion" != yes; then
36787
36788 # Remove --cache-file and --srcdir arguments so they do not pile up.
36789 ac_sub_configure_args=
36790 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036791 eval "set x $ac_configure_args"
36792 shift
36793 for ac_arg
36794 do
John Criswell12399a12003-09-30 15:55:44 +000036795 if test -n "$ac_prev"; then
36796 ac_prev=
36797 continue
36798 fi
36799 case $ac_arg in
36800 -cache-file | --cache-file | --cache-fil | --cache-fi \
36801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36802 ac_prev=cache_file ;;
36803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36805 | --c=*)
36806 ;;
36807 --config-cache | -C)
36808 ;;
36809 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36810 ac_prev=srcdir ;;
36811 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36812 ;;
36813 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36814 ac_prev=prefix ;;
36815 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036817 *)
36818 case $ac_arg in
36819 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36820 esac
36821 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036822 esac
36823 done
36824
36825 # Always prepend --prefix to ensure using the same prefix
36826 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036827 ac_arg="--prefix=$prefix"
36828 case $ac_arg in
36829 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36830 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036831 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036832
36833 ac_popdir=`pwd`
36834 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36835
36836 # Do not complain, so a configure script can configure whichever
36837 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036838 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036839
Reid Spencera773bd52006-08-04 18:18:08 +000036840 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36841 echo "$as_me:$LINENO: $ac_msg" >&5
36842 echo "$ac_msg" >&6
36843 { as_dir="$ac_dir"
36844 case $as_dir in #(
36845 -*) as_dir=./$as_dir;;
36846 esac
36847 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036848 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036849 while :; do
36850 case $as_dir in #(
36851 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36852 *) as_qdir=$as_dir;;
36853 esac
36854 as_dirs="'$as_qdir' $as_dirs"
36855 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036857 X"$as_dir" : 'X\(//\)[^/]' \| \
36858 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036860echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36862 s//\1/
36863 q
36864 }
36865 /^X\(\/\/\)[^/].*/{
36866 s//\1/
36867 q
36868 }
36869 /^X\(\/\/\)$/{
36870 s//\1/
36871 q
36872 }
36873 /^X\(\/\).*/{
36874 s//\1/
36875 q
36876 }
36877 s/.*/./; q'`
36878 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036879 done
Reid Spencera773bd52006-08-04 18:18:08 +000036880 test -z "$as_dirs" || eval "mkdir $as_dirs"
36881 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36882echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036883 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036884 ac_builddir=.
36885
Reid Spencera773bd52006-08-04 18:18:08 +000036886case "$ac_dir" in
36887.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36888*)
John Criswell12399a12003-09-30 15:55:44 +000036889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036890 # A ".." for each directory in $ac_dir_suffix.
36891 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36892 case $ac_top_builddir_sub in
36893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36895 esac ;;
36896esac
36897ac_abs_top_builddir=$ac_pwd
36898ac_abs_builddir=$ac_pwd$ac_dir_suffix
36899# for backward compatibility:
36900ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036901
36902case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036903 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036904 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036905 ac_top_srcdir=$ac_top_builddir_sub
36906 ac_abs_top_srcdir=$ac_pwd ;;
36907 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036908 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036909 ac_top_srcdir=$srcdir
36910 ac_abs_top_srcdir=$srcdir ;;
36911 *) # Relative name.
36912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36913 ac_top_srcdir=$ac_top_build_prefix$srcdir
36914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036915esac
Reid Spencera773bd52006-08-04 18:18:08 +000036916ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036917
36918
Reid Spencera773bd52006-08-04 18:18:08 +000036919 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036920
36921 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036922 if test -f "$ac_srcdir/configure.gnu"; then
36923 ac_sub_configure=$ac_srcdir/configure.gnu
36924 elif test -f "$ac_srcdir/configure"; then
36925 ac_sub_configure=$ac_srcdir/configure
36926 elif test -f "$ac_srcdir/configure.in"; then
36927 # This should be Cygnus configure.
36928 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036929 else
36930 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36931echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36932 ac_sub_configure=
36933 fi
36934
36935 # The recursion is here.
36936 if test -n "$ac_sub_configure"; then
36937 # Make the cache file name correct relative to the subdirectory.
36938 case $cache_file in
36939 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036940 *) # Relative name.
36941 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036942 esac
36943
Reid Spencera773bd52006-08-04 18:18:08 +000036944 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36945echo "$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 +000036946 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036947 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36948 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036949 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036950echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36951 { (exit 1); exit 1; }; }
36952 fi
36953
Reid Spencera773bd52006-08-04 18:18:08 +000036954 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036955 done
36956fi
36957